rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
:Parameters: - `form`: the configuration parameters. Should be a `submit` form made by filling-in the configuration form retireved using `self.request_configuration_form`.
Do nothing if the provided form is of type 'cancel'. :Parameters: - `form`: the configuration parameters. Should be a 'submit' form made by filling-in the configuration form retireved using `self.request_configuration_form` or a 'cancel' form.
def configure_room(self, form): """ Configure the room using the provided data.
5c8f1da22562c1cc25e955ac93e14b4ca6f441db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/5c8f1da22562c1cc25e955ac93e14b4ca6f441db/muc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 67, 13924, 12, 2890, 16, 646, 4672, 3536, 11758, 326, 7725, 1450, 326, 2112, 501, 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, 5068, 67, 13924, 12, 2890, 16, 646, 4672, 3536, 11758, 326, 7725, 1450, 326, 2112, 501, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
version = self.bb_cache.getVar('PV', fn, True ) + '-' + self.bb_cache.getVar('PR', fn, True)
version = "%s:%s-%s" % self.status.pkg_pepvpr[fn]
def generateDotGraph( self, pkgs_to_build, ignore_deps ): """ Generate a task dependency graph.
9b0ce6a6d1615bd4f4efe4e72b20f90a4a8693a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2672/9b0ce6a6d1615bd4f4efe4e72b20f90a4a8693a9/cooker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 10412, 4137, 12, 365, 16, 16922, 67, 869, 67, 3510, 16, 2305, 67, 14877, 262, 30, 3536, 6654, 279, 1562, 4904, 2667, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 10412, 4137, 12, 365, 16, 16922, 67, 869, 67, 3510, 16, 2305, 67, 14877, 262, 30, 3536, 6654, 279, 1562, 4904, 2667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return HEAD % self.variables
s = HEAD % self.variables if self.uplink: if self.uptitle: link = ('<link rel="up" href="%s" title="%s">' % (self.uplink, self.uptitle)) else: link = '<link rel="up" href="%s">' % self.uplink repl = " %s\n</head>" % link s = s.replace("</head>", repl, 1) return s
def get_header(self): return HEAD % self.variables
ef40b2408449241a0ce8d9711937138d01efb685 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ef40b2408449241a0ce8d9711937138d01efb685/support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3374, 12, 2890, 4672, 327, 14792, 738, 365, 18, 7528, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3374, 12, 2890, 4672, 327, 14792, 738, 365, 18, 7528, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return self.message
return self._message
def __str__(self): return self.message
e493fe29e042b99f71009f947c1c16572829e573 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13485/e493fe29e042b99f71009f947c1c16572829e573/Errors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 18, 2150, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 18, 2150, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
inst = som1.attr_list.instrument lambda_final = som1.attr_list["Wavelength_final"]
inst = som_1.attr_list.instrument lambda_final = som_1.attr_list["Wavelength_final"]
def create_2D_dist(som,*args,**kwargs): """ This function takes a SOM of single spectrum with energy transfer axes and rebins those axes to a given axis and converts the spectra into a single I(Q,E) spectrum. Parameters: ---------- -> som is the input SOM with energy transfer axis SOs -> *args is a mandatory list of a...
8c0e478ff0fa2abc2e5d85a427bbaf1028f81580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8c0e478ff0fa2abc2e5d85a427bbaf1028f81580/hlr_create_2D_dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 22, 40, 67, 4413, 12, 87, 362, 16, 14, 1968, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 279, 348, 1872, 434, 2202, 17970, 598, 12929, 7412, 6515, 471, 283, 11862, 5348, 6515,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 22, 40, 67, 4413, 12, 87, 362, 16, 14, 1968, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 279, 348, 1872, 434, 2202, 17970, 598, 12929, 7412, 6515, 471, 283, 11862, 5348, 6515,...
raise TracError, "%s does not appear to be a Subversion repository." % (path, )
raise TracError, \ "%s does not appear to be a Subversion repository." % (path, )
def __init__(self, path, authz, log): Repository.__init__(self, authz, log)
f3c17dc724b8a75bb34368dd01c601d62bf64034 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/f3c17dc724b8a75bb34368dd01c601d62bf64034/svn_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 16, 18686, 16, 613, 4672, 6281, 16186, 2738, 972, 12, 2890, 16, 18686, 16, 613, 13, 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, 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, 1001, 2738, 972, 12, 2890, 16, 589, 16, 18686, 16, 613, 4672, 6281, 16186, 2738, 972, 12, 2890, 16, 18686, 16, 613, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.tabs.Unbind(NotebookCtrl.EVT_NOTEBOOKCTRL_PAGE_CHANGED)
self.tabs.UnbindPageChange()
def unbindTabs(self): self.tabs.Unbind(NotebookCtrl.EVT_NOTEBOOKCTRL_PAGE_CHANGED) #eventManager.DeregisterWindow(self.tabs)
c51edcaf44ab31e200f691d0ceafdf822aff4f80 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2464/c51edcaf44ab31e200f691d0ceafdf822aff4f80/smdi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17449, 17348, 12, 2890, 4672, 365, 18, 16056, 18, 984, 4376, 12, 19751, 12418, 18, 24427, 56, 67, 17857, 28163, 23876, 48, 67, 11219, 67, 24435, 13, 468, 2575, 1318, 18, 40, 13630, 3829,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17449, 17348, 12, 2890, 4672, 365, 18, 16056, 18, 984, 4376, 12, 19751, 12418, 18, 24427, 56, 67, 17857, 28163, 23876, 48, 67, 11219, 67, 24435, 13, 468, 2575, 1318, 18, 40, 13630, 3829,...
print "Debug H: "+ str(text.encode('utf-8'))
print "Debug H: "+ text
def debug(text, level=DEBUG_LOW): "Prints a text in the terminal if the debug level is higher than the requested" try: if level <= debug_level: if level == DEBUG_LOW: print "Debug L: "+ str(text.encode('utf-8')) if level == DEBUG_MEDIUM: print "Debug M: "+ str(text.encode('utf-8')) if level == DEBUG_HIGH: print "Debug ...
990f55bf193b984bc987e2c88e849aae26422f8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6139/990f55bf193b984bc987e2c88e849aae26422f8b/TFglobals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 955, 16, 1801, 33, 9394, 67, 4130, 4672, 315, 15402, 279, 977, 316, 326, 8651, 309, 326, 1198, 1801, 353, 10478, 2353, 326, 3764, 6, 775, 30, 309, 1801, 1648, 1198, 67, 2815,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 955, 16, 1801, 33, 9394, 67, 4130, 4672, 315, 15402, 279, 977, 316, 326, 8651, 309, 326, 1198, 1801, 353, 10478, 2353, 326, 3764, 6, 775, 30, 309, 1801, 1648, 1198, 67, 2815,...
yield self.doctype(data)
yield self.doctype(data[0])
def tokens(self, event, next): kind, data, pos = event if kind == START: tag, attrib = data if tag in voidElements: for token in self.emptyTag(tag, list(attrib), \ not next or next[0] != END or next[1] != tag): yield token else: yield self.startTag(tag, list(attrib))
54b38f643790bfb80a3379c26f06839b35d77dd1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/54b38f643790bfb80a3379c26f06839b35d77dd1/genshistream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2430, 12, 2890, 16, 871, 16, 1024, 4672, 3846, 16, 501, 16, 949, 273, 871, 309, 3846, 422, 10485, 30, 1047, 16, 5885, 273, 501, 309, 1047, 316, 918, 3471, 30, 364, 1147, 316, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2430, 12, 2890, 16, 871, 16, 1024, 4672, 3846, 16, 501, 16, 949, 273, 871, 309, 3846, 422, 10485, 30, 1047, 16, 5885, 273, 501, 309, 1047, 316, 918, 3471, 30, 364, 1147, 316, 365, 18...
txt = widget.get_text()
txt = widget.get_text().lower()
def rehash(self): self.killer = {}
41bc55849b10de09bb9ea394bff3654c54fe83a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11468/41bc55849b10de09bb9ea394bff3654c54fe83a8/AttackPage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 2816, 12, 2890, 4672, 365, 18, 16418, 264, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 283, 2816, 12, 2890, 4672, 365, 18, 16418, 264, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
obj = self.pool.get('hr.analytic.timesheet')
def write(self, cr, uid, ids, vals, context=None): vals_line = {}
c983859b9d5002f8242dfe4d759712ba51d466a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c983859b9d5002f8242dfe4d759712ba51d466a7/project_timesheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 5773, 67, 1369, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 5773, 67, 1369, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
@keyword httpHeaders: A dictionary containing headers to add to an http request
@keyword httpHeaders: A dictionary containing headers to add to an http request
def __init__(self, recipe, *args, **keywords):
bbf56a2c6ce326846b9cfaed245edce8bd904567 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/bbf56a2c6ce326846b9cfaed245edce8bd904567/source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16100, 16, 380, 1968, 16, 2826, 11771, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16100, 16, 380, 1968, 16, 2826, 11771, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
connection, client_addr = self.socket.accept() logging.info("Connection from %s:%s", client_addr[0], client_addr[1]) try: handler = _HttpConnectionHandler(self, connection, client_addr, self._fileio_class) except (socket.error, SocketClosed): return def FinishRequest():
"""Called for each incoming connection """ (connection, client_addr) = self.socket.accept() self._CollectChildren(False) pid = os.fork() if pid == 0: logging.info("Connection from %s:%s", client_addr[0], client_addr[1])
def _IncomingConnection(self): connection, client_addr = self.socket.accept() logging.info("Connection from %s:%s", client_addr[0], client_addr[1]) try: handler = _HttpConnectionHandler(self, connection, client_addr, self._fileio_class) except (socket.error, SocketClosed): return
6526ddcd727330a27fddfbf7d0018842fbb154f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/6526ddcd727330a27fddfbf7d0018842fbb154f8/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 20370, 1952, 12, 2890, 4672, 1459, 16, 1004, 67, 4793, 273, 365, 18, 7814, 18, 9436, 1435, 2907, 18, 1376, 2932, 1952, 628, 738, 87, 5319, 87, 3113, 1004, 67, 4793, 63, 20, 6487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20370, 1952, 12, 2890, 4672, 1459, 16, 1004, 67, 4793, 273, 365, 18, 7814, 18, 9436, 1435, 2907, 18, 1376, 2932, 1952, 628, 738, 87, 5319, 87, 3113, 1004, 67, 4793, 63, 20, 6487, ...
Initializes base class Ellipse.
Initializes base class ``Ellipse``.
def __init__(self, x, y, r1, r2, angle, options): """ Initializes base class Ellipse.
4c5e1937fe73c05a208a1c8fdb96fca58580fae9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/4c5e1937fe73c05a208a1c8fdb96fca58580fae9/ellipse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 436, 21, 16, 436, 22, 16, 5291, 16, 702, 4672, 3536, 10188, 3128, 1026, 667, 10426, 10472, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 677, 16, 436, 21, 16, 436, 22, 16, 5291, 16, 702, 4672, 3536, 10188, 3128, 1026, 667, 10426, 10472, 18, 2, -100, -100, -100, -100, -100, -100, ...
\s*
\s*
def pop_oldest_article_CERNBulletin(news_article_dict): """ pop key of the oldest article (lowest c-timestamp) """ keys = news_article_dict.keys() keys.sort() key = keys[0] return key
95302ea88121546ed68c8b38bb6cd6cf4b324cd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/95302ea88121546ed68c8b38bb6cd6cf4b324cd0/webjournal_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 67, 1673, 395, 67, 11480, 67, 39, 654, 20626, 19994, 267, 12, 18443, 67, 11480, 67, 1576, 4672, 3536, 1843, 498, 434, 326, 17067, 7559, 261, 821, 395, 276, 17, 5508, 13, 3536, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 67, 1673, 395, 67, 11480, 67, 39, 654, 20626, 19994, 267, 12, 18443, 67, 11480, 67, 1576, 4672, 3536, 1843, 498, 434, 326, 17067, 7559, 261, 821, 395, 276, 17, 5508, 13, 3536, 13...
print "tcm_node --createdev " + f + "/" + g + " " + str(params)
print "tcm_node --establishdev " + f + "/" + g + " " + str(params)
def tcm_dump_configfs(): print "modprobe target_core_mod" # Loop through ALUA Logical Unit and Target Port groups # Note that the 'default_lu_gp' and 'default_tg_pt_gp' are automatically # created when target_core_mod is loaded. print "#### ALUA Logical Unit Groups" for lu_gp in os.listdir(tcm_root + "/alua/lu_gps"):...
50c6fb1ce023c6efa45ceb5bd9e4af038003575e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/50c6fb1ce023c6efa45ceb5bd9e4af038003575e/tcm_dump.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1715, 81, 67, 8481, 67, 1425, 2556, 13332, 225, 1172, 315, 1711, 27230, 1018, 67, 3644, 67, 1711, 6, 225, 468, 9720, 3059, 7981, 28203, 17085, 8380, 471, 5916, 6008, 3252, 468, 3609, 716...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1715, 81, 67, 8481, 67, 1425, 2556, 13332, 225, 1172, 315, 1711, 27230, 1018, 67, 3644, 67, 1711, 6, 225, 468, 9720, 3059, 7981, 28203, 17085, 8380, 471, 5916, 6008, 3252, 468, 3609, 716...
convert(ifp, ofp, {
table = {
def main(): if len(sys.argv) == 2: ifp = open(sys.argv[1]) ofp = sys.stdout elif len(sys.argv) == 3: ifp = open(sys.argv[1]) ofp = open(sys.argv[2], "w") else: usage() sys.exit(2) convert(ifp, ofp, { # entries have the form: # name: ([attribute names], is1stOptional, isEmpty, isEnv, nocontent) # attribute names can be:...
ab75840fa4cfb9d978e30ffcae071fbad52b75e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ab75840fa4cfb9d978e30ffcae071fbad52b75e3/latex2esis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 422, 576, 30, 309, 84, 273, 1696, 12, 9499, 18, 19485, 63, 21, 5717, 434, 84, 273, 2589, 18, 10283, 1327, 562, 12, 9499, 18, 19485, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 422, 576, 30, 309, 84, 273, 1696, 12, 9499, 18, 19485, 63, 21, 5717, 434, 84, 273, 2589, 18, 10283, 1327, 562, 12, 9499, 18, 19485, 13...
pixmap = gcompris.utils.load_pixmap("draw/color-selector.png")
pixmap = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin("draw/color-selector.png"))
def draw_colors(self):
71d2a5f1e776d1abf498b3c50bbff69637e75673 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/71d2a5f1e776d1abf498b3c50bbff69637e75673/anim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 9724, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 9724, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
seconds=(remainingPages * put_throttle.getDelay()))
seconds=(remainingPages * put_throttle.getDelay(wait=True)))
def remaining(): import datetime remainingPages = page_put_queue.qsize() - 1 # -1 because we added a None element to stop the queue remainingSeconds = datetime.timedelta( seconds=(remainingPages * put_throttle.getDelay())) return (remainingPages, remainingSeconds)
587a0cd26e074e32d7b23a12701e3a81b311c99e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/587a0cd26e074e32d7b23a12701e3a81b311c99e/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4463, 13332, 1930, 3314, 4463, 5716, 273, 1363, 67, 458, 67, 4000, 18, 85, 1467, 1435, 300, 404, 468, 300, 21, 2724, 732, 3096, 279, 599, 930, 358, 2132, 326, 2389, 4463, 6762, 273, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4463, 13332, 1930, 3314, 4463, 5716, 273, 1363, 67, 458, 67, 4000, 18, 85, 1467, 1435, 300, 404, 468, 300, 21, 2724, 732, 3096, 279, 599, 930, 358, 2132, 326, 2389, 4463, 6762, 273, 33...
pass
UFLObject.__init__(self)
def __init__(self): pass
8a0ba2844c32510ef2882ba530d18da86ec09f50 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/8a0ba2844c32510ef2882ba530d18da86ec09f50/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 587, 19054, 921, 16186, 2738, 972, 12, 2890, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 587, 19054, 921, 16186, 2738, 972, 12, 2890, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'pkg': pkg_listing_id))
'pkg': pkg_listing_id})
def toggle_acl_request(self, container_id): '''Request an acl or revoke a request.
9e0e7b467aca7388c2977900fcfaaf51a8f23691 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9953/9e0e7b467aca7388c2977900fcfaaf51a8f23691/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10486, 67, 10150, 67, 2293, 12, 2890, 16, 1478, 67, 350, 4672, 9163, 691, 392, 7895, 578, 18007, 279, 590, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10486, 67, 10150, 67, 2293, 12, 2890, 16, 1478, 67, 350, 4672, 9163, 691, 392, 7895, 578, 18007, 279, 590, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if name[:1] == '{' and name[-1:] == '}':
if name.startswith('{') and name.endswith('}'):
def expandvars(path): """Expand shell variables of form $var and ${var}. Unknown variables are left unchanged.""" global _varprog if '$' not in path: return path if not _varprog: import re _varprog = re.compile(r'\$(\w+|\{[^}]*\})') i = 0 while True: m = _varprog.search(path, i) if not m: break i, j = m.span(0) name =...
48d5c66045fe77d7b9b73d9a94f35f2863ee0d26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/48d5c66045fe77d7b9b73d9a94f35f2863ee0d26/posixpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 4699, 12, 803, 4672, 3536, 12271, 5972, 3152, 434, 646, 271, 1401, 471, 3531, 1401, 5496, 225, 9077, 3152, 854, 2002, 14827, 12123, 2552, 389, 1401, 14654, 309, 11874, 486, 316, 589,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 4699, 12, 803, 4672, 3536, 12271, 5972, 3152, 434, 646, 271, 1401, 471, 3531, 1401, 5496, 225, 9077, 3152, 854, 2002, 14827, 12123, 2552, 389, 1401, 14654, 309, 11874, 486, 316, 589,...
self.filename = "VOC:ZREPORT2.VOC"
self.filename = "VOC:REPORT2.VOC"
def __init__(self): SoundClass.__init__(self) self.filename = "VOC:ZREPORT2.VOC"
c222bc0bf583ccb23a84f827b19e2ad8a6be0e64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1596/c222bc0bf583ccb23a84f827b19e2ad8a6be0e64/sounds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 348, 772, 797, 16186, 2738, 972, 12, 2890, 13, 365, 18, 3459, 273, 315, 58, 10809, 30, 62, 22710, 22, 18, 58, 10809, 6, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 348, 772, 797, 16186, 2738, 972, 12, 2890, 13, 365, 18, 3459, 273, 315, 58, 10809, 30, 62, 22710, 22, 18, 58, 10809, 6, 2, -100, -100, -100, -100, -1...
for tool in tools: env.Append(BUILDERS = { tool.capitalize() + "4" : qt4tools[tool][0] } )
def CheckQt4Tools(context, tools = ["moc", "uic"]): context.Message("Checking for Qt tools %s... " % ", ".join(tools)) env = context.env env.SetDefault( QT4_MOCCOM = "$QT4_MOC -o $TARGET $SOURCE", QT4_MOCIMPLPREFIX = "moc_", QT4_MOCIMPLSUFFIX = "$CXXFILESUFFIX", QT4_UICCOM = "$QT4_UIC -o $TARGET $SOURCE", QT4_UISUFFIX ...
410a979d39acf7f62a502b1854e58311679bd889 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3311/410a979d39acf7f62a502b1854e58311679bd889/qt4ng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 23310, 24, 10348, 12, 2472, 16, 8513, 273, 8247, 81, 504, 3113, 315, 89, 335, 11929, 4672, 819, 18, 1079, 2932, 14294, 364, 7354, 8513, 738, 87, 2777, 315, 738, 3104, 3552, 5701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 23310, 24, 10348, 12, 2472, 16, 8513, 273, 8247, 81, 504, 3113, 315, 89, 335, 11929, 4672, 819, 18, 1079, 2932, 14294, 364, 7354, 8513, 738, 87, 2777, 315, 738, 3104, 3552, 5701, ...
if user_name: params['UserName'] = user_name
def get_all_mfa_devices(self, marker=None, max_items=None, user_name=None): """ Get all MFA devices associated with an account.
bc30c6ac6c2bb380ecdae41e0b3619f6a8ce0943 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/bc30c6ac6c2bb380ecdae41e0b3619f6a8ce0943/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 81, 507, 67, 12506, 12, 2890, 16, 5373, 33, 7036, 16, 943, 67, 3319, 33, 7036, 16, 729, 67, 529, 33, 7036, 4672, 3536, 968, 777, 490, 2046, 7166, 3627, 598, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 81, 507, 67, 12506, 12, 2890, 16, 5373, 33, 7036, 16, 943, 67, 3319, 33, 7036, 16, 729, 67, 529, 33, 7036, 4672, 3536, 968, 777, 490, 2046, 7166, 3627, 598, 392, ...
direction = "increase"
def formatMessage(self, state, series, good, bad, html=False): if state == "machine": good = bad.last_other
16b34b6d3ae5d0e75061f6e6f70a5c084823c9f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14013/16b34b6d3ae5d0e75061f6e6f70a5c084823c9f4/analyze_talos.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20925, 12, 2890, 16, 919, 16, 4166, 16, 7494, 16, 5570, 16, 1729, 33, 8381, 4672, 309, 919, 422, 315, 9149, 6877, 7494, 273, 5570, 18, 2722, 67, 3011, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20925, 12, 2890, 16, 919, 16, 4166, 16, 7494, 16, 5570, 16, 1729, 33, 8381, 4672, 309, 919, 422, 315, 9149, 6877, 7494, 273, 5570, 18, 2722, 67, 3011, 2, -100, -100, -100, -100, -100, ...
while 1:
depth = 0 while depth < 10: depth = depth + 1
def get(self, section, option, raw=0, vars=None): """Get an option value for a given section.
b7d18aba05e94e0dfc876b8d5318a3526b80bcb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b7d18aba05e94e0dfc876b8d5318a3526b80bcb4/ConfigParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 2442, 16, 1456, 16, 1831, 33, 20, 16, 4153, 33, 7036, 4672, 3536, 967, 392, 1456, 460, 364, 279, 864, 2442, 18, 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, 336, 12, 2890, 16, 2442, 16, 1456, 16, 1831, 33, 20, 16, 4153, 33, 7036, 4672, 3536, 967, 392, 1456, 460, 364, 279, 864, 2442, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if 'GDK_BUTTON1_MASK' in mod.value_names: self.client.set_int(KEY('/general/window_size'), int(percent))
self.client.set_int(KEY('/general/window_size'), int(percent))
def on_resizer_drag(self, widget, event): """Method that handles the resize drag. It does not actuall moves the main window. It just set the new window size in gconf. """ (x, y), mod = event.device.get_state(widget.window)
3df8f59a967a64f7e65a5e5016e43dd2c16f3b10 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11147/3df8f59a967a64f7e65a5e5016e43dd2c16f3b10/guake.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 455, 1824, 67, 15997, 12, 2890, 16, 3604, 16, 871, 4672, 3536, 1305, 716, 7372, 326, 7041, 8823, 18, 2597, 1552, 486, 1328, 89, 454, 13934, 326, 2774, 2742, 18, 2597, 2537, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 455, 1824, 67, 15997, 12, 2890, 16, 3604, 16, 871, 4672, 3536, 1305, 716, 7372, 326, 7041, 8823, 18, 2597, 1552, 486, 1328, 89, 454, 13934, 326, 2774, 2742, 18, 2597, 2537, 44...
pstr = currentGlyph.moduleInstance.get_output_descriptions()[ currentPort[1]]
pstr = glyph.moduleInstance.get_output_descriptions()[ port_idx]
def update_port_info_statusbar(self, glyph, port_inout, port_idx): """You can only call this during motion IN a port of a glyph. """ msg = '' canvas = self.canvas
afadac5e2e0310d8179849fbe61d4597bc6d87ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/afadac5e2e0310d8179849fbe61d4597bc6d87ec/graph_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 655, 67, 1376, 67, 2327, 3215, 12, 2890, 16, 9440, 16, 1756, 67, 267, 659, 16, 1756, 67, 3465, 4672, 225, 3536, 6225, 848, 1338, 745, 333, 4982, 21188, 2120, 279, 1756, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 655, 67, 1376, 67, 2327, 3215, 12, 2890, 16, 9440, 16, 1756, 67, 267, 659, 16, 1756, 67, 3465, 4672, 225, 3536, 6225, 848, 1338, 745, 333, 4982, 21188, 2120, 279, 1756, 434, ...
self.failUnless('design' in [c.name for c in self.linter.needed_checkers()])
self.failUnless('design' in [c.name for c in self.linter.prepare_checkers()]) def test_errors_only(self): linter = self.linter self.linter.error_mode() checkers = self.linter.prepare_checkers() checker_names = tuple(c.name for c in checkers) should_not = ('design', 'format', 'imports', 'logging', 'metrics', 'miscellan...
def test_enable_checkers(self): self.linter.disable('design') self.failIf('design' in [c.name for c in self.linter.needed_checkers()]) self.linter.enable('design') self.failUnless('design' in [c.name for c in self.linter.needed_checkers()])
7a63f9b28bade89d2c46e6e763455173ab562536 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/928/7a63f9b28bade89d2c46e6e763455173ab562536/unittest_lint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7589, 67, 1893, 414, 12, 2890, 4672, 365, 18, 80, 2761, 18, 8394, 2668, 16934, 6134, 365, 18, 6870, 2047, 2668, 16934, 11, 316, 306, 71, 18, 529, 364, 276, 316, 365, 18, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7589, 67, 1893, 414, 12, 2890, 4672, 365, 18, 80, 2761, 18, 8394, 2668, 16934, 6134, 365, 18, 6870, 2047, 2668, 16934, 11, 316, 306, 71, 18, 529, 364, 276, 316, 365, 18, 80...
B. It is repeated adaptive_recursion times (10, by default).
B. It is repeated adaptive_recursion times (5, by default).
def plot(funcs, *args, **kwds): r""" Use plot by writing ``plot(X, ...)`` where `X` is a Sage object (or list of Sage objects) that either is callable and returns numbers that can be coerced to floats, or has a plot method that returns a ``GraphicPrimitive`` object. Type ``plot.options`` for a dictionary of the defa...
aa6916134b0b3764422bd53e781315007a519805 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/aa6916134b0b3764422bd53e781315007a519805/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 17728, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2672, 3207, 635, 7410, 225, 12176, 4032, 12, 60, 16, 1372, 13, 10335, 225, 1625, 1375, 60, 68, 353, 279, 348, 410, 733...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 17728, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2672, 3207, 635, 7410, 225, 12176, 4032, 12, 60, 16, 1372, 13, 10335, 225, 1625, 1375, 60, 68, 353, 279, 348, 410, 733...
liblist = filetool.find(os.path.join(lib['path'],'resource'))
liblist = filetool.find(os.path.join(lib['path'],lib['resource']))
def findAllResources(self, libraries, filter=None): """Find relevant resources/assets, implementing shaddowing of resources. Returns a list of resources, each a pair of [file_path, uri]""" result = [] inCache = False # go through all libs (weighted) and collect necessary resources # fallback: take all resources libs =...
62290ed756297aad0302264aab01b2cf373dda24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/62290ed756297aad0302264aab01b2cf373dda24/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11135, 3805, 12, 2890, 16, 14732, 16, 1034, 33, 7036, 4672, 3536, 3125, 9368, 2703, 19, 9971, 16, 19981, 699, 1289, 543, 310, 434, 2703, 18, 2860, 279, 666, 434, 2703, 16, 1517, 279, 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, 11135, 3805, 12, 2890, 16, 14732, 16, 1034, 33, 7036, 4672, 3536, 3125, 9368, 2703, 19, 9971, 16, 19981, 699, 1289, 543, 310, 434, 2703, 18, 2860, 279, 666, 434, 2703, 16, 1517, 279, 3...
for table in auxiliaryTableList: if table in primaryTableList: return S_ERROR( 'Auxiliary table `%s` can not have ForeignKeys defined.' % table ) for table in tableList: if not table in primaryTableList: retDict = self.__checkTable( table, force = force ) if not retDict['OK']: return retDict
def _createTables( self, tableDict, force = False ): """ tableDict: tableName: { 'Fields' : { 'Field': 'Description' }, 'ForeignKeys': {'Field': 'Table' }, 'PrimaryKey': 'Id', 'Indexes': { 'Index': [] }, 'UniqueIndexes': { 'Index': [] }, 'Engine': 'InnoDB' } only 'Fields' is a mandatory key.
f880c305d490ff6e14d918705fa41ebcb4540885 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/f880c305d490ff6e14d918705fa41ebcb4540885/MySQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 6905, 12, 365, 16, 1014, 5014, 16, 2944, 273, 1083, 262, 30, 3536, 1014, 5014, 30, 4775, 30, 288, 296, 2314, 11, 294, 288, 296, 974, 4278, 296, 3291, 11, 19879, 296, 28285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6905, 12, 365, 16, 1014, 5014, 16, 2944, 273, 1083, 262, 30, 3536, 1014, 5014, 30, 4775, 30, 288, 296, 2314, 11, 294, 288, 296, 974, 4278, 296, 3291, 11, 19879, 296, 28285, ...
K -- a ring in which B_k/(2*k) is invertible
K -- a ring in which -(2*k)/B_k is invertible
def eisenstein_series_qexp(k, prec=10, K=QQ): r""" Return the $q$-expansion of the weight $k$ Eisenstein series to precision prec in the field $K$. Here's a rough description of how the algorithm works: we know $E_k = const + \sum_n sigma(n,k-1) q^n$. Now, we basically just compute all the $\sigma(n,k-1)$ simultaneous...
ae0a4f1be121d0b5cd96f36d12d796a7dabacb15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ae0a4f1be121d0b5cd96f36d12d796a7dabacb15/eis_series.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 291, 275, 334, 13685, 67, 10222, 67, 85, 2749, 12, 79, 16, 13382, 33, 2163, 16, 1475, 33, 53, 53, 4672, 436, 8395, 2000, 326, 271, 85, 8, 17, 2749, 12162, 434, 326, 3119, 271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 291, 275, 334, 13685, 67, 10222, 67, 85, 2749, 12, 79, 16, 13382, 33, 2163, 16, 1475, 33, 53, 53, 4672, 436, 8395, 2000, 326, 271, 85, 8, 17, 2749, 12162, 434, 326, 3119, 271, ...
if not self.closed:
if not self._fp.closed:
def rename(self): if not self.closed: self._fp.close() rename(self.temp, localpath(self.__name))
0d691653bec249f09df0fa19fd398bedd2bf146a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/0d691653bec249f09df0fa19fd398bedd2bf146a/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 12, 2890, 4672, 309, 486, 365, 6315, 7944, 18, 12204, 30, 365, 6315, 7944, 18, 4412, 1435, 6472, 12, 2890, 18, 5814, 16, 1191, 803, 12, 2890, 16186, 529, 3719, 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, 6472, 12, 2890, 4672, 309, 486, 365, 6315, 7944, 18, 12204, 30, 365, 6315, 7944, 18, 4412, 1435, 6472, 12, 2890, 18, 5814, 16, 1191, 803, 12, 2890, 16186, 529, 3719, 2, -100, -100, -10...
self.assertEquals( x._getAttr('nonamespaceURI') , '1') self.assertEquals( x._getAttr('NonenamespaceURI') , '2') self.assertEquals( x._getAttr(('http://some/namespace', 'namespaceURIattr1')) , '3') self.assertEquals( x._getAttr(('http://some/other/namespace', 'namespaceURIattr2')) , '4')
self.assertEquals( x._getAttr('nonamespaceURI') , 1) self.assertEquals( x._getAttr('NonenamespaceURI') , 2) self.assertEquals( x._getAttr(('http://some/namespace', 'namespaceURIattr1')) , 3) self.assertEquals( x._getAttr(('http://some/other/namespace', 'namespaceURIattr2')) , 4)
def testInstantiations(self): # string, ENTITY, ID, IDREF, language, Name, NCName, # NMTOKEN, QName, untypedType for t in (stringType, ENTITYType, IDType, IDREFType, languageType, NameType, NCNameType, NMTOKENType, QNameType, untypedType): # First some things that shouldn't be taken as the current type
6f1779a5fcc6109b4303b3cf918a9484d60ac61c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/6f1779a5fcc6109b4303b3cf918a9484d60ac61c/SOAPtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 10675, 77, 1012, 12, 2890, 4672, 468, 533, 16, 17020, 16, 1599, 16, 1599, 10771, 16, 2653, 16, 1770, 16, 423, 39, 461, 16, 468, 423, 6152, 6239, 16, 16723, 16, 14385, 559, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 10675, 77, 1012, 12, 2890, 4672, 468, 533, 16, 17020, 16, 1599, 16, 1599, 10771, 16, 2653, 16, 1770, 16, 423, 39, 461, 16, 468, 423, 6152, 6239, 16, 16723, 16, 14385, 559, 364, ...
self.header({'Set-Cookie': 'roundup_user="%s"; Path="%s";'%(user, path)})
self.header({'Set-Cookie': 'roundup_user="%s"; expires="%s"; Path="%s";' % ( user, expire, path)})
def set_cookie(self, user, password): # construct the cookie user = binascii.b2a_base64('%s:%s'%(user, password)).strip() path = '/'.join((self.env['SCRIPT_NAME'], self.env['INSTANCE_NAME'])) self.header({'Set-Cookie': 'roundup_user="%s"; Path="%s";'%(user, path)})
e7be78766d1d1e1e549184468ed3a2edb769c253 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/e7be78766d1d1e1e549184468ed3a2edb769c253/cgi_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8417, 12, 2890, 16, 729, 16, 2201, 4672, 468, 4872, 326, 3878, 729, 273, 28222, 18, 70, 22, 69, 67, 1969, 1105, 29909, 87, 5319, 87, 11, 17105, 1355, 16, 2201, 13, 2934, 640...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8417, 12, 2890, 16, 729, 16, 2201, 4672, 468, 4872, 326, 3878, 729, 273, 28222, 18, 70, 22, 69, 67, 1969, 1105, 29909, 87, 5319, 87, 11, 17105, 1355, 16, 2201, 13, 2934, 640...
pylab.loglog(summary.nonplayground_ifar[on_instruments], N, 'k', linewidth=2) pylab.hold(1) N = numpy.arange(len(summary.background_ifar[on_instruments])) + 1
N = numpy.arange(len(summary.background_ifar[on_instruments]), dtype = "double") + 1.0
def update_from_db(self, filename, live_time_program = "thinca", vetoes_name = "vetoes", verbose = False): working_filename = dbtables.get_connection_filename(filename, tmp_path = None, verbose = verbose) connection = sqlite3.connect(working_filename)
a39e00076e205bedb63be80fd33ae84bac1abf61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/a39e00076e205bedb63be80fd33ae84bac1abf61/far_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2080, 67, 1966, 12, 2890, 16, 1544, 16, 8429, 67, 957, 67, 12890, 273, 315, 451, 267, 5353, 3113, 331, 11453, 281, 67, 529, 273, 315, 90, 11453, 281, 3113, 3988, 273, 1083, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2080, 67, 1966, 12, 2890, 16, 1544, 16, 8429, 67, 957, 67, 12890, 273, 315, 451, 267, 5353, 3113, 331, 11453, 281, 67, 529, 273, 315, 90, 11453, 281, 3113, 3988, 273, 1083, ...
self.nntp_host = ''
self.nntp_host = mm_cfg.DEFAULT_NNTP_HOST
def InitVars(self): # Configurable self.nntp_host = '' self.linked_newsgroup = '' self.gateway_to_news = 0 self.gateway_to_mail = 0
be58a66ae7277ec12f35f3869426e498e17bb0c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/be58a66ae7277ec12f35f3869426e498e17bb0c1/GatewayManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 5555, 12, 2890, 4672, 468, 29312, 365, 18, 82, 496, 84, 67, 2564, 3639, 273, 9740, 67, 7066, 18, 5280, 67, 50, 1784, 52, 67, 8908, 365, 18, 17738, 67, 2704, 1055, 656, 273, 875...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 5555, 12, 2890, 4672, 468, 29312, 365, 18, 82, 496, 84, 67, 2564, 3639, 273, 9740, 67, 7066, 18, 5280, 67, 50, 1784, 52, 67, 8908, 365, 18, 17738, 67, 2704, 1055, 656, 273, 875...
tokens = yaml.parse(input, Parser=iter)
tokens = yaml.scan(input)
def highlight(self, input): if isinstance(input, str): if input.startswith(codecs.BOM_UTF16_LE): input = unicode(input, 'utf-16-le') elif input.startswith(codecs.BOM_UTF16_BE): input = unicode(input, 'utf-16-be') else: input = unicode(input, 'utf-8') tokens = yaml.parse(input, Parser=iter) events = yaml.parse(input) ma...
93bb4703205166d49ced19c621bf120298018ddc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12018/93bb4703205166d49ced19c621bf120298018ddc/yaml_hl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8839, 12, 2890, 16, 810, 4672, 309, 1549, 12, 2630, 16, 609, 4672, 309, 810, 18, 17514, 1918, 12, 710, 2143, 18, 38, 1872, 67, 5159, 2313, 67, 900, 4672, 810, 273, 5252, 12, 2630, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8839, 12, 2890, 16, 810, 4672, 309, 1549, 12, 2630, 16, 609, 4672, 309, 810, 18, 17514, 1918, 12, 710, 2143, 18, 38, 1872, 67, 5159, 2313, 67, 900, 4672, 810, 273, 5252, 12, 2630, 16...
def keys( self ):
def keys( self ):
def keys( self ): """Returns all named result keys.""" return self.__tokdict.keys()
f734f22ba11a967624c3b1351b79174f1d17c2ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3554/f734f22ba11a967624c3b1351b79174f1d17c2ac/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1311, 12, 365, 262, 30, 3536, 1356, 777, 4141, 563, 1311, 12123, 327, 365, 16186, 17692, 1576, 18, 2452, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1311, 12, 365, 262, 30, 3536, 1356, 777, 4141, 563, 1311, 12123, 327, 365, 16186, 17692, 1576, 18, 2452, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return c.signed_in_person.is_speaker()
return c.signed_in_person.is_speaker()
def is_speaker(self): try: return c.signed_in_person.is_speaker() except: return False
ccb93d09a8e3db8979672a736d611efc4b76b6af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12856/ccb93d09a8e3db8979672a736d611efc4b76b6af/registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 87, 347, 6388, 12, 2890, 4672, 775, 30, 327, 276, 18, 5679, 67, 267, 67, 12479, 18, 291, 67, 87, 347, 6388, 1435, 1335, 30, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 87, 347, 6388, 12, 2890, 4672, 775, 30, 327, 276, 18, 5679, 67, 267, 67, 12479, 18, 291, 67, 87, 347, 6388, 1435, 1335, 30, 327, 1083, 2, -100, -100, -100, -100, -100, -100,...
return stp, f, g
return stp
def step(self, stp, f, g, c1, c2, xtol, isave, dsave): if self.task[:5] == 'START':
8951d1c402f77cba079d6d7c95cb54c0cd19b294 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/8951d1c402f77cba079d6d7c95cb54c0cd19b294/linesearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 384, 84, 16, 284, 16, 314, 16, 276, 21, 16, 276, 22, 16, 619, 3490, 16, 353, 836, 16, 3780, 836, 4672, 309, 365, 18, 4146, 10531, 25, 65, 422, 296, 7570, 4278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 384, 84, 16, 284, 16, 314, 16, 276, 21, 16, 276, 22, 16, 619, 3490, 16, 353, 836, 16, 3780, 836, 4672, 309, 365, 18, 4146, 10531, 25, 65, 422, 296, 7570, 4278, ...
self._console.error("Namespace could not be detected!") sys.exit(1)
raise ValueError("Namespace could not be detected!")
def _detectNamespace(self, path): if not os.path.exists(path): self._console.error("The given path does not contains a class folder: %s" % path) sys.exit(1)
8b4b0c8973aec5a80d278fabe144face9c23b31d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/8b4b0c8973aec5a80d278fabe144face9c23b31d/LibraryPath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16518, 3402, 12, 2890, 16, 589, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 365, 6315, 8698, 18, 1636, 2932, 1986, 864, 589, 1552, 486, 1914, 279, 667, 3009, 30, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 16518, 3402, 12, 2890, 16, 589, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 365, 6315, 8698, 18, 1636, 2932, 1986, 864, 589, 1552, 486, 1914, 279, 667, 3009, 30, 738, ...
if pathname[0] == '/':
if pathname and pathname[0] == '/':
def convert_path (pathname): """Return 'pathname' as a name that will work on the native filesystem, i.e. split it on '/' and put it back together again using the current directory separator. Needed because filenames in the setup script are always supplied in Unix style, and have to be converted to the local conventio...
0b5c11252da09a244cb39de47909ed07f4fa82cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0b5c11252da09a244cb39de47909ed07f4fa82cf/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 803, 261, 28336, 4672, 3536, 990, 296, 28336, 11, 487, 279, 508, 716, 903, 1440, 603, 326, 6448, 6496, 16, 277, 18, 73, 18, 1416, 518, 603, 2023, 471, 1378, 518, 1473, 9475, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 803, 261, 28336, 4672, 3536, 990, 296, 28336, 11, 487, 279, 508, 716, 903, 1440, 603, 326, 6448, 6496, 16, 277, 18, 73, 18, 1416, 518, 603, 2023, 471, 1378, 518, 1473, 9475, ...
""" This is a shorthand for 'print_exception(*sys.exc_info(), limit, file)'. """ if file is None: file = sys.stderr print_exception(*(sys.exc_info() + (limit, file)))
"""This is a shorthand for 'print_exception(sys.last_type, sys.last_value, sys.last_traceback, limit, file)'.""" if file is None: file = sys.stderr print_exception(sys.last_type, sys.last_value, sys.last_traceback, limit, file)
def print_last(limit=None, file=None): """ This is a shorthand for 'print_exception(*sys.exc_info(), limit, file)'. """ if file is None: file = sys.stderr print_exception(*(sys.exc_info() + (limit, file)))
3e6c335ae0a9d7dc9eaffe8c372571d098ccba39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/3e6c335ae0a9d7dc9eaffe8c372571d098ccba39/traceback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 2722, 12, 3595, 33, 7036, 16, 585, 33, 7036, 4672, 3536, 2503, 353, 279, 21310, 364, 296, 1188, 67, 4064, 12, 9499, 18, 2722, 67, 723, 16, 2589, 18, 2722, 67, 1132, 16, 258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 2722, 12, 3595, 33, 7036, 16, 585, 33, 7036, 4672, 3536, 2503, 353, 279, 21310, 364, 296, 1188, 67, 4064, 12, 9499, 18, 2722, 67, 723, 16, 2589, 18, 2722, 67, 1132, 16, 258...
numol.curpos =self.curpos+offset
numol.curpos = self.curpos+offset
def copy(self, dad, offset): """Copy the molecule to a new molecule. offset tells where it will go relative to the original. There should be a rotation parameter but there isn't. """ pairlis = [] ndix = {} numol = molecule(self.assy, gensym(self.name)) for a in self.atoms.itervalues(): na = a.copy(numol) pairlis += [(a...
aee9ddd500528fc1707d554edb28bccc7bb6e383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/aee9ddd500528fc1707d554edb28bccc7bb6e383/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 302, 361, 16, 1384, 4672, 3536, 2951, 326, 13661, 358, 279, 394, 13661, 18, 1384, 24551, 1625, 518, 903, 1960, 3632, 358, 326, 2282, 18, 6149, 1410, 506, 279, 6752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 302, 361, 16, 1384, 4672, 3536, 2951, 326, 13661, 358, 279, 394, 13661, 18, 1384, 24551, 1625, 518, 903, 1960, 3632, 358, 326, 2282, 18, 6149, 1410, 506, 279, 6752, ...
final_body += (tabs_before)*"\t" + linebreak_html
final_body += (tabs_before)*"\t"
def email_quoted_txt2html(text, tabs_before=0, indent_txt='>>', linebreak_txt="\n", indent_html=('<div class="commentbox">', "</div>"), linebreak_html='<br/>'): """ Takes a typical mail quoted text, e.g.: hello, you told me: >> Your mother was a hamster and your father smelt of elderberries I must tell you that I'm not...
4b69bb84eaaf090626b1bce667fcbb14a954379c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/4b69bb84eaaf090626b1bce667fcbb14a954379c/webmessage_mailutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 15179, 67, 5830, 22, 2620, 12, 955, 16, 10920, 67, 5771, 33, 20, 16, 3504, 67, 5830, 2218, 34, 1870, 16, 980, 8820, 67, 5830, 1546, 64, 82, 3113, 3504, 67, 2620, 33, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 15179, 67, 5830, 22, 2620, 12, 955, 16, 10920, 67, 5771, 33, 20, 16, 3504, 67, 5830, 2218, 34, 1870, 16, 980, 8820, 67, 5830, 1546, 64, 82, 3113, 3504, 67, 2620, 33, 2668, ...
self.add(self.text_properties_frame) self.set_spacing(10)
self.contents.pack_start(self.text_properties_frame, False, False) self.contents.set_spacing(10) self.add_with_viewport(self.contents)
def __init__(self, image_width = 0, image_height = 0, pixbuf = 0, x = 0, y = 0, width = 0, height = 0, ocr_engines_list = []): super(BoxEditor, self).__init__() self.pixbuf = pixbuf self.image_window = gtk.ScrolledWindow() self.image_window.set_size_request(200, 200) self.image_window.set_policy(gtk.POLICY_AUTOMATIC, g...
0aaed0a9481d2dc56c4287a7a5e7804d4fe8ab22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3764/0aaed0a9481d2dc56c4287a7a5e7804d4fe8ab22/widgetPresenter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1316, 67, 2819, 273, 374, 16, 1316, 67, 4210, 273, 374, 16, 11871, 4385, 273, 374, 16, 619, 273, 374, 16, 677, 273, 374, 16, 1835, 273, 374, 16, 2072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2819, 273, 374, 16, 1316, 67, 4210, 273, 374, 16, 11871, 4385, 273, 374, 16, 619, 273, 374, 16, 677, 273, 374, 16, 1835, 273, 374, 16, 2072, ...
ext_args['macros'] = [('ATLAS_INFO',atlas_version)]
ext_args['define_macros'] = [('ATLAS_INFO',atlas_version)]
def configuration(parent_package=''): from scipy_distutils.core import Extension from scipy_distutils.misc_util import fortran_library_item, dot_join,\ SourceGenerator, get_path, default_config_dict, get_build_temp from scipy_distutils.system_info import get_info,dict_append,\ AtlasNotFoundError,LapackNotFoundError,Bla...
303e897a5aa28fc412316a62bc8f381a81cca8a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/303e897a5aa28fc412316a62bc8f381a81cca8a7/setup_linalg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 11, 4672, 628, 10966, 67, 4413, 5471, 18, 3644, 1930, 10021, 628, 10966, 67, 4413, 5471, 18, 23667, 67, 1367, 1930, 364, 13171, 67, 12083, 67, 1726, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 11, 4672, 628, 10966, 67, 4413, 5471, 18, 3644, 1930, 10021, 628, 10966, 67, 4413, 5471, 18, 23667, 67, 1367, 1930, 364, 13171, 67, 12083, 67, 1726, 16, ...
config.usage.showdish = ConfigYesNo(default = False)
config.usage.showdish = ConfigYesNo(default = True)
def InitUsageConfig(): config.usage = ConfigSubsection(); config.usage.showdish = ConfigYesNo(default = False) config.usage.multibouquet = ConfigYesNo(default = False) config.usage.quickzap_bouquet_change = ConfigYesNo(default = False) config.usage.e1like_radio_mode = ConfigYesNo(default = False) config.usage.infobar_t...
2701861d66fd17ed825de7bbfdea8e000fdb30b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/2701861d66fd17ed825de7bbfdea8e000fdb30b4/UsageConfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 5357, 809, 13332, 642, 18, 9167, 273, 1903, 1676, 3464, 5621, 642, 18, 9167, 18, 4500, 72, 1468, 273, 1903, 22352, 2279, 12, 1886, 273, 1053, 13, 642, 18, 9167, 18, 5421, 495, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 5357, 809, 13332, 642, 18, 9167, 273, 1903, 1676, 3464, 5621, 642, 18, 9167, 18, 4500, 72, 1468, 273, 1903, 22352, 2279, 12, 1886, 273, 1053, 13, 642, 18, 9167, 18, 5421, 495, 13...
+(88*kmin + 64*kmin**3/k**2)*(np.sqrt(k+kmin) + np.sqrt(k-kmin)))
+(-88*kmin + 64*kmin**3/k**2)*(np.sqrt(k+kmin) + np.sqrt(k-kmin)))
def bterm_analytic(A, k, kmin, kmax): b1a = ( np.log( (np.sqrt(kmax-k) + np.sqrt(kmax)) / ( np.sqrt(kmax+k) +np.sqrt(kmax) ) ) ) b1b = ( np.log( (np.sqrt(k+kmin) +np.sqrt(kmin)) / (np.sqrt(k)) ) + 0.5*np.pi) b1c = ( -np.arctan(np.sqrt(kmin)/(np.sqrt(k-kmin)))) b1 = 252 * k**2 * (b1a + b1b + b1c) b2 = np.sqrt(kmax) * (...
f438fdb0ad5bf597b3481ed5f03ded3b145d951a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/f438fdb0ad5bf597b3481ed5f03ded3b145d951a/errors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 6408, 67, 304, 7834, 335, 12, 37, 16, 417, 16, 417, 1154, 16, 417, 1896, 4672, 324, 21, 69, 273, 261, 1130, 18, 1330, 12, 261, 6782, 18, 24492, 12, 79, 1896, 17, 79, 13, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 6408, 67, 304, 7834, 335, 12, 37, 16, 417, 16, 417, 1154, 16, 417, 1896, 4672, 324, 21, 69, 273, 261, 1130, 18, 1330, 12, 261, 6782, 18, 24492, 12, 79, 1896, 17, 79, 13, 397, ...
if 'real_mpfi' in base: print base
def need_to_cython(deps, filename, outfile): """ INPUT: filename -- The name of a cython file in the SAGE source tree. outfile -- The name of the corresponding c or cpp file in the build directory. OUTPUT: bool -- whether or not outfile must be regenerated. """ base = os.path.splitext(filename)[0] pxd = base+'.pxd' ...
96807a5cc3a62c43ea0eebd73ffeb452c7a8ccbf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/96807a5cc3a62c43ea0eebd73ffeb452c7a8ccbf/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1608, 67, 869, 67, 2431, 3041, 12, 14877, 16, 1544, 16, 8756, 4672, 3536, 12943, 30, 1544, 1493, 1021, 508, 434, 279, 6143, 3041, 585, 316, 326, 348, 2833, 1084, 2151, 18, 8756, 1493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1608, 67, 869, 67, 2431, 3041, 12, 14877, 16, 1544, 16, 8756, 4672, 3536, 12943, 30, 1544, 1493, 1021, 508, 434, 279, 6143, 3041, 585, 316, 326, 348, 2833, 1084, 2151, 18, 8756, 1493, ...
for ident in doc.canonical_name]+crumbs
for ident in doc.canonical_name[:-1]]+crumbs
def breadcrumbs(self, doc): crumbs = [self._crumb(doc)]
dc4c4ce7e7eaf9ed22525aa996b282990149c11f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dc4c4ce7e7eaf9ed22525aa996b282990149c11f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18414, 12, 2890, 16, 997, 4672, 4422, 10099, 273, 306, 2890, 6315, 3353, 3592, 12, 2434, 25887, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18414, 12, 2890, 16, 997, 4672, 4422, 10099, 273, 306, 2890, 6315, 3353, 3592, 12, 2434, 25887, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
the chain optimization).
the chain optimization). It also performs a Skittles evaluation of the junctions between the "C" and "N" atoms of neighbouring residues.
def calc_mean_biso_tls(chain, cpartition): """Calculates the mean B value per residue in the chain (as calculated in the chain optimization). """ chain_id = chain.chain_id num_tls = cpartition.num_tls_segments() num_res = chain.count_fragments() biso = numpy.zeros(num_res, float) for i, tls in enumerate(cpartition.ite...
927f30c52e2fba131cd408196ada5dd0e1ef93a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/927f30c52e2fba131cd408196ada5dd0e1ef93a9/tls_calcs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 7079, 67, 70, 9699, 67, 17116, 12, 5639, 16, 276, 10534, 4672, 3536, 10587, 326, 3722, 605, 460, 1534, 14765, 316, 326, 2687, 261, 345, 8894, 316, 326, 2687, 14850, 2934, 2597,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 7079, 67, 70, 9699, 67, 17116, 12, 5639, 16, 276, 10534, 4672, 3536, 10587, 326, 3722, 605, 460, 1534, 14765, 316, 326, 2687, 261, 345, 8894, 316, 326, 2687, 14850, 2934, 2597,...
ipvt = arange(n)
ipvt = numpy.arange(n)
def calc_covar(self, rr, ipvt=None, tol=1.e-14):
14558c711c4693ee25ced2a48d6eaf300224bc75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/682/14558c711c4693ee25ced2a48d6eaf300224bc75/mpfit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 2894, 1401, 12, 2890, 16, 8354, 16, 9205, 88, 33, 7036, 16, 6085, 33, 21, 18, 73, 17, 3461, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7029, 67, 2894, 1401, 12, 2890, 16, 8354, 16, 9205, 88, 33, 7036, 16, 6085, 33, 21, 18, 73, 17, 3461, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
extension_attributes=extension_attributes)
extension_attributes=extension_attributes, text=text)
def __init__(self, extension_elements=None, extension_attributes=None, text=None): UriEnumElement.__init__(self, tag='transparency', enum_map=Transparency.transparency_enum, extension_elements=extension_elements, extension_attributes=extension_attributes)
0ba6315ab8118b874d87e51c8f024bfc6f59e8a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/0ba6315ab8118b874d87e51c8f024bfc6f59e8a9/gcalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2710, 67, 6274, 33, 7036, 16, 2710, 67, 4350, 33, 7036, 16, 977, 33, 7036, 4672, 10693, 3572, 1046, 16186, 2738, 972, 12, 2890, 16, 1047, 2218, 2338, 182...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2710, 67, 6274, 33, 7036, 16, 2710, 67, 4350, 33, 7036, 16, 977, 33, 7036, 4672, 10693, 3572, 1046, 16186, 2738, 972, 12, 2890, 16, 1047, 2218, 2338, 182...
cty.c_int, [STRING],
cty.c_int, [STRING],
def fl_get_pattern(): """ fl_get_pattern() -> pattern string """ retval = _fl_get_pattern() 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, 588, 67, 4951, 13332, 3536, 1183, 67, 588, 67, 4951, 1435, 317, 1936, 533, 3536, 225, 5221, 273, 389, 2242, 67, 588, 67, 4951, 1435, 327, 5221, 282, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 4951, 13332, 3536, 1183, 67, 588, 67, 4951, 1435, 317, 1936, 533, 3536, 225, 5221, 273, 389, 2242, 67, 588, 67, 4951, 1435, 327, 5221, 282, 2, -100, -100, -100, -100...
if portal.validate_email or data.get('mail_me'):
if data.get('mail_me') or (portal.validate_email and not data.get('password')):
def handle_join_success(self, data): portal = getUtility(ISiteRoot) registration = getToolByName(self.context, 'portal_registration') portal_props = getToolByName(self.context, 'portal_properties') props = portal_props.site_properties use_email_as_login = props.getProperty('use_email_as_login')
5c0fd9b4ac65e57b33b447eb28ff360caf5f7d81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12186/5c0fd9b4ac65e57b33b447eb28ff360caf5f7d81/register.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 5701, 67, 4768, 12, 2890, 16, 501, 4672, 11899, 273, 336, 6497, 12, 45, 21889, 13, 7914, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 14170, 6134, 11899, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 5701, 67, 4768, 12, 2890, 16, 501, 4672, 11899, 273, 336, 6497, 12, 45, 21889, 13, 7914, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 14170, 6134, 11899, 67,...
if num_devs == 0: if self.info.is_hvm(): self.destroyDevice('pci', devid, True)
if len(sxp.children(new_dev_sxp, 'dev')) == 0:
def pci_device_configure(self, dev_sxp, devid = 0): """Configure an existing pci device. @param dev_sxp: device configuration @type dev_sxp: SXP object (parsed config) @param devid: device id @type devid: int @return: Returns True if successfully updated device @rtype: boolean """ log.debug("XendDomainInfo...
30339f2af4dc617af3b9c770bbab984f3bb4fb6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/30339f2af4dc617af3b9c770bbab984f3bb4fb6b/XendDomainInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6125, 77, 67, 5964, 67, 14895, 12, 2890, 16, 4461, 67, 87, 23829, 16, 443, 1246, 273, 374, 4672, 3536, 11207, 392, 2062, 6125, 77, 2346, 18, 225, 632, 891, 4461, 67, 87, 23829, 30, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6125, 77, 67, 5964, 67, 14895, 12, 2890, 16, 4461, 67, 87, 23829, 16, 443, 1246, 273, 374, 4672, 3536, 11207, 392, 2062, 6125, 77, 2346, 18, 225, 632, 891, 4461, 67, 87, 23829, 30, 2...
parser.set_aliases({'license': 'licence'})
parser.set_aliases({'licence': 'license'})
def parse_command_line (self): """Parse the setup script's command line, taken from the 'script_args' instance attribute (which defaults to 'sys.argv[1:]' -- see 'setup()' in core.py). This list is first processed for "global options" -- options that set attributes of the Distribution instance. Then, it is alternatel...
939d6753f0b9ebc2cf9fde52026c78bbad592934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/939d6753f0b9ebc2cf9fde52026c78bbad592934/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3076, 67, 1369, 261, 2890, 4672, 3536, 3201, 326, 3875, 2728, 1807, 1296, 980, 16, 9830, 628, 326, 296, 4263, 67, 1968, 11, 791, 1566, 261, 12784, 3467, 358, 296, 9499, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3076, 67, 1369, 261, 2890, 4672, 3536, 3201, 326, 3875, 2728, 1807, 1296, 980, 16, 9830, 628, 326, 296, 4263, 67, 1968, 11, 791, 1566, 261, 12784, 3467, 358, 296, 9499, 18, 1...
flags = []
flags = 0
sage: 'divisors' in _search_src_or_doc('src', '^ *def prime', interact=False)
fb82be1d32fd4ead18b0899563ff0f5fcba1ceec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/fb82be1d32fd4ead18b0899563ff0f5fcba1ceec/sagedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 296, 2892, 291, 1383, 11, 316, 389, 3072, 67, 4816, 67, 280, 67, 2434, 2668, 4816, 2187, 10731, 380, 536, 17014, 2187, 16592, 33, 8381, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 296, 2892, 291, 1383, 11, 316, 389, 3072, 67, 4816, 67, 280, 67, 2434, 2668, 4816, 2187, 10731, 380, 536, 17014, 2187, 16592, 33, 8381, 13, 2, -100, -100, -100, -100, -100, -10...
def __print_to_tty(string):
def _print_to_tty(string):
def __print_to_tty(string): open('/dev/tty', 'w').write(string + '\n')
c003b92241dd560e0d13bfeb5a557e18ea6191ee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/c003b92241dd560e0d13bfeb5a557e18ea6191ee/subcommand.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 869, 67, 5512, 12, 1080, 4672, 1696, 2668, 19, 5206, 19, 5512, 2187, 296, 91, 16063, 2626, 12, 1080, 397, 2337, 82, 6134, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 869, 67, 5512, 12, 1080, 4672, 1696, 2668, 19, 5206, 19, 5512, 2187, 296, 91, 16063, 2626, 12, 1080, 397, 2337, 82, 6134, 282, 2, -100, -100, -100, -100, -100, -100, -10...
if notification_data.code!=200:
if not hasattr(notification_data, 'code') or notification_data.code!=200:
def log_state_unregistered(self, notification_data): if notification_data.code!=200: self.registered_count = 0 return self.log_state_default(notification_data)
3722b8c96952db213bacc819af9891ae76e436ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/3722b8c96952db213bacc819af9891ae76e436ce/logstate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 2019, 67, 318, 14327, 12, 2890, 16, 3851, 67, 892, 4672, 309, 486, 3859, 12, 9927, 67, 892, 16, 296, 710, 6134, 578, 3851, 67, 892, 18, 710, 5, 33, 6976, 30, 365, 18, 1432...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 2019, 67, 318, 14327, 12, 2890, 16, 3851, 67, 892, 4672, 309, 486, 3859, 12, 9927, 67, 892, 16, 296, 710, 6134, 578, 3851, 67, 892, 18, 710, 5, 33, 6976, 30, 365, 18, 1432...
sage: J.basis()
sage: J.basis()
def basis(self): """ Return an immutable sequence of elements of this ideal (note: their parent is the number field) that form a basis for this ideal viewed as a ZZ-module.
1500189e7c96fb63b9ce3a0b2e9857b8fcf2164f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1500189e7c96fb63b9ce3a0b2e9857b8fcf2164f/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10853, 12, 2890, 4672, 3536, 2000, 392, 11732, 3102, 434, 2186, 434, 333, 23349, 261, 7652, 30, 3675, 982, 353, 326, 1300, 652, 13, 716, 646, 279, 10853, 364, 333, 23349, 1476, 329, 487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10853, 12, 2890, 4672, 3536, 2000, 392, 11732, 3102, 434, 2186, 434, 333, 23349, 261, 7652, 30, 3675, 982, 353, 326, 1300, 652, 13, 716, 646, 279, 10853, 364, 333, 23349, 1476, 329, 487,...
self.inimage = 1 self.push('image', 0)
def _start_image(self, attrsD): self.inimage = 1 self.push('image', 0) context = self._getContext() context.setdefault('image', FeedParserDict())
44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 2730, 12, 2890, 16, 3422, 40, 4672, 819, 273, 365, 6315, 29120, 1435, 819, 18, 542, 1886, 2668, 2730, 2187, 14013, 2678, 5014, 10756, 225, 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, 389, 1937, 67, 2730, 12, 2890, 16, 3422, 40, 4672, 819, 273, 365, 6315, 29120, 1435, 819, 18, 542, 1886, 2668, 2730, 2187, 14013, 2678, 5014, 10756, 225, 2, -100, -100, -100, -100, -100,...
pid, sts = os.waitpid(self.pid, os.WNOHANG)
pid, sts = _waitpid(self.pid, _WNOHANG)
def _internal_poll(self, _deadstate=None): """Check if child process has terminated. Returns returncode attribute.""" if self.returncode is None: try: pid, sts = os.waitpid(self.pid, os.WNOHANG) if pid == self.pid: self._handle_exitstatus(sts) except os.error: if _deadstate is not None: self.returncode = _deadstate re...
42a0ba7b2c88b181bce603a57c69a66539dab693 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/42a0ba7b2c88b181bce603a57c69a66539dab693/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7236, 67, 13835, 12, 2890, 16, 389, 22097, 2019, 33, 7036, 4672, 3536, 1564, 309, 1151, 1207, 711, 14127, 18, 225, 2860, 18125, 1566, 12123, 309, 365, 18, 2463, 710, 353, 599, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7236, 67, 13835, 12, 2890, 16, 389, 22097, 2019, 33, 7036, 4672, 3536, 1564, 309, 1151, 1207, 711, 14127, 18, 225, 2860, 18125, 1566, 12123, 309, 365, 18, 2463, 710, 353, 599, 30, ...
if line.startswith('+++ '): words = line.split(None, 2) if len(words[1]) < len(filename): filename = words[1] groups = [] output.append({'filename' : filename, 'oldrev' : fromrev, 'newrev' : 'new', 'diff' : groups}) continue if line.startswith('Index: ') or line.startswith('======') or line == '': continue if groups...
words = line.split(None, 2) filename, fromrev = words[1], 'old' groups, blocks = None, None line = lines.next() if not line.startswith('+++ '):
def htmlify(match): div, mod = divmod(len(match.group(0)), 2) return div * '&nbsp; ' + mod * '&nbsp;'
81b657b816d8b094d2886fe500c5decefefc5342 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/81b657b816d8b094d2886fe500c5decefefc5342/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 1164, 12, 1916, 4672, 3739, 16, 681, 273, 26105, 12, 1897, 12, 1916, 18, 1655, 12, 20, 13, 3631, 576, 13, 327, 3739, 380, 5183, 10600, 31, 296, 397, 681, 380, 5183, 10600, 4359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 1164, 12, 1916, 4672, 3739, 16, 681, 273, 26105, 12, 1897, 12, 1916, 18, 1655, 12, 20, 13, 3631, 576, 13, 327, 3739, 380, 5183, 10600, 31, 296, 397, 681, 380, 5183, 10600, 4359, ...
keys.insert(pos, name)
if oldpos >= pos: keys.insert(pos, name) else: keys.insert(pos - 1, name)
def _moveFieldToPosition(self, name, pos): """Moves a field with the name 'name' to the position 'pos'
ae082b0af04726feda5f2163157ab8d3f67e9526 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/ae082b0af04726feda5f2163157ab8d3f67e9526/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8501, 974, 774, 2555, 12, 2890, 16, 508, 16, 949, 4672, 3536, 19297, 279, 652, 598, 326, 508, 296, 529, 11, 358, 326, 1754, 296, 917, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8501, 974, 774, 2555, 12, 2890, 16, 508, 16, 949, 4672, 3536, 19297, 279, 652, 598, 326, 508, 296, 529, 11, 358, 326, 1754, 296, 917, 11, 2, -100, -100, -100, -100, -100, -100, ...
raise TypeError('argument 1: expected string, %s found' % type(s).__name__)
raise TypeError('argument 1: expected string, %s found' % type(s).__name__)
def atol(*args): """atol(s [,base]) -> long Return the long integer represented by the string s in the given base, which defaults to 10. The string s must consist of one or more digits, possibly preceded by a sign. If base is 0, it is chosen from the leading characters of s, 0 for octal, 0x or 0X for hexadecimal. I...
857c4c36b962c6e74559e045c7fb43177dd5bcea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/857c4c36b962c6e74559e045c7fb43177dd5bcea/string.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26322, 30857, 1968, 4672, 3536, 270, 355, 12, 87, 306, 16, 1969, 5717, 317, 1525, 225, 2000, 326, 1525, 3571, 10584, 635, 326, 533, 272, 316, 326, 864, 1026, 16, 1492, 3467, 358, 1728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26322, 30857, 1968, 4672, 3536, 270, 355, 12, 87, 306, 16, 1969, 5717, 317, 1525, 225, 2000, 326, 1525, 3571, 10584, 635, 326, 533, 272, 316, 326, 864, 1026, 16, 1492, 3467, 358, 1728, ...
class Spectrum(MetaArray): """ This is a MetaArray, but with the metadata typemap specified. """ _metadata_type = SpectrumMetadata pass class SpectrumList(MetaArrayList): """ A list of Spectra with a few convenience functions defined for all lists of spectra. Intended to be subclassed. """ _itemtype = Spectrum
class TimeSeries(MetaArray): """ This is a MetaArray, but with the metadata typemap specified. """ _metadata_type = TimeSeriesMetadata def ordinates(self): """ Return an single-precision ndarray containing the times at which this TimeSeries is sampled. """ m = self.metadata segs = m.segments segs.coalesce() result =...
def __ior__(self, other): """ Merge metadata. No repeats. Throw error on incompatible spectra. Let None act as identity. """ if other is None: return self if self is None: return other # check that metadata are compatible for merging assert numpy.alltrue([getattr(self, attr) == getattr(other, attr) \ for attr in sel...
e04c61ad8714219b9691d55d7b3e2b6e6734a660 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/e04c61ad8714219b9691d55d7b3e2b6e6734a660/metaarray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9659, 972, 12, 2890, 16, 1308, 4672, 3536, 8964, 1982, 18, 225, 2631, 31387, 18, 225, 3743, 555, 603, 24430, 23242, 354, 18, 10559, 599, 1328, 487, 4215, 18, 3536, 309, 1308, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9659, 972, 12, 2890, 16, 1308, 4672, 3536, 8964, 1982, 18, 225, 2631, 31387, 18, 225, 3743, 555, 603, 24430, 23242, 354, 18, 10559, 599, 1328, 487, 4215, 18, 3536, 309, 1308, 353, ...
if self.enable is not None and conf_obj.name not in self.enable:
params = startup() names = set([params["bot_name"], params["module"]]) if self.disable is not None and names & set(self.disable): continue if self.enable is not None and not (names & set(self.enable)):
def configs(self): for conf_obj in set(config.load_configs(os.path.abspath(self.config))): if self.disable is not None and conf_obj.name in self.disable: continue if self.enable is not None and conf_obj.name not in self.enable: continue yield conf_obj
b0641b14584d862675d92cee2d748fecba505375 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/b0641b14584d862675d92cee2d748fecba505375/startup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6784, 12, 2890, 4672, 364, 2195, 67, 2603, 316, 444, 12, 1425, 18, 945, 67, 10955, 12, 538, 18, 803, 18, 5113, 803, 12, 2890, 18, 1425, 3719, 4672, 309, 365, 18, 8394, 353, 486, 599,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6784, 12, 2890, 4672, 364, 2195, 67, 2603, 316, 444, 12, 1425, 18, 945, 67, 10955, 12, 538, 18, 803, 18, 5113, 803, 12, 2890, 18, 1425, 3719, 4672, 309, 365, 18, 8394, 353, 486, 599,...
toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/63.png\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Dra...
toolsSelectMoleculesActionText = \ "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p>"\ "<img source=\"ui/actions/Toolbars/Standard/63.png\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the "\ "mouse.</p>"\ "<p>"\ "<b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>...
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their...
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 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, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, ...
for line in unhandledFile:
for line in open(os.path.join(cwd, '.git', 'svn', branch, 'unhandled.log')):
def _get_externals(self, buildscript, branch="git-svn"): cwd = self.get_checkoutdir() try: externals = {} match = None unhandledFile = open(cwd + os.path.join(os.sep, '.git', 'svn', branch, 'unhandled.log'), 'r') external_expr = re.compile(r"\+dir_prop: (.*?) svn:externals (.*)$") rev_expr = re.compile(r"^r(\d+)$") #th...
1a224b0a56aeaf262d7650245ef6abcabae0d850 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4596/1a224b0a56aeaf262d7650245ef6abcabae0d850/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 338, 798, 1031, 12, 2890, 16, 1361, 4263, 16, 3803, 1546, 6845, 17, 31505, 6, 4672, 7239, 273, 365, 18, 588, 67, 17300, 1214, 1435, 775, 30, 18885, 1031, 273, 2618, 845, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 338, 798, 1031, 12, 2890, 16, 1361, 4263, 16, 3803, 1546, 6845, 17, 31505, 6, 4672, 7239, 273, 365, 18, 588, 67, 17300, 1214, 1435, 775, 30, 18885, 1031, 273, 2618, 845, ...
line()
line("commentsbefore-4")
def compileNode(node, enableDebug=False): global indent global pretty if node.getChild("commentsBefore", False) != None: line() for comment in node.getChild("commentsBefore").children: # Additional new lines before big comment if comment.get("detail", False) == "multi": line() pretty += comment.get("text") # New ...
9899d5c45563dd4f9057d173402244e0cf855c51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/9899d5c45563dd4f9057d173402244e0cf855c51/prettyprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 16, 4237, 2829, 33, 8381, 4672, 225, 2552, 3504, 2552, 7517, 282, 309, 756, 18, 588, 1763, 2932, 9231, 4649, 3113, 1083, 13, 480, 599, 30, 980, 2932, 9231, 5771, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 16, 4237, 2829, 33, 8381, 4672, 225, 2552, 3504, 2552, 7517, 282, 309, 756, 18, 588, 1763, 2932, 9231, 4649, 3113, 1083, 13, 480, 599, 30, 980, 2932, 9231, 5771, 1...
cmd = [wpa_pass_path, network['essid'], str(network['key'])]
cmd = [wpa_pass_path, str(network['essid']), str(network['key'])]
def GeneratePSK(self, network): """ Generate a PSK using wpa_passphrase.
12f2a32dfaf520f2e03aea1f1c07be0bd002e6be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/12f2a32dfaf520f2e03aea1f1c07be0bd002e6be/wnettools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 5857, 47, 12, 2890, 16, 2483, 4672, 3536, 6654, 279, 453, 11129, 1450, 6357, 69, 67, 5466, 9429, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 5857, 47, 12, 2890, 16, 2483, 4672, 3536, 6654, 279, 453, 11129, 1450, 6357, 69, 67, 5466, 9429, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for key in keys: if key not in self.excludes: missing.append(key) return missing
maybe = [] for name in self.badmodules: if name in self.excludes: continue i = name.rfind(".") if i < 0: missing.append(name) continue subname = name[i+1:] pkgname = name[:i] pkg = self.modules.get(pkgname) if pkg is not None: if pkgname in self.badmodules[name]: missing.append(name) elif subname in pkg.globalnames: ...
def any_missing(self): keys = self.badmodules.keys() missing = [] for key in keys: if key not in self.excludes: # Missing, and its not supposed to be missing.append(key) return missing
2b62ea3f86c3cb765f90c07675a9a23e1dba7221 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2b62ea3f86c3cb765f90c07675a9a23e1dba7221/modulefinder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1281, 67, 7337, 12, 2890, 4672, 1311, 273, 365, 18, 8759, 6400, 18, 2452, 1435, 3315, 273, 5378, 364, 498, 316, 1311, 30, 309, 498, 486, 316, 365, 18, 338, 8993, 30, 468, 10230, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1281, 67, 7337, 12, 2890, 4672, 1311, 273, 365, 18, 8759, 6400, 18, 2452, 1435, 3315, 273, 5378, 364, 498, 316, 1311, 30, 309, 498, 486, 316, 365, 18, 338, 8993, 30, 468, 10230, 16, ...
class X(): pass
class X(object): pass
def objectify(d): # mess. soap returns classes w/attributes. xmlrpc returns dicts. # make xmlrpc return values look like soap return values so we # can quickly un-soapify this stuff. if type(d) != dict: return d class X(): pass rv = X() for key in d.keys(): setattr(rv, key, d[key]) return rv
439e66f80f216577ace8675558116ca381da7dc4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/439e66f80f216577ace8675558116ca381da7dc4/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 733, 1164, 12, 72, 4672, 468, 12755, 18, 225, 9930, 1135, 3318, 341, 19, 4350, 18, 225, 31811, 1135, 15838, 18, 468, 1221, 31811, 327, 924, 2324, 3007, 9930, 327, 924, 1427, 732, 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, 733, 1164, 12, 72, 4672, 468, 12755, 18, 225, 9930, 1135, 3318, 341, 19, 4350, 18, 225, 31811, 1135, 15838, 18, 468, 1221, 31811, 327, 924, 2324, 3007, 9930, 327, 924, 1427, 732, 468, ...
sys.stdout.writelines(restored)
for line in restored: print line,
def restore(which): restored = difflib.restore(sys.stdin.readlines(), which) sys.stdout.writelines(restored)
26252a411b1b8d5a4318c0a17678e0bba56ab1f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/26252a411b1b8d5a4318c0a17678e0bba56ab1f2/ndiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 12, 12784, 4672, 18751, 273, 1901, 12678, 18, 13991, 12, 9499, 18, 21772, 18, 896, 3548, 9334, 1492, 13, 364, 980, 316, 18751, 30, 1172, 980, 16, 225, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 12, 12784, 4672, 18751, 273, 1901, 12678, 18, 13991, 12, 9499, 18, 21772, 18, 896, 3548, 9334, 1492, 13, 364, 980, 316, 18751, 30, 1172, 980, 16, 225, 2, -100, -100, -100, -100, ...
folder = self.doclist.CreateFolder(folder_name)
folder = self.client.CreateFolder(folder_name)
def testCreateAndDeleteFolder(self): folder_name = 'TestFolder' folder = self.doclist.CreateFolder(folder_name) self.assertEqual(folder.title.text, folder_name) self.doclist.Delete(folder.GetEditLink().href)
6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1684, 1876, 2613, 3899, 12, 2890, 4672, 3009, 67, 529, 273, 296, 4709, 3899, 11, 3009, 273, 365, 18, 2625, 18, 1684, 3899, 12, 5609, 67, 529, 13, 365, 18, 11231, 5812, 12, 5609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1684, 1876, 2613, 3899, 12, 2890, 4672, 3009, 67, 529, 273, 296, 4709, 3899, 11, 3009, 273, 365, 18, 2625, 18, 1684, 3899, 12, 5609, 67, 529, 13, 365, 18, 11231, 5812, 12, 5609, ...
opt_name = string.translate(opt_name, longopt_xlate) val = getattr(self, opt_name)
if self.negative_opt.has_key(opt_name): opt_name = string.translate(self.negative_opt[opt_name], longopt_xlate) val = not getattr(self, opt_name) else: opt_name = string.translate(opt_name, longopt_xlate) val = getattr(self, opt_name)
def dump_dirs (self, msg): if DEBUG: from distutils.fancy_getopt import longopt_xlate print msg + ":" for opt in self.user_options: opt_name = opt[0] if opt_name[-1] == "=": opt_name = opt_name[0:-1] opt_name = string.translate(opt_name, longopt_xlate) val = getattr(self, opt_name) print " %s: %s" % (opt_name, val)
2da9ba2b28b00baa0cece6ddf7f00f4553c4ea41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2da9ba2b28b00baa0cece6ddf7f00f4553c4ea41/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 8291, 261, 2890, 16, 1234, 4672, 309, 6369, 30, 628, 2411, 5471, 18, 74, 12514, 67, 588, 3838, 1930, 1525, 3838, 67, 18402, 340, 1172, 1234, 397, 6153, 364, 2153, 316, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 8291, 261, 2890, 16, 1234, 4672, 309, 6369, 30, 628, 2411, 5471, 18, 74, 12514, 67, 588, 3838, 1930, 1525, 3838, 67, 18402, 340, 1172, 1234, 397, 6153, 364, 2153, 316, 365, 1...
super(BaseShipper, self).__init__(self)
super(BaseShipper, self).__init__()
def __init__(self, carrier): self.id = 'tieredweight_%i' % carrier.pk self._carrier = carrier super(BaseShipper, self).__init__(self)
bd65eb683cb3c12ad7fb7211a9f5c038f95d4ff2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/171/bd65eb683cb3c12ad7fb7211a9f5c038f95d4ff2/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 22417, 4672, 365, 18, 350, 273, 296, 88, 2453, 329, 4865, 10185, 77, 11, 738, 22417, 18, 5465, 365, 6315, 9815, 10342, 273, 22417, 2240, 12, 2171, 26358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 22417, 4672, 365, 18, 350, 273, 296, 88, 2453, 329, 4865, 10185, 77, 11, 738, 22417, 18, 5465, 365, 6315, 9815, 10342, 273, 22417, 2240, 12, 2171, 26358, ...
'givenName' : givenName, 'mail' : mail,
'givenName' : str(givenName).encode('utf8'), 'mail' : str(mail).encode('utf8'),
def newPerson(self, cn, givenName, mail, telephoneNumber, postalAddress): ''' Create a new user ''' dt = datetime.datetime.now() now = '%.2i-%.2i-%.2i %.2i:%.2i:%.2i.%.2i' % (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.microsecond) attributes = { 'cn' : cn, 'objectClass' : ('fedoraPerson', 'inetOrgPers...
da01ec3a79104df23a127ceac3e1101be0247b25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9952/da01ec3a79104df23a127ceac3e1101be0247b25/fasLDAP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 8346, 12, 2890, 16, 6227, 16, 864, 461, 16, 4791, 16, 268, 6516, 10540, 1854, 16, 30553, 1887, 4672, 9163, 1788, 279, 394, 729, 9163, 3681, 273, 3314, 18, 6585, 18, 3338, 1435, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 8346, 12, 2890, 16, 6227, 16, 864, 461, 16, 4791, 16, 268, 6516, 10540, 1854, 16, 30553, 1887, 4672, 9163, 1788, 279, 394, 729, 9163, 3681, 273, 3314, 18, 6585, 18, 3338, 1435, 20...
container = found[i].getoutmostitem()
item = found[i] container = item.getoutmostitem()
def goitem(socket, command, arguments): if len(arguments) == 0: socket.sysmessage('Usage: goitem <name>') return items = wolfpack.itemiterator() item = items.first name = hash(arguments.lower()) found = [] while item: if hash(item.name.lower()) == name: found.append( item ) item = items.next if socket.hastag( "goi...
982a8c05d91bd78b054dd54d3be586f4bf188f0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/982a8c05d91bd78b054dd54d3be586f4bf188f0e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 1726, 12, 7814, 16, 1296, 16, 1775, 4672, 309, 562, 12, 7099, 13, 422, 374, 30, 2987, 18, 9499, 2150, 2668, 5357, 30, 1960, 1726, 411, 529, 1870, 13, 327, 225, 1516, 273, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 1726, 12, 7814, 16, 1296, 16, 1775, 4672, 309, 562, 12, 7099, 13, 422, 374, 30, 2987, 18, 9499, 2150, 2668, 5357, 30, 1960, 1726, 411, 529, 1870, 13, 327, 225, 1516, 273, 341, ...
PR_HASATTACH)
PR_HASATTACH, PR_TRANSPORT_MESSAGE_HEADERS_A)
def _GetMessageText(self): # This is finally reliable. The only messages this now fails for # are for "forwarded" messages, where the forwards are actually # in an attachment. Later. # Note we *dont* look in plain text attachments, which we arguably # should. from spambayes import mboxutils
93381a32ba635ab0977515e7f962bc00151b09d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/93381a32ba635ab0977515e7f962bc00151b09d8/msgstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 1079, 1528, 12, 2890, 4672, 468, 1220, 353, 3095, 31024, 18, 225, 1021, 1338, 2743, 333, 2037, 6684, 364, 468, 854, 364, 315, 1884, 11804, 6, 2743, 16, 1625, 326, 24578, 854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 1079, 1528, 12, 2890, 4672, 468, 1220, 353, 3095, 31024, 18, 225, 1021, 1338, 2743, 333, 2037, 6684, 364, 468, 854, 364, 315, 1884, 11804, 6, 2743, 16, 1625, 326, 24578, 854, ...
output += get_item(item, next.level, {'css_class': i==0 and 'first' or ''})
output += get_item(item, prev_level, next.level) prev_level = item.level
def get_item(item, next_level, extra_context=None): context.push()
82605208f0baf6ef5ef1911ec3ae5e20e64cf9d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10899/82605208f0baf6ef5ef1911ec3ae5e20e64cf9d3/incunafein_tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1726, 12, 1726, 16, 1024, 67, 2815, 16, 2870, 67, 2472, 33, 7036, 4672, 819, 18, 6206, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1726, 12, 1726, 16, 1024, 67, 2815, 16, 2870, 67, 2472, 33, 7036, 4672, 819, 18, 6206, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
host = Ftp_Host(self.urls[number], self.f)
try: host = Ftp_Host(self.urls[number], self.f) except (socket.gaierror, socket.timeout, ftplib.error_temp, socket.error): print "FTP connect failed %s" % self.urls[number] del(self.urls[number]) return None
def next_url(self): ''' returns next socket to use or None if none available''' self.remove_errors()
f21f75f33aae45a1da8da2914c5d591fc57096d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6425/f21f75f33aae45a1da8da2914c5d591fc57096d8/metalink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 718, 12, 2890, 4672, 9163, 1135, 1024, 2987, 358, 999, 578, 599, 309, 6555, 2319, 26418, 365, 18, 4479, 67, 4324, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 1024, 67, 718, 12, 2890, 4672, 9163, 1135, 1024, 2987, 358, 999, 578, 599, 309, 6555, 2319, 26418, 365, 18, 4479, 67, 4324, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
writer = io.StringIO(encoding=encoding)
use_encoding = "utf-8" if encoding is None else encoding writer = io.StringIO(encoding=use_encoding)
def toprettyxml(self, indent="\t", newl="\n", encoding=None): # indent = the indentation string to prepend, per level # newl = the newline string to append writer = io.StringIO(encoding=encoding) if self.nodeType == Node.DOCUMENT_NODE: # Can pass encoding only to document, to put it into XML header self.writexml(writer...
55b15c9f059b3a22d03159296b1a5187df6489a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/55b15c9f059b3a22d03159296b1a5187df6489a6/minidom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 19073, 2902, 12, 2890, 16, 3504, 1546, 64, 88, 3113, 394, 80, 1546, 64, 82, 3113, 2688, 33, 7036, 4672, 468, 3504, 273, 326, 12018, 533, 358, 8254, 16, 1534, 1801, 468, 394, 80, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19073, 2902, 12, 2890, 16, 3504, 1546, 64, 88, 3113, 394, 80, 1546, 64, 82, 3113, 2688, 33, 7036, 4672, 468, 3504, 273, 326, 12018, 533, 358, 8254, 16, 1534, 1801, 468, 394, 80, ...
for datasetName,lfns in datasets.items(): res = self.__removeFilesFromDataset(datasetName,lfns)
for datasetName, lfns in datasets.items(): res = self.__removeFilesFromDataset( datasetName, lfns )
def removeFileFromDataset(self,dataset): res = self.__checkArgumentFormat(dataset) if not res['OK']: return res datasets = res['Value'] created = self.__openSession() successful = {} failed = {} for datasetName,lfns in datasets.items(): res = self.__removeFilesFromDataset(datasetName,lfns) if not res['OK']: failed[data...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 1265, 10656, 12, 2890, 16, 8682, 4672, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 8682, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 11109, 273, 400, 3292, 620, 3546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 1265, 10656, 12, 2890, 16, 8682, 4672, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 8682, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 11109, 273, 400, 3292, 620, 3546, ...
def test_nonexisting_u(self): self.assertRaises(OSError, startfile, "nonexisting.vbs")
def test_nonexisting_u(self): self.assertRaises(OSError, startfile, "nonexisting.vbs")
074d4eccbd53a74a3a9105f98c4a37a8572d53e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/074d4eccbd53a74a3a9105f98c4a37a8572d53e3/test_startfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5836, 11711, 67, 89, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 4618, 668, 16, 787, 768, 16, 315, 5836, 11711, 18, 90, 2038, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5836, 11711, 67, 89, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 4618, 668, 16, 787, 768, 16, 315, 5836, 11711, 18, 90, 2038, 7923, 2, -100, -100, -100, -100, -100, -100...
if attribute and attribute != 'NoRole':
if attribute and attribute != 'NoRole' and attribute != 'None':
def setVOMSAttributes( self, proxy, attribute = None, vo = False ): """ Sets voms attributes to a proxy """ if not vo: vo = gConfig.getValue( "/DIRAC/VirtualOrganization", "" ) if not vo: return S_ERROR( "No vo specified, and can't get default in the configuration" )
eda88390df494e9d382c0200592b06d65b390e9a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/eda88390df494e9d382c0200592b06d65b390e9a/VOMS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 58, 1872, 55, 2498, 12, 365, 16, 2889, 16, 1566, 273, 599, 16, 19993, 273, 1083, 262, 30, 3536, 11511, 331, 25390, 1677, 358, 279, 2889, 3536, 309, 486, 19993, 30, 19993, 273, 314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 58, 1872, 55, 2498, 12, 365, 16, 2889, 16, 1566, 273, 599, 16, 19993, 273, 1083, 262, 30, 3536, 11511, 331, 25390, 1677, 358, 279, 2889, 3536, 309, 486, 19993, 30, 19993, 273, 314...
if self.within_title: self.subtitle = self.body[self.within_title:] self.within_title = 0
def depart_subtitle(self, node): if self.within_title: self.subtitle = self.body[self.within_title:] self.within_title = 0 self.body.append(self.context.pop())
89793d1bacb5cf79ed93134514193035075bf21a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/89793d1bacb5cf79ed93134514193035075bf21a/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 1717, 2649, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 12, 2890, 18, 2472, 18, 5120, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 1717, 2649, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 12, 2890, 18, 2472, 18, 5120, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def _var_summary_row(self, var, container): inherit = (container.is_class() and container != var.uid().cls()) if inherit and self._inheritance == 'listed': return ''
def _write_var_summary_row(self, public, private, var, container): """ Write HTML code for a row in the variable summary table. Each row gives a brief description of a single variable. @param public: The output stream for the public version of the page. @param private: The output stream for the private version of the...
def _write_var_summary(self, public, private, variables, container, groups, heading='Variable Summary'): """ @return: The HTML code for a variable summary table. This is used by L{_module_to_html} to list the variables in a module; and by L{_class_to_html} to list instance variables and class variables. @rtype: C{stri...
b57986399a2595e7095d7d67227b7bcda199a18b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/b57986399a2595e7095d7d67227b7bcda199a18b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 1401, 67, 7687, 12, 2890, 16, 1071, 16, 3238, 16, 3152, 16, 1478, 16, 3252, 16, 11053, 2218, 3092, 17967, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 2190,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 1401, 67, 7687, 12, 2890, 16, 1071, 16, 3238, 16, 3152, 16, 1478, 16, 3252, 16, 11053, 2218, 3092, 17967, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 2190,...
db_generation = row and row[0] or -1
db_generation = not row and -1 or row[0]
def get(self, id, retriever, db=None): """Get cached or fresh data for the given id.""" # Get cache metadata try: local_meta = self._local.meta local_cache = self._local.cache except AttributeError: # First cache usage in this request, retrieve cache metadata # from the database and make a thread-local copy of the cach...
253b7683e0cdd45791a47d7e6e025e59fe850d17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2831/253b7683e0cdd45791a47d7e6e025e59fe850d17/cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 612, 16, 3227, 502, 16, 1319, 33, 7036, 4672, 3536, 967, 3472, 578, 12186, 501, 364, 326, 864, 612, 12123, 468, 968, 1247, 1982, 775, 30, 1191, 67, 3901, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 612, 16, 3227, 502, 16, 1319, 33, 7036, 4672, 3536, 967, 3472, 578, 12186, 501, 364, 326, 864, 612, 12123, 468, 968, 1247, 1982, 775, 30, 1191, 67, 3901, 273, 365, ...
fd = open(filename, 'w')
def run(self): """Run the vibration calculations.
b6697ec40699bfb8bba9122b6a92c15e7ee388b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/b6697ec40699bfb8bba9122b6a92c15e7ee388b8/vibrations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 1997, 326, 331, 11723, 20882, 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, 1086, 12, 2890, 4672, 3536, 1997, 326, 331, 11723, 20882, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.data_flunked(self._piecelen(index) - len(piece))
self.data_flunked(self._piecelen(index))
def _piece_came_in(self, index, begin, piece): if not self.places.has_key(index): n = self.holes.pop(0) if self.places.has_key(n): oldpos = self.places[n] old = self.storage.read(self.piece_size * oldpos, self._piecelen(n)) self.storage.write(self.piece_size * n, old) self.places[n] = n if index == oldpos or index in s...
b9926ffdc117246e86bf93664e9d4492ad9602c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/b9926ffdc117246e86bf93664e9d4492ad9602c0/StorageWrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 30100, 67, 71, 339, 67, 267, 12, 2890, 16, 770, 16, 2376, 16, 11151, 4672, 309, 486, 365, 18, 11350, 18, 5332, 67, 856, 12, 1615, 4672, 290, 273, 365, 18, 76, 9112, 18, 5120, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30100, 67, 71, 339, 67, 267, 12, 2890, 16, 770, 16, 2376, 16, 11151, 4672, 309, 486, 365, 18, 11350, 18, 5332, 67, 856, 12, 1615, 4672, 290, 273, 365, 18, 76, 9112, 18, 5120, ...
print "Sending command => " + command.command + "\n" server.sendPacket(command) except KeyboardInterrupt: print "\nStopping server...\n" server.stop() commandLine.stop()
print "\nSending command => " + command.command server.sendPacket(command) except (KeyboardInterrupt): pass
def main():
5ff7b3b6722adf0535960e4a3538deb96c66b426 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11436/5ff7b3b6722adf0535960e4a3538deb96c66b426/crossfire_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 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, 0, 0, ...
[ 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 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, -100, -100, ...
elif (space >= spare_replacement_index) and (replacement_types[replacement_index] == u"title") \ and (space < (spare_replacement_index + len_titles[replacement_index])):
elif (space >= spare_replacement_index) and \ (replacement_types[replacement_index] == u"title") and \ (space < (spare_replacement_index + \ len_titles[replacement_index])):
def account_for_stripped_whitespace(spaces_keys, removed_spaces, replacement_types, len_reportnums, len_titles, replacement_index): """To build a processed (MARC XML) reference line in which the recognised citations such as standardised periodical TITLEs and REPORT-NUMBERs have been marked up, it is necessary to read f...
afd852f45332d11ac027b8d47ce1a922ce7f2cc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/afd852f45332d11ac027b8d47ce1a922ce7f2cc6/refextract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 67, 1884, 67, 6406, 1845, 67, 18777, 12, 9554, 67, 2452, 16, 3723, 67, 9554, 16, 6060, 67, 2352, 16, 562, 67, 6006, 21180, 16, 562, 67, 17643, 16, 6060, 67, 1615, 4672, 3536, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 67, 1884, 67, 6406, 1845, 67, 18777, 12, 9554, 67, 2452, 16, 3723, 67, 9554, 16, 6060, 67, 2352, 16, 562, 67, 6006, 21180, 16, 562, 67, 17643, 16, 6060, 67, 1615, 4672, 3536, 7...
def pending (self):
def pending(self):
def pending (self): self._checkClosed() if self._sslobj: return self._sslobj.pending() else: return 0
a3d48197605c87f8e6c78819021987edaa65b2ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/a3d48197605c87f8e6c78819021987edaa65b2ae/ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4634, 12, 2890, 4672, 365, 6315, 1893, 7395, 1435, 309, 365, 6315, 1049, 383, 441, 30, 327, 365, 6315, 1049, 383, 441, 18, 9561, 1435, 469, 30, 327, 374, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4634, 12, 2890, 4672, 365, 6315, 1893, 7395, 1435, 309, 365, 6315, 1049, 383, 441, 30, 327, 365, 6315, 1049, 383, 441, 18, 9561, 1435, 469, 30, 327, 374, 2, -100, -100, -100, -100, -10...
* asdf
- asdf
def _repr(self, typ): RANGE = 20 if self.charnum <= RANGE: left = self.token.contents[0:self.charnum] else: left = '...' + self.token.contents[self.charnum-RANGE:self.charnum] if (len(self.token.contents)-self.charnum) <= RANGE: right = self.token.contents[self.charnum:] else: right = (self.token.contents[self.charnum:...
26f654ea66befeec31f7f9ebcebabc7d09f33070 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/26f654ea66befeec31f7f9ebcebabc7d09f33070/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 12, 2890, 16, 3815, 4672, 534, 8357, 273, 4200, 309, 365, 18, 343, 1303, 379, 1648, 534, 8357, 30, 2002, 273, 365, 18, 2316, 18, 3980, 63, 20, 30, 2890, 18, 343, 1303, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 12, 2890, 16, 3815, 4672, 534, 8357, 273, 4200, 309, 365, 18, 343, 1303, 379, 1648, 534, 8357, 30, 2002, 273, 365, 18, 2316, 18, 3980, 63, 20, 30, 2890, 18, 343, 1303, 37...