rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
raise LayoutError("Flowable %s too large on page %d" % (f.identity(30), self.page))
ident = "Flowable %s too large on page %d" % (f.identity(30), self.page) raise LayoutError(ident)
def handle_flowable(self,flowables): '''try to handle one flowable from the front of list flowables.'''
019ee3bde12b7e3b2adc4e7ec74bba3eb5877041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/019ee3bde12b7e3b2adc4e7ec74bba3eb5877041/doctemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2426, 429, 12, 2890, 16, 2426, 1538, 4672, 9163, 698, 358, 1640, 1245, 4693, 429, 628, 326, 6641, 434, 666, 4693, 1538, 1093, 6309, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1640, 67, 2426, 429, 12, 2890, 16, 2426, 1538, 4672, 9163, 698, 358, 1640, 1245, 4693, 429, 628, 326, 6641, 434, 666, 4693, 1538, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100,...
try: print info['login']['result'] except: print info['error']['code'] print info['error']['info'] return False
return loginerror(info)
def login(self, username, password=False, remember=False, force=False, verify=True, domain=None): """Login to the site remember - saves cookies to a file - the filename will be: hash(username - apibase).cookies the cookies will be saved in the current directory, change cookiepath to use a different location force - fo...
6d24d3fd1c052f0c86c4d36cdeae50f08e9b85af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10544/6d24d3fd1c052f0c86c4d36cdeae50f08e9b85af/wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 2718, 16, 2201, 33, 8381, 16, 11586, 33, 8381, 16, 2944, 33, 8381, 16, 3929, 33, 5510, 16, 2461, 33, 7036, 4672, 3536, 5358, 358, 326, 2834, 225, 11586, 300, 14649,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 2718, 16, 2201, 33, 8381, 16, 11586, 33, 8381, 16, 2944, 33, 8381, 16, 3929, 33, 5510, 16, 2461, 33, 7036, 4672, 3536, 5358, 358, 326, 2834, 225, 11586, 300, 14649,...
return tag('img', src=MetadataLink(context['target'], name).getURL(context))
return tag('img', src=Link.MetadataLink(context['target'], name).getURL(context))
def renderData_image(self, context, name, value, mime): """Return an <img> tag linking to the key's value""" return tag('img', src=MetadataLink(context['target'], name).getURL(context))
ffd4158e0a9c3d3a315b109e5eb370b22fe8a850 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/ffd4158e0a9c3d3a315b109e5eb370b22fe8a850/Metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 751, 67, 2730, 12, 2890, 16, 819, 16, 508, 16, 460, 16, 4892, 4672, 3536, 990, 392, 411, 6081, 34, 1047, 27651, 358, 326, 498, 1807, 460, 8395, 327, 1047, 2668, 6081, 2187, 1705,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 751, 67, 2730, 12, 2890, 16, 819, 16, 508, 16, 460, 16, 4892, 4672, 3536, 990, 392, 411, 6081, 34, 1047, 27651, 358, 326, 498, 1807, 460, 8395, 327, 1047, 2668, 6081, 2187, 1705,...
user_data = 21
user_data[0] = 21
def test_22_create_channel(conn, channel_num, profile, received, received_data, close, close_data, user_data, next_data): info ("Called to create channel with profile: " + profile + ", and channel num: " + str (channel_num)) # check beacon if user_data != 20: error ("Expected to find create beacon equal to 20, but fou...
5e27829fa31cc85835efb1603ce2e1413515bc3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1306/5e27829fa31cc85835efb1603ce2e1413515bc3b/vortex-regression-client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3787, 67, 2640, 67, 4327, 12, 4646, 16, 1904, 67, 2107, 16, 3042, 16, 5079, 16, 5079, 67, 892, 16, 1746, 16, 1746, 67, 892, 16, 729, 67, 892, 16, 1024, 67, 892, 4672, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3787, 67, 2640, 67, 4327, 12, 4646, 16, 1904, 67, 2107, 16, 3042, 16, 5079, 16, 5079, 67, 892, 16, 1746, 16, 1746, 67, 892, 16, 729, 67, 892, 16, 1024, 67, 892, 4672, 112...
if alg=="scipy":
if algorithm=="scipy": if prec != 53: raise ValueError, "for the scipy algorithm the precision must be 53"
def hypergeometric_U(alpha,beta,x,alg="pari",prec=53): r""" Default is a wrap of Pari's hyperu(alpha,beta,x) function. Optionally, alg = "scipy" can be used. The confluent hypergeometric function $y = U(a,b,x)$ is defined to be the solution to Kummer's differential equation \[ xy'' + (b-x)y' - ay = 0. \] This satisfi...
0090c116d1d0d5f9f5ec1cc4c8800a058defd9bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0090c116d1d0d5f9f5ec1cc4c8800a058defd9bb/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9512, 10049, 1591, 67, 57, 12, 5429, 16, 5758, 16, 92, 16, 18413, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2989, 353, 279, 2193, 434, 2280, 77, 1807, 9512, 89, 12, 5429, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9512, 10049, 1591, 67, 57, 12, 5429, 16, 5758, 16, 92, 16, 18413, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2989, 353, 279, 2193, 434, 2280, 77, 1807, 9512, 89, 12, 5429, ...
config.DisableLogging()
if not daemon.GetDebugMode(): config.DisableLogging()
def set_signal_image(): global LastStrength global stillWired #keeps us from resetting the wired info over and over global network #declared as global so it is initialized once before it gets used in the if statement below config.DisableLogging() #Check to see we wired profile autoconnect chooser needs to be displaye...
796deb271dfb2b51e85fb4fc484236346e011621 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12280/796deb271dfb2b51e85fb4fc484236346e011621/dapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 10420, 67, 2730, 13332, 2552, 6825, 27624, 2552, 4859, 59, 2921, 468, 10102, 87, 584, 628, 30691, 326, 341, 2921, 1123, 1879, 471, 1879, 2552, 2483, 468, 16571, 487, 2552, 1427, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10420, 67, 2730, 13332, 2552, 6825, 27624, 2552, 4859, 59, 2921, 468, 10102, 87, 584, 628, 30691, 326, 341, 2921, 1123, 1879, 471, 1879, 2552, 2483, 468, 16571, 487, 2552, 1427, ...
query = "INSERT INTO cmtRECORDCOMMENT (id_bibrec, id_user, body, date_creation, star_score, nb_votes_total, title) " \ "VALUES (%s, %s, %s, %s, %s, %s, %s)"
query = """INSERT INTO cmtRECORDCOMMENT (id_bibrec, id_user, body, date_creation, star_score, nb_votes_total, title) VALUES (%s, %s, %s, %s, %s, %s, %s)"""
def query_add_comment_or_remark(reviews=0, recID=0, uid=-1, msg="", note="", score=0, priority=0, client_ip_address=''): """ Private function Insert a comment/review or remarkinto the database @param recID: record id @param uid: user id @param msg: comment body @param note: comment title @param score: review star score...
1b2b7129fa5990ce4b8d99618b255d82d806d055 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/1b2b7129fa5990ce4b8d99618b255d82d806d055/webcomment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 1289, 67, 3469, 67, 280, 67, 2764, 1313, 12, 266, 7061, 33, 20, 16, 1950, 734, 33, 20, 16, 4555, 29711, 21, 16, 1234, 1546, 3113, 4721, 1546, 3113, 4462, 33, 20, 16, 4394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 1289, 67, 3469, 67, 280, 67, 2764, 1313, 12, 266, 7061, 33, 20, 16, 1950, 734, 33, 20, 16, 4555, 29711, 21, 16, 1234, 1546, 3113, 4721, 1546, 3113, 4462, 33, 20, 16, 4394, ...
consumer_key='aonymous',
consumer_key='anonymous',
def RequestAccess(self): """Do all the steps involved with getting an OAuth access token. Return: True if access token was succesfully retrieved and set, otherwise False. """ import gdata.auth import subprocess # Installed applications do not have a pre-registration and so follow # directions for unregistered applica...
857d947836cb7fd3a5a68ae39edee2af0b12045d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/857d947836cb7fd3a5a68ae39edee2af0b12045d/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1567, 1862, 12, 2890, 4672, 3536, 3244, 777, 326, 6075, 24589, 598, 8742, 392, 7270, 2006, 1147, 18, 225, 2000, 30, 1053, 309, 2006, 1147, 1703, 8667, 764, 4095, 10295, 471, 444, 16, 354...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1567, 1862, 12, 2890, 4672, 3536, 3244, 777, 326, 6075, 24589, 598, 8742, 392, 7270, 2006, 1147, 18, 225, 2000, 30, 1053, 309, 2006, 1147, 1703, 8667, 764, 4095, 10295, 471, 444, 16, 354...
tmp_dialog.connect(tmp_dialog, QtCore.SIGNAL("tag_item"), self.tag_item_action) tmp_dialog.connect(tmp_dialog, QtCore.SIGNAL("handle_cancel()"), self.handle_cancel) tmp_dialog.connect(tmp_dialog, QtCore.SIGNAL("open_store_admin_dialog()"), self.show_admin_dialog)
def __configure_tag_dialog(self, store, tmp_dialog): """ given a store and a tag dialog - promote all settings to the dialog """ format_setting = store.get_datestamp_format()
567eae2b78a9ee56978657c8573b5d42d92a270d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9907/567eae2b78a9ee56978657c8573b5d42d92a270d/tagstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14895, 67, 2692, 67, 12730, 12, 2890, 16, 1707, 16, 1853, 67, 12730, 4672, 3536, 864, 279, 1707, 471, 279, 1047, 6176, 300, 28374, 777, 1947, 358, 326, 6176, 3536, 225, 740, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14895, 67, 2692, 67, 12730, 12, 2890, 16, 1707, 16, 1853, 67, 12730, 4672, 3536, 864, 279, 1707, 471, 279, 1047, 6176, 300, 28374, 777, 1947, 358, 326, 6176, 3536, 225, 740, 67, ...
urllib2.urlopen, "http://www.python.invalid./")
urllib2.urlopen, "http://sadflkjsasf.i.nvali.d/")
def test_bad_address(self): # Make sure proper exception is raised when connecting to a bogus # address. self.assertRaises(IOError, # SF patch 809915: In Sep 2003, VeriSign started # highjacking invalid .com and .net addresses to # boost traffic to their own site. This test # started failing then. One hopes the .inv...
122388a5a5b02add4f09d2d578f5efc69d410f0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/122388a5a5b02add4f09d2d578f5efc69d410f0a/test_urllib2_localnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 67, 2867, 12, 2890, 4672, 468, 4344, 3071, 5338, 1520, 353, 11531, 1347, 14244, 358, 279, 324, 28774, 468, 1758, 18, 365, 18, 11231, 12649, 6141, 12, 4294, 668, 16, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 67, 2867, 12, 2890, 4672, 468, 4344, 3071, 5338, 1520, 353, 11531, 1347, 14244, 358, 279, 324, 28774, 468, 1758, 18, 365, 18, 11231, 12649, 6141, 12, 4294, 668, 16, 468, ...
"Cannot compiler 'Python.h'. Perhaps you need to "\
"Cannot compile 'Python.h'. Perhaps you need to "\
def check_types(config_cmd, ext, build_dir): private_defines = [] public_defines = [] # Expected size (in number of bytes) for each type. This is an # optimization: those are only hints, and an exhaustive search for the size # is done if the hints are wrong. expected = {} expected['short'] = [2] expected['int'] = [4] ...
5ab03fb56e40dd5ec20535297d1c2602e8ad17a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/5ab03fb56e40dd5ec20535297d1c2602e8ad17a1/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2352, 12, 1425, 67, 4172, 16, 1110, 16, 1361, 67, 1214, 4672, 3238, 67, 536, 1465, 273, 5378, 1071, 67, 536, 1465, 273, 5378, 225, 468, 13219, 963, 261, 267, 1300, 434, 1731, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2352, 12, 1425, 67, 4172, 16, 1110, 16, 1361, 67, 1214, 4672, 3238, 67, 536, 1465, 273, 5378, 1071, 67, 536, 1465, 273, 5378, 225, 468, 13219, 963, 261, 267, 1300, 434, 1731, ...
testsrc=filter(is_chpl_source, dirlist)
testsrc=filter(IsChplSource, dirlist)
def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return
6726fd039f7a0494d6243f612d9ade4ec88db45d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6895/6726fd039f7a0494d6243f612d9ade4ec88db45d/sub_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679,...
(isinstance(tree.childNodes[i+1], _Text) or
(isinstance(tree.childNodes[i+1], xml.dom.minidom.Text) or
def _dom_to_html_helper(self, tree, container, indent, seclevel): """ Helper function for L{_dom_to_html}, that does the real work of converting a DOM tree for an epytext string to HTML. @param tree: The DOM tree for an epytext string. @type tree: C{xml.dom.minidom.Element} @param container: The container in which to ...
36aef14a0edb4bd18076686105d0e4e6c7c10c23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36aef14a0edb4bd18076686105d0e4e6c7c10c23/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 869, 67, 2620, 67, 4759, 12, 2890, 16, 2151, 16, 1478, 16, 3504, 16, 1428, 2815, 4672, 3536, 9705, 445, 364, 511, 95, 67, 9859, 67, 869, 67, 2620, 5779, 716, 1552, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 869, 67, 2620, 67, 4759, 12, 2890, 16, 2151, 16, 1478, 16, 3504, 16, 1428, 2815, 4672, 3536, 9705, 445, 364, 511, 95, 67, 9859, 67, 869, 67, 2620, 5779, 716, 1552, 326...
replace_lines(os.path.basename(sys.argv[1]))
if dirname != '': os.chdir(dirname) replace_lines(basename)
def replace_lines(filename): try: file = open(filename) for line in file.readlines(): matched = re.compile("^%include\s+(.*)").match(line) if matched: replace_lines(matched.group(1)) else: sys.stdout.write(line) file.close() except IOError, detail: print detail sys.exit(2)
848eaf483df9eb79342ae841a80f7724c85899f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1639/848eaf483df9eb79342ae841a80f7724c85899f0/ks_fold_include.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 67, 3548, 12, 3459, 4672, 775, 30, 585, 273, 1696, 12, 3459, 13, 364, 980, 316, 585, 18, 896, 3548, 13332, 4847, 273, 283, 18, 11100, 2932, 66, 9, 6702, 64, 87, 15, 7444, 2225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3548, 12, 3459, 4672, 775, 30, 585, 273, 1696, 12, 3459, 13, 364, 980, 316, 585, 18, 896, 3548, 13332, 4847, 273, 283, 18, 11100, 2932, 66, 9, 6702, 64, 87, 15, 7444, 2225,...
session.close() conn.close()
if __name__ == '__main__': unittest.main()
def onException(self, exc): print exc, ':', exc.message
16f5191b239ef3879b9382d7f75c107fe1c814b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4106/16f5191b239ef3879b9382d7f75c107fe1c814b3/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 503, 12, 2890, 16, 3533, 4672, 1172, 3533, 16, 4290, 2187, 3533, 18, 2150, 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, 603, 503, 12, 2890, 16, 3533, 4672, 1172, 3533, 16, 4290, 2187, 3533, 18, 2150, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if options['escape']:
if options['escape'] and not options['notty']: self.escapeMode = 1
def channelOpen(self, foo): #global globalSession #globalSession = self # turn off local echo if options['agent']: d = self.conn.sendRequest(self, 'auth-agent-req@openssh.com', '', wantReply=1) d.addBoth(lambda x:log.msg(x)) if options['noshell']: return self.escapeMode = 1 fd = 0 #sys.stdin.fileno() try: new = tty.tcg...
0b278fb0f6b45a71f7e8a6ee05680d7b5b1f6d7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/0b278fb0f6b45a71f7e8a6ee05680d7b5b1f6d7b/conch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1904, 3678, 12, 2890, 16, 8431, 4672, 468, 6347, 2552, 2157, 468, 6347, 2157, 273, 365, 468, 7005, 3397, 1191, 3376, 309, 702, 3292, 5629, 3546, 30, 302, 273, 365, 18, 4646, 18, 4661, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1904, 3678, 12, 2890, 16, 8431, 4672, 468, 6347, 2552, 2157, 468, 6347, 2157, 273, 365, 468, 7005, 3397, 1191, 3376, 309, 702, 3292, 5629, 3546, 30, 302, 273, 365, 18, 4646, 18, 4661, ...
rho = matrixmultiply(evec_L, crho)
rho = matrixmultiply(RLt, crho)
def calc_TLS_center_of_reaction(T_orig, L_orig, S_orig, origin): """Calculate new tensors based on the center for reaction. This method returns a dictionary of the calculations: T^: T tensor in the coordinate system of L L^: L tensor in the coordinate system of L S^: S tensor in the coordinate system of L COR: Center...
742140185bc8b6b74df991525abcac33bdc82b5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/742140185bc8b6b74df991525abcac33bdc82b5f/TLS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 9905, 67, 5693, 67, 792, 67, 266, 1128, 12, 56, 67, 4949, 16, 511, 67, 4949, 16, 348, 67, 4949, 16, 4026, 4672, 3536, 8695, 394, 25122, 2511, 603, 326, 4617, 364, 12836, 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, 7029, 67, 9905, 67, 5693, 67, 792, 67, 266, 1128, 12, 56, 67, 4949, 16, 511, 67, 4949, 16, 348, 67, 4949, 16, 4026, 4672, 3536, 8695, 394, 25122, 2511, 603, 326, 4617, 364, 12836, 18...
time_first_flower_open = 'DNF'
time_tuple = 'DNF'
def get_experiment_id2accession_id2reading_ls(self, curs, raw_phenotype_table): """ 2008-02-29 replicate gets converted to arabic and included in the returning results 2008-02-23 'long ago' now mapped to 'NA' the reading_error_dict applied before testing whether it's NA or not 2008-02-20 """ sys.stderr.write("Getting e...
e6897ae45631832ceb92bfc9db5ab27edc82a829 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/e6897ae45631832ceb92bfc9db5ab27edc82a829/ProcessPhenotype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 18142, 67, 350, 22, 3860, 285, 67, 350, 22, 21803, 67, 3251, 12, 2890, 16, 25326, 16, 1831, 67, 13819, 10570, 67, 2121, 4672, 3536, 4044, 28, 17, 3103, 17, 5540, 28476, 5571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 18142, 67, 350, 22, 3860, 285, 67, 350, 22, 21803, 67, 3251, 12, 2890, 16, 25326, 16, 1831, 67, 13819, 10570, 67, 2121, 4672, 3536, 4044, 28, 17, 3103, 17, 5540, 28476, 5571, ...
game.state.galaxy[w.x][w.y].romulans += 1
game.state.galaxy[w.i][w.j].romulans += 1
def setup(): "Prepare to play, set up cosmos." w = coord() # Decide how many of everything if choose(): return # frozen game # Prepare the Enterprise game.alldone = game.gamewon = False game.ship = IHE game.state.crew = FULLCREW game.energy = game.inenrg = 5000.0 game.shield = game.inshld = 2500.0 game.shldchg = False...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 315, 7543, 358, 6599, 16, 444, 731, 4987, 26719, 1199, 341, 273, 2745, 1435, 468, 225, 3416, 831, 3661, 4906, 434, 7756, 309, 9876, 13332, 327, 468, 12810, 7920, 468, 7730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 315, 7543, 358, 6599, 16, 444, 731, 4987, 26719, 1199, 341, 273, 2745, 1435, 468, 225, 3416, 831, 3661, 4906, 434, 7756, 309, 9876, 13332, 327, 468, 12810, 7920, 468, 7730, ...
if firstStatement.type == "throw": node.set("isAbstract", True)
def handleFunction(funcItem, name, commentAttributes, classNode): if funcItem.type != "function": raise DocException("'funcItem' is no function", funcItem) node = tree.Node("method") node.set("name", name) # Read the parameters params = funcItem.getChild("params", False) if params and params.hasChildren(): for param ...
553eb07a7af2000fdf74c165c23d21c2b9e376e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/553eb07a7af2000fdf74c165c23d21c2b9e376e2/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 2083, 12, 644, 1180, 16, 508, 16, 2879, 2498, 16, 25822, 4672, 309, 1326, 1180, 18, 723, 480, 315, 915, 6877, 1002, 3521, 503, 29823, 644, 1180, 11, 353, 1158, 445, 3113, 1326, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 2083, 12, 644, 1180, 16, 508, 16, 2879, 2498, 16, 25822, 4672, 309, 1326, 1180, 18, 723, 480, 315, 915, 6877, 1002, 3521, 503, 29823, 644, 1180, 11, 353, 1158, 445, 3113, 1326, 1...
col_width = [-1] + col_width
col_width = [None] + col_width
def datefmt_func(date): return date.strfmt(datefmt)
49f7cf850b803093831ddb07ea689be861903eaa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/49f7cf850b803093831ddb07ea689be861903eaa/reportlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1509, 8666, 67, 644, 12, 712, 4672, 327, 1509, 18, 701, 8666, 12, 712, 8666, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1509, 8666, 67, 644, 12, 712, 4672, 327, 1509, 18, 701, 8666, 12, 712, 8666, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif self.distro_type == 'debian-based':
elif self.distro_type == 'debian-based': print 'Remember that you must have the following lsb compliance packages installed:' print 'lsb-core lsb-cxx lsb-graphics lsb-desktop lsb-qt4 lsb-languages lsb-multimedia lsb-printing' print 'Converting and installing LSB packages' self.dtk_manager_dpkg = package.convert(self.dt...
def install_lsb_packages(self, srcdir, cachedir, my_config): # Installing LSB DTK manager packages self.dtk_manager_arch = my_config.get('dtk-manager', 'arch-%s' % self.get_lsb_arch()) self.dtk_manager_url = my_config.get('dtk-manager', 'tarball_url') % self.dtk_manager_arch if not self.dtk_manager_url: raise TestError...
74523bd453d8f2601557c66254590e04dd035f68 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/74523bd453d8f2601557c66254590e04dd035f68/lsb_dtk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 3251, 70, 67, 10308, 12, 2890, 16, 1705, 1214, 16, 3472, 481, 16, 3399, 67, 1425, 4672, 468, 10284, 310, 511, 14541, 10696, 47, 3301, 5907, 365, 18, 7510, 79, 67, 4181, 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, 3799, 67, 3251, 70, 67, 10308, 12, 2890, 16, 1705, 1214, 16, 3472, 481, 16, 3399, 67, 1425, 4672, 468, 10284, 310, 511, 14541, 10696, 47, 3301, 5907, 365, 18, 7510, 79, 67, 4181, 67, ...
numbers larger than 30. ( or even less) turn to 1. and numbers
numbers larger than 30. (or even less then that) turn to 1. and numbers
def get_reconstruction_cost(self, updates, pre_sigmoid_nv): """Approximation to the reconstruction error Note that this function requires the pre-sigmoid activation. To understand why this is so you need to understand a bit about how Theano works. Once you express a computational graph in Theano, it will apply to it s...
509a1157ce281f27267369f92c339d7bd5791429 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/242/509a1157ce281f27267369f92c339d7bd5791429/rbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 266, 591, 4549, 67, 12398, 12, 2890, 16, 4533, 16, 675, 67, 7340, 30501, 67, 16588, 4672, 3536, 25789, 5115, 358, 326, 25792, 4549, 555, 225, 3609, 716, 333, 445, 4991, 326, 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, 336, 67, 266, 591, 4549, 67, 12398, 12, 2890, 16, 4533, 16, 675, 67, 7340, 30501, 67, 16588, 4672, 3536, 25789, 5115, 358, 326, 25792, 4549, 555, 225, 3609, 716, 333, 445, 4991, 326, 6...
top[i] = new
if SCons.Util.is_List(new): top[i:i+1] = new else: top[i] = new
def Replace(self, old, new): for top, lists, nonlists in FileListWalk(self, topdown=False): try: i = top.index(old) except ValueError: pass else: top[i] = new
e0b3bb7143d8b6461777c55e2d6d3bb25e1a4720 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/e0b3bb7143d8b6461777c55e2d6d3bb25e1a4720/chromium_builders.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6910, 12, 2890, 16, 1592, 16, 394, 4672, 364, 1760, 16, 6035, 16, 1661, 9772, 316, 1387, 682, 9463, 12, 2890, 16, 1760, 2378, 33, 8381, 4672, 775, 30, 277, 273, 1760, 18, 1615, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6910, 12, 2890, 16, 1592, 16, 394, 4672, 364, 1760, 16, 6035, 16, 1661, 9772, 316, 1387, 682, 9463, 12, 2890, 16, 1760, 2378, 33, 8381, 4672, 775, 30, 277, 273, 1760, 18, 1615, 12, 1...
for attr in ["pnode", "snode", "iallocator", "hypervisor"]:
for attr in ["pnode", "snode", "iallocator", "hypervisor", "disk_template"]:
def CheckArguments(self): """Check arguments.
f276c4b5558338ba7832b5a92b822f0695a5ac6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/f276c4b5558338ba7832b5a92b822f0695a5ac6c/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 4628, 12, 2890, 4672, 3536, 1564, 1775, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2073, 4628, 12, 2890, 4672, 3536, 1564, 1775, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
filename)
os.path.basename(filepath))
def decode_filename(filename): """ Breaks filename into component parts based on regex for example: firefox-3.0b3pre.en-US.linux-i686.complete.mar Returns dict with keys product, version, locale, platform, type """ try: m = re.search( '(?P<product>\w+)(-)(?P<version>\w+\.\w+)(\.)(?P<locale>.+?)(\.)(?P<platform>.+?)(\.)...
a58f0266a0bdadbbef96708435c6cd47901860ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/a58f0266a0bdadbbef96708435c6cd47901860ae/make_incremental_updates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 3459, 12, 3459, 4672, 3536, 17030, 87, 1544, 1368, 1794, 2140, 2511, 603, 3936, 364, 3454, 30, 4452, 13873, 17, 23, 18, 20, 70, 23, 1484, 18, 275, 17, 3378, 18, 20132, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 3459, 12, 3459, 4672, 3536, 17030, 87, 1544, 1368, 1794, 2140, 2511, 603, 3936, 364, 3454, 30, 4452, 13873, 17, 23, 18, 20, 70, 23, 1484, 18, 275, 17, 3378, 18, 20132, 17, ...
``associated'' in the literature) partition of the partition pi which is
``associated'' in the literature) partition of the partition p which is
def conjugate(self): """ conjugate() returns the ``conjugate'' (also called ``associated'' in the literature) partition of the partition pi which is obtained by transposing the corresponding Ferrers diagram.
7896fee27ebd1c280842dcd38fb5539dd2c77a15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7896fee27ebd1c280842dcd38fb5539dd2c77a15/partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10550, 31529, 12, 2890, 4672, 3536, 10550, 31529, 1435, 1135, 326, 12176, 591, 78, 31529, 6309, 261, 31144, 2566, 12176, 28441, 6309, 316, 326, 328, 2165, 1231, 13, 3590, 434, 326, 3590, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10550, 31529, 12, 2890, 4672, 3536, 10550, 31529, 1435, 1135, 326, 12176, 591, 78, 31529, 6309, 261, 31144, 2566, 12176, 28441, 6309, 316, 326, 328, 2165, 1231, 13, 3590, 434, 326, 3590, 2...
import imp
def tmpl_import(name): if os.sep not in name: return __import__(name) else: dir = os.path.dirname(name) modname = os.path.basename(name) import imp modfile, pathname, description = imp.find_module(modname, [dir]) try: return imp.load_module('template_' + modname, modfile, pathname, description) finally: modfile.close()...
3b7c9db09b88b8b3aa775c397f0565bc369ed89d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10695/3b7c9db09b88b8b3aa775c397f0565bc369ed89d/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 5666, 12, 529, 4672, 309, 1140, 18, 10814, 486, 316, 508, 30, 327, 1001, 5666, 972, 12, 529, 13, 469, 30, 1577, 273, 1140, 18, 803, 18, 12287, 12, 529, 13, 16037, 273, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 5666, 12, 529, 4672, 309, 1140, 18, 10814, 486, 316, 508, 30, 327, 1001, 5666, 972, 12, 529, 13, 469, 30, 1577, 273, 1140, 18, 803, 18, 12287, 12, 529, 13, 16037, 273, 114...
logger.error('xmlrpc exception: %s', reduce_homedir(e.faultCode.strip()))
e_fc = str(e.faultCode) logger.error('xmlrpc exception: %s', reduce_homedir(e_fc.strip()))
def load_mod_info(mdir, module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(mdir, module, filename) # Broken for zip modules. if description_file and os.path.isfile(description_file): return eval(open(description...
ce61ee67edfad756fb002d0ff6bbdd868145fdc6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12355/ce61ee67edfad756fb002d0ff6bbdd868145fdc6/base_quality_interrogation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1711, 67, 1376, 12, 81, 1214, 16, 1605, 4672, 3536, 294, 891, 1605, 30, 1021, 508, 434, 326, 1605, 261, 87, 5349, 16, 23701, 16, 1372, 13, 3536, 364, 1544, 316, 10228, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1711, 67, 1376, 12, 81, 1214, 16, 1605, 4672, 3536, 294, 891, 1605, 30, 1021, 508, 434, 326, 1605, 261, 87, 5349, 16, 23701, 16, 1372, 13, 3536, 364, 1544, 316, 10228, 972, ...
this = apply(_quickfix.new_MDEntrySpotRate, args)
this = _quickfix.new_MDEntrySpotRate(*args)
def __init__(self, *args): this = apply(_quickfix.new_MDEntrySpotRate, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6188, 1622, 17292, 4727, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6188, 1622, 17292, 4727, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335,...
for header in resp.getheaders(): self.infostring += header[0] + ": " + header[1] + "\r\n"
if resp != None: for header in resp.getheaders(): self.infostring += header[0] + ": " + header[1] + "\r\n"
def __init__(self, url): self.infostring = "" self.url = url urlparts = urlparse.urlparse(url) self.scheme = urlparts.scheme if self.scheme == "http": # need to set default port here port = httplib.HTTP_PORT try: if urlparts.port != None: port = urlparts.port except ValueError: self.infostring += _("Response") + ": " ...
f0fc3f3d4f260e51b53b5886e4aecb19001929df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6425/f0fc3f3d4f260e51b53b5886e4aecb19001929df/checker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 880, 4672, 365, 18, 18227, 371, 273, 1408, 365, 18, 718, 273, 880, 880, 6019, 273, 15185, 18, 718, 2670, 12, 718, 13, 365, 18, 9068, 273, 880, 6019, 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, 1001, 2738, 972, 12, 2890, 16, 880, 4672, 365, 18, 18227, 371, 273, 1408, 365, 18, 718, 273, 880, 880, 6019, 273, 15185, 18, 718, 2670, 12, 718, 13, 365, 18, 9068, 273, 880, 6019, 18...
return str(x0) else: return "%d,%d" % (x0, x1)
return "line " + str(x0) else: return "lines %d-%d" % (x0, x1)
def pair(x0, x1): x0 += 1 if x0 >= x1: return str(x0) else: return "%d,%d" % (x0, x1)
e35ebca574f26c382a6a5d825fcc932185e500cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e35ebca574f26c382a6a5d825fcc932185e500cb/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3082, 12, 92, 20, 16, 619, 21, 4672, 619, 20, 1011, 404, 309, 619, 20, 1545, 619, 21, 30, 327, 609, 12, 92, 20, 13, 469, 30, 327, 2213, 72, 15529, 72, 6, 738, 261, 92, 20, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3082, 12, 92, 20, 16, 619, 21, 4672, 619, 20, 1011, 404, 309, 619, 20, 1545, 619, 21, 30, 327, 609, 12, 92, 20, 13, 469, 30, 327, 2213, 72, 15529, 72, 6, 738, 261, 92, 20, 16, ...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 527) else quickfix.StringField.__init__(self, 527, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 5324, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 5324, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
if DEBUG and endchar: self.err_write( "subconvert(%s)\n line = %s\n" % (`endchar`, `line[:20]`))
def subconvert(self, endchar=None, depth=0): stack = [] line = self.line if DEBUG and endchar: self.err_write( "subconvert(%s)\n line = %s\n" % (`endchar`, `line[:20]`)) while line: if line[0] == endchar and not stack: if DEBUG: self.err_write("subconvert() --> %s\n" % `line[1:21]`) self.line = line return line m = _c...
ab75840fa4cfb9d978e30ffcae071fbad52b75e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ab75840fa4cfb9d978e30ffcae071fbad52b75e3/latex2esis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 6283, 12, 2890, 16, 679, 3001, 33, 7036, 16, 3598, 33, 20, 4672, 2110, 273, 5378, 980, 273, 365, 18, 1369, 1323, 980, 30, 309, 980, 63, 20, 65, 422, 679, 3001, 471, 486, 2110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 6283, 12, 2890, 16, 679, 3001, 33, 7036, 16, 3598, 33, 20, 4672, 2110, 273, 5378, 980, 273, 365, 18, 1369, 1323, 980, 30, 309, 980, 63, 20, 65, 422, 679, 3001, 471, 486, 2110, ...
if (ProxyUtil.findHTTPProxy()): DebugPrint(0, 'WARNING: http_proxy is set but not supported') __connection = httplib.HTTPConnection(Config.get_SOAPHost())
if (ProxyUtil.findHTTPProxy()): DebugPrint(0, 'WARNING: http_proxy is set but not supported') __connection = httplib.HTTPConnection(Config.get_SOAPHost())
def __connect(): global __connection global __connected global __connectionError global __certificateRejected global __connectionRetries global __retryDelay global __last_retry_time #__connectionError = True #return __connected if __connectionError: __disconnect() __connectionError = False if __connectionRetries > Ma...
637869f92a8322c20ea53836dc7393fc485f077a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/637/637869f92a8322c20ea53836dc7393fc485f077a/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3612, 13332, 2552, 1001, 4071, 2552, 1001, 8537, 2552, 1001, 4071, 668, 2552, 1001, 14108, 19902, 2552, 1001, 4071, 13656, 2552, 1001, 9620, 6763, 2552, 1001, 2722, 67, 9620, 67, 957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3612, 13332, 2552, 1001, 4071, 2552, 1001, 8537, 2552, 1001, 4071, 668, 2552, 1001, 14108, 19902, 2552, 1001, 4071, 13656, 2552, 1001, 9620, 6763, 2552, 1001, 2722, 67, 9620, 67, 957, ...
if excepted != actual:
if expected != actual:
def element_text_should_be(self, locator, excepted, message=''): """Verifies element identified by `locator` exactly contains text `expected`. In contrast to `Element Should Contain`, this keyword does not try a substring match but an exact match on the element identified by `locator`.
7e5a3533b01b02f3592aed251c78e2c3aac0db38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2148/7e5a3533b01b02f3592aed251c78e2c3aac0db38/assertion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 930, 67, 955, 67, 13139, 67, 2196, 12, 2890, 16, 8871, 16, 1335, 329, 16, 883, 2218, 11, 4672, 3536, 19802, 930, 9283, 635, 1375, 20048, 68, 8950, 1914, 977, 1375, 3825, 8338, 225, 657...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 930, 67, 955, 67, 13139, 67, 2196, 12, 2890, 16, 8871, 16, 1335, 329, 16, 883, 2218, 11, 4672, 3536, 19802, 930, 9283, 635, 1375, 20048, 68, 8950, 1914, 977, 1375, 3825, 8338, 225, 657...
def purge(base_dir, gigs, ignore, dry_run=False): """Delete directories under `base_dir` until `gigs` GB are free
def purge(base_dirs, gigs, ignore, dry_run=False): """Delete directories under `base_dirs` until `gigs` GB are free
def purge(base_dir, gigs, ignore, dry_run=False): """Delete directories under `base_dir` until `gigs` GB are free Will not delete directories listed in the ignore list.""" gigs *= 1024 * 1024 * 1024 if freespace(base_dir) >= gigs: return dirs = [os.path.join(base_dir, d) for d in os.listdir(base_dir) if os.path.isdi...
c12b0ed3642211354e16f3ad24c1b0c1d06b35bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6206/c12b0ed3642211354e16f3ad24c1b0c1d06b35bc/purge_builds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 12, 1969, 67, 8291, 16, 314, 360, 87, 16, 2305, 16, 10299, 67, 2681, 33, 8381, 4672, 3536, 2613, 6402, 3613, 1375, 1969, 67, 8291, 68, 3180, 1375, 75, 360, 87, 68, 25069, 854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 12, 1969, 67, 8291, 16, 314, 360, 87, 16, 2305, 16, 10299, 67, 2681, 33, 8381, 4672, 3536, 2613, 6402, 3613, 1375, 1969, 67, 8291, 68, 3180, 1375, 75, 360, 87, 68, 25069, 854, ...
def flimage_color_to_pixel(p1, p2, p3, p4, p5): """ flimage_color_to_pixel(p1, p2, p3, p4, p5) -> num. """ retval = _flimage_color_to_pixel(p1, p2, p3, p4, p5)
def flimage_color_to_pixel(pImage, p2, p3, p4, p5): """ flimage_color_to_pixel(pImage, p2, p3, p4, p5) -> num. """ retval = _flimage_color_to_pixel(pImage, p2, p3, p4, p5)
def flimage_color_to_pixel(p1, p2, p3, p4, p5): """ flimage_color_to_pixel(p1, p2, p3, p4, p5) -> num. """ retval = _flimage_color_to_pixel(p1, p2, p3, p4, p5) return retval
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 3266, 67, 869, 67, 11743, 12, 84, 2040, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 4672, 3536, 1183, 2730, 67, 3266, 67, 869, 67, 11743, 12, 84, 2040, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 3266, 67, 869, 67, 11743, 12, 84, 2040, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 4672, 3536, 1183, 2730, 67, 3266, 67, 869, 67, 11743, 12, 84, 2040, 16, ...
v, maxlinelen=self.__maxheaderlen,
v, maxlinelen=self._maxheaderlen,
def _write_headers(self, msg): for h, v in msg.items(): print >> self._fp, '%s:' % h, if self.__maxheaderlen == 0: # Explicit no-wrapping print >> self._fp, v elif isinstance(v, Header): # Header instances know what to do print >> self._fp, v.encode() elif _is8bitstring(v): # If we have raw 8bit data in a byte string, ...
36112f2d34253c36784302cb703977ec78ccc7b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/36112f2d34253c36784302cb703977ec78ccc7b2/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 2485, 12, 2890, 16, 1234, 4672, 364, 366, 16, 331, 316, 1234, 18, 3319, 13332, 1172, 1671, 365, 6315, 7944, 16, 1995, 87, 2497, 738, 366, 16, 309, 365, 16186, 1896, 3374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 67, 2485, 12, 2890, 16, 1234, 4672, 364, 366, 16, 331, 316, 1234, 18, 3319, 13332, 1172, 1671, 365, 6315, 7944, 16, 1995, 87, 2497, 738, 366, 16, 309, 365, 16186, 1896, 3374...
config_file: location of the config file
config_file (string): location of the config file map_areas_prefix (string): map_areas table name prefix
def __init__(self, config_file=None, city_name=None, boundingbox=None, osmid=None, language=None): """Creates a new OCitySMap renderer instance for the given city.
6179e7aca483e9d7ad5ce52cd02fb358c6e761ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9326/6179e7aca483e9d7ad5ce52cd02fb358c6e761ef/street_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 67, 768, 33, 7036, 16, 12797, 67, 529, 33, 7036, 16, 12638, 33, 7036, 16, 1140, 13138, 33, 7036, 16, 2653, 33, 7036, 4672, 3536, 2729, 279, 394, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 67, 768, 33, 7036, 16, 12797, 67, 529, 33, 7036, 16, 12638, 33, 7036, 16, 1140, 13138, 33, 7036, 16, 2653, 33, 7036, 4672, 3536, 2729, 279, 394, 5...
return " ".join([x for x in self.name, self.value, self.description if isinstance(x, basestring) and len(x) > 0 and not x.isspace()])
basicText=" ".join([x for x in self.name, self.value, self.description if isinstance(x, basestring) and len(x) > 0 and not x.isspace()]) if len(basicText)==0: basicText="\n" return basicText
def _get_basicText(self): return " ".join([x for x in self.name, self.value, self.description if isinstance(x, basestring) and len(x) > 0 and not x.isspace()])
7bbcb26df7bcaa33983ac9ecef49ddd633221275 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/7bbcb26df7bcaa33983ac9ecef49ddd633221275/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 13240, 1528, 12, 2890, 4672, 327, 315, 3552, 5701, 3816, 92, 364, 619, 316, 365, 18, 529, 16, 365, 18, 1132, 16, 365, 18, 3384, 309, 1549, 12, 92, 16, 10699, 13, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 13240, 1528, 12, 2890, 4672, 327, 315, 3552, 5701, 3816, 92, 364, 619, 316, 365, 18, 529, 16, 365, 18, 1132, 16, 365, 18, 3384, 309, 1549, 12, 92, 16, 10699, 13, 471, ...
"Pythonwin": "Pythonwin/pywin"},
"Pythonwin": "Pythonwin"},
def swig_sources (self, sources): new_sources = [] swig_sources = [] swig_targets = {} # XXX this drops generated C/C++ files into the source tree, which # is fine for developers who want to distribute the generated # source -- but there should be an option to put SWIG output in # the temp dir. target_ext = '.cpp' for ...
6bdda3ba83a5f691e3af1da556fd0e9b2bc1a7e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/6bdda3ba83a5f691e3af1da556fd0e9b2bc1a7e2/setup_win32all_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 394, 67, 10141, 273, 5378, 1352, 360, 67, 10141, 273, 5378, 1352, 360, 67, 11358, 273, 2618, 468, 11329, 333, 29535, 4374, 385, 19, 39, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 394, 67, 10141, 273, 5378, 1352, 360, 67, 10141, 273, 5378, 1352, 360, 67, 11358, 273, 2618, 468, 11329, 333, 29535, 4374, 385, 19, 39, ...
self.log.info('submitTasks: Failed to submit %d tasks to RMS.' % (failed,time.time()-startTime))
self.log.info('submitTasks: Failed to submit %d tasks to RMS.' % (failed))
def submitTasks(self,taskDict): submitted = 0 failed = 0 startTime = time.time() for taskID in sortLit(taskDict.keys()): taskDict[taskID] res = self.submitToExternal(taskDict[taskID]['TaskObject']) if res['OK']: taskDict[taskID]['ExternalID'] = res['Value'] taskDict[taskID]['Success'] = True submitted +=1 else: self.lo...
7e361d624cd9374c5dec904aad18c8eb176604b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7e361d624cd9374c5dec904aad18c8eb176604b6/TaskManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 6685, 12, 2890, 16, 4146, 5014, 4672, 9638, 273, 374, 2535, 273, 374, 8657, 273, 813, 18, 957, 1435, 364, 29772, 316, 1524, 23707, 12, 4146, 5014, 18, 2452, 1435, 4672, 1562, 5014,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 6685, 12, 2890, 16, 4146, 5014, 4672, 9638, 273, 374, 2535, 273, 374, 8657, 273, 813, 18, 957, 1435, 364, 29772, 316, 1524, 23707, 12, 4146, 5014, 18, 2452, 1435, 4672, 1562, 5014,...
import warnings, traceback, StringIO
import io, warnings, traceback
def _warn_unhandled_exception(): # There are a few catch-all except: statements in this module, for # catching input that's bad in unexpected ways. Warn if any # exceptions are caught there. import warnings, traceback, StringIO f = io.StringIO() traceback.print_exc(None, f) msg = f.getvalue() warnings.warn("cookielib ...
aeb23c0340a22e2d737b490b94e874840e709ebd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/aeb23c0340a22e2d737b490b94e874840e709ebd/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8935, 67, 318, 14387, 67, 4064, 13332, 468, 6149, 854, 279, 11315, 1044, 17, 454, 1335, 30, 6317, 316, 333, 1605, 16, 364, 468, 1044, 310, 810, 716, 1807, 5570, 316, 9733, 16226, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8935, 67, 318, 14387, 67, 4064, 13332, 468, 6149, 854, 279, 11315, 1044, 17, 454, 1335, 30, 6317, 316, 333, 1605, 16, 364, 468, 1044, 310, 810, 716, 1807, 5570, 316, 9733, 16226, ...
ig, r2 = self.fit_item_in_rectangle( head_val.rectangle, col_size, head_h )
ig, r2 = self.fit_item_in_rectangle( head_val.rectangle, col_size, head_h, head_h )
def update_content(self): """ update the listing area """
ec09a89abffc006a16c2262aef73f463346519b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/ec09a89abffc006a16c2262aef73f463346519b4/tvlisting_area.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1745, 12, 2890, 4672, 3536, 1089, 326, 11591, 5091, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1089, 67, 1745, 12, 2890, 4672, 3536, 1089, 326, 11591, 5091, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
@param shrink if True child can be made smaller than its minimum size request
@param shrink if True child can be made smaller than its minimum size request
def bind_session(self, ptype, persp_klass, show_pers=True, resize=False, shrink=True): """ Bind the perspective 'pers_klass' to Session 'ptype'
05f68a255d3ea85d6e22c14339e6ebf36badb224 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11468/05f68a255d3ea85d6e22c14339e6ebf36badb224/MainWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1993, 67, 3184, 12, 2890, 16, 24203, 16, 13508, 84, 67, 22626, 16, 2405, 67, 10422, 33, 5510, 16, 7041, 33, 8381, 16, 17697, 33, 5510, 4672, 3536, 6936, 326, 26651, 296, 10422, 67, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1993, 67, 3184, 12, 2890, 16, 24203, 16, 13508, 84, 67, 22626, 16, 2405, 67, 10422, 33, 5510, 16, 7041, 33, 8381, 16, 17697, 33, 5510, 4672, 3536, 6936, 326, 26651, 296, 10422, 67, 226...
matrix_integer_dense, matrix_rational_dense, matrix_rational_sparse, matrix_cyclo_dense, matrix_integer_2x2, matrix_integer_sparse, matrix_double_dense, matrix_real_double_dense, matrix_change_ring, matrix_complex_double_dense, linbox, matrix_modn_dense, matrix_modn_sparse, matrix_mod2_dense, matrix_mpolynomia...
matrix_integer_dense, matrix_rational_dense, matrix_rational_sparse, matrix_cyclo_dense, matrix_integer_2x2, matrix_double_dense, matrix_integer_sparse, matrix_real_double_dense, matrix_change_ring, matrix_complex_double_dense, linbox, matrix_modn_dense, matrix_modn_sparse, matrix_mod2_dense, matrix_mpolynomial_dense...
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16,...
if not single_article_per_section: navPointByLetterTag['id'] = "%sTitles-ID" % (title_letters[i].upper())
navPointByLetterTag['id'] = "%sTitles-ID" % (title_letters[i].upper())
def generateNCXByTitle(self, tocTitle, single_article_per_section=True):
073710f405f291eedc7992694a78db2be7983d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/073710f405f291eedc7992694a78db2be7983d10/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 10346, 60, 858, 4247, 12, 2890, 16, 17919, 4247, 16, 2202, 67, 11480, 67, 457, 67, 3464, 33, 5510, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 10346, 60, 858, 4247, 12, 2890, 16, 17919, 4247, 16, 2202, 67, 11480, 67, 457, 67, 3464, 33, 5510, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.found_type = mime_type if not self.found_type:
self.sound_file.mime_type = mime_type if not self.sound_file.mime_type:
def have_type(self, typefind, probability, caps): mime_type = caps.to_string() #debug("have_type:", mime_type, self.sound_file.get_filename_for_display()) self.found_type = None for t in mime_whitelist: if t in mime_type: self.found_type = mime_type if not self.found_type: log("Mime type skipped: %s (mail us if this is...
a18793b0ad63f711dbec0cbd8e8e8a81457c6811 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/a18793b0ad63f711dbec0cbd8e8e8a81457c6811/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1240, 67, 723, 12, 2890, 16, 618, 4720, 16, 11331, 16, 15788, 4672, 4892, 67, 723, 273, 15788, 18, 869, 67, 1080, 1435, 468, 4148, 2932, 21516, 67, 723, 2773, 16, 4892, 67, 723, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1240, 67, 723, 12, 2890, 16, 618, 4720, 16, 11331, 16, 15788, 4672, 4892, 67, 723, 273, 15788, 18, 869, 67, 1080, 1435, 468, 4148, 2932, 21516, 67, 723, 2773, 16, 4892, 67, 723, 16, ...
for k, v in os.environ.iteritems():
for k in os.environ.keys():
def setUp(self): # Records changes to env vars self.env = test_support.EnvironmentVarGuard() # Delete all proxy related env vars for k, v in os.environ.iteritems(): if 'proxy' in k.lower(): self.env.unset(k)
fd3889e27269537ad7d93a585493599047812a1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/fd3889e27269537ad7d93a585493599047812a1a/test_urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 27390, 3478, 358, 1550, 4153, 365, 18, 3074, 273, 1842, 67, 13261, 18, 5494, 1537, 16709, 1435, 468, 2504, 777, 2889, 3746, 1550, 4153, 364, 417, 316, 1140, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 27390, 3478, 358, 1550, 4153, 365, 18, 3074, 273, 1842, 67, 13261, 18, 5494, 1537, 16709, 1435, 468, 2504, 777, 2889, 3746, 1550, 4153, 364, 417, 316, 1140, 1...
def fit(self, method=None, effects='oneway', *opts): """ method : LSDV, demeaned, MLE, GLS, BE, FE effects : 'invidividual', 'oneway', or 'twoway' """ method = method.lower() if method not in ["lsdv", "demeaned", "mle", "gls", "be", "fe"]:
def fit(self, model=None, method=None, effects='oneway'): """ method : LSDV, demeaned, MLE, GLS, BE, FE, optional model : BTWNP : Between panels BTWNT : Between time periods FIXONE : One-way fixed effects FIXONETIME : One-way time fixed effects GMM : Dynamic panel estimator POOLED : Pooled RANONE : One-way random effec...
def fit(self, method=None, effects='oneway', *opts): """ method : LSDV, demeaned, MLE, GLS, BE, FE effects : 'invidividual', 'oneway', or 'twoway' """ method = method.lower() if method not in ["lsdv", "demeaned", "mle", "gls", "be", "fe"]: raise ValueError, "%s not a valid method" % method if method == "lsdv": self.fit...
7de62ef8a76e8d78e08a9767ab1f536f7f5b28f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/7de62ef8a76e8d78e08a9767ab1f536f7f5b28f1/panelmod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 12, 2890, 16, 938, 33, 7036, 16, 707, 33, 7036, 16, 16605, 2218, 265, 359, 528, 11, 4672, 3536, 707, 294, 511, 9903, 58, 16, 302, 4698, 304, 329, 16, 490, 900, 16, 611, 3045, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 12, 2890, 16, 938, 33, 7036, 16, 707, 33, 7036, 16, 16605, 2218, 265, 359, 528, 11, 4672, 3536, 707, 294, 511, 9903, 58, 16, 302, 4698, 304, 329, 16, 490, 900, 16, 611, 3045, ...
self.plist.CFBundleExecutable = self.name
def preProcess(self): self.plist.CFBundleExecutable = self.name resdir = pathjoin("Contents", "Resources") if self.executable is not None: if self.mainprogram is None: execpath = pathjoin(self.execdir, self.name) else: execpath = pathjoin(resdir, os.path.basename(self.executable)) self.files.append((self.executable, ex...
42fffc1d3be00aca96bdd2fc2006ce5494ca3fea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/42fffc1d3be00aca96bdd2fc2006ce5494ca3fea/bundlebuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 2227, 12, 2890, 4672, 400, 1214, 273, 589, 5701, 2932, 6323, 3113, 315, 3805, 7923, 309, 365, 18, 17751, 353, 486, 599, 30, 309, 365, 18, 5254, 12890, 353, 599, 30, 1196, 803, 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, 675, 2227, 12, 2890, 4672, 400, 1214, 273, 589, 5701, 2932, 6323, 3113, 315, 3805, 7923, 309, 365, 18, 17751, 353, 486, 599, 30, 309, 365, 18, 5254, 12890, 353, 599, 30, 1196, 803, 273...
else:
if self.packages:
def run (self):
1ac604e51b928235dd31e18a1f796baf4f8db869 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1ac604e51b928235dd31e18a1f796baf4f8db869/build_py.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
checkProg('a EPS -> PDF converter', ['epstopdf'],
checkProg('an EPS -> PDF converter', ['epstopdf'],
def checkConverterEntries(): ''' Check all converters (\converter entries) ''' checkProg('the pdflatex program', ['pdflatex $$i'], rc_entry = [ r'\converter pdflatex pdf2 "%%" "latex"' ]) ''' If we're running LyX in-place then tex2lyx will be found in ../src/tex2lyx. Add this directory to the PATH temporarily ...
53e186297e30359c13977bfd83730f30df754470 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/53e186297e30359c13977bfd83730f30df754470/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5072, 5400, 13332, 9163, 2073, 777, 19414, 17938, 15747, 3222, 13, 9163, 866, 626, 75, 2668, 5787, 8169, 26264, 5402, 2187, 10228, 7699, 26264, 5366, 77, 17337, 4519, 67, 4099, 273, 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, 866, 5072, 5400, 13332, 9163, 2073, 777, 19414, 17938, 15747, 3222, 13, 9163, 866, 626, 75, 2668, 5787, 8169, 26264, 5402, 2187, 10228, 7699, 26264, 5366, 77, 17337, 4519, 67, 4099, 273, 3...
if w_bigint2.sign > 0:
if other.sign > 0:
def lt(w_bigint1, w_bigint2): if w_bigint1.sign > w_bigint2.sign: return False if w_bigint1.sign < w_bigint2.sign: return True ld1 = len(w_bigint1.digits) ld2 = len(w_bigint2.digits) if ld1 > ld2: if w_bigint2.sign > 0: return False else: return True elif ld1 < ld2: if w_bigint2.sign > 0: return True else: return False...
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, 13489, 12, 91, 67, 14002, 474, 21, 16, 341, 67, 14002, 474, 22, 4672, 309, 341, 67, 14002, 474, 21, 18, 2977, 405, 341, 67, 14002, 474, 22, 18, 2977, 30, 327, 1083, 309, 341, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13489, 12, 91, 67, 14002, 474, 21, 16, 341, 67, 14002, 474, 22, 4672, 309, 341, 67, 14002, 474, 21, 18, 2977, 405, 341, 67, 14002, 474, 22, 18, 2977, 30, 327, 1083, 309, 341, 67, 1...
overlays = ResolveOverlays(buildconfig['overlays'])
overlays = ResolveOverlays(buildroot, buildconfig['overlays'])
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
f9b84d61a13673957c404cda0703386a659431bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/f9b84d61a13673957c404cda0703386a659431bc/cbuildbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 2884, 702, 4084, 273, 315, 9167, 30, 738, 14654, 306, 2116, 65, 2875, 680, 4819, 67, 1425, 6, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 33, 9167, 13, 2082, 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, 2774, 13332, 468, 2884, 702, 4084, 273, 315, 9167, 30, 738, 14654, 306, 2116, 65, 2875, 680, 4819, 67, 1425, 6, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 33, 9167, 13, 2082, 18,...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 151) else quickfix.DoubleField.__init__(self, 151, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 4711, 21, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 4711, 21, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
w1 = eval("w["+repr(tuple(r))+"]*ones(ash, float)") n = add.reduce(a*w1, axis) d = add.reduce(w1, axis)
r = tuple(r) n = add.reduce(a*w[r], axis) d = add.reduce(w, axis)
def average(a, axis=None, weights=None, returned=False): """Average the array over the given axis. If the axis is None, average over all dimensions of the array. Equivalent to a.mean(axis) and to a.sum(axis) / size(a, axis) If weights are given, result is: sum(a * weights,axis) / sum(weights,axis), where the weight...
0abaf57d5c305044148d7688ce248ad050963a7f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/0abaf57d5c305044148d7688ce248ad050963a7f/function_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8164, 12, 69, 16, 2654, 33, 7036, 16, 5376, 33, 7036, 16, 2106, 33, 8381, 4672, 3536, 17115, 326, 526, 1879, 326, 864, 2654, 18, 225, 971, 326, 2654, 353, 599, 16, 8164, 1879, 777, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8164, 12, 69, 16, 2654, 33, 7036, 16, 5376, 33, 7036, 16, 2106, 33, 8381, 4672, 3536, 17115, 326, 526, 1879, 326, 864, 2654, 18, 225, 971, 326, 2654, 353, 599, 16, 8164, 1879, 777, 5...
elif UName == "osf1":
elif UName == "osf1":
def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com...
1783e8b3d0c9afbb454634de474d7f6aa0025cf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/1783e8b3d0c9afbb454634de474d7f6aa0025cf0/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1444, 12, 653, 4672, 468, 468, 5098, 855, 326, 585, 309, 392, 3330, 2190, 353, 315, 7337, 6, 261, 451, 402, 468, 11234, 777, 854, 16, 1529, 3631, 471, 1338, 855, 518, 3647, 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, 968, 1444, 12, 653, 4672, 468, 468, 5098, 855, 326, 585, 309, 392, 3330, 2190, 353, 315, 7337, 6, 261, 451, 402, 468, 11234, 777, 854, 16, 1529, 3631, 471, 1338, 855, 518, 3647, 18, ...
import textwrap
def display(self, add_comments=False): '''Display options in a config file form.''' import textwrap output = StringIO.StringIO() keys = self._options.keys() keys.sort() currentSection = None for sect, opt in keys: if sect != currentSection: if currentSection is not None: output.write('\n') output.write('[') output.writ...
86b6046afea2cb3ae7886681cffdbe2cf51eeb3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/86b6046afea2cb3ae7886681cffdbe2cf51eeb3c/OptionsClass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 2890, 16, 527, 67, 9231, 33, 8381, 4672, 9163, 4236, 702, 316, 279, 642, 585, 646, 1093, 6309, 876, 273, 15777, 18, 780, 4294, 1435, 1311, 273, 365, 6315, 2116, 18, 2452, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 2890, 16, 527, 67, 9231, 33, 8381, 4672, 9163, 4236, 702, 316, 279, 642, 585, 646, 1093, 6309, 876, 273, 15777, 18, 780, 4294, 1435, 1311, 273, 365, 6315, 2116, 18, 2452, 143...
urllib.urlretrieve( "http://gforge.inria.fr/plugins/scmsvn/viewcvs.php/*checkout*/trunk/deploygui/src/openalea/deploygui/auth.py?root=openalea",
urllib.urlretrieve( "http://gforge.inria.fr/scm/viewcvs.php/*checkout*/trunk/deploygui/src/openalea/deploygui/auth.py?root=openalea",
def _validate_md5(egg_name, data): if egg_name in md5_data: digest = md5(data).hexdigest() if digest != md5_data[egg_name]: print >>sys.stderr, ( "md5 validation of %s failed! (Possible download problem?)" % egg_name ) sys.exit(2) return data
9d2751722052e7a7f806b8c3f54ae122e6e9b38b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4914/9d2751722052e7a7f806b8c3f54ae122e6e9b38b/ez_alea_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5662, 67, 1264, 25, 12, 23171, 67, 529, 16, 501, 4672, 309, 25144, 67, 529, 316, 3481, 25, 67, 892, 30, 5403, 273, 3481, 25, 12, 892, 2934, 7118, 10171, 1435, 309, 5403, 480, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5662, 67, 1264, 25, 12, 23171, 67, 529, 16, 501, 4672, 309, 25144, 67, 529, 316, 3481, 25, 67, 892, 30, 5403, 273, 3481, 25, 12, 892, 2934, 7118, 10171, 1435, 309, 5403, 480, 34...
print " ".join(texts)
self.stdout.write("%s\n"%str(" ".join(texts)))
def columnize(self, list, displaywidth=80): """Display a list of strings as a compact set of columns.
5cfb0c082eb272eba0c1782c2d88426ad04a99e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5cfb0c082eb272eba0c1782c2d88426ad04a99e0/cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1057, 554, 12, 2890, 16, 666, 16, 2562, 2819, 33, 3672, 4672, 3536, 4236, 279, 666, 434, 2064, 487, 279, 6739, 444, 434, 2168, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1057, 554, 12, 2890, 16, 666, 16, 2562, 2819, 33, 3672, 4672, 3536, 4236, 279, 666, 434, 2064, 487, 279, 6739, 444, 434, 2168, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def desperate_fixer(g): return ' ' html = re.sub('<.*?>', desperate_fixer, html)
html = re.sub('<.*?>', ' ', html)
def html2plaintext(html, body_id=None, encoding='utf-8'): ## (c) Fry-IT, www.fry-it.com, 2007 ## <peter@fry-it.com> ## download here: http://www.peterbe.com/plog/html2plaintext """ from an HTML text, convert the HTML to plain text. If @body_id is provided then this is the tag where the body (not necessarily <body>) s...
58e9a51264038e97e4ac99a3a64ac10d68e4c26a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/58e9a51264038e97e4ac99a3a64ac10d68e4c26a/openerp_mailgate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 22, 412, 10133, 12, 2620, 16, 1417, 67, 350, 33, 7036, 16, 2688, 2218, 3158, 17, 28, 11, 4672, 7541, 261, 71, 13, 478, 1176, 17, 1285, 16, 8765, 18, 74, 1176, 17, 305, 18, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 22, 412, 10133, 12, 2620, 16, 1417, 67, 350, 33, 7036, 16, 2688, 2218, 3158, 17, 28, 11, 4672, 7541, 261, 71, 13, 478, 1176, 17, 1285, 16, 8765, 18, 74, 1176, 17, 305, 18, 83...
.selectmany() \ .tolist()
.select_many() \ .to_list()
def selectmany_4(self): return Query(self.W1) \ .select(lambda s: s.split(' ')) \ .selectmany() \ .tolist()
f134b825431ac82f3dbba76e7a945a0e195d27cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14315/f134b825431ac82f3dbba76e7a945a0e195d27cf/pyquery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 9353, 67, 24, 12, 2890, 4672, 327, 2770, 12, 2890, 18, 59, 21, 13, 521, 263, 4025, 12, 14661, 272, 30, 272, 18, 4939, 2668, 296, 3719, 521, 263, 4025, 9353, 1435, 521, 263, 349...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2027, 9353, 67, 24, 12, 2890, 4672, 327, 2770, 12, 2890, 18, 59, 21, 13, 521, 263, 4025, 12, 14661, 272, 30, 272, 18, 4939, 2668, 296, 3719, 521, 263, 4025, 9353, 1435, 521, 263, 349...
return self.snippet.snippet + (' ' + self.snippet.variant) if self.snippet.variant else ''
return self.snippet.snippet + ((' ' + self.snippet.variant) if self.snippet.variant else '')
def do_get_text(self): return self.snippet.snippet + (' ' + self.snippet.variant) if self.snippet.variant else ''
f2c51d599e9d60e88de102dcba8e4e5ba864a9e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/f2c51d599e9d60e88de102dcba8e4e5ba864a9e3/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 588, 67, 955, 12, 2890, 4672, 327, 365, 18, 25788, 18, 25788, 397, 7707, 296, 397, 365, 18, 25788, 18, 8688, 13, 309, 365, 18, 25788, 18, 8688, 469, 875, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 588, 67, 955, 12, 2890, 4672, 327, 365, 18, 25788, 18, 25788, 397, 7707, 296, 397, 365, 18, 25788, 18, 8688, 13, 309, 365, 18, 25788, 18, 8688, 469, 875, 2, -100, -100, -100...
u.removeCapability('editfactoids')
try: u.removeCapability('editfactoids') except: irc.error('User %s is not an editor' % name) else: irc.replySuccess()
def removeeditor(self, irc, msg, args, name): self._precheck(irc, msg, capability='addeditors') try: u = ircdb.users.getUser(name) except: irc.error('User %s is not registered' % name) else: u.removeCapability('editfactoids')
b6b1c9c4b641e4f6024353e96ec3ef816fd54091 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3105/b6b1c9c4b641e4f6024353e96ec3ef816fd54091/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 9177, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 508, 4672, 365, 6315, 1484, 1893, 12, 481, 71, 16, 1234, 16, 12593, 2218, 9665, 13704, 6134, 775, 30, 582, 273, 277, 1310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 9177, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 508, 4672, 365, 6315, 1484, 1893, 12, 481, 71, 16, 1234, 16, 12593, 2218, 9665, 13704, 6134, 775, 30, 582, 273, 277, 1310, ...
checkin, checkout = self.checkin, self.checkout
self.checkin_mutex.acquire() self.waiting = self.waiting + 1 if self.waiting == self.num_threads: self.waiting = self.num_threads - 1 self.checkout_mutex.release() return self.checkin_mutex.release()
def enter(self): checkin, checkout = self.checkin, self.checkout
12c238c50046dc378380207f15830cf4af619e32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/12c238c50046dc378380207f15830cf4af619e32/test_thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 12, 2890, 4672, 866, 267, 16, 13926, 273, 365, 18, 1893, 267, 16, 365, 18, 17300, 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, ...
[ 1, 1, 1, 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, 6103, 12, 2890, 4672, 866, 267, 16, 13926, 273, 365, 18, 1893, 267, 16, 365, 18, 17300, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pass
if self.completekey: try: import readline readline.set_completer(self.old_completer) except ImportError: pass
def postloop(self): """Hook method executed once when the cmdloop() method is about to return.
54d798a04cfa882fd8593592d8a63bba2cf11dc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/54d798a04cfa882fd8593592d8a63bba2cf11dc5/cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 6498, 12, 2890, 4672, 3536, 5394, 707, 7120, 3647, 1347, 326, 1797, 6498, 1435, 707, 353, 2973, 358, 327, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1603, 6498, 12, 2890, 4672, 3536, 5394, 707, 7120, 3647, 1347, 326, 1797, 6498, 1435, 707, 353, 2973, 358, 327, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self._agent = qmf.Agent(self)
self._agent = qmf.Agent(self, "agent_test_label")
def main(self): ''' Agent application's main processing loop. ''' # Connect to the broker self._settings = qmf.ConnectionSettings() self._settings.sendUserId = True if len(sys.argv) > 1: self._settings.host = str(sys.argv[1]) if len(sys.argv) > 2: self._settings.port = int(sys.argv[2]) self._connection = qmf.Connection...
48fdca8b89f5e3babf7c90335e84cef4d0644a58 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/198/48fdca8b89f5e3babf7c90335e84cef4d0644a58/python_agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 9163, 8669, 2521, 1807, 2774, 4929, 2798, 18, 9163, 468, 8289, 358, 326, 8625, 365, 6315, 4272, 273, 1043, 16126, 18, 1952, 2628, 1435, 365, 6315, 4272, 18, 4661, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 9163, 8669, 2521, 1807, 2774, 4929, 2798, 18, 9163, 468, 8289, 358, 326, 8625, 365, 6315, 4272, 273, 1043, 16126, 18, 1952, 2628, 1435, 365, 6315, 4272, 18, 4661, 1...
label = gtk.Label("\n".join(["M" * 36] * 3))
label = gtk.Label("\n".join(["M" * 34] * 3))
def _init_sizes(self): """Initialize the widget sizes."""
20b3d053861fa68852ef6d9ac1afa2ae8e9e3c39 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12852/20b3d053861fa68852ef6d9ac1afa2ae8e9e3c39/posadjust.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 11914, 12, 2890, 4672, 3536, 7520, 326, 3604, 8453, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 11914, 12, 2890, 4672, 3536, 7520, 326, 3604, 8453, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
items = map(lambda (k, v), type = type, simp = SIMPLE_TYPES, indent = indent: (k, v, not type(v) in simp, indent), items)
items = [(k, v, not isinstance(v, SIMPLE_TYPES), indent) for k, v in items]
def pack_items(items, indent = 0): items = map(lambda (k, v), type = type, simp = SIMPLE_TYPES, indent = indent: (k, v, not type(v) in simp, indent), items) return tuple_caselesssort(items)
8b1e775b54a15ebaaa7e03a0d0e105c7f635388d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8b1e775b54a15ebaaa7e03a0d0e105c7f635388d/PyBrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 67, 3319, 12, 3319, 16, 3504, 273, 374, 4672, 1516, 273, 306, 12, 79, 16, 331, 16, 486, 1549, 12, 90, 16, 19098, 67, 10564, 3631, 3504, 13, 364, 417, 16, 331, 316, 1516, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 67, 3319, 12, 3319, 16, 3504, 273, 374, 4672, 1516, 273, 306, 12, 79, 16, 331, 16, 486, 1549, 12, 90, 16, 19098, 67, 10564, 3631, 3504, 13, 364, 417, 16, 331, 316, 1516, 65, ...
md_fh.write(json.write(_sanitize_dbus_dict(entry))+'\n')
var = json.write(_sanitize_dbus_dict(entry))+'\n' md_fh.write(var.encode('utf-8'))
def write_metadata(ds_path): # setup datastore connection bus = dbus.SessionBus() obj = bus.get_object(DS_DBUS_SERVICE, DS_DBUS_PATH) datastore = dbus.Interface(obj, DS_DBUS_INTERFACE) # name the backup file # and open a tmpfile in the same dir # to ensure an atomic replace md_path = os.path.join(ds_path, 'metadata.j...
30b59aa85950b6f894ebe11a5ada0f788709f5c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9380/30b59aa85950b6f894ebe11a5ada0f788709f5c7/ds_backup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4165, 12, 2377, 67, 803, 4672, 225, 468, 3875, 9290, 1459, 5766, 273, 21866, 18, 2157, 7086, 1435, 1081, 273, 5766, 18, 588, 67, 1612, 12, 3948, 67, 2290, 3378, 67, 12426, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4165, 12, 2377, 67, 803, 4672, 225, 468, 3875, 9290, 1459, 5766, 273, 21866, 18, 2157, 7086, 1435, 1081, 273, 5766, 18, 588, 67, 1612, 12, 3948, 67, 2290, 3378, 67, 12426, 16...
self.wait_visibility() self.grab_set()
def __init__(self, parent, title = None):
3c4bad7c8b322ab646d6971dae2a208eee8eeadd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/3c4bad7c8b322ab646d6971dae2a208eee8eeadd/tkSimpleDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 2077, 273, 599, 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...
[ 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, 1001, 2738, 972, 12, 2890, 16, 982, 16, 2077, 273, 599, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Inf = Decimal('Inf') negInf = Decimal('-Inf') NaN = Decimal('NaN') Dec_0 = Decimal(0) Dec_p1 = Decimal(1) Dec_n1 = Decimal(-1) Infsign = (Inf, negInf)
_Inf = Decimal('Inf') _negInf = Decimal('-Inf') _NaN = Decimal('NaN') _Dec_0 = Decimal(0) _Dec_p1 = Decimal(1) _Dec_n1 = Decimal(-1) _Infsign = (_Inf, _negInf)
def _format_align(body, spec_dict): """Given an unpadded, non-aligned numeric string, add padding and aligment to conform with the given format specifier dictionary (as output from parse_format_specifier). It's assumed that if body is negative then it starts with '-'. Any leading sign ('-' or '+') is stripped from the...
c5de0969ca2a82c66efd30bb675f03c2324a3b27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/c5de0969ca2a82c66efd30bb675f03c2324a3b27/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 7989, 12, 3432, 16, 857, 67, 1576, 4672, 3536, 6083, 392, 640, 6982, 785, 16, 1661, 17, 20677, 6389, 533, 16, 527, 4992, 471, 524, 360, 475, 358, 20156, 598, 326, 864, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2139, 67, 7989, 12, 3432, 16, 857, 67, 1576, 4672, 3536, 6083, 392, 640, 6982, 785, 16, 1661, 17, 20677, 6389, 533, 16, 527, 4992, 471, 524, 360, 475, 358, 20156, 598, 326, 864, ...
if len(member.params) <= 3: mayTrace = True
def addStubMember(memberId, member, traceable): # Check that the member is ok. mayTrace = False if member.kind not in ('method', 'attribute'): raise UserError("Member %s is %r, not a method or attribute." % (memberId, member.kind)) if member.noscript: raise UserError("%s %s is noscript." % (member.kind.capitalize(), me...
547c9137fe7f5061409005e05ec145bbf18f5ab6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/547c9137fe7f5061409005e05ec145bbf18f5ab6/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 11974, 4419, 12, 5990, 548, 16, 3140, 16, 2606, 429, 4672, 468, 2073, 716, 326, 3140, 353, 1529, 18, 2026, 3448, 273, 1083, 309, 3140, 18, 9224, 486, 316, 7707, 2039, 2187, 296, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 11974, 4419, 12, 5990, 548, 16, 3140, 16, 2606, 429, 4672, 468, 2073, 716, 326, 3140, 353, 1529, 18, 2026, 3448, 273, 1083, 309, 3140, 18, 9224, 486, 316, 7707, 2039, 2187, 296, 4...
self.assertEqual(p.stdout.read(),
self.assertEqual(p.communicate()[0],
def test_envvar_and_command_line(self): newenv = os.environ.copy() newenv["PYTHONWARNINGS"] = "ignore::DeprecationWarning" p = subprocess.Popen([sys.executable, "-W" "ignore::UnicodeWarning", "-c", "import sys; sys.stdout.write(str(sys.warnoptions))"], stdout=subprocess.PIPE, env=newenv) self.assertEqual(p.stdout.read(...
3ef293ada8c4f36295d1aeba2899a2ef7d251064 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/3ef293ada8c4f36295d1aeba2899a2ef7d251064/test_warnings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3074, 1401, 67, 464, 67, 3076, 67, 1369, 12, 2890, 4672, 394, 3074, 273, 1140, 18, 28684, 18, 3530, 1435, 394, 3074, 9614, 16235, 20131, 9511, 55, 11929, 273, 315, 6185, 2866, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3074, 1401, 67, 464, 67, 3076, 67, 1369, 12, 2890, 4672, 394, 3074, 273, 1140, 18, 28684, 18, 3530, 1435, 394, 3074, 9614, 16235, 20131, 9511, 55, 11929, 273, 315, 6185, 2866, ...
string = string.replace('<p>', '') string = string.replace('</p>', '') string = string.replace('\n', '') string = re.sub('> ', '>', string)
replacements = {'<p>': '', '</p>': '', '\n': '', '> ': '>'} for src, dst in replacements.items(): string = string.replace(src, dst)
def rst_write(self, string): if self.strip_paragraph: string = string.replace('<p>', '') string = string.replace('</p>', '') string = string.replace('\n', '') string = re.sub('> ', '>', string) # Everything seems to have a space ending the text block. We want to # get rid of this if len(string) and string[-1] == ' ': s...
c9655705a93f1df5d7b80440a5e3fd18916989bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/c9655705a93f1df5d7b80440a5e3fd18916989bc/rst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13978, 67, 2626, 12, 2890, 16, 533, 4672, 309, 365, 18, 6406, 67, 22445, 30, 11413, 273, 13666, 32, 84, 1870, 30, 10226, 4357, 84, 1870, 30, 10226, 2337, 82, 4278, 10226, 11279, 4290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13978, 67, 2626, 12, 2890, 16, 533, 4672, 309, 365, 18, 6406, 67, 22445, 30, 11413, 273, 13666, 32, 84, 1870, 30, 10226, 4357, 84, 1870, 30, 10226, 2337, 82, 4278, 10226, 11279, 4290, ...
self.tools_path = self.tools_path.rstrip('\\')
self.tools_path = self.tools_path.rstrip('\\') os.environ['PATH'] = os.environ['PATH'] + ';' + self.tools_path
def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage.
1581ad170e9c9d3a92c66b377c35a5abc747dc4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/1581ad170e9c9d3a92c66b377c35a5abc747dc4c/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16, 4158, 5646, 4672, 3536, 694, 731, 326, 4072, 2923, 3330, 471, 10353, 326, 4158, 5646, 364, 11196, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16, 4158, 5646, 4672, 3536, 694, 731, 326, 4072, 2923, 3330, 471, 10353, 326, 4158, 5646, 364, 11196, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
security.declareProtected(CMFCorePermissions.View, 'CreationDate')
security.declareProtected(permissions.View, 'CreationDate')
def languages(self): """Vocabulary method for the language field """ # XXX document me # use a list of languages from PLT? available_langs = getattr(self, 'availableLanguages', None) if available_langs is None: return DisplayList( (('en','English'), ('fr','French'), ('es','Spanish'), ('pt','Portuguese'), ('ru','Russian...
bffbf06ccb0e344dcf82f7addf15838da46c2ba5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/bffbf06ccb0e344dcf82f7addf15838da46c2ba5/ExtensibleMetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8191, 12, 2890, 4672, 3536, 30747, 707, 364, 326, 2653, 652, 3536, 468, 11329, 1668, 1791, 468, 999, 279, 666, 434, 8191, 628, 453, 12050, 35, 2319, 67, 4936, 87, 273, 3869, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8191, 12, 2890, 4672, 3536, 30747, 707, 364, 326, 2653, 652, 3536, 468, 11329, 1668, 1791, 468, 999, 279, 666, 434, 8191, 628, 453, 12050, 35, 2319, 67, 4936, 87, 273, 3869, 12, 2890, ...
if release:
if release_flag:
def fail(out): status, stdout = out if status != 0: print "#" * 24 print stdout print "#" * 24 clean() sys.exit() return out
0f68352daacce38707c3c193d134c6ede97f8784 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10995/0f68352daacce38707c3c193d134c6ede97f8784/quodlibet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 12, 659, 4672, 1267, 16, 3909, 273, 596, 309, 1267, 480, 374, 30, 1172, 13092, 380, 4248, 1172, 3909, 1172, 13092, 380, 4248, 2721, 1435, 2589, 18, 8593, 1435, 327, 596, 225, 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, 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, 2321, 12, 659, 4672, 1267, 16, 3909, 273, 596, 309, 1267, 480, 374, 30, 1172, 13092, 380, 4248, 1172, 3909, 1172, 13092, 380, 4248, 2721, 1435, 2589, 18, 8593, 1435, 327, 596, 225, 2, ...
if table.domain.classVar.varType == orange.VarTypes.Discrete:
if testTable.domain.classVar.varType == orange.VarTypes.Discrete:
def kNNComputeAccuracy(self, table): # select a subset of the data if necessary percentDataUsed = int(str(self.percentDataUsedCombo.currentText())) if percentDataUsed != 100: indices = orange.MakeRandomIndices2(table, 1.0-float(percentDataUsed)/100.0) testTable = table.select(indices) else: testTable = table #qApp.pro...
1a26c0137e0f96ec4a8edbab5d6eb19b08c69a1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/1a26c0137e0f96ec4a8edbab5d6eb19b08c69a1f/OWkNNOptimization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 12225, 7018, 37, 10988, 12, 2890, 16, 1014, 4672, 468, 2027, 279, 7931, 434, 326, 501, 309, 4573, 5551, 751, 6668, 273, 509, 12, 701, 12, 2890, 18, 8849, 751, 6668, 16156, 18, 297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 12225, 7018, 37, 10988, 12, 2890, 16, 1014, 4672, 468, 2027, 279, 7931, 434, 326, 501, 309, 4573, 5551, 751, 6668, 273, 509, 12, 701, 12, 2890, 18, 8849, 751, 6668, 16156, 18, 297...
radius == err
radius = err radius *= (1.1/0.77) * 1.0
dispdef = molecule_dispdef(self.basemol, self.o)
831de45168607289ff2c0e720c2e1f831471f13b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/831de45168607289ff2c0e720c2e1f831471f13b/extrudeMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 16232, 536, 273, 13661, 67, 25453, 536, 12, 2890, 18, 1969, 21260, 16, 365, 18, 83, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 16232, 536, 273, 13661, 67, 25453, 536, 12, 2890, 18, 1969, 21260, 16, 365, 18, 83, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def test_debug_undefined():
def test_debug_undefined(self):
def test_debug_undefined(): env = Environment(undefined=DebugUndefined) self.assert_equal(env.from_string('{{ missing }}').render(), '{{ missing }}') self.assert_raises(UndefinedError, env.from_string('{{ missing.attribute }}').render()) self.assert_equal(env.from_string('{{ missing|list }}').render(), '[]') u'[]' self...
82a2225ac939318e7d812cb4ae537be9fb6362cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14446/82a2225ac939318e7d812cb4ae537be9fb6362cf/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4148, 67, 5978, 12, 2890, 4672, 1550, 273, 7518, 12, 5978, 33, 2829, 10317, 13, 365, 18, 11231, 67, 9729, 12, 3074, 18, 2080, 67, 1080, 2668, 12187, 3315, 29893, 2934, 5902, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4148, 67, 5978, 12, 2890, 4672, 1550, 273, 7518, 12, 5978, 33, 2829, 10317, 13, 365, 18, 11231, 67, 9729, 12, 3074, 18, 2080, 67, 1080, 2668, 12187, 3315, 29893, 2934, 5902, ...
gain = float(l[1])
gain = 1.333 * float(l[1])
def gain(self): '''Estimate gain for this image.'''
f0994dc59eebf98dd27a811673a91c82c22df132 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/f0994dc59eebf98dd27a811673a91c82c22df132/Diffdump.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17527, 12, 2890, 4672, 9163, 13638, 17527, 364, 333, 1316, 1093, 6309, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17527, 12, 2890, 4672, 9163, 13638, 17527, 364, 333, 1316, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def sendto(self, data, addr, flags=0):
def sendto(self, *args):
def sendto(self, data, addr, flags=0): if self._sslobj: raise ValueError("sendto not allowed on instances of %s" % self.__class__) else: return socket.sendto(self, data, addr, flags)
13aa09070ef42915521c73d7f0f5217129e42c60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/13aa09070ef42915521c73d7f0f5217129e42c60/ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 869, 12, 2890, 16, 380, 1968, 4672, 309, 365, 6315, 1049, 383, 441, 30, 1002, 2068, 2932, 4661, 869, 486, 2935, 603, 3884, 434, 738, 87, 6, 738, 365, 16186, 1106, 972, 13, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 869, 12, 2890, 16, 380, 1968, 4672, 309, 365, 6315, 1049, 383, 441, 30, 1002, 2068, 2932, 4661, 869, 486, 2935, 603, 3884, 434, 738, 87, 6, 738, 365, 16186, 1106, 972, 13, 469, ...
print content
def sychronize_with_vcs(self, vcs_sync_url): """ Synchronizes the Mantis issues and the VCS history. """ try: file_object = urllib2.urlopen(vcs_sync_url) content = file_object.read() print content self.logger.debug(content) file_object.close() except IOError, error: self.logger.error("Cannot open URL. Reason: '%s'" % ...
dc88ab05d63fd02c59a29b9c58e61119fc3d5b9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5396/dc88ab05d63fd02c59a29b9c58e61119fc3d5b9c/mantis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1393, 29115, 554, 67, 1918, 67, 18982, 12, 2890, 16, 20255, 67, 8389, 67, 718, 4672, 3536, 26535, 3128, 326, 490, 970, 291, 8296, 471, 326, 776, 4596, 4927, 18, 3536, 225, 775, 30, 585...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1393, 29115, 554, 67, 1918, 67, 18982, 12, 2890, 16, 20255, 67, 8389, 67, 718, 4672, 3536, 26535, 3128, 326, 490, 970, 291, 8296, 471, 326, 776, 4596, 4927, 18, 3536, 225, 775, 30, 585...
finally: cr.commit() cr.close()
def _poolJobs(self, db_name, check=False): try: db, pool = pooler.get_db_and_pool(db_name) except: return False if pool._init: # retry in a few minutes next_call = 600 else: now = DateTime.now() try: cr = db.cursor() cr.execute('select * from ir_cron where numbercall<>0 and active and nextcall<=now() order by priority'...
1b607549a7281cba356e71492737284ff9da15bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/1b607549a7281cba356e71492737284ff9da15bb/ir_cron.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6011, 7276, 12, 2890, 16, 1319, 67, 529, 16, 866, 33, 8381, 4672, 775, 30, 1319, 16, 2845, 273, 2845, 264, 18, 588, 67, 1966, 67, 464, 67, 6011, 12, 1966, 67, 529, 13, 1335, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6011, 7276, 12, 2890, 16, 1319, 67, 529, 16, 866, 33, 8381, 4672, 775, 30, 1319, 16, 2845, 273, 2845, 264, 18, 588, 67, 1966, 67, 464, 67, 6011, 12, 1966, 67, 529, 13, 1335, 3...
if not hasattr(plist, "CFBundleIdentifier"):
if self.bundle_id: plist.CFBundleIdentifier = self.bundle_id elif not hasattr(plist, "CFBundleIdentifier"):
def setup(self): # XXX rethink self.name munging, this is brittle. self.name, ext = os.path.splitext(self.name) if not ext: ext = ".bundle" bundleextension = ext # misc (derived) attributes self.bundlepath = pathjoin(self.builddir, self.name + bundleextension)
9e74465ef8769cd60189563e76048b0b27365c67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/9e74465ef8769cd60189563e76048b0b27365c67/bundlebuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 468, 11329, 19911, 754, 365, 18, 529, 312, 318, 1998, 16, 333, 353, 324, 583, 5929, 18, 365, 18, 529, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 2890, 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, 3875, 12, 2890, 4672, 468, 11329, 19911, 754, 365, 18, 529, 312, 318, 1998, 16, 333, 353, 324, 583, 5929, 18, 365, 18, 529, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 2890, 18,...
tout = '' if test.timeout.secs > 0:
if test.timeout.secs < 0: tout = '' else:
def _write_test_metadata(self, test): self._start_suite_or_test_metadata(test) tout = '' if test.timeout.secs > 0: tout = utils.secs_to_timestr(test.timeout.secs) if test.timeout.message: tout += ' | ' + test.timeout.message self._write_metadata_row('Timeout', tout) self._write_metadata_row('Tags', ', '.join(test.tags)...
ef62a52c35d76a494de63689fb20166fc91ca595 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/ef62a52c35d76a494de63689fb20166fc91ca595/testdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 3813, 67, 4165, 12, 2890, 16, 1842, 4672, 365, 6315, 1937, 67, 30676, 67, 280, 67, 3813, 67, 4165, 12, 3813, 13, 309, 1842, 18, 4538, 18, 21317, 411, 374, 30, 358, 322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 67, 3813, 67, 4165, 12, 2890, 16, 1842, 4672, 365, 6315, 1937, 67, 30676, 67, 280, 67, 3813, 67, 4165, 12, 3813, 13, 309, 1842, 18, 4538, 18, 21317, 411, 374, 30, 358, 322...
if summary: statuses = ({path: statuses[path]}, check_summary) if callback: callback(path, statuses)
if statuses: if summary: statuses = ({path: statuses[path]}, check_summary) if callback: callback(path, statuses)
def _update_path_status(self, path, recurse=False, invalidate=False, summary=False, callback=None): """ Update the cached information for the given path, notifying the callback upon completion. This function will check the cache first, just in case a previous call has populated the path in question and we are not inva...
a90225b00e8fae8335109d10a6784f3a4d112ddb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/a90225b00e8fae8335109d10a6784f3a4d112ddb/statuscache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 803, 67, 2327, 12, 2890, 16, 589, 16, 11502, 33, 8381, 16, 11587, 33, 8381, 16, 4916, 33, 8381, 16, 1348, 33, 7036, 4672, 3536, 2315, 326, 3472, 1779, 364, 326, 864, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 803, 67, 2327, 12, 2890, 16, 589, 16, 11502, 33, 8381, 16, 11587, 33, 8381, 16, 4916, 33, 8381, 16, 1348, 33, 7036, 4672, 3536, 2315, 326, 3472, 1779, 364, 326, 864, 5...
vList.append( Violation(self, line.number) )
vList.append( Violation(self, line) )
def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines: if ( re.search("^\s*using", line.stripped) and not re.search("\s*std\s*;\s*$", line.stripped) ): vList.append( Violation(self, line.number) ) return vList
cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 364, 980, 316, 2362, 30, 309, 261, 283, 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, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 364, 980, 316, 2362, 30, 309, 261, 283, 18, ...
print _(" Sync Successful. Repo [ %s ] now has a total of [ %s ] packages" % (self.options.id, pkg_count))
print _(" Sync Successful. Repo [ %s ] now has a total of [ %s ] packages") % \ (self.options.id, pkg_count)
def _sync(self): if not self.options.id: print("repo id required. Try --help") sys.exit(0) try: task_object = self.pconn.sync(self.options.id, self.options.timeout) state = "waiting" print "Task created with ID::", task_object['id'] while state not in ["finished", "error", 'timed out', 'canceled']: time.sleep(5) status...
3031d7f1572d6916f4f024e22264c3de668d641f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/3031d7f1572d6916f4f024e22264c3de668d641f/core_repo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8389, 12, 2890, 4672, 309, 486, 365, 18, 2116, 18, 350, 30, 1172, 2932, 7422, 612, 1931, 18, 6161, 1493, 5201, 7923, 2589, 18, 8593, 12, 20, 13, 775, 30, 1562, 67, 1612, 273, 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, 389, 8389, 12, 2890, 4672, 309, 486, 365, 18, 2116, 18, 350, 30, 1172, 2932, 7422, 612, 1931, 18, 6161, 1493, 5201, 7923, 2589, 18, 8593, 12, 20, 13, 775, 30, 1562, 67, 1612, 273, 36...
"autotest_lib.server.site_job", "get_site_job_data",
"autotest_lib.server.site_server_job", "get_site_job_data",
def _get_site_job_data_dummy(job): return {}
aed44eb7eef1ffa3a2e5b76bcb3347198861a224 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/aed44eb7eef1ffa3a2e5b76bcb3347198861a224/server_job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4256, 67, 4688, 67, 892, 67, 21050, 12, 4688, 4672, 327, 2618, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 389, 588, 67, 4256, 67, 4688, 67, 892, 67, 21050, 12, 4688, 4672, 327, 2618, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
SimpleDialog(_('Error setting the new engine, please check your engine settings.'), _('Warning'), 'warning').run()
SimpleDialog(_('Error setting the new engine; please check your engine settings.'), _('Warning'), 'warning').run()
def setEngine(self): try: engine = self.engine_manager.newEngine(self.name_entry.get_text(), self.engine_path_entry.get_text(), self.arguments_entry.get_text(), self.image_format_entry.get_text(), self.failure_string_entry.get_text() ) if self.engine: self.engine_manager.replaceEngine(self.engine, engine) self.engine =...
1baf639b7c0b78357342a021c71b70a4eb7e2399 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3764/1baf639b7c0b78357342a021c71b70a4eb7e2399/widgetPresenter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4410, 12, 2890, 4672, 775, 30, 4073, 273, 365, 18, 8944, 67, 4181, 18, 2704, 4410, 12, 2890, 18, 529, 67, 4099, 18, 588, 67, 955, 9334, 365, 18, 8944, 67, 803, 67, 4099, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4410, 12, 2890, 4672, 775, 30, 4073, 273, 365, 18, 8944, 67, 4181, 18, 2704, 4410, 12, 2890, 18, 529, 67, 4099, 18, 588, 67, 955, 9334, 365, 18, 8944, 67, 803, 67, 4099, 18, 5...
print v
def loadrc(): """Use the shlex module to make a simple lexer for the settings, it also attempts to convert any integers to Python ints, otherwise leaves them as strings and handles hopefully all the sane ways of representing a boolean.""" if len(sys.argv) > 2: path = sys.argv[2] else: path = os.path.expanduser( '~/.bp...
65f5a5ee359b6ec0ea1579c114276cf69961c80d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/65f5a5ee359b6ec0ea1579c114276cf69961c80d/bpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1310, 13332, 3536, 3727, 326, 27180, 1605, 358, 1221, 279, 4143, 8512, 364, 326, 1947, 16, 518, 2546, 7531, 358, 1765, 1281, 12321, 358, 6600, 15542, 16, 3541, 15559, 2182, 487, 2064...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1310, 13332, 3536, 3727, 326, 27180, 1605, 358, 1221, 279, 4143, 8512, 364, 326, 1947, 16, 518, 2546, 7531, 358, 1765, 1281, 12321, 358, 6600, 15542, 16, 3541, 15559, 2182, 487, 2064...
except:
except TypeError:
def span(self, gens, base_ring=None, check=True, already_echelonized=False): """ Return the K-span of the given list of gens, where K is the base field of self. Note that this span is a subspace of the ambient vector space, but need not be a subspace of self.
6875d7c71609de038c71080542943969764ed340 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6875d7c71609de038c71080542943969764ed340/free_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4548, 12, 2890, 16, 314, 773, 16, 1026, 67, 8022, 33, 7036, 16, 866, 33, 5510, 16, 1818, 67, 8987, 292, 265, 1235, 33, 8381, 4672, 3536, 2000, 326, 1475, 17, 3969, 434, 326, 864, 666...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4548, 12, 2890, 16, 314, 773, 16, 1026, 67, 8022, 33, 7036, 16, 866, 33, 5510, 16, 1818, 67, 8987, 292, 265, 1235, 33, 8381, 4672, 3536, 2000, 326, 1475, 17, 3969, 434, 326, 864, 666...
self._ClassLoader__classes = {} cdoc = self.fetch_document('<list-ops/>') cde = cdoc.documentElement for cn in cde.childNodes: if cn.nodeName == 'op': classname = str(os.path.join(cn.getAttribute('path'), cn.getAttribute('name'))) for vn in cn.childNodes: if vn.nodeName == 'version': version = int(vn.getAttri...
self._ClassLoader__classes = {} cdoc = self.fetch_document('<list-ops/>') cde = cdoc.documentElement for cn in cde.childNodes: if cn.nodeName == 'op': classname = str(os.path.join(cn.getAttribute('path'), cn.getAttribute('name'))) for vn in cn.childNodes: if vn.nodeName == 'version': version = int(vn.getAttri...
def refresh(self):
00fa4caca3741bca4c0129528b7cd2fe2d2376e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9042/00fa4caca3741bca4c0129528b7cd2fe2d2376e0/RemoteOpLoader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
control.loop(restart, fromFrame, toFrame)
if toFrame == None: control.loop(restart, fromFrame, control.getNumFrames() - 1) else: control.loop(restart, fromFrame, toFrame)
def loop(self, animName, restart=1, partName=None, fromFrame=None, toFrame=None): """loop(self, string, int=1, string=None) Loop the given animation on the given part of the actor, restarting at zero frame if requested. If no part name is given then try to loop on all parts. NOTE: loops on all LOD's""" if fromFrame == ...
b1ae01f7db05d7da5e711e0a0a11b8866f240e95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/b1ae01f7db05d7da5e711e0a0a11b8866f240e95/Actor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2798, 12, 2890, 16, 10536, 461, 16, 7870, 33, 21, 16, 1087, 461, 33, 7036, 16, 628, 3219, 33, 7036, 16, 358, 3219, 33, 7036, 4672, 3536, 6498, 12, 2890, 16, 533, 16, 509, 33, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2798, 12, 2890, 16, 10536, 461, 16, 7870, 33, 21, 16, 1087, 461, 33, 7036, 16, 628, 3219, 33, 7036, 16, 358, 3219, 33, 7036, 4672, 3536, 6498, 12, 2890, 16, 533, 16, 509, 33, 21, 1...
state = XMLElementChild('state', type=State, required=False, test_equal=True)
state = XMLElementChild('state', type=State, required=True, test_equal=True)
def __new__(cls, value): value = int.__new__(cls, value) if value <= 0: raise ValueError("illegal value form refresh element") return value
6fb985e1ba33642f6f71d96be5535477bccbd89b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/6fb985e1ba33642f6f71d96be5535477bccbd89b/iscomposing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 460, 4672, 460, 273, 509, 16186, 2704, 972, 12, 6429, 16, 460, 13, 309, 460, 1648, 374, 30, 1002, 2068, 2932, 31751, 460, 646, 4460, 930, 7923, 327, 460,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 460, 4672, 460, 273, 509, 16186, 2704, 972, 12, 6429, 16, 460, 13, 309, 460, 1648, 374, 30, 1002, 2068, 2932, 31751, 460, 646, 4460, 930, 7923, 327, 460,...
infos.append(CFG_WEBSESSION_INFO_MESSAGES["JOIN_GROUP"])
infos.append(_(CFG_WEBSESSION_INFO_MESSAGES["JOIN_GROUP"]))
def perform_request_join_group(uid, grpID, group_name, search, ln=cdslang): """Join group @param grpID: list of the groups the user wants to join, only one value must be selected among the two group lists (default group list, group list resulting from the search) @param group_name: name of the group entered if search o...
5b6e928b4222c0527298f19150e237b65b55803a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3933/5b6e928b4222c0527298f19150e237b65b55803a/webgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 5701, 67, 1655, 12, 1911, 16, 14295, 734, 16, 1041, 67, 529, 16, 1623, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, 4572, 1041, 632, 891, 14295, 734, 30, 666, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 5701, 67, 1655, 12, 1911, 16, 14295, 734, 16, 1041, 67, 529, 16, 1623, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, 4572, 1041, 632, 891, 14295, 734, 30, 666, 434, ...