rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
print 'self.bugs:', self.bugs
def load_bugs(self, filename): # Bug file format: # $(module)/$(checkname) $(bugnumber) # Sample bug file: # evolution/LibGnomeCanvas 571742 # # Alternatively, the $(checkname) can be replaced by a column number, # like: evolution/col:2 543234 # # also, if there is only a single check, the /$(checkname) part # can be...
051ead203f1582399a199b0299020ef725c5c954 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4596/051ead203f1582399a199b0299020ef725c5c954/goalreport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 19381, 12, 2890, 16, 1544, 4672, 468, 16907, 585, 740, 30, 468, 225, 27488, 2978, 13, 11141, 12, 1893, 529, 13, 27488, 925, 2696, 13, 468, 11474, 7934, 585, 30, 468, 225, 211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19381, 12, 2890, 16, 1544, 4672, 468, 16907, 585, 740, 30, 468, 225, 27488, 2978, 13, 11141, 12, 1893, 529, 13, 27488, 925, 2696, 13, 468, 11474, 7934, 585, 30, 468, 225, 211...
"""QueuePage
"""Returns the URL of the job_id.
def explore_href(self, job_id): """QueuePage """ jdict = mysql.job_get_dict(job_id)
ebe7911aaa6579796c3b771f64c91ad7ae981d9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/ebe7911aaa6579796c3b771f64c91ad7ae981d9b/webtlsmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15233, 266, 67, 7547, 12, 2890, 16, 1719, 67, 350, 4672, 3536, 1356, 326, 1976, 434, 326, 1719, 67, 350, 18, 3536, 525, 1576, 273, 7219, 18, 4688, 67, 588, 67, 1576, 12, 4688, 67, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15233, 266, 67, 7547, 12, 2890, 16, 1719, 67, 350, 4672, 3536, 1356, 326, 1976, 434, 326, 1719, 67, 350, 18, 3536, 525, 1576, 273, 7219, 18, 4688, 67, 588, 67, 1576, 12, 4688, 67, 35...
userAgent = "Chandler/%s" % version.version
platformName = Utility.getPlatformName() userAgent = "Chandler/%s (%s)" % (version.version, platformName)
def __init__(self, host=None, port=None, username=None, password=None, useSSL=False, repositoryView=None): self.resourcesByPath = {} # Caches resources indexed by path
01516cd51d731b219ab87837a50106215becd103 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/01516cd51d731b219ab87837a50106215becd103/WebDAV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 999, 6745, 33, 8381, 16, 3352, 1767, 33, 7036, 4672, 225, 365, 18, 4683...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 999, 6745, 33, 8381, 16, 3352, 1767, 33, 7036, 4672, 225, 365, 18, 4683...
value = unicode(value[2], value[0]).encode("ascii")
param += '*' value = Utils.encode_rfc2231(value[2], value[0], value[1])
def _formatparam(param, value=None, quote=1): """Convenience function to format and return a key=value pair. This will quote the value if needed or if quote is true. """ if value is not None and len(value) > 0: # TupleType is used for RFC 2231 encoded parameter values where items # are (charset, language, value). cha...
3c25535dc81492b8f703056dbd3b9685db4ca936 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c25535dc81492b8f703056dbd3b9685db4ca936/Message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 891, 12, 891, 16, 460, 33, 7036, 16, 3862, 33, 21, 4672, 3536, 14700, 445, 358, 740, 471, 327, 279, 498, 33, 1132, 3082, 18, 225, 1220, 903, 3862, 326, 460, 309, 3577, 578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 891, 12, 891, 16, 460, 33, 7036, 16, 3862, 33, 21, 4672, 3536, 14700, 445, 358, 740, 471, 327, 279, 498, 33, 1132, 3082, 18, 225, 1220, 903, 3862, 326, 460, 309, 3577, 578...
print "not cacheOnly and troveList"
def getMetadata(self, troveList, label, cacheFile = None, cacheOnly = False, saveOnly = False): metadata = {} if cacheFile and not saveOnly: try: print "opening cache" cacheFp = open(cacheFile, "r") cache = pickle.load(cacheFp) cacheFp.close() except IOError, EOFError: print "got an error, returning" if cacheOnly: retu...
08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a/conaryclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 30, ...
context)[0][1] + \ ' (partner: ' + pline.partner_id.name + ').') continue
context)[0][1] + '\n' \ 'on line: ' + pline.name)
def _create_dta(obj, cr, uid, data, context): v={} v['uid'] = str(uid) v['creation_date']= time.strftime('%y%m%d') log=Log() dta='' pool = pooler.get_pool(cr.dbname) payment_obj = pool.get('payment.order') attachment_obj = pool.get('ir.attachment') payment = payment_obj.browse(cr, uid, data['id'], context=context) i...
37f9126996ca14fd28e570694117dd491f10c960 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7339/37f9126996ca14fd28e570694117dd491f10c960/dta_wizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 72, 2351, 12, 2603, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 331, 12938, 331, 3292, 1911, 3546, 273, 609, 12, 1911, 13, 331, 3292, 17169, 67, 712, 3546, 33, 813, 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, 389, 2640, 67, 72, 2351, 12, 2603, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 331, 12938, 331, 3292, 1911, 3546, 273, 609, 12, 1911, 13, 331, 3292, 17169, 67, 712, 3546, 33, 813, 18...
'state': fields.selection( (('draft','Draft'),('done','Done')), 'Status', readonly=True),
'state': fields.selection( (('draft', 'Draft'), ('done', 'Done')), 'Status', readonly=True),
def unlink(self, cr, uid, ids, context=None): for move in self.browse(cr, uid, ids, context=context): if move.state != 'draft': raise osv.except_osv(_('UserError'), _('You can only delete draft moves.')) return super(stock_move, self).unlink( cr, uid, ids, context=context)
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 3635, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 309, 3635, 18, 2019, 480...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 3635, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 309, 3635, 18, 2019, 480...
command_result = stdout.readlines()
command_output = stdout.readlines()
def attemptConnection(hostname, username, password, timeout=30, command=False, local_filepath=False, remote_filepath='/tmp/', execute=False, remove=False, sudo=False, run_as='root'): """Attempt to login to 'hostname' using 'username'/'password' and execute 'command'. Will excute the command via sudo if 'sudo' is set to...
af991bd779b6fc6a4e78f3728de9053171539741 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/af991bd779b6fc6a4e78f3728de9053171539741/sshpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 1952, 12, 10358, 16, 2718, 16, 2201, 16, 2021, 33, 5082, 16, 1296, 33, 8381, 16, 1191, 67, 10561, 33, 8381, 16, 2632, 67, 10561, 2218, 19, 5645, 19, 2187, 1836, 33, 8381, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 1952, 12, 10358, 16, 2718, 16, 2201, 16, 2021, 33, 5082, 16, 1296, 33, 8381, 16, 1191, 67, 10561, 33, 8381, 16, 2632, 67, 10561, 2218, 19, 5645, 19, 2187, 1836, 33, 8381, 16, 1...
return SVNNOBINDING
return (SVNNOBINDING);
def testWorkingFolder(location, url): client = pysvn.Client() try: if path.isdir(location): locationUrl = client.info(location).url; if url==locationUrl: return SVNURLSAME; else: return SVNURLDIFF, locationurl; elif path.exists(location): return SVNWORKINGFOLDERISFILE; else: return SVNNOWORKINGFOLDER; except pysvn.Clie...
b661ab25d417b82f5a1c486090432f2d1bdc0c93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4259/b661ab25d417b82f5a1c486090432f2d1bdc0c93/svn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 14836, 3899, 12, 3562, 16, 880, 4672, 1004, 273, 21027, 25031, 18, 1227, 1435, 775, 30, 309, 589, 18, 291, 1214, 12, 3562, 4672, 2117, 1489, 273, 1004, 18, 1376, 12, 3562, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14836, 3899, 12, 3562, 16, 880, 4672, 1004, 273, 21027, 25031, 18, 1227, 1435, 775, 30, 309, 589, 18, 291, 1214, 12, 3562, 4672, 2117, 1489, 273, 1004, 18, 1376, 12, 3562, 2934, ...
def shell(command, input=None, silent=True): """ Run given shell command and return its output as a string. - input='string' to pass standard input into the process. - input=None (default) to use parent's stdin (keyboard) - silent=False to use parent's stdout (i.e. print output as-it-comes instead of returning it) """
def args_to_list(args): """ Return a flat list of the given arguments for shell(). """ arglist = [] for arg in args: if hasattr(arg, '__iter__'): arglist.extend(arg) else: arglist.append(arg) return arglist def shell(*args, **kwargs): """ Run a command: program name is given in first arg and command line arguments in ...
def shell(command, input=None, silent=True): """ Run given shell command and return its output as a string. - input='string' to pass standard input into the process. - input=None (default) to use parent's stdin (keyboard) - silent=False to use parent's stdout (i.e. print output as-it-comes instead of returning it) """ ...
de8ed355fef3c5fd7a14c435783f5e59145a2f2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7381/de8ed355fef3c5fd7a14c435783f5e59145a2f2b/fabricate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 833, 67, 869, 67, 1098, 12, 1968, 4672, 3536, 2000, 279, 3569, 666, 434, 326, 864, 1775, 364, 5972, 7675, 3536, 31805, 273, 5378, 364, 1501, 316, 833, 30, 309, 3859, 12, 3175, 16, 4940...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 833, 67, 869, 67, 1098, 12, 1968, 4672, 3536, 2000, 279, 3569, 666, 434, 326, 864, 1775, 364, 5972, 7675, 3536, 31805, 273, 5378, 364, 1501, 316, 833, 30, 309, 3859, 12, 3175, 16, 4940...
elif not tagele or tagele.value in self.selected_tags or not tagele.value in self.tags:
elif not tagele or (self.selected_tags and tagele.value in self.selected_tags) or not tagele.value in self.tags:
def showTagsN(self, tagele): if not self.tags: self.showTagWarning() elif not tagele or tagele.value in self.selected_tags or not tagele.value in self.tags: self.showTagsMenu(tagele) else: self.selected_tags_ele = tagele self.selected_tags = set([tagele.value]) self.reloadList(home = True)
d2188eb11a8c7663e34b1ab3d343a9981e60da62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/d2188eb11a8c7663e34b1ab3d343a9981e60da62/MovieSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 3453, 50, 12, 2890, 16, 1047, 6516, 4672, 309, 486, 365, 18, 4156, 30, 365, 18, 4500, 1805, 6210, 1435, 1327, 486, 1047, 6516, 578, 261, 2890, 18, 8109, 67, 4156, 471, 1047, 6516...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 3453, 50, 12, 2890, 16, 1047, 6516, 4672, 309, 486, 365, 18, 4156, 30, 365, 18, 4500, 1805, 6210, 1435, 1327, 486, 1047, 6516, 578, 261, 2890, 18, 8109, 67, 4156, 471, 1047, 6516...
__write_config(cp, override, simple_path, "vo", "default")
__write_config(cp, override, {1: simple_path}, 1, "vo", "default")
def config_compat(cp): """ Currently, all of the configuration information is kept in:: $VDT_LOCATION/monitoring/osg-attributes.conf This function will take in the ConfigParser object `cp` and update it with the configurations found from the OSG monitoring. If gip.override=True, then the config object overrides the ...
77fdcbe9f145dca032d131955e0b522b54af4915 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12088/77fdcbe9f145dca032d131955e0b522b54af4915/gip_common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 67, 16239, 12, 4057, 4672, 3536, 15212, 16, 777, 434, 326, 1664, 1779, 353, 16555, 316, 2866, 225, 271, 58, 9081, 67, 15277, 19, 27665, 19, 538, 75, 17, 4350, 18, 3923, 225, 1220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 67, 16239, 12, 4057, 4672, 3536, 15212, 16, 777, 434, 326, 1664, 1779, 353, 16555, 316, 2866, 225, 271, 58, 9081, 67, 15277, 19, 27665, 19, 538, 75, 17, 4350, 18, 3923, 225, 1220,...
dsect = coord()
dsect = Coord()
def getcourse(isprobe): "Get a course and distance from the user." key = 0 dquad = copy.copy(game.quadrant) navmode = "unspecified" itemp = "curt" dsect = coord() iprompt = False if game.landed and not isprobe: prout(_("Dummy! You can't leave standard orbit until you")) proutn(_("are back aboard the ship.")) scanner.ch...
e571d502c19abfb5a3320300c347793da7b43d05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/e571d502c19abfb5a3320300c347793da7b43d05/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5566, 12, 291, 27230, 4672, 315, 967, 279, 4362, 471, 3888, 628, 326, 729, 1199, 498, 273, 374, 302, 21733, 273, 1610, 18, 3530, 12, 13957, 18, 21733, 6890, 13, 8775, 3188, 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, 336, 5566, 12, 291, 27230, 4672, 315, 967, 279, 4362, 471, 3888, 628, 326, 729, 1199, 498, 273, 374, 302, 21733, 273, 1610, 18, 3530, 12, 13957, 18, 21733, 6890, 13, 8775, 3188, 273, 3...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 707) else quickfix.StringField.__init__(self, 707, 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, 2371, 8642, 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, 2371, 8642, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
tbounds = (x-hpadding, y-vpadding, w+hpadding*2, h+vpadding*2)
tbounds = (x-hpadding, y-vpadding, w+hpadding*2+1, h+vpadding*2+1)
def getBounds (self, spot): x, y, type, name, text = spot x, y = self.prcToPix (x, y) if spot == self.hovered: size = dotLarge else: size = dotSmall bounds = (x-size/2.-1, y-size/2.-1, size+2, size+2) if spot == self.hovered: x, y, w, h = self.getTextBounds(spot) tbounds = (x-hpadding, y-vpadding, w+hpadding*2, h+v...
0ea45e240368f710413ae29e2c6985e36931d3be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/0ea45e240368f710413ae29e2c6985e36931d3be/SpotGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22107, 261, 2890, 16, 16463, 4672, 225, 619, 16, 677, 16, 618, 16, 508, 16, 977, 273, 16463, 619, 16, 677, 273, 365, 18, 683, 71, 774, 21816, 261, 92, 16, 677, 13, 225, 309, 16463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22107, 261, 2890, 16, 16463, 4672, 225, 619, 16, 677, 16, 618, 16, 508, 16, 977, 273, 16463, 619, 16, 677, 273, 365, 18, 683, 71, 774, 21816, 261, 92, 16, 677, 13, 225, 309, 16463, ...
isogeneous to the curve with given Cremona label.
isogenous to the curve with given Cremona label.
def isogeny_class(self, label): """ Returns the isogeny class of elliptic curves that are isogeneous to the curve with given Cremona label. INPUT: label -- string OUTPUT: list -- list of EllpticCurve objects. """ conductor, iso, num = parse_cremona_label(label) A = self.allcurves(conductor) K = [k for k in A.keys() if ...
744afc21f8d5aaa26af78f056bca854defd17092 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/744afc21f8d5aaa26af78f056bca854defd17092/cremona.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 19409, 93, 67, 1106, 12, 2890, 16, 1433, 4672, 3536, 2860, 326, 353, 19409, 93, 667, 434, 415, 549, 21507, 24106, 716, 854, 353, 19409, 1481, 358, 326, 8882, 598, 864, 5799, 2586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19409, 93, 67, 1106, 12, 2890, 16, 1433, 4672, 3536, 2860, 326, 353, 19409, 93, 667, 434, 415, 549, 21507, 24106, 716, 854, 353, 19409, 1481, 358, 326, 8882, 598, 864, 5799, 2586, ...
cty.c_int, [cty.POINTER(FL_OBJECT), cty.POINTER(FL_FORM)],
cty.c_int, [cty.POINTER(FL_OBJECT), cty.POINTER(FL_FORM)],
def fl_delete_formbrowser_bynumber(ob, num): """ fl_delete_formbrowser_bynumber(ob, num) -> form """ retval = _fl_delete_formbrowser_bynumber(ob, num) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 3733, 67, 687, 11213, 67, 70, 878, 1226, 12, 947, 16, 818, 4672, 3536, 1183, 67, 3733, 67, 687, 11213, 67, 70, 878, 1226, 12, 947, 16, 818, 13, 317, 646, 3536, 225, 5221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3733, 67, 687, 11213, 67, 70, 878, 1226, 12, 947, 16, 818, 4672, 3536, 1183, 67, 3733, 67, 687, 11213, 67, 70, 878, 1226, 12, 947, 16, 818, 13, 317, 646, 3536, 225, 5221, ...
'type': ObjType(l_('C++ type'), 'type'), 'var': ObjType(l_('C++ variable'), 'data'),
'type': ObjType(l_('C++ type'), 'type')
def describe_signature(self, signode, (rv, func)): signode += addnodes.desc_type('', '') self.attach_type(signode, rv) signode += nodes.Text(u' ') self._attach_function(signode, func) return func.name
b3a5a84c12f6c8c38e6ccd1253a6601cc217db5a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/b3a5a84c12f6c8c38e6ccd1253a6601cc217db5a/cpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6401, 67, 8195, 12, 2890, 16, 1573, 390, 16, 261, 4962, 16, 1326, 3719, 30, 1573, 390, 1011, 527, 4690, 18, 5569, 67, 723, 2668, 2187, 28707, 365, 18, 7331, 67, 723, 12, 2977, 390, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6401, 67, 8195, 12, 2890, 16, 1573, 390, 16, 261, 4962, 16, 1326, 3719, 30, 1573, 390, 1011, 527, 4690, 18, 5569, 67, 723, 2668, 2187, 28707, 365, 18, 7331, 67, 723, 12, 2977, 390, 1...
base_layout.addWidget(self.loginUser)
base_layout.addWidget(self.dialog.loginUser)
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog
9001cae1a3809039b46aed5d00bc5877b84f3544 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/9001cae1a3809039b46aed5d00bc5877b84f3544/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1267, 67, 3215, 16, 6176, 4672, 23425, 18, 53, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 13, 365, 6315, 2327, 67, 3215, 273, 1267, 67, 3215, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1267, 67, 3215, 16, 6176, 4672, 23425, 18, 53, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 13, 365, 6315, 2327, 67, 3215, 273, 1267, 67, 3215, ...
for targetUID, relationship in refs.get(sourceUID, []): tObj = uc(UID=targetUID)[0].getObject() rc.addReference(sourceObj, tObj, relationship)
sids = rc.uniqueValuesFor('sourceUID') for sid in sids: set = rc(sourceUID=sid) sourceObject = uc(UID=sid)[0].getObject() if not sourceObject: continue annotations = sourceObject._getReferenceAnnotations() for brain in set: path = brain.getPath() ref = getattr(rc, path, None) if ref is None: continue if path.fin...
def toReferenceCatalog(portal, out): if not hasattr(portal, REFERENCE_CATALOG): install_referenceCatalog(portal, out) print >>out, "Added Reference Catalog" rc = getattr(portal, REFERENCE_CATALOG) uc = getattr(portal, UID_CATALOG) #Now map the old references on AT to the RC at = portal.archetype_tool refs = getattr(a...
bdd25cc907d9e340c0010c4d89e191f6afdd83c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/bdd25cc907d9e340c0010c4d89e191f6afdd83c6/migrations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 2404, 9769, 12, 24386, 16, 596, 4672, 225, 309, 486, 3859, 12, 24386, 16, 22898, 67, 14130, 18683, 4672, 3799, 67, 6180, 9769, 12, 24386, 16, 596, 13, 1172, 1671, 659, 16, 315, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 2404, 9769, 12, 24386, 16, 596, 4672, 225, 309, 486, 3859, 12, 24386, 16, 22898, 67, 14130, 18683, 4672, 3799, 67, 6180, 9769, 12, 24386, 16, 596, 13, 1172, 1671, 659, 16, 315, 86...
checklines = self.generate_typechecks(fnargs[nbargs_before:], mrdtable)
checklines = self.generate_typechecks(fnargs[nbargs_before:])
def make_function(self, fnargs, nbargs_before, mrdtable): if self._function is not None: return self._function name = min(self.possiblenames) # pick a random one, but consistently self.compress_typechecks(mrdtable) checklines = self.generate_typechecks(fnargs[nbargs_before:], mrdtable) if checklines == ['pass']: body...
3a0de11b6e5af458d71b4ea4b543412165e5aace /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3a0de11b6e5af458d71b4ea4b543412165e5aace/multimethod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 915, 12, 2890, 16, 2295, 1968, 16, 4264, 1968, 67, 5771, 16, 9752, 72, 2121, 4672, 309, 365, 6315, 915, 353, 486, 599, 30, 327, 365, 6315, 915, 508, 273, 1131, 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, 1221, 67, 915, 12, 2890, 16, 2295, 1968, 16, 4264, 1968, 67, 5771, 16, 9752, 72, 2121, 4672, 309, 365, 6315, 915, 353, 486, 599, 30, 327, 365, 6315, 915, 508, 273, 1131, 12, 2890, 18...
signal.alarm(0)
signal_alarm(0)
def tearDown(self): reap_children()
ce684ba4a1333a8efa958e5988fc46265c4d94b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/ce684ba4a1333a8efa958e5988fc46265c4d94b7/test_socketserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 283, 438, 67, 5906, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 283, 438, 67, 5906, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print 'modpath', modpath
def startLoading(self): print "start" client = self.client() request = self.request() urlpath = request.URL().standardizedURL().path() print 'urlpath', urlpath modpath = urlpath.replace(u'/', u'.' ).lstrip(u'.' ).replace(u'.html', u'') print 'modpath', modpath try: data = gethtmldoc(modpath.encode('utf-8')) except Exc...
44b1330be1464a0488be8d1e731921775cdb2c3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/44b1330be1464a0488be8d1e731921775cdb2c3d/PyDocURLProtocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 10515, 12, 2890, 4672, 1172, 315, 1937, 6, 1004, 273, 365, 18, 2625, 1435, 590, 273, 365, 18, 2293, 1435, 880, 803, 273, 590, 18, 1785, 7675, 10005, 1235, 1785, 7675, 803, 1435, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 10515, 12, 2890, 4672, 1172, 315, 1937, 6, 1004, 273, 365, 18, 2625, 1435, 590, 273, 365, 18, 2293, 1435, 880, 803, 273, 590, 18, 1785, 7675, 10005, 1235, 1785, 7675, 803, 1435, 1...
def check_status_line(self): code = self.handle.getinfo(pycurl.RESPONSE_CODE) if 300 <= code <= 399 and code != 301: self.saw_temporary_redirect = True self.status_code = code
def on_headers_finished(self): if self.header_callback: eventloop.add_idle(self.header_callback, 'httpclient header callback', args=(self._make_callback_info(),))
1e0afed61899e7c177ec41aceb6e8d5ae363ad2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/1e0afed61899e7c177ec41aceb6e8d5ae363ad2c/httpclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2485, 67, 13527, 12, 2890, 4672, 309, 365, 18, 3374, 67, 3394, 30, 871, 6498, 18, 1289, 67, 20390, 12, 2890, 18, 3374, 67, 3394, 16, 296, 2022, 2436, 676, 1446, 1348, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2485, 67, 13527, 12, 2890, 4672, 309, 365, 18, 3374, 67, 3394, 30, 871, 6498, 18, 1289, 67, 20390, 12, 2890, 18, 3374, 67, 3394, 16, 296, 2022, 2436, 676, 1446, 1348, 2187, ...
source = self.open(member, pwd=pwd)
source = zipfile.open(member, pwd=pwd)
def extract_member(zipfile, member, targetpath): """Copied from Python 2.6 stdlib zipfile.py module. Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ import shutil # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] in (o...
9ca406a40953783747554d17d97888bfb785b46b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/9ca406a40953783747554d17d97888bfb785b46b/nuwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 5990, 12, 4450, 768, 16, 3140, 16, 1018, 803, 4672, 3536, 28127, 628, 6600, 576, 18, 26, 2044, 2941, 18823, 18, 2074, 1605, 18, 225, 8152, 326, 8603, 966, 733, 296, 5990, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 5990, 12, 4450, 768, 16, 3140, 16, 1018, 803, 4672, 3536, 28127, 628, 6600, 576, 18, 26, 2044, 2941, 18823, 18, 2074, 1605, 18, 225, 8152, 326, 8603, 966, 733, 296, 5990, 11,...
def _dorewrite(match, connection, sessionDict, replacement):
def _dorewrite(match, connection, sessionDict, replacement, key):
def _dorewrite(match, connection, sessionDict, replacement): if callable(replacement): if isinstance(replacement, DynamicRewriter): replacement.refresh(connection, sessionDict) connection.uri = match.re.sub(replacement, connection.uri) else: connection.uri = match.expand(replacement) groupdict=m.groupdict() if Configur...
ae1490051d781091eac0e7f5ce05375aa481c9d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/ae1490051d781091eac0e7f5ce05375aa481c9d1/rewrite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 72, 479, 2626, 12, 1916, 16, 1459, 16, 1339, 5014, 16, 6060, 16, 498, 4672, 309, 4140, 12, 24394, 4672, 309, 1549, 12, 24394, 16, 12208, 17631, 1091, 4672, 6060, 18, 9144, 12, 407...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 72, 479, 2626, 12, 1916, 16, 1459, 16, 1339, 5014, 16, 6060, 16, 498, 4672, 309, 4140, 12, 24394, 4672, 309, 1549, 12, 24394, 16, 12208, 17631, 1091, 4672, 6060, 18, 9144, 12, 407...
BtSize += ImageClass.Size
BtSize += ImageInfo.Image.Size
def _CollectModuleMapBuffer (self, MapBuffer, ModuleList): sys.stdout.write ("Generate Load Module At Fix Address Map") sys.stdout.flush() PatchEfiImageList = [] PeiModuleList = {} BtModuleList = {} RtModuleList = {} SmmModuleList = {} PeiSize = 0 BtSize = 0 RtSize = 0 # reserve 4K size in SMRAM to make SMM mod...
ef3747968bba5f59e31e3a867cfc32eb8a676f78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/ef3747968bba5f59e31e3a867cfc32eb8a676f78/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10808, 3120, 863, 1892, 261, 2890, 16, 1635, 1892, 16, 5924, 682, 4672, 2589, 18, 10283, 18, 2626, 7566, 4625, 4444, 5924, 2380, 12139, 5267, 1635, 7923, 2589, 18, 10283, 18, 11330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10808, 3120, 863, 1892, 261, 2890, 16, 1635, 1892, 16, 5924, 682, 4672, 2589, 18, 10283, 18, 2626, 7566, 4625, 4444, 5924, 2380, 12139, 5267, 1635, 7923, 2589, 18, 10283, 18, 11330, ...
""" INPUT: - ``X`` - list of lists of the same length
r""" Vector form of the Chinese Remainder Theorem: given a list of integer vectors `v_i` and a list of coprime moduli `m_i`, find a vector `w` such that `w = v_i \pmod m_i` for all `i`. This is more efficient than applying :func:`CRT` to each entry. INPUT: - ``X`` - list or tuple, consisting of lists/tuples/vectors/...
def CRT_vectors(X, moduli): """ INPUT: - ``X`` - list of lists of the same length - ``moduli`` - list of len(X) moduli OUTPUT: - ``list`` - application of CRT componentwise. EXAMPLES: sage: CRT_vectors([[3,5,7],[3,5,11]], [2,3]) [3, 5, 5] """ # First find the CRT basis: if len(X) == 0 or len(X[0]) == 0: ret...
08206c95546f1db2a947692b19f3ca4ec939d5d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/08206c95546f1db2a947692b19f3ca4ec939d5d9/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6732, 56, 67, 18535, 12, 60, 16, 13340, 77, 4672, 436, 8395, 5589, 646, 434, 326, 1680, 25331, 2663, 25407, 1021, 479, 81, 30, 864, 279, 666, 434, 3571, 10046, 1375, 90, 67, 77, 68, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6732, 56, 67, 18535, 12, 60, 16, 13340, 77, 4672, 436, 8395, 5589, 646, 434, 326, 1680, 25331, 2663, 25407, 1021, 479, 81, 30, 864, 279, 666, 434, 3571, 10046, 1375, 90, 67, 77, 68, ...
cmd += ' -cdrom-device %s -dvd-device %s' % \ (self.media.devicename, self.media.devicename)
if self.media: cmd += ' -cdrom-device %s -dvd-device %s' % \ (self.media.devicename, self.media.devicename)
def settings(self, arg=None, menuw=None): if not self.menuw: self.menuw = menuw pop = None if not self.scanned: self.scanned = TRUE # Use the uid to make a user-unique filename uid = os.getuid()
c9987217b0a3654296c92fabcb5a2828b0fe7b1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c9987217b0a3654296c92fabcb5a2828b0fe7b1b/videoitem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1947, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 309, 486, 365, 18, 5414, 91, 30, 365, 18, 5414, 91, 273, 3824, 91, 1843, 273, 599, 309, 486, 365, 18, 1017, 10041, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1947, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 309, 486, 365, 18, 5414, 91, 30, 365, 18, 5414, 91, 273, 3824, 91, 1843, 273, 599, 309, 486, 365, 18, 1017, 10041, ...
return self.normcase(''.join(letters))
return self.normcase("".join(letters))
def next(self): c = self.characters choose = self.rng.choice letters = [choose(c) for dummy in "123456"] return self.normcase(''.join(letters))
73fe5b4e17300fe703da079a2bdf4fefe1e4ee56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/73fe5b4e17300fe703da079a2bdf4fefe1e4ee56/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 276, 273, 365, 18, 20558, 9876, 273, 365, 18, 86, 3368, 18, 11569, 13768, 273, 306, 25777, 12, 71, 13, 364, 9609, 316, 315, 28462, 4313, 11929, 327, 365, 18, 7959...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 276, 273, 365, 18, 20558, 9876, 273, 365, 18, 86, 3368, 18, 11569, 13768, 273, 306, 25777, 12, 71, 13, 364, 9609, 316, 315, 28462, 4313, 11929, 327, 365, 18, 7959...
TODO: We should only return the size of the original image
XXX: We should only return the size of the original image
def get_size(self, instance): """Get size of the stored data used for get_size in BaseObject TODO: We should only return the size of the original image """ sizes = self.getAvailableSizes(instance) original = self.get(instance) size = original and original.get_size() or 0
4783b5b4c58776802d846f70518c6480cf67411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/4783b5b4c58776802d846f70518c6480cf67411e/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1467, 12, 2890, 16, 791, 4672, 3536, 967, 963, 434, 326, 4041, 501, 1399, 364, 336, 67, 1467, 316, 3360, 921, 225, 11329, 30, 1660, 1410, 1338, 327, 326, 963, 434, 326, 2282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1467, 12, 2890, 16, 791, 4672, 3536, 967, 963, 434, 326, 4041, 501, 1399, 364, 336, 67, 1467, 316, 3360, 921, 225, 11329, 30, 1660, 1410, 1338, 327, 326, 963, 434, 326, 2282, ...
if rnd is round_nearest:
if rnd == round_nearest:
def mpf_perturb(x, eps_sign, prec, rnd): """ For nonzero x, calculate x + eps with directed rounding, where eps < prec relatively and eps has the given sign (0 for positive, 1 for negative). With rounding to nearest, this is taken to simply normalize x to the given precision. """ if rnd is round_nearest: return mpf_po...
9780c6d916cc9309b6669c056423418d7104c66e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11851/9780c6d916cc9309b6669c056423418d7104c66e/libmpf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6749, 74, 67, 672, 15850, 12, 92, 16, 7785, 67, 2977, 16, 13382, 16, 20391, 4672, 3536, 2457, 16966, 619, 16, 4604, 619, 397, 7785, 598, 20830, 13885, 16, 1625, 7785, 411, 13382, 1279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6749, 74, 67, 672, 15850, 12, 92, 16, 7785, 67, 2977, 16, 13382, 16, 20391, 4672, 3536, 2457, 16966, 619, 16, 4604, 619, 397, 7785, 598, 20830, 13885, 16, 1625, 7785, 411, 13382, 1279, ...
'output_encoding': 'unicode',
def miss(self, path, mtime): w = NouvelleWriter() core.publish_file(source_path = path, writer = w, destination = NullFile(), settings_overrides = { 'output_encoding': 'unicode',
8ebefff2e96d24a5398abae1d8aa258ff8dae8e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/8ebefff2e96d24a5398abae1d8aa258ff8dae8e9/Doc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12543, 12, 2890, 16, 589, 16, 13158, 4672, 341, 273, 423, 1395, 941, 298, 2289, 1435, 2922, 18, 6543, 67, 768, 12, 3168, 67, 803, 273, 589, 16, 2633, 1377, 273, 341, 16, 2929, 273, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12543, 12, 2890, 16, 589, 16, 13158, 4672, 341, 273, 423, 1395, 941, 298, 2289, 1435, 2922, 18, 6543, 67, 768, 12, 3168, 67, 803, 273, 589, 16, 2633, 1377, 273, 341, 16, 2929, 273, 4...
if param == 'instrument':
if param == 'create_instrument':
def index2(request): try: param = request.POST['Param'] value = request.POST['Value'] except Exception, e: return HttpResponseServerError('Incorrect POST data: %s' % e) error = warning = '' try: if param == 'survey': if not Survey.objects.filter(name__iexact = value): if len(value) == 0 : warning = 'Please, enter a n...
e5574271097a9d664dd4273406dd54496b8468d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11651/e5574271097a9d664dd4273406dd54496b8468d8/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 22, 12, 2293, 4672, 775, 30, 579, 273, 590, 18, 3798, 3292, 786, 3546, 460, 273, 590, 18, 3798, 3292, 620, 3546, 1335, 1185, 16, 425, 30, 327, 9476, 8777, 2668, 16268, 5485, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 22, 12, 2293, 4672, 775, 30, 579, 273, 590, 18, 3798, 3292, 786, 3546, 460, 273, 590, 18, 3798, 3292, 620, 3546, 1335, 1185, 16, 425, 30, 327, 9476, 8777, 2668, 16268, 5485, 501, ...
try: line = raw_input(self.prompt) except EOFError: line = 'EOF'
if self.use_rawinput: try: line = raw_input(self.prompt) except EOFError: line = 'EOF' else: sys.stdout.write(self.prompt) line = sys.stdin.readline() if not len(line): line = 'EOF' else: line = line[:-1]
def cmdloop(self, intro=None): self.preloop() if intro is not None: self.intro = intro if self.intro: print self.intro stop = None while not stop: if self.cmdqueue: line = self.cmdqueue[0] del self.cmdqueue[0] else: try: line = raw_input(self.prompt) except EOFError: line = 'EOF' line = self.precmd(line) stop = self.on...
aa94af8fb0d623d8d611db480d9d184095b9b14d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/aa94af8fb0d623d8d611db480d9d184095b9b14d/cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 6498, 12, 2890, 16, 13079, 33, 7036, 4672, 365, 18, 1484, 6498, 1435, 309, 13079, 353, 486, 599, 30, 365, 18, 23342, 273, 13079, 309, 365, 18, 23342, 30, 1172, 365, 18, 23342, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 6498, 12, 2890, 16, 13079, 33, 7036, 4672, 365, 18, 1484, 6498, 1435, 309, 13079, 353, 486, 599, 30, 365, 18, 23342, 273, 13079, 309, 365, 18, 23342, 30, 1172, 365, 18, 23342, 21...
sys.exit(main())
sys.exit(main())
def main(argv=None): BASE_URL = "svn://chrome-svn/chrome" TRUNK_URL = BASE_URL + "/trunk/src" BRANCH_URL = None if (len(sys.argv) == 1): print "WARNING: Please use this tool in an empty directory (or at least one" print "that you don't mind clobbering." print "REQUIRES: SVN 1.5+" print "NOTE: NO NEED TO CHECKOUT ANYTH...
44364270024fa1f0c4c0875635e210722b0d4b26 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/44364270024fa1f0c4c0875635e210722b0d4b26/drover.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 10250, 67, 1785, 273, 315, 31505, 2207, 343, 10896, 17, 31505, 19, 343, 10896, 6, 4235, 16141, 67, 1785, 273, 10250, 67, 1785, 397, 2206, 26133, 19, 4816...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19485, 33, 7036, 4672, 10250, 67, 1785, 273, 315, 31505, 2207, 343, 10896, 17, 31505, 19, 343, 10896, 6, 4235, 16141, 67, 1785, 273, 10250, 67, 1785, 397, 2206, 26133, 19, 4816...
sizer_19.Add(sizer_13, 0, wxALL|wxEXPAND, 4) sizer_19.Add(self.objectsListGrid, 1, wxEXPAND, 4)
sizer_19.Add(sizer_13, 0, wxALL, 4) sizer_19.Add(self.objectsListGrid, 0, 0, 4)
def __do_layout(self): # begin wxGlade: controlFrame.__do_layout sizer_16 = wxBoxSizer(wxVERTICAL) sizer_3 = wxBoxSizer(wxVERTICAL) sizer_20 = wxStaticBoxSizer(wxStaticBox(self.panel_3, -1, "Miscellaneous"), wxVERTICAL) sizer_21 = wxBoxSizer(wxHORIZONTAL) sizer_19 = wxStaticBoxSizer(wxStaticBox(self.panel_3, -1, "Objec...
5a1be175ea8d188ad99b9ee86080c99184888cea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/5a1be175ea8d188ad99b9ee86080c99184888cea/slice3dVWRFrames.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2896, 67, 6741, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 3325, 3219, 16186, 2896, 67, 6741, 272, 1824, 67, 2313, 273, 7075, 3514, 20512, 12, 27226, 21654, 10109, 13, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2896, 67, 6741, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 3325, 3219, 16186, 2896, 67, 6741, 272, 1824, 67, 2313, 273, 7075, 3514, 20512, 12, 27226, 21654, 10109, 13, 272, ...
name_load = str(eval(L[5:]))
name_load = _strip_quotes(L[5:])
def preparse_file(contents, attached={}, magic=True, do_time=False, ignore_prompts=False): if not isinstance(contents, str): raise TypeError, "contents must be a string" assert isinstance(contents, str) # We keep track of which files have been loaded so far # in order to avoid a recursive load that would result # in c...
a583bf8d5dab4f840b1cf2fac231ded41a214d20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/a583bf8d5dab4f840b1cf2fac231ded41a214d20/preparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 2670, 67, 768, 12, 3980, 16, 7495, 28793, 8146, 33, 5510, 16, 741, 67, 957, 33, 8381, 16, 2305, 67, 17401, 1092, 33, 8381, 4672, 309, 486, 1549, 12, 3980, 16, 609, 4672, 1002, 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, 675, 2670, 67, 768, 12, 3980, 16, 7495, 28793, 8146, 33, 5510, 16, 741, 67, 957, 33, 8381, 16, 2305, 67, 17401, 1092, 33, 8381, 4672, 309, 486, 1549, 12, 3980, 16, 609, 4672, 1002, 3...
self.additional_headers = {} if client_id is not None and developer_key is not None: self.additional_headers = {'X-Gdata-Client': client_id, 'X-GData-Key': 'key=%s' % developer_key} elif developer_key and not client_id:
if developer_key and not client_id:
def __init__(self, email=None, password=None, source=None, server=YOUTUBE_SERVER, additional_headers=None, client_id=None, developer_key=None, **kwargs): """Creates a client for the YouTube service.
46150ccf3975fe4f63a9bf0a262ccbd1624ef5ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/46150ccf3975fe4f63a9bf0a262ccbd1624ef5ce/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2699, 33, 7036, 16, 2201, 33, 7036, 16, 1084, 33, 7036, 16, 1438, 33, 61, 5069, 3457, 41, 67, 4370, 16, 3312, 67, 2485, 33, 7036, 16, 1004, 67, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2699, 33, 7036, 16, 2201, 33, 7036, 16, 1084, 33, 7036, 16, 1438, 33, 61, 5069, 3457, 41, 67, 4370, 16, 3312, 67, 2485, 33, 7036, 16, 1004, 67, 350, ...
if unit[0]=='[' and unit[-1]==']':
if unit in ('','-'): unit = None elif unit[0]=='[' and unit[-1]==']':
def getUnit(self): """Returns the unit of the node; None is returned if the node does not have a unit specified. """ if not self.templatenode.hasAttribute('unit'): return None unit = self.templatenode.getAttribute('unit') if unit[0]=='[' and unit[-1]==']': node = self.parent[unit[1:-1]] if node is None: return None uni...
70863b7f16c0263d2226e8fac7b7819dada311d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/70863b7f16c0263d2226e8fac7b7819dada311d7/xmlstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19194, 12, 2890, 4672, 3536, 1356, 326, 2836, 434, 326, 756, 31, 599, 353, 2106, 309, 326, 756, 1552, 486, 1240, 279, 2836, 1269, 18, 3536, 309, 486, 365, 18, 27380, 270, 20680, 18, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19194, 12, 2890, 4672, 3536, 1356, 326, 2836, 434, 326, 756, 31, 599, 353, 2106, 309, 326, 756, 1552, 486, 1240, 279, 2836, 1269, 18, 3536, 309, 486, 365, 18, 27380, 270, 20680, 18, 53...
old={} try: for pl2 in pl.interwiki(): old[pl2.site()] = pl2 except wikipedia.NoPage: wikipedia.output(u"BUG: %s no longer exists?" % pl.aslink(forceInterwiki = True)) return False
for pl2 in pl.interwiki(): old[pl2.site()] = pl2 except wikipedia.NoPage: wikipedia.output(u"BUG>>> %s no longer exists?" % pl.aslink(forceInterwiki = True)) return False mods, removing = compareLanguages(old, new, insite = pl.site()) if globalvar.autonomous and not globalvar.force and len(removing) > 0: for site i...
def replaceLinks(self, pl, new, bot): """ Returns True if saving was successful. """ if globalvar.localonly: # In this case only continue on the Page we started with if pl != self.pl(): return False
f26dba898937f97d67f00514b2025aca590f3b24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/f26dba898937f97d67f00514b2025aca590f3b24/interwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 7100, 12, 2890, 16, 886, 16, 394, 16, 2512, 4672, 3536, 2860, 1053, 309, 12392, 1703, 6873, 18, 3536, 309, 2552, 1401, 18, 3729, 3700, 30, 468, 657, 333, 648, 1338, 1324, 603, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 7100, 12, 2890, 16, 886, 16, 394, 16, 2512, 4672, 3536, 2860, 1053, 309, 12392, 1703, 6873, 18, 3536, 309, 2552, 1401, 18, 3729, 3700, 30, 468, 657, 333, 648, 1338, 1324, 603, 32...
("content-encoding", self.contentType()),
("content-encoding", self.contentEncoding()),
def setHeaders(response): for (header, value) in ( ("content-length", self.contentLength()), ("content-type", self.contentType()), ("content-encoding", self.contentType()), ): if value is not None: response.headers.setHeader(header, value)
ece0c354a23e3f6025e539f710dd775b92d0bc29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/ece0c354a23e3f6025e539f710dd775b92d0bc29/resource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24359, 12, 2740, 4672, 364, 261, 3374, 16, 460, 13, 316, 261, 7566, 1745, 17, 2469, 3113, 365, 18, 1745, 1782, 1435, 3631, 7566, 1745, 17, 723, 3113, 365, 18, 22194, 1435, 3631, 7566, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24359, 12, 2740, 4672, 364, 261, 3374, 16, 460, 13, 316, 261, 7566, 1745, 17, 2469, 3113, 365, 18, 1745, 1782, 1435, 3631, 7566, 1745, 17, 723, 3113, 365, 18, 22194, 1435, 3631, 7566, ...
lastNode.parent.childNodes.remove(lastNode)
lastNode.parent.removeChild(lastNode)
def endTagFormatting(self, name): """The much-feared adoption agency algorithm""" # XXX I don't like while True + break... too much # possibility of infinite loops while True: # Step 1 paragraph 1 afeElement = self.parser.elementInActiveFormattingElements(name) if not afeElement or (afeElement in self.parser.openElemen...
c884e7829c941ebf20a9cd32d2f4dfde638f64b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/c884e7829c941ebf20a9cd32d2f4dfde638f64b8/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 508, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 11329, 467, 2727, 1404, 3007, 1323, 1053, 397, 898, 2777, 4885, 9816, 468,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 508, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 11329, 467, 2727, 1404, 3007, 1323, 1053, 397, 898, 2777, 4885, 9816, 468,...
noerror=True
noerror=cmor.CMOR_CRITICAL
def checkCMOR(fout,file,table,noerror=cmor.CMOR_CRITICAL,variable=None,from_bounds=None,other_tables=None,dodrs=True): req_glbl_att = ['title','Conventions','source','experiment','source','institution','project_id','table_id','realization',] opt_glbl_att = ['cmor_version','history','references','comment','parent_exper...
147b07ceb0a19eed8a8cc3b164ebeadbb3bc2349 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9170/147b07ceb0a19eed8a8cc3b164ebeadbb3bc2349/check_CMOR_compliant.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 9611, 916, 12, 617, 322, 16, 768, 16, 2121, 16, 2135, 1636, 33, 7670, 280, 18, 9611, 916, 67, 5093, 21377, 16, 6105, 33, 7036, 16, 2080, 67, 10576, 33, 7036, 16, 3011, 67, 9373,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9611, 916, 12, 617, 322, 16, 768, 16, 2121, 16, 2135, 1636, 33, 7670, 280, 18, 9611, 916, 67, 5093, 21377, 16, 6105, 33, 7036, 16, 2080, 67, 10576, 33, 7036, 16, 3011, 67, 9373,...
el4 = etree.SubElement(el3, 'text:p', attrib={
el4 = SubElement(el3, 'text:p', attrib={
def visit_option_list(self, node): #self.document.reporter.debug_flag = 1 #self.document.reporter.attach_observer(self.show_message) table_name = 'rststyle-tableoption' # # Generate automatic styles if not self.optiontablestyles_generated: self.optiontablestyles_generated = True el = etree.SubElement(self.automatic_sty...
57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 3482, 67, 1098, 12, 2890, 16, 756, 4672, 468, 2890, 18, 5457, 18, 266, 7988, 18, 4148, 67, 6420, 273, 404, 468, 2890, 18, 5457, 18, 266, 7988, 18, 7331, 67, 30971, 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, 3757, 67, 3482, 67, 1098, 12, 2890, 16, 756, 4672, 468, 2890, 18, 5457, 18, 266, 7988, 18, 4148, 67, 6420, 273, 404, 468, 2890, 18, 5457, 18, 266, 7988, 18, 7331, 67, 30971, 12, 2890...
self._assign_canonical_names(val_doc, name)
self._assign_canonical_names(val_doc, val_doc.canonical_name)
def __init__(self, root): """ Create a new documentation index, based on the given root set of C{ValueDoc}s. If any C{APIDoc}s reachable from the root set does not have a canonical name, then it will be assigned one. etc. @param root: A dictionary mapping from names to C{ValueDoc}s. """ #: A list of (name, ValueDoc)...
b097566987f7c4a1dcccfb72347f754962ebb8b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/b097566987f7c4a1dcccfb72347f754962ebb8b2/docindexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1365, 4672, 3536, 1788, 279, 394, 7323, 770, 16, 2511, 603, 326, 864, 1365, 444, 434, 385, 95, 620, 1759, 97, 87, 18, 225, 971, 1281, 385, 95, 2203, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1365, 4672, 3536, 1788, 279, 394, 7323, 770, 16, 2511, 603, 326, 864, 1365, 444, 434, 385, 95, 620, 1759, 97, 87, 18, 225, 971, 1281, 385, 95, 2203, 73...
latest = self._impl.log(self.local_url, limit=1)
try: latest = self._impl.log(self.local_url, limit=1) except pysvn.ClientError: return 0
def count(self, branch=None): latest = self._impl.log(self.local_url, limit=1) if not latest: return 0 return latest[0].revision.number
62e1c0a2de22ed610de05f663380f389bf430d53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/62e1c0a2de22ed610de05f663380f389bf430d53/svn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1056, 12, 2890, 16, 3803, 33, 7036, 4672, 775, 30, 4891, 273, 365, 6315, 11299, 18, 1330, 12, 2890, 18, 3729, 67, 718, 16, 1800, 33, 21, 13, 1335, 21027, 25031, 18, 1227, 668, 30, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1056, 12, 2890, 16, 3803, 33, 7036, 4672, 775, 30, 4891, 273, 365, 6315, 11299, 18, 1330, 12, 2890, 18, 3729, 67, 718, 16, 1800, 33, 21, 13, 1335, 21027, 25031, 18, 1227, 668, 30, 32...
self.generateImpliedEndTags()
self.parser.generateImpliedEndTags()
def endTagCaption(self, name): if self.parser.elementInScope(name, True): # XXX this code is quite similar to endTagTable in "InTable" self.generateImpliedEndTags() if self.parser.openElements[-1].name == "caption": self.parser.parseError() while self.parser.openElements[-1].name != "caption": self.parser.openElements....
a6d74b308ecb57f1058281ac188330f2006b2426 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/a6d74b308ecb57f1058281ac188330f2006b2426/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 21158, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 2956, 382, 3876, 12, 529, 16, 1053, 4672, 468, 11329, 333, 981, 353, 25102, 7281, 358, 29765, 1388, 316, 315, 382, 1388, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 21158, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 2956, 382, 3876, 12, 529, 16, 1053, 4672, 468, 11329, 333, 981, 353, 25102, 7281, 358, 29765, 1388, 316, 315, 382, 1388, ...
self.scoreTest(r's1s1s1s1 s2s2s2 wewe S3S3S3 s4s4s4 Msw LS3S3S3S3',
self.scoreTest(r's1s1s1s1 s2s2s2 wewe S3S3S3 s4s4s4 Mswe LS3S3S3S3',
def testRest(self): self.scoreTest(r's1s1s1s1 s2s2s2 wewe S3S3S3 s4s4s4 Msw Ls2s2s2s2', Score(44, 2), rules=['Last Tile Taken from Dead Wall']) self.scoreTest(r's1s1s1s1 s2s2s2 wewe S3S3S3 s4s4s4 Msw LS3S3S3S3', Score(46, 3), rules=['Last Tile Taken from Dead Wall']) self.scoreTest(r'b3B3B3b3 DbDbDb DrDrDr wewewewe s2s...
3009d818a612dda60908f48a40fea00a8bfd1c7d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/3009d818a612dda60908f48a40fea00a8bfd1c7d/scoringtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5188, 12, 2890, 4672, 365, 18, 6355, 4709, 12, 86, 1807, 21, 87, 21, 87, 21, 87, 21, 272, 22, 87, 22, 87, 22, 341, 359, 73, 348, 23, 55, 23, 55, 23, 272, 24, 87, 24, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5188, 12, 2890, 4672, 365, 18, 6355, 4709, 12, 86, 1807, 21, 87, 21, 87, 21, 87, 21, 272, 22, 87, 22, 87, 22, 341, 359, 73, 348, 23, 55, 23, 55, 23, 272, 24, 87, 24, 87, ...
gclient_scm.CreateSCM(self.url, self.root_dir, None).AndReturn(scm_wrapper_src2)
gclient.gclient_scm.CreateSCM(self.url, self.root_dir, None).AndReturn(scm_wrapper_src2)
def OptIsRev333(options): return OptIsRev(options, 333)
90ba161b70b445eba62b2a376e4fa2f508854e13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/90ba161b70b445eba62b2a376e4fa2f508854e13/gclient_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12056, 2520, 10070, 3707, 23, 12, 2116, 4672, 327, 12056, 2520, 10070, 12, 2116, 16, 890, 3707, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12056, 2520, 10070, 3707, 23, 12, 2116, 4672, 327, 12056, 2520, 10070, 12, 2116, 16, 890, 3707, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
rml2 = rml_parser._parse(rml_dom, objs, data, header=self.header)
rml2 = rml_parser._parse(rml_dom, objs, data, header=want_header)
def create(self, cr, uid, ids, data, context=None): logo = None if not context: context={} context = context.copy()
f16cf978ff88ce3b744db58016d29e38fb92872c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/f16cf978ff88ce3b744db58016d29e38fb92872c/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 33, 7036, 4672, 19128, 273, 599, 309, 486, 819, 30, 819, 12938, 819, 273, 819, 18, 3530, 1435, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 33, 7036, 4672, 19128, 273, 599, 309, 486, 819, 30, 819, 12938, 819, 273, 819, 18, 3530, 1435, 2, -100, -100, -100, -10...
self._nfacets = len(self._facet_normals)
self._nfacets = self._facet_normals.nrows()
def nfacets(self): r""" Return the number of facets of this polytope.
fbe2415b913b08394923968cdb437aa31fd062bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/fbe2415b913b08394923968cdb437aa31fd062bc/lattice_polytope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 11639, 2413, 12, 2890, 4672, 436, 8395, 2000, 326, 1300, 434, 21681, 434, 333, 7573, 869, 347, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 290, 11639, 2413, 12, 2890, 4672, 436, 8395, 2000, 326, 1300, 434, 21681, 434, 333, 7573, 869, 347, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
else: return length / 1000.0
self._duration = length / 1000.0 return self._duration
def get_duration(self): length = libvlc.libvlc_media_player_get_length(self.media_player, self.exc.ref()) try: self.exc.check() except VLCError, e: logging.warn("exception getting time: %s" % e) return None else: return length / 1000.0
2934e8b32a8c6a4773091ef2abaa54b3e4f5615d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/2934e8b32a8c6a4773091ef2abaa54b3e4f5615d/vlc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8760, 12, 2890, 4672, 769, 273, 2561, 27362, 18, 2941, 27362, 67, 5829, 67, 14872, 67, 588, 67, 2469, 12, 2890, 18, 5829, 67, 14872, 16, 365, 18, 10075, 18, 1734, 10756, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8760, 12, 2890, 4672, 769, 273, 2561, 27362, 18, 2941, 27362, 67, 5829, 67, 14872, 67, 588, 67, 2469, 12, 2890, 18, 5829, 67, 14872, 16, 365, 18, 10075, 18, 1734, 10756, 775, ...
print "new network magnitude: %.2f (Variance: %.2f)" % (self.dictMagnitude['Magnitude'], self.dictMagnitude['Uncertainty'])
msg = "new network magnitude: %.2f (Variance: %.2f)" % \ (self.dictMagnitude['Magnitude'], self.dictMagnitude['Uncertainty']) appendTextview(self.textviewStdOut, msg)
def updateNetworkMag(self): print "updating network magnitude..." self.dictMagnitude['Station Count'] = 0 self.dictMagnitude['Magnitude'] = 0 staMags = [] for i in range(len(self.streams)): if self.dicts[i]['MagUse'] and self.dicts[i].has_key('Mag'): print self.dicts[i]['Station'] self.dictMagnitude['Station Count'] +=...
b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 3906, 11372, 12, 2890, 4672, 1172, 315, 5533, 1776, 2483, 13463, 7070, 365, 18, 1576, 11372, 10754, 3292, 16672, 6974, 3546, 273, 374, 365, 18, 1576, 11372, 10754, 3292, 11372, 10754, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 3906, 11372, 12, 2890, 4672, 1172, 315, 5533, 1776, 2483, 13463, 7070, 365, 18, 1576, 11372, 10754, 3292, 16672, 6974, 3546, 273, 374, 365, 18, 1576, 11372, 10754, 3292, 11372, 10754, ...
print>>sys.__stderr__, "Idle accepted connection from ", address
def accept(self): working_sock, address = self.listening_sock.accept() if address[0] == '127.0.0.1': print>>sys.__stderr__, "Idle accepted connection from ", address SocketIO.__init__(self, working_sock) else: print>>sys.__stderr__, "Invalid host: ", address raise socket.error
dc571f8715384503214eb63b6ba9ad5129603e6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dc571f8715384503214eb63b6ba9ad5129603e6f/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 12, 2890, 4672, 5960, 67, 15031, 16, 1758, 273, 365, 18, 18085, 310, 67, 15031, 18, 9436, 1435, 309, 1758, 63, 20, 65, 422, 296, 14260, 18, 20, 18, 20, 18, 21, 4278, 8758, 4294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 12, 2890, 4672, 5960, 67, 15031, 16, 1758, 273, 365, 18, 18085, 310, 67, 15031, 18, 9436, 1435, 309, 1758, 63, 20, 65, 422, 296, 14260, 18, 20, 18, 20, 18, 21, 4278, 8758, 4294...
if (type(callable) is not ClassType): if (not safe_constructors.has_key(callable)):
if type(callable) is not ClassType: if not safe_constructors.has_key(callable):
def load_reduce(self): stack = self.stack
8b78a6a3e44c8494becafd3c7466dbc3de8e04df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8b78a6a3e44c8494becafd3c7466dbc3de8e04df/pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 12498, 12, 2890, 4672, 2110, 273, 365, 18, 3772, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 12498, 12, 2890, 4672, 2110, 273, 365, 18, 3772, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if query_results:
if query_results and query_results[0][0]:
def _render_photo(self, query_results, context, result): if query_results: result.callback(tag('image')[ tag('url')[ '/images/db/' + query_results[0][0] ], tag('title')[ place('title') ], tag('link')[ place('link') ], ]) else: result.callback([])
c06993db81dabf761c359b8cc30f38eb6c09914d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9478/c06993db81dabf761c359b8cc30f38eb6c09914d/Feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 17232, 12, 2890, 16, 843, 67, 4717, 16, 819, 16, 563, 4672, 309, 843, 67, 4717, 471, 843, 67, 4717, 63, 20, 6362, 20, 14542, 563, 18, 3394, 12, 2692, 2668, 2730, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 17232, 12, 2890, 16, 843, 67, 4717, 16, 819, 16, 563, 4672, 309, 843, 67, 4717, 471, 843, 67, 4717, 63, 20, 6362, 20, 14542, 563, 18, 3394, 12, 2692, 2668, 2730, 6134,...
BUILD_BASE=os.path.join(os.getcwd(), 'build-base')
BUILD_BASE=os.path.join(os.getcwd(), 'build-base', 'python-%s.%s' % sys.version_info[:2])
def main(): # below assumes this script is in the BASE_DIR/inst directory global PREFIX BASE_DIR=os.path.abspath(os.path.dirname(os.path.dirname(sys.argv[0]))) BUILD_BASE=os.path.join(os.getcwd(), 'build-base') PYTHON=sys.executable MAKEFILE=open(os.path.join(BASE_DIR, 'inst', IN_MAKEFILE)).read() REQUIRE_LF_ENABLED = ...
4c4e9ebfb122024d2ba9a6fcdfb6d8dbbe22e2b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4c4e9ebfb122024d2ba9a6fcdfb6d8dbbe22e2b5/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5712, 13041, 333, 2728, 353, 316, 326, 10250, 67, 4537, 19, 8591, 1867, 2552, 17154, 10250, 67, 4537, 33, 538, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 12287, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5712, 13041, 333, 2728, 353, 316, 326, 10250, 67, 4537, 19, 8591, 1867, 2552, 17154, 10250, 67, 4537, 33, 538, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 12287, 12...
ui.write(_('\nWrite the introductory message for the patch series.\n\n'))
def getaddrs(opt, prpt, default = None): addrs = opts[opt] or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()]
4e22cb90d3c7236f9f382aaff4f194e4038d8edf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/4e22cb90d3c7236f9f382aaff4f194e4038d8edf/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 63, 3838, 65, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 63, 3838, 65, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, ...
info['modified_time'] = datetime.datetime.fromtimestamp(at)
info['modified_time'] = datetime.datetime.fromtimestamp(mt)
def getinfo(self, path): npath = self._normpath(path) stats = self.client.stat(npath) info = dict((k, getattr(stats, k)) for k in dir(stats) if not k.startswith('__') ) info['size'] = info['st_size'] ct = info.get('st_ctime', None) if ct is not None: info['created_time'] = datetime.datetime.fromtimestamp(ct) at = info....
2a3e147ed90c09b3ba4d348001ae698eaa2f4cbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5579/2a3e147ed90c09b3ba4d348001ae698eaa2f4cbe/sftpfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1376, 12, 2890, 16, 589, 4672, 290, 803, 273, 365, 6315, 7959, 803, 12, 803, 13, 3177, 273, 365, 18, 2625, 18, 5642, 12, 82, 803, 13, 1123, 273, 2065, 12443, 79, 16, 3869, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1376, 12, 2890, 16, 589, 4672, 290, 803, 273, 365, 6315, 7959, 803, 12, 803, 13, 3177, 273, 365, 18, 2625, 18, 5642, 12, 82, 803, 13, 1123, 273, 2065, 12443, 79, 16, 3869, 12, ...
outer_hbox.pack_space(12)
def pack_all(self, layout): outer_vbox = cellpack.VBox()
617cdf7b89cead6695f9e985859657c3b314a92a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/617cdf7b89cead6695f9e985859657c3b314a92a/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 67, 454, 12, 2890, 16, 3511, 4672, 6390, 67, 90, 2147, 273, 2484, 2920, 18, 58, 3514, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 67, 454, 12, 2890, 16, 3511, 4672, 6390, 67, 90, 2147, 273, 2484, 2920, 18, 58, 3514, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if options.verbose: print "checking system:", system['name']
if options.debug: print timestamp(), "DEBUG: Checking system:", system['name']
def get_action_results(key, systems): '''Gets action results that have been scheduled''' if options.debug: wait = 5 elif options.verbose: wait = 15 else: wait = 30 complete = False while not complete: for system in systems: if system['skip']: continue if not system['complete']: if options.verbose: print "checking syst...
07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1128, 67, 4717, 12, 856, 16, 14908, 4672, 9163, 3002, 1301, 1686, 716, 1240, 2118, 9755, 26418, 309, 702, 18, 4148, 30, 2529, 273, 1381, 1327, 702, 18, 11369, 30, 2529, 273, 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, 336, 67, 1128, 67, 4717, 12, 856, 16, 14908, 4672, 9163, 3002, 1301, 1686, 716, 1240, 2118, 9755, 26418, 309, 702, 18, 4148, 30, 2529, 273, 1381, 1327, 702, 18, 11369, 30, 2529, 273, 4...
self.object_ids = [person['person']]
self.object_ids = [person['person_id']]
def call(self, auth, first_name, last_name, person_fields = {}): person_fields = dict(filter(can_update, person_fields.items())) person = Person(self.api, person_fields) person['first_name'] = first_name person['last_name'] = last_name person['enabled'] = False person.sync()
ae783f76505e202ac26195d8c234a46a535852dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/ae783f76505e202ac26195d8c234a46a535852dd/AddPerson.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 1122, 67, 529, 16, 1142, 67, 529, 16, 6175, 67, 2821, 273, 2618, 4672, 6175, 67, 2821, 273, 2065, 12, 2188, 12, 4169, 67, 2725, 16, 6175, 67, 2821, 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, 745, 12, 2890, 16, 1357, 16, 1122, 67, 529, 16, 1142, 67, 529, 16, 6175, 67, 2821, 273, 2618, 4672, 6175, 67, 2821, 273, 2065, 12, 2188, 12, 4169, 67, 2725, 16, 6175, 67, 2821, 18, ...
try: frame = id3["TCON"]
try: frame = id3["TCON"]
def genre_set(id3, key, value): try: frame = id3["TCON"] except KeyError: id3.add(mutagen.id3.TCON(encoding=3, text=value)) else: frame.genres = value
db61096ac432693384a902b19de1955cc9871d81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1845/db61096ac432693384a902b19de1955cc9871d81/easyid3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 266, 67, 542, 12, 350, 23, 16, 498, 16, 460, 4672, 775, 30, 2623, 273, 612, 23, 9614, 56, 2248, 11929, 1335, 4999, 30, 612, 23, 18, 1289, 12, 10735, 346, 275, 18, 350, 23, 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, 3157, 266, 67, 542, 12, 350, 23, 16, 498, 16, 460, 4672, 775, 30, 2623, 273, 612, 23, 9614, 56, 2248, 11929, 1335, 4999, 30, 612, 23, 18, 1289, 12, 10735, 346, 275, 18, 350, 23, 18...
warnings.warn("The default axis of min will change! Now we return the min over the last dimensions. It will change to be the same as numpy: the min over all dimensions. To hide this warning and be compatible with the future behavior, set axis to -1 to have the current behavior. To have the futur behavior set axis to ra...
warnings.warn("The default axis of min will change! Now we return the min over the last dimensions. It will change to be the same as numpy: the min over all dimensions. To hide this warning and be compatible with the future behavior, set axis to -1 to have the current behavior. To have the future behavior, set axis to ...
def min(x, axis='DEFAULT'): if x.type.ndim == 1 and axis in ('DEFAULT', None): # The old and new behavior are not different. axis = 0 elif axis=='DEFAULT': axis = x.type.ndim - 1 warnings.warn("The default axis of min will change! Now we return the min over the last dimensions. It will change to be the same as numpy: t...
fe22e38c8a2e5489ad97ff7bb3b53aebeb78dfb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/fe22e38c8a2e5489ad97ff7bb3b53aebeb78dfb3/basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 12, 92, 16, 2654, 2218, 5280, 11, 4672, 309, 619, 18, 723, 18, 82, 3509, 422, 404, 471, 2654, 316, 7707, 5280, 2187, 599, 4672, 468, 1021, 1592, 471, 394, 6885, 854, 486, 3775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 12, 92, 16, 2654, 2218, 5280, 11, 4672, 309, 619, 18, 723, 18, 82, 3509, 422, 404, 471, 2654, 316, 7707, 5280, 2187, 599, 4672, 468, 1021, 1592, 471, 394, 6885, 854, 486, 3775, ...
Return list of conjugacy polynomials for a given round and name. INPUT:
Return list of conjugacy polynomials for a given round ``i`` and name ``name``. INPUT:
def field_polynomials(self, name, i, l=None): """ Return list of conjugacy polynomials for a given round and name. INPUT: - ``name`` - variable name - ``i`` - round number - ``l`` - r\*c (default:None) EXAMPLE:: sage: sr = mq.SR(3, 1, 1, 8) sage: sr.field_polynomials('x', 2) [x200^2 + x201, x201^2 + x202, x2...
64b5e0e9186de5235119791631990329cc9aecfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/64b5e0e9186de5235119791631990329cc9aecfa/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 3915, 13602, 87, 12, 2890, 16, 508, 16, 277, 16, 328, 33, 7036, 4672, 3536, 2000, 666, 434, 10550, 637, 3505, 16991, 87, 364, 279, 864, 3643, 12176, 77, 10335, 471, 508, 12176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 3915, 13602, 87, 12, 2890, 16, 508, 16, 277, 16, 328, 33, 7036, 4672, 3536, 2000, 666, 434, 10550, 637, 3505, 16991, 87, 364, 279, 864, 3643, 12176, 77, 10335, 471, 508, 12176...
"REMOVE_INSTANCE": int(self.remove_instance),
"REMOVE_INSTANCE": str(bool(self.remove_instance)),
def BuildHooksEnv(self): """Build hooks env.
371f046c3db6e9ba4e1b24301643c3bd7bb18189 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/371f046c3db6e9ba4e1b24301643c3bd7bb18189/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 13620, 3491, 12, 2890, 4672, 3536, 3116, 9153, 1550, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 13620, 3491, 12, 2890, 4672, 3536, 3116, 9153, 1550, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
json = fp.read()
def struct2attrdict(st): """ copy a json structure, turning all dicts into attrdicts. copying descends instances of dict and list, including subclasses. """ if isinstance(st, dict): return attrdict([(k,struct2attrdict(v)) for k,v in st.items()]) if isinstance(st, list): return [struct2attrdict(li) for li in st] return...
47e6fe17862a5f974e46929577872fc98af8f950 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11603/47e6fe17862a5f974e46929577872fc98af8f950/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1958, 22, 1747, 1576, 12, 334, 4672, 3536, 1610, 279, 1163, 3695, 16, 7005, 310, 777, 15838, 1368, 1604, 16287, 18, 225, 8933, 3044, 5839, 3884, 434, 2065, 471, 666, 16, 6508, 15320, 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, 1958, 22, 1747, 1576, 12, 334, 4672, 3536, 1610, 279, 1163, 3695, 16, 7005, 310, 777, 15838, 1368, 1604, 16287, 18, 225, 8933, 3044, 5839, 3884, 434, 2065, 471, 666, 16, 6508, 15320, 18,...
def listFolderContents( self, spec=None, contentFilter=None ):
def listFolderContents( self, spec=None, contentFilter=None ):
def listFolderContents( self, spec=None, contentFilter=None ): # XXX """ Hook around 'contentValues' to let 'folder_contents' be protected. Duplicating skip_unauthorized behavior of dtml-in. """ items = self.contentValues(filter=contentFilter) l = [] for obj in items: id = obj.getId() v = obj # validate() can either r...
dbf6df938900261bab88fecb1a4f305c3bd1ccb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/dbf6df938900261bab88fecb1a4f305c3bd1ccb7/PortalFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 3899, 6323, 12, 365, 16, 857, 33, 7036, 16, 913, 1586, 33, 7036, 262, 30, 468, 11329, 3536, 13725, 6740, 296, 1745, 1972, 11, 358, 2231, 296, 5609, 67, 3980, 11, 506, 4750, 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, 666, 3899, 6323, 12, 365, 16, 857, 33, 7036, 16, 913, 1586, 33, 7036, 262, 30, 468, 11329, 3536, 13725, 6740, 296, 1745, 1972, 11, 358, 2231, 296, 5609, 67, 3980, 11, 506, 4750, 18, ...
'''
"""
def gl_update_duration(self, new_part=False): '''Redraw GLPane and update the repaint duration variable <self._repaint_duration> used by animateToView() to compute the proper number of animation frames. Redraws the GLPane twice if <new_part> is True and only saves the repaint duration of the second redraw. This is nee...
9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5118, 67, 2725, 67, 8760, 12, 2890, 16, 394, 67, 2680, 33, 8381, 4672, 9163, 3715, 1899, 10252, 8485, 471, 1089, 326, 24962, 3734, 2190, 411, 2890, 6315, 14462, 1598, 67, 8760, 34, 1399,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5118, 67, 2725, 67, 8760, 12, 2890, 16, 394, 67, 2680, 33, 8381, 4672, 9163, 3715, 1899, 10252, 8485, 471, 1089, 326, 24962, 3734, 2190, 411, 2890, 6315, 14462, 1598, 67, 8760, 34, 1399,...
elif event.keyval == gtk.keysyms.ISO_Left_Tab:
elif event.keyval == gtk.keysyms.ISO_Left_Tab \ or (event.keyval == gtk.keysyms.Left and leaving):
def on_keypressed(self, entry, event): path, column = self.get_cursor() store = self.get_model() model = store.get_value(store.get_iter(path), 0)
a5d381587e6c38ffb27f603a5f7d93a471e6d903 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/a5d381587e6c38ffb27f603a5f7d93a471e6d903/editabletree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 856, 10906, 12, 2890, 16, 1241, 16, 871, 4672, 589, 16, 1057, 273, 365, 18, 588, 67, 9216, 1435, 1707, 273, 365, 18, 588, 67, 2284, 1435, 938, 273, 1707, 18, 588, 67, 1132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 856, 10906, 12, 2890, 16, 1241, 16, 871, 4672, 589, 16, 1057, 273, 365, 18, 588, 67, 9216, 1435, 1707, 273, 365, 18, 588, 67, 2284, 1435, 938, 273, 1707, 18, 588, 67, 1132, ...
errstring = 'Transaction Check Error: '
errstring = 'Transaction Check Error:\n'
def doTransaction(self): """takes care of package downloading, checking, user confirmation and actually RUNNING the transaction"""
5c232b380a7e0be8ca6fd764c5d557ad14ed547c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/5c232b380a7e0be8ca6fd764c5d557ad14ed547c/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3342, 12, 2890, 4672, 3536, 88, 3223, 7671, 434, 2181, 23742, 16, 6728, 16, 729, 14296, 471, 6013, 23574, 326, 2492, 8395, 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, 741, 3342, 12, 2890, 4672, 3536, 88, 3223, 7671, 434, 2181, 23742, 16, 6728, 16, 729, 14296, 471, 6013, 23574, 326, 2492, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
input data. For example, for HTTP forms, the widget name is
input data. For example, for HTTP forms, the widget name is
def setPrefix(prefix): """Set the name prefix used for the widget
7299700a35794e2ed71032b52910b62f8f8c16cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9530/7299700a35794e2ed71032b52910b62f8f8c16cc/interfaces.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2244, 12, 3239, 4672, 3536, 694, 326, 508, 1633, 1399, 364, 326, 3604, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2244, 12, 3239, 4672, 3536, 694, 326, 508, 1633, 1399, 364, 326, 3604, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.name!=None: result.name = '%s[\'%s\']' % (self.name,name)
if self.name!=None: name = '%s[\'%s\']' % (self.name,name) result.name = name
def __getitem__(self,name): result = self.store.getVariable(name) if result==None: result = self.store.children.get(name,None) if result==None: raise KeyError(name) if isinstance(result,common.VariableStore): result = LazyStore(result,name) if self.name!=None: result.name = '%s[\'%s\']' % (self.name,name) else: result ...
9ea383d3931ae4a9f60ca83c4897ac51e8e54f2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/381/9ea383d3931ae4a9f60ca83c4897ac51e8e54f2f/expressions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 529, 4672, 563, 273, 365, 18, 2233, 18, 588, 3092, 12, 529, 13, 309, 563, 631, 7036, 30, 563, 273, 365, 18, 2233, 18, 5906, 18, 588, 12, 529, 16, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 529, 4672, 563, 273, 365, 18, 2233, 18, 588, 3092, 12, 529, 13, 309, 563, 631, 7036, 30, 563, 273, 365, 18, 2233, 18, 5906, 18, 588, 12, 529, 16, 70...
model = action_rule.name.model
model = action_rule.model_id.model
def _register_hook(self, cr, uid, ids, context=None): if not context: context = {} for action_rule in self.browse(cr, uid, ids, context=context): model = action_rule.name.model obj_pool = self.pool.get(model) obj_pool.__setattr__('create', self._create(obj_pool.create, model, context=context)) obj_pool.__setattr__('wri...
1d07f4092b58310420993921b0ddeb3ac65bb096 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1d07f4092b58310420993921b0ddeb3ac65bb096/base_action_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4861, 67, 4476, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 364, 1301, 67, 5345, 316, 365, 18, 25731, 12, 3353, 16, 4555,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4861, 67, 4476, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 364, 1301, 67, 5345, 316, 365, 18, 25731, 12, 3353, 16, 4555,...
None, [FL_COLOR, FL_COLOR],
None, [FL_COLOR, FL_COLOR],
def fl_setpup_default_cursor(cursor): """ fl_setpup_default_cursor(cursor) -> cursor """ retval = _fl_setpup_default_cursor(cursor) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 84, 416, 67, 1886, 67, 9216, 12, 9216, 4672, 3536, 1183, 67, 542, 84, 416, 67, 1886, 67, 9216, 12, 9216, 13, 317, 3347, 3536, 225, 5221, 273, 389, 2242, 67, 542, 84, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 84, 416, 67, 1886, 67, 9216, 12, 9216, 4672, 3536, 1183, 67, 542, 84, 416, 67, 1886, 67, 9216, 12, 9216, 13, 317, 3347, 3536, 225, 5221, 273, 389, 2242, 67, 542, 84, ...
return http.Response(stream=s)
return HTMLResponse(stream=s)
def render(self, ctx=None): # Create a live Sage worksheet out of self.path and render it. doc_page_html = open(self.docpath).read() from docHTMLProcessor import SphinxHTMLProcessor doc_page = SphinxHTMLProcessor().process_doc_html(doc_page_html)
86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 33, 7036, 4672, 468, 1788, 279, 8429, 348, 410, 13622, 596, 434, 365, 18, 803, 471, 1743, 518, 18, 997, 67, 2433, 67, 2620, 273, 1696, 12, 2890, 18, 2434, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 33, 7036, 4672, 468, 1788, 279, 8429, 348, 410, 13622, 596, 434, 365, 18, 803, 471, 1743, 518, 18, 997, 67, 2433, 67, 2620, 273, 1696, 12, 2890, 18, 2434, 8...
length=79
length=63
def main(): import sys, getopt, time, string, socket try: opts, args = getopt.getopt(sys.argv[1:], "d:i:h:l:u:r:Rt:DL:", ["date", "indent", "hostname", "length", "user", "rlog_options", #### not yet supported "Recursive", #### not yet supported "tabwidth", "Diffs", #### not yet supported "Logfile"]) except ge...
c855779f0af36075bf2fd8360135552b148dfdad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/c855779f0af36075bf2fd8360135552b148dfdad/cvs2log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 2987, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 72, 30, 77, 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, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 2987, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 72, 30, 77, 3...
for f in dfttyp:
for f in gms_dfttyp_items:
def load_dfttyp_combox(self): '''Load list of DFT function in a combobox widget''' self.dfttyp_combox.clear() # Clear all combo box items if self.gmsver == GAMESS: for f in dfttyp: self.dfttyp_combox.insertItem(f) else: for f in pcgms_dfttyp: self.dfttyp_combox.insertItem(f)
2713160270f81d2e6dfa1124ca9da1a6bcb3bccb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2713160270f81d2e6dfa1124ca9da1a6bcb3bccb/GamessProp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2180, 748, 879, 67, 832, 2147, 12, 2890, 4672, 9163, 2563, 666, 434, 463, 4464, 445, 316, 279, 3894, 27570, 3604, 26418, 365, 18, 2180, 748, 879, 67, 832, 2147, 18, 8507, 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, 1262, 67, 2180, 748, 879, 67, 832, 2147, 12, 2890, 4672, 9163, 2563, 666, 434, 463, 4464, 445, 316, 279, 3894, 27570, 3604, 26418, 365, 18, 2180, 748, 879, 67, 832, 2147, 18, 8507, 143...
if callable(file):
if callable(filepat):
def add_data_files(self,*files): """ Add data files to configuration data_files. Argument(s) can be either - 2-sequence (<datadir prefix>,<path to data file(s)>) - paths to data files where python datadir prefix defaults to package dir.
8680d6f6df88d32e07a25c441fa29ac7a1095919 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/8680d6f6df88d32e07a25c441fa29ac7a1095919/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 892, 67, 2354, 12, 2890, 16, 14, 2354, 4672, 3536, 1436, 501, 1390, 358, 1664, 501, 67, 2354, 18, 5067, 12, 87, 13, 848, 506, 3344, 300, 576, 17, 6178, 261, 32, 3404, 361, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 892, 67, 2354, 12, 2890, 16, 14, 2354, 4672, 3536, 1436, 501, 1390, 358, 1664, 501, 67, 2354, 18, 5067, 12, 87, 13, 848, 506, 3344, 300, 576, 17, 6178, 261, 32, 3404, 361, ...
sage: print A
sage: A
def gcs(self): """ A greedy critical set of a latin square self is found by successively removing elements in a row-wise (bottom-up) manner, checking for unique completion at each step.
79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24253, 12, 2890, 4672, 3536, 432, 5174, 24009, 11239, 444, 434, 279, 30486, 8576, 365, 353, 1392, 635, 2216, 4492, 9427, 2186, 316, 279, 1027, 17, 2460, 261, 9176, 17, 416, 13, 21296, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24253, 12, 2890, 4672, 3536, 432, 5174, 24009, 11239, 444, 434, 279, 30486, 8576, 365, 353, 1392, 635, 2216, 4492, 9427, 2186, 316, 279, 1027, 17, 2460, 261, 9176, 17, 416, 13, 21296, 16...
debug("add_cookie_header")
_debug("add_cookie_header")
def add_cookie_header(self, request): """Add correct Cookie: header to request (urllib2.Request object).
15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 8417, 67, 3374, 12, 2890, 16, 590, 4672, 3536, 986, 3434, 10201, 30, 1446, 358, 590, 261, 718, 2941, 22, 18, 691, 733, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 8417, 67, 3374, 12, 2890, 16, 590, 4672, 3536, 986, 3434, 10201, 30, 1446, 358, 590, 261, 718, 2941, 22, 18, 691, 733, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
print 'Usage: %s <DIRAC site name> <COMMENT>' %(Script.scriptName)
print 'Usage: %s <DIRAC site name> <COMMENT>' % ( Script.scriptName )
def usage(): print 'Usage: %s <DIRAC site name> <COMMENT>' %(Script.scriptName) print 'Note: emails should only be disabled for bulk operations.' DIRAC.exit(2)
43bc1428e2c48300c638de896bbd95b498bb1274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/43bc1428e2c48300c638de896bbd95b498bb1274/dirac-admin-allow-site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 4537, 2226, 2834, 508, 34, 411, 12200, 1870, 738, 261, 7739, 18, 4263, 461, 262, 1172, 296, 8067, 30, 14255, 1410, 1338, 506, 5673, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 4537, 2226, 2834, 508, 34, 411, 12200, 1870, 738, 261, 7739, 18, 4263, 461, 262, 1172, 296, 8067, 30, 14255, 1410, 1338, 506, 5673, 364, ...
print '%s depends on %s, not emitting' % (td.name(), dtd.name())
def sortByDependency (self, components, dependent_class_filter): """Return the components that belong to this namespace, in order of dependency.
8958eab7eadbb9f182dec2bde4f8d8ce0ea213ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/8958eab7eadbb9f182dec2bde4f8d8ce0ea213ac/Namespace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14021, 7787, 261, 2890, 16, 4085, 16, 10460, 67, 1106, 67, 2188, 4672, 3536, 990, 326, 4085, 716, 10957, 358, 333, 1981, 16, 316, 1353, 434, 4904, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14021, 7787, 261, 2890, 16, 4085, 16, 10460, 67, 1106, 67, 2188, 4672, 3536, 990, 326, 4085, 716, 10957, 358, 333, 1981, 16, 316, 1353, 434, 4904, 18, 2, -100, -100, -100, -100, -100, ...
"""Return the sum of the two operands.
"""Return the difference between the two operands.
def subtract(self, a, b): """Return the sum of the two operands.
3450ca587eb1604428189320ebea018a018c43df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3450ca587eb1604428189320ebea018a018c43df/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10418, 12, 2890, 16, 279, 16, 324, 4672, 3536, 990, 326, 2142, 434, 326, 2795, 14883, 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, ...
[ 1, 1, 1, 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, 10418, 12, 2890, 16, 279, 16, 324, 4672, 3536, 990, 326, 2142, 434, 326, 2795, 14883, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
@raise raise ProfileError: if length of prof != N_residues
@raise ProfileError: if length of prof != N_residues
def setProfile( self, name, prof, mask=None, default=None, asarray=1, comment=None, **moreInfo ): """ Add/override profile. @param name: profile name @type name: str @param prof: list of values @type prof: [any] @param mask: list 1 x N_items of 0|1, if there are less values than items, provide mask for missing valu...
d94a4af3582d8dee98e9e90efc4d479cc6e0d58e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/d94a4af3582d8dee98e9e90efc4d479cc6e0d58e/Trajectory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4029, 12, 365, 16, 508, 16, 9214, 16, 3066, 33, 7036, 16, 805, 33, 7036, 16, 10455, 33, 21, 16, 2879, 33, 7036, 16, 2826, 10161, 966, 262, 30, 3536, 1436, 19, 10601, 3042, 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, 444, 4029, 12, 365, 16, 508, 16, 9214, 16, 3066, 33, 7036, 16, 805, 33, 7036, 16, 10455, 33, 21, 16, 2879, 33, 7036, 16, 2826, 10161, 966, 262, 30, 3536, 1436, 19, 10601, 3042, 18, ...
elif func.name == 'CompressedTexSubImage2D':
elif name == 'CompressedTexSubImage2D':
def WriteServiceImplementation(self, func, file): """Overrriden from TypeHandler.""" file.Write( "parse_error::ParseError GLES2DecoderImpl::Handle%s(\n" % func.name) file.Write( " uint32 immediate_data_size, const gles2::%s& c) {\n" % func.name) for arg in func.GetCmdArgs(): arg.WriteGetCode(file)
07f54fcc277a2d8fc3e6cecc5df5ea5c3d5ed080 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/07f54fcc277a2d8fc3e6cecc5df5ea5c3d5ed080/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 13621, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 12, 315, 2670, 67, 1636, 2866, 21004, 611, 11386, 22, 7975, 2828, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 13621, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 12, 315, 2670, 67, 1636, 2866, 21004, 611, 11386, 22, 7975, 2828, 286...
raise self.error('command %s illegal in state %s' % (command, self.state))
raise self.error("command %s illegal in state %s, " "only allowed in states %s" % (command, self.state, ', '.join(Commands[command])))
def uid(self, command, *args): """Execute "command arg ..." with messages identified by UID, rather than message number.
9c70b6994b8957dad886fee25dfcc542a7e0e743 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9c70b6994b8957dad886fee25dfcc542a7e0e743/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4555, 12, 2890, 16, 1296, 16, 380, 1968, 4672, 3536, 5289, 315, 3076, 1501, 18483, 598, 2743, 9283, 635, 10034, 16, 9178, 2353, 883, 1300, 18, 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, 4555, 12, 2890, 16, 1296, 16, 380, 1968, 4672, 3536, 5289, 315, 3076, 1501, 18483, 598, 2743, 9283, 635, 10034, 16, 9178, 2353, 883, 1300, 18, 2, -100, -100, -100, -100, -100, -100, -100...
input_api, output_api, sources))
input_api, output_api, source_file_filter=sources))
def _CommonChecks(input_api, output_api): results = [] # What does this code do? # It loads the default black list (e.g. third_party, experimental, etc) and # add our black list (breakpad, skia and v8 are still not following # google style and are not really living this repository). # See presubmit_support.py InputApi....
6c76dfe417e06961aaf92bb1ec42ffbe50c8d198 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/6c76dfe417e06961aaf92bb1ec42ffbe50c8d198/PRESUBMIT.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6517, 4081, 12, 2630, 67, 2425, 16, 876, 67, 2425, 4672, 1686, 273, 5378, 468, 18734, 1552, 333, 981, 741, 35, 468, 2597, 6277, 326, 805, 7721, 666, 261, 73, 18, 75, 18, 12126, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6517, 4081, 12, 2630, 67, 2425, 16, 876, 67, 2425, 4672, 1686, 273, 5378, 468, 18734, 1552, 333, 981, 741, 35, 468, 2597, 6277, 326, 805, 7721, 666, 261, 73, 18, 75, 18, 12126, ...
return FiniteField_ext_pariElement(self.__parent, self.__value * right.__value)
return FiniteField_ext_pariElement(self.__parent, self.__value * right.__value, check=False)
def _mul_(self, right): return FiniteField_ext_pariElement(self.__parent, self.__value * right.__value)
99f8f4d261745ac6dc3bdcdaa49d15b9651e62e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/99f8f4d261745ac6dc3bdcdaa49d15b9651e62e7/finite_field_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16411, 67, 12, 2890, 16, 2145, 4672, 327, 9458, 1137, 974, 67, 408, 67, 1065, 77, 1046, 12, 2890, 16186, 2938, 16, 365, 16186, 1132, 380, 2145, 16186, 1132, 13, 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, 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, 16411, 67, 12, 2890, 16, 2145, 4672, 327, 9458, 1137, 974, 67, 408, 67, 1065, 77, 1046, 12, 2890, 16186, 2938, 16, 365, 16186, 1132, 380, 2145, 16186, 1132, 13, 2, -100, -100, -10...
sqlQuery = sqlQuery + " WHERE to_tsvector(" + tsvector + ") @@ to_tsquery('" + tsquery + "')"
sqlQuery = sqlQuery + " WHERE to_tsvector(" + tsvector + ") @@ to_tsquery('english','" + tsquery + "')"
def fullTextSearch(self,request): # addresses/fullTextSearch?fields=street,city,housenumber&query=ch%20du%2028&tolerance=0.005&easting=6.62379551&northing=46.51687241&limit=20&distinct=true # Read request parameters fields = request.params['fields']
b5802d22e5d41c8ddbbd831b4bcf601707da23a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4401/b5802d22e5d41c8ddbbd831b4bcf601707da23a8/addresses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 1528, 2979, 12, 2890, 16, 2293, 4672, 468, 225, 6138, 19, 2854, 1528, 2979, 35, 2821, 33, 22424, 16, 14240, 16, 76, 1481, 21998, 10, 2271, 33, 343, 9, 3462, 2544, 9, 18212, 28, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 1528, 2979, 12, 2890, 16, 2293, 4672, 468, 225, 6138, 19, 2854, 1528, 2979, 35, 2821, 33, 22424, 16, 14240, 16, 76, 1481, 21998, 10, 2271, 33, 343, 9, 3462, 2544, 9, 18212, 28, ...
output, status = self.run('pull %r --all --match="hash %s"' % (self.path, rev),
output, status = self.run('pull', self.path, '--all', '--match', 'hash %s' % rev,
def pull(self, rev): output, status = self.run('pull %r --all --match="hash %s"' % (self.path, rev), '--no-test', '--no-posthook', '--external-merge=/bin/false', repodir=self.tmppath) if status: if output.find('We have conflicts in') == -1: self.checkexit(status, output) output, status = self.run('revert --all', repodi...
ec50e22a4deac6328d1db7ad5a3e5fd370f70050 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/ec50e22a4deac6328d1db7ad5a3e5fd370f70050/darcs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6892, 12, 2890, 16, 5588, 4672, 876, 16, 1267, 273, 365, 18, 2681, 2668, 13469, 2187, 365, 18, 803, 16, 3534, 454, 2187, 3534, 1916, 2187, 296, 2816, 738, 87, 11, 738, 5588, 16, 3534, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6892, 12, 2890, 16, 5588, 4672, 876, 16, 1267, 273, 365, 18, 2681, 2668, 13469, 2187, 365, 18, 803, 16, 3534, 454, 2187, 3534, 1916, 2187, 296, 2816, 738, 87, 11, 738, 5588, 16, 3534, ...
pass self.body.append('\n.TP\n\B %s\n' % str(self._list_char[-1]))
self.body.append('\n.TP 2\n\\(bu\n') else: self.body.append('\n.TP 2\n%s\n' % str(self._list_char[-1]))
def visit_list_item(self, node): try: self._list_char[-1] += 1 except: pass self.body.append('\n.TP\n\B %s\n' % str(self._list_char[-1]))
577235fae77f798f5c69e4d6cad5121859482694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/577235fae77f798f5c69e4d6cad5121859482694/manpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 1098, 67, 1726, 12, 2890, 16, 756, 4672, 775, 30, 365, 6315, 1098, 67, 3001, 18919, 21, 65, 1011, 404, 1335, 30, 1342, 365, 18, 3432, 18, 6923, 2668, 64, 82, 18, 11130, 64,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 1098, 67, 1726, 12, 2890, 16, 756, 4672, 775, 30, 365, 6315, 1098, 67, 3001, 18919, 21, 65, 1011, 404, 1335, 30, 1342, 365, 18, 3432, 18, 6923, 2668, 64, 82, 18, 11130, 64,...
imagepath.replace('file://localhost','').strip()
imagepath, headers = urllib.urlretrieve(imagepath) print imagepath
def __init__(self, imagepath, thumbpath=None, tag="img", width=240): markup.page.__init__(self, mode="strict_html") try: os.mkdir('Images') except: pass #So that you can give it a url imagepath.replace('file://localhost','').strip() imgname = os.path.split(imagepath.rstrip('/'))[1] shutil.copy(imagepath, 'Images/') if ...
87ffbb6608bdd3d91f74d9e5a7de02376a266245 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/87ffbb6608bdd3d91f74d9e5a7de02376a266245/cbcwebpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1316, 803, 16, 11156, 803, 33, 7036, 16, 1047, 1546, 6081, 3113, 1835, 33, 28784, 4672, 9813, 18, 2433, 16186, 2738, 972, 12, 2890, 16, 1965, 1546, 13948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1316, 803, 16, 11156, 803, 33, 7036, 16, 1047, 1546, 6081, 3113, 1835, 33, 28784, 4672, 9813, 18, 2433, 16186, 2738, 972, 12, 2890, 16, 1965, 1546, 13948, ...
'h5py.tests': ['data/*.hdf5']}
'h5py.tests': ['data/*.hdf5', 'data/*.h5']}
def run(self):
f144496beb8fb98cf8cb1c7ab3f9723ca36e2860 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10380/f144496beb8fb98cf8cb1c7ab3f9723ca36e2860/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 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, 1086, 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, -...
self.write('docu')
self.write('header')
def BALL_HEADER_TEST(self): WOERTER=[] while self.getLine() == 1: for i in range(len(self.exp_header)): if self.exp_header[i].search(self.line, 0): self.errors = self.errors + 1 self.write('docu') self.ende()
86c195c37788a1004b55fdc9a23a6b068464da21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5247/86c195c37788a1004b55fdc9a23a6b068464da21/testfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 4685, 67, 7557, 67, 16961, 12, 2890, 4672, 678, 51, 654, 2560, 33, 8526, 1323, 365, 18, 588, 1670, 1435, 422, 404, 30, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 2749, 67, 337...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 4685, 67, 7557, 67, 16961, 12, 2890, 4672, 678, 51, 654, 2560, 33, 8526, 1323, 365, 18, 588, 1670, 1435, 422, 404, 30, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 2749, 67, 337...
subsequent_indent=' ').strip()
subsequent_indent=' ')
def notify(self, tktid, newticket=1, modtime=0):
cbcbdcfcb55b8e35144a49215d9efbcfed7d0311 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/cbcbdcfcb55b8e35144a49215d9efbcfed7d0311/Notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 12, 2890, 16, 268, 8629, 350, 16, 394, 16282, 33, 21, 16, 681, 957, 33, 20, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 12, 2890, 16, 268, 8629, 350, 16, 394, 16282, 33, 21, 16, 681, 957, 33, 20, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
print "exception raised as expected: " + str(e)
pass
def test_kmeans_lost_cluster(self): """This will cause kmean to have a cluster with no points.""" data = N.fromfile(open(DATAFILE1), sep = ", ") data = data.reshape((200, 2)) initk = N.array([[-1.8127404, -0.67128041], [ 2.04621601, 0.07401111], [-2.31149087,-0.05160469]])
9a29078f390bd61db6882c9ee0689bb914523e4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/9a29078f390bd61db6882c9ee0689bb914523e4e/test_vq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 79, 18408, 67, 383, 334, 67, 7967, 12, 2890, 4672, 3536, 2503, 903, 4620, 417, 7079, 358, 1240, 279, 2855, 598, 1158, 3143, 12123, 501, 273, 423, 18, 2080, 768, 12, 3190, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 79, 18408, 67, 383, 334, 67, 7967, 12, 2890, 4672, 3536, 2503, 903, 4620, 417, 7079, 358, 1240, 279, 2855, 598, 1158, 3143, 12123, 501, 273, 423, 18, 2080, 768, 12, 3190, 12,...
_distance_wrap.pdist_canberra_wrap(_convert_to_bool(X), dm)
_distance_wrap.pdist_canberra_wrap(_convert_to_double(X), dm)
def pdist(X, metric='euclidean', p=2, V=None, VI=None): """ Y = pdist(X, method='euclidean', p=2) Computes the distance between m original observations in n-dimensional space. Returns a condensed distance matrix Y. For each i and j (i<j), the metric dist(u=X[i], v=X[j]) is computed and stored in the ij'th entry. See s...
270d8f355254535dff52aae26daf555d106c1c11 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/270d8f355254535dff52aae26daf555d106c1c11/distance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 4413, 12, 60, 16, 3999, 2218, 73, 22392, 2187, 293, 33, 22, 16, 776, 33, 7036, 16, 12596, 33, 7036, 4672, 3536, 1624, 273, 293, 4413, 12, 60, 16, 707, 2218, 73, 22392, 2187, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 4413, 12, 60, 16, 3999, 2218, 73, 22392, 2187, 293, 33, 22, 16, 776, 33, 7036, 16, 12596, 33, 7036, 4672, 3536, 1624, 273, 293, 4413, 12, 60, 16, 707, 2218, 73, 22392, 2187, 293...
self.removeCurve(self.zoomKey) self.tempSelectionCurve = None
def onMouseReleased(self, e): self.mouseCurrentlyPressed = 0 self.mouseCurrentButton = 0
aa74f74783941495449466e664a97111058a5403 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/aa74f74783941495449466e664a97111058a5403/OWVisGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21000, 26363, 12, 2890, 16, 425, 4672, 365, 18, 11697, 3935, 715, 24624, 273, 374, 365, 18, 11697, 3935, 3616, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21000, 26363, 12, 2890, 16, 425, 4672, 365, 18, 11697, 3935, 715, 24624, 273, 374, 365, 18, 11697, 3935, 3616, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...