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
self.cache.pop(id_, None) self.load_queue.put(id_)
cover = self.cache.pop(id_, None) if cover is not None: self.load_queue.put(id_)
def refresh(self, ids): with self.lock: for id_ in ids: self.cache.pop(id_, None) self.load_queue.put(id_)
a48395b9dbc3f61db85bfa4b6639f2573152d4e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/a48395b9dbc3f61db85bfa4b6639f2573152d4e2/caches.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 16, 3258, 4672, 598, 365, 18, 739, 30, 364, 612, 67, 316, 3258, 30, 365, 18, 2493, 18, 5120, 12, 350, 67, 16, 599, 13, 365, 18, 945, 67, 4000, 18, 458, 12, 350, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 16, 3258, 4672, 598, 365, 18, 739, 30, 364, 612, 67, 316, 3258, 30, 365, 18, 2493, 18, 5120, 12, 350, 67, 16, 599, 13, 365, 18, 945, 67, 4000, 18, 458, 12, 350, 6...
`\\theta''+\\sin(\\theta)=0`, `\\theta(0)=\\frac 34`, `\\theta'(0) =
`\theta''+\sin(\theta)=0`, `\theta(0)=\frac 34`, `\theta'(0) =
def eulers_method_2x2_plot(f,g, t0, x0, y0, h, t1): """ This plots the soln in the rectangle ``(xrange[0],xrange[1]) x (yrange[0],yrange[1])`` and plots using Euler's method the numerical solution of the 1st order ODEs `x' = f(t,x,y)`, `x(a)=x_0`, `y' = g(t,x,y)`, `y(a) = y_0`. *For pedagogical purposes only.* EXAMPL...
a5e01917e5cb3eb9aa0a8033daad14821fe571aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/a5e01917e5cb3eb9aa0a8033daad14821fe571aa/desolvers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 332, 414, 67, 2039, 67, 22, 92, 22, 67, 4032, 12, 74, 16, 75, 16, 268, 20, 16, 619, 20, 16, 677, 20, 16, 366, 16, 268, 21, 4672, 3536, 1220, 17931, 326, 3704, 82, 316, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 332, 414, 67, 2039, 67, 22, 92, 22, 67, 4032, 12, 74, 16, 75, 16, 268, 20, 16, 619, 20, 16, 677, 20, 16, 366, 16, 268, 21, 4672, 3536, 1220, 17931, 326, 3704, 82, 316, 326, ...
os = document.createElement('os')
opSys = document.createElement('os')
def bootElement(bootDict): """ Creates a libvirt <os> element, a child of L{domain element <domainElement>}, that describes the operating system boot protocol for the Virtual Machine, specifically values to enable booting from the BIOS. @param bootDict: dictionary of boot arguments @type bootDict: dictionary @note: b...
b19e865d32d9ed2915eaa051855e86e8037b151c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/b19e865d32d9ed2915eaa051855e86e8037b151c/OvfLibvirt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4835, 1046, 12, 7137, 5014, 4672, 3536, 10210, 279, 16388, 411, 538, 34, 930, 16, 279, 1151, 434, 511, 95, 4308, 930, 411, 4308, 1046, 34, 5779, 716, 19605, 326, 16929, 2619, 4835, 1771,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4835, 1046, 12, 7137, 5014, 4672, 3536, 10210, 279, 16388, 411, 538, 34, 930, 16, 279, 1151, 434, 511, 95, 4308, 930, 411, 4308, 1046, 34, 5779, 716, 19605, 326, 16929, 2619, 4835, 1771,...
self.logger.info("prop_def: Call _convert_set(%s,%s,%s)" % (p["set"], comp["object"], name))
self.logger.debug("prop_def: Call _convert_set(%s,%s,%s)" % (p["set"], comp["object"], name))
def _convert_prop_def(self, comp, p, name): "This function translates object properties into useful collections of information for the container." self.logger.info("prop_def: Trying to read property %s -> %s" % (name, p)) if isinstance(p, dict): if "ref" in p: self.logger.info("prop_def: >>>>>>>>>>>>Call _convert_ref(%...
f640b15368e4d3037d291c060bcc1380e557323f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/f640b15368e4d3037d291c060bcc1380e557323f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6283, 67, 5986, 67, 536, 12, 2890, 16, 1161, 16, 293, 16, 508, 4672, 315, 2503, 445, 2162, 815, 733, 1790, 1368, 5301, 6980, 434, 1779, 364, 326, 1478, 1199, 365, 18, 4901, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6283, 67, 5986, 67, 536, 12, 2890, 16, 1161, 16, 293, 16, 508, 4672, 315, 2503, 445, 2162, 815, 733, 1790, 1368, 5301, 6980, 434, 1779, 364, 326, 1478, 1199, 365, 18, 4901, 18, ...
if part.get_main_type('text') == 'text':
maintype = part.get_main_type('text') if maintype == 'text':
def _dispatch(self, msg): for part in msg.walk(): if part.get_main_type('text') == 'text': print >> self, part.get_payload(decode=1) else: print >> self, self._fmt % { 'type' : part.get_type('[no MIME type]'), 'maintype' : part.get_main_type('[no main MIME type]'), 'subtype' : part.get_subtype('[no sub-MIME ...
ace87f9ad44cbb989e3962b99fa40a094a8c4c64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ace87f9ad44cbb989e3962b99fa40a094a8c4c64/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 12, 2890, 16, 1234, 4672, 364, 1087, 316, 1234, 18, 11348, 13332, 11566, 388, 273, 1087, 18, 588, 67, 5254, 67, 723, 2668, 955, 6134, 309, 11566, 388, 422, 296, 955, 4278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 12, 2890, 16, 1234, 4672, 364, 1087, 316, 1234, 18, 11348, 13332, 11566, 388, 273, 1087, 18, 588, 67, 5254, 67, 723, 2668, 955, 6134, 309, 11566, 388, 422, 296, 955, 4278, ...
primNames = {'void':'V', 'int':'I', 'byte':'B', 'short':'S', 'long':'J', 'float':'F', 'double':'D', 'boolean':'Z', 'char':'C'
primNames = {'void' : 'V', 'int' : 'I', 'byte' : 'B', 'short' : 'S', 'long' : 'J', 'float' : 'F', 'double' : 'D', 'boolean': 'Z', 'char' : 'C'
def insistJavaClass(c): jc = getJavaClass(c) if jc is None and isinstance(c, StringType): jc = getJavaClass("java.lang."+c) if jc is None: raise ValueError, "can not find class: "+c return jc
c48a7c510b5ae370d8c9f07ece10dffd627964cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/c48a7c510b5ae370d8c9f07ece10dffd627964cc/compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2763, 376, 5852, 797, 12, 71, 4672, 19807, 273, 18911, 797, 12, 71, 13, 309, 19807, 353, 599, 471, 1549, 12, 71, 16, 31570, 4672, 19807, 273, 18911, 797, 2932, 6290, 18, 4936, 1199, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2763, 376, 5852, 797, 12, 71, 4672, 19807, 273, 18911, 797, 12, 71, 13, 309, 19807, 353, 599, 471, 1549, 12, 71, 16, 31570, 4672, 19807, 273, 18911, 797, 2932, 6290, 18, 4936, 1199, 15...
"Python 'cgi' module':http://www.python.org/doc/current/lib/Functions_in_cgi_module.html
"Python 'cgi' module":http://www.python.org/doc/current/lib/Functions_in_cgi_module.html
def html_quote(s): """ Convert characters that have special meaning in HTML to HTML character entities. See Also "Python 'cgi' module':http://www.python.org/doc/current/lib/Functions_in_cgi_module.html 'escape' function. """
218f54f6798e3bd431e3e50c62d239ecc36239a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/218f54f6798e3bd431e3e50c62d239ecc36239a7/standard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 6889, 12, 87, 4672, 3536, 4037, 3949, 716, 1240, 4582, 12256, 316, 3982, 358, 3982, 3351, 5140, 18, 225, 2164, 8080, 225, 315, 15774, 296, 19062, 11, 1605, 6877, 2505, 2207, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 6889, 12, 87, 4672, 3536, 4037, 3949, 716, 1240, 4582, 12256, 316, 3982, 358, 3982, 3351, 5140, 18, 225, 2164, 8080, 225, 315, 15774, 296, 19062, 11, 1605, 6877, 2505, 2207, 55...
OUTPUT: - ``int`` - smallest cond - ``int`` - largest conductor plus one
OUTPUT: tuple of ints (N1,N2+1) where N1 is the smallest and N2 the largest conductor for which the database is complete.
def conductor_range(self): """ Return the range of conductors that are covered by the database. OUTPUT: - ``int`` - smallest cond - ``int`` - largest conductor plus one EXAMPLES:: sage: from sage.databases.cremona import LargeCremonaDatabase # optional - database_cremona_ellcurve sage: c = LargeCremonaDatabas...
fb3431bba902a2778bc04ef2120a158db023876d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/fb3431bba902a2778bc04ef2120a158db023876d/cremona.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 356, 1828, 280, 67, 3676, 12, 2890, 4672, 3536, 2000, 326, 1048, 434, 356, 1828, 1383, 716, 854, 18147, 635, 326, 2063, 18, 225, 11550, 30, 3193, 434, 15542, 261, 50, 21, 16, 50, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 356, 1828, 280, 67, 3676, 12, 2890, 4672, 3536, 2000, 326, 1048, 434, 356, 1828, 1383, 716, 854, 18147, 635, 326, 2063, 18, 225, 11550, 30, 3193, 434, 15542, 261, 50, 21, 16, 50, 22, ...
print_lines(nodeset, tree[nodeset[0]])
print_lines(nodeset, tree[nodeset[0]], regroup, groupsource)
def display(tree, line_mode, gather): """Display results""" try: if gather: # lambda to create a NodeSet from keys list returned by walk() ns_getter = lambda x: NodeSet.fromlist(x[1]) for nodeset in sorted(imap(ns_getter, tree.walk()), cmp=nodeset_cmp): if line_mode: print_lines(nodeset, tree[nodeset[0]]) else: print_...
53467590299b334c6fd984c288c00c7d3dde1894 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/53467590299b334c6fd984c288c00c7d3dde1894/clubak.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 3413, 16, 980, 67, 3188, 16, 11090, 4672, 3536, 4236, 1686, 8395, 775, 30, 309, 11090, 30, 468, 3195, 358, 752, 279, 2029, 694, 628, 1311, 666, 2106, 635, 5442, 1435, 3153, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 3413, 16, 980, 67, 3188, 16, 11090, 4672, 3536, 4236, 1686, 8395, 775, 30, 309, 11090, 30, 468, 3195, 358, 752, 279, 2029, 694, 628, 1311, 666, 2106, 635, 5442, 1435, 3153, 6...
- [2] Boris Pittel, Joel Spencer and Nicholas Wormald. Sudden
.. [PSW1996] Boris Pittel, Joel Spencer and Nicholas Wormald. Sudden
def cores(self, with_labels=False): """ Returns the core number for each vertex in an ordered list.
a919c700e1d45ef9630939239ed7a7c19fdbeaac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/a919c700e1d45ef9630939239ed7a7c19fdbeaac/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15355, 12, 2890, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 2922, 1300, 364, 1517, 5253, 316, 392, 5901, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15355, 12, 2890, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 2922, 1300, 364, 1517, 5253, 316, 392, 5901, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return None
return []
def _entries_from_toctree(toctreenode): """Return TOC entries for a toctree node.""" includefiles = map(str, toctreenode['includefiles'])
faa5c763501119ec7efb1907381369eb9f735483 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7032/faa5c763501119ec7efb1907381369eb9f735483/environment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8219, 67, 2080, 67, 869, 299, 992, 12, 869, 299, 2842, 390, 4672, 3536, 990, 8493, 39, 3222, 364, 279, 358, 299, 992, 756, 12123, 2823, 89, 536, 1449, 273, 852, 12, 701, 16, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8219, 67, 2080, 67, 869, 299, 992, 12, 869, 299, 2842, 390, 4672, 3536, 990, 8493, 39, 3222, 364, 279, 358, 299, 992, 756, 12123, 2823, 89, 536, 1449, 273, 852, 12, 701, 16, 358...
self.currentWindow.enable(flag)
self.currentWindow.enable(flag)
def enable(self, flag, **kws): """ Created: 23.05.2005, KP Description: Enable / Disable updates """ self.preload = 0 if kws.has_key("preload"): self.preload = kws["preload"] if self.noRender: self.oldEnabled = flag return #Logging.info("\nenable(%s)\n" %(not not flag), kw = "visualizer") self.enabled = flag if self.c...
228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4237, 12, 2890, 16, 2982, 16, 2826, 79, 4749, 4672, 3536, 12953, 30, 10213, 18, 6260, 18, 6976, 25, 16, 1475, 52, 6507, 30, 9677, 342, 10639, 4533, 3536, 365, 18, 1484, 945, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4237, 12, 2890, 16, 2982, 16, 2826, 79, 4749, 4672, 3536, 12953, 30, 10213, 18, 6260, 18, 6976, 25, 16, 1475, 52, 6507, 30, 9677, 342, 10639, 4533, 3536, 365, 18, 1484, 945, 273, 374, ...
RESPONSE.setHeader('Last-Modified', self.Date())
RESPONSE.setHeader('Last-Modified', rfc1123_date(self._p_mtime))
def __call__(self): """Download the file""" self.setCacheHeaders() RESPONSE=self.REQUEST['RESPONSE'] iterator = filestream_iterator(self.getFilesystemPath(), 'rb') RESPONSE.setHeader('Last-Modified', self.Date()) RESPONSE.setHeader('Content-Type', self.Format()) RESPONSE.setHeader('Content-Length', len(iterator)) ret...
8e20498fcf2d4baab2757bd543158c452156a872 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11632/8e20498fcf2d4baab2757bd543158c452156a872/file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 3536, 7109, 326, 585, 8395, 365, 18, 542, 1649, 3121, 1435, 20645, 33, 2890, 18, 5519, 3292, 14508, 3546, 2775, 273, 661, 29233, 67, 9838, 12, 2890, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 3536, 7109, 326, 585, 8395, 365, 18, 542, 1649, 3121, 1435, 20645, 33, 2890, 18, 5519, 3292, 14508, 3546, 2775, 273, 661, 29233, 67, 9838, 12, 2890, 18, ...
def _mean(values): return sum(values) / float(max(len(values), 1))
def test_split_paragraphs_empty(self): self.assertEquals(lipsum._split_paragraphs(""), [])
def _mean(values): return sum(values) / float(max(len(values), 1))
fa9e6662a1f30cb272942f25e233798ee7edac45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3480/fa9e6662a1f30cb272942f25e233798ee7edac45/testlipsum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4939, 67, 22445, 87, 67, 5531, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 11693, 379, 6315, 4939, 67, 22445, 87, 2932, 6, 3631, 5378, 13, 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, 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, 1842, 67, 4939, 67, 22445, 87, 67, 5531, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 11693, 379, 6315, 4939, 67, 22445, 87, 2932, 6, 3631, 5378, 13, 225, 2, -100, -100, -100, -100, -100,...
debug("Expiring cookie, domain='%s', path='%s', name='%s'", domain, path, name)
_debug("Expiring cookie, domain='%s', path='%s', name='%s'", domain, path, name)
def _cookie_from_cookie_tuple(self, tup, request): # standard is dict of standard cookie-attributes, rest is dict of the # rest of them name, value, standard, rest = tup
7fde00696ae6c872310a407df8b8923ab907f247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7fde00696ae6c872310a407df8b8923ab907f247/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8417, 67, 2080, 67, 8417, 67, 8052, 12, 2890, 16, 15822, 16, 590, 4672, 468, 4529, 353, 2065, 434, 4529, 3878, 17, 4350, 16, 3127, 353, 2065, 434, 326, 468, 3127, 434, 2182, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8417, 67, 2080, 67, 8417, 67, 8052, 12, 2890, 16, 15822, 16, 590, 4672, 468, 4529, 353, 2065, 434, 4529, 3878, 17, 4350, 16, 3127, 353, 2065, 434, 326, 468, 3127, 434, 2182, 508, ...
cache = self.cache fs = self.fs path = self.path to_add = self._to_add
def _save_changes(self, data): cache = self.cache fs = self.fs path = self.path to_add = self._to_add
3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 6329, 12, 2890, 16, 501, 4672, 1247, 273, 365, 18, 2493, 2662, 273, 365, 18, 2556, 589, 273, 365, 18, 803, 358, 67, 1289, 273, 365, 6315, 869, 67, 1289, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 6329, 12, 2890, 16, 501, 4672, 1247, 273, 365, 18, 2493, 2662, 273, 365, 18, 2556, 589, 273, 365, 18, 803, 358, 67, 1289, 273, 365, 6315, 869, 67, 1289, 2, -100, -100,...
assert key in self.input, 'Invalid key in profile.skip_cross_listings: %s (%s)' % (key, repr(profile.skip_cross_listings))
assert key in self.input,\ 'Invalid key in profile.skip_cross_listings: %s (%s)' % ( key, repr(profile.skip_cross_listings))
def format_cross_listings(self, value): """Returns a list of cross-listings for the current class. In some cases, returns an empty list, even if the class is cross-listed in Colleague.""" # If the current profile wants us to skip the cross-listings for this # class, return an empty list. for key, patterns in profile....
20eab91c91a9f72ec790d8c5d1fb9261b7b89028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4025/20eab91c91a9f72ec790d8c5d1fb9261b7b89028/formatters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 14653, 67, 1098, 899, 12, 2890, 16, 460, 4672, 3536, 1356, 279, 666, 434, 6828, 17, 1098, 899, 364, 326, 783, 667, 18, 225, 657, 2690, 6088, 16, 1135, 392, 1008, 666, 16, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 14653, 67, 1098, 899, 12, 2890, 16, 460, 4672, 3536, 1356, 279, 666, 434, 6828, 17, 1098, 899, 364, 326, 783, 667, 18, 225, 657, 2690, 6088, 16, 1135, 392, 1008, 666, 16, 54...
def randomise_lattice (self, rng, rangeb, homogenise) :
def randomise_lattice (self, rng, rangeb) :
def randomise_lattice (self, rng, rangeb, homogenise) : """ Method to randomise the factor concentrations of the lattice.
4e4693a52c95717018319fd37fd5d71cecb79c4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1770/4e4693a52c95717018319fd37fd5d71cecb79c4f/translattice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 784, 67, 80, 24966, 261, 2890, 16, 11418, 16, 1048, 70, 13, 294, 3536, 2985, 358, 2744, 784, 326, 5578, 20570, 8230, 1012, 434, 326, 16690, 18, 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, 2744, 784, 67, 80, 24966, 261, 2890, 16, 11418, 16, 1048, 70, 13, 294, 3536, 2985, 358, 2744, 784, 326, 5578, 20570, 8230, 1012, 434, 326, 16690, 18, 2, -100, -100, -100, -100, -100, -...
msg='Only full output resolution is currently\n'+\ 'supported for export of in-memory VRTs\n'+\ 'to on-disk VRTs.'
msg = 'Only full output resolution is currently\n'+\ 'supported for export of in-memory VRTs\nto on-disk VRTs.'
def export_cb(self,*args): ipfile=self.frame_dict['Files'].get('Input') opfile=self.frame_dict['Files'].get('Output') if os.path.isfile(opfile): resp=GtkExtra.message_box('Confirmation',opfile + ' exists. Overwrite?',('Yes','No')) if resp == 'No': return elif len(opfile) == 0: gvutils.error('No output filename entered...
18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 7358, 12, 2890, 16, 14, 1968, 4672, 2359, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29489, 588, 2668, 1210, 6134, 1061, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 7358, 12, 2890, 16, 14, 1968, 4672, 2359, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29489, 588, 2668, 1210, 6134, 1061, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29...
self.thr_async = 0
self.thr_async = False
def __init__(self, sock, addr, obj=None): self.obj = None self.marshal = Marshaller() self.closed = 0 self.msgid = 0 self.peer_protocol_version = None # Set in recv_handshake() if isinstance(addr, types.TupleType): self.log_label = "zrpc-conn:%s:%d" % addr else: self.log_label = "zrpc-conn:%s" % addr self.__super_init(...
c8dc49bdef9be96c2639ee661f583dd6f7ce2243 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/c8dc49bdef9be96c2639ee661f583dd6f7ce2243/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 3091, 16, 1081, 33, 7036, 4672, 365, 18, 2603, 273, 599, 365, 18, 3108, 273, 26026, 264, 1435, 365, 18, 12204, 273, 374, 365, 18, 3576, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 3091, 16, 1081, 33, 7036, 4672, 365, 18, 2603, 273, 599, 365, 18, 3108, 273, 26026, 264, 1435, 365, 18, 12204, 273, 374, 365, 18, 3576, 350, ...
if sys.platform not in ('win32', 'darwin'): for encoding in ('ascii', 'cp850', 'iso8859-1', 'utf-8'): env = os.environ.copy() env['PYTHONFSENCODING'] = encoding check_fsencoding(get_fsencoding(env), encoding)
for encoding in ('ascii', 'cp850', 'iso8859-1', 'utf-8'): env = os.environ.copy() env['PYTHONFSENCODING'] = encoding self.check_fsencoding(get_fsencoding(env), encoding)
def get_fsencoding(env): output = subprocess.check_output( [sys.executable, "-c", "import sys; print(sys.getfilesystemencoding())"], env=env) return output.rstrip().decode('ascii')
ecaa6fcd04611a787eb2975901743eabe75619d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/ecaa6fcd04611a787eb2975901743eabe75619d9/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2556, 5999, 12, 3074, 4672, 876, 273, 6652, 18, 1893, 67, 2844, 12, 306, 9499, 18, 17751, 16, 3701, 71, 3113, 315, 5666, 2589, 31, 1172, 12, 9499, 18, 588, 17846, 5999, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2556, 5999, 12, 3074, 4672, 876, 273, 6652, 18, 1893, 67, 2844, 12, 306, 9499, 18, 17751, 16, 3701, 71, 3113, 315, 5666, 2589, 31, 1172, 12, 9499, 18, 588, 17846, 5999, 1435, ...
audio_data = fromstring(stream.read(NUM_SAMPLES), dtype=short) stream.close()
audio_data = fromstring(_stream.read(NUM_SAMPLES), dtype=short)
def get_audio_data(): pa = pyaudio.PyAudio() stream = pa.open(format=pyaudio.paInt16, channels=1, rate=SAMPLING_RATE, input=True, frames_per_buffer=NUM_SAMPLES) audio_data = fromstring(stream.read(NUM_SAMPLES), dtype=short) stream.close() normalized_data = audio_data / 32768.0 return (abs(fft(normalized_data))[:NUM_SA...
62a694dbe985bb9e9007d6bf4cb21d6776a985ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13167/62a694dbe985bb9e9007d6bf4cb21d6776a985ef/spectrum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11509, 67, 892, 13332, 6790, 273, 2395, 11509, 18, 9413, 12719, 1435, 1407, 273, 6790, 18, 3190, 12, 2139, 33, 2074, 11509, 18, 8774, 1702, 2313, 16, 5750, 33, 21, 16, 4993, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11509, 67, 892, 13332, 6790, 273, 2395, 11509, 18, 9413, 12719, 1435, 1407, 273, 6790, 18, 3190, 12, 2139, 33, 2074, 11509, 18, 8774, 1702, 2313, 16, 5750, 33, 21, 16, 4993, 3...
self.menu_entries.set_entry("Help/Formats...",1,self.driver_tool_cb)
self.menu_entries.set_entry("Help/Formats...", 1, self.driver_tool_cb)
def init_menu(self): self.menu_entries.set_entry("Help/Formats...",1,self.driver_tool_cb)
b9d9dcc6d1e1e74e47142ba36667998282ffa40c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/b9d9dcc6d1e1e74e47142ba36667998282ffa40c/Tool_DriverList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 5414, 12, 2890, 4672, 365, 18, 5414, 67, 8219, 18, 542, 67, 4099, 2932, 6696, 19, 8976, 7070, 16, 21, 16, 2890, 18, 7407, 67, 6738, 67, 7358, 13, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 5414, 12, 2890, 4672, 365, 18, 5414, 67, 8219, 18, 542, 67, 4099, 2932, 6696, 19, 8976, 7070, 16, 21, 16, 2890, 18, 7407, 67, 6738, 67, 7358, 13, 2, -100, -100, -100, -100,...
text_string = str(rtmp.read())
text_string = " " + str(rtmp.read()) + " "
def generate_keywords_rdf(textfile, dictfile, output, outwords, mode): """ A method that generates keywords from an rdf thesaurus. """ keylist = [] keyws = [] counts = {} entries = [] ns_skos = rdflib.Namespace("http://www.w3.org/2004/02/skos/core#") ns_dc=rdflib.Namespace("http://purl.org/dc/elements/1.1/") ns_rdf=r...
64a338f3e936f0b7dd77fc005559df697fcc01ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/64a338f3e936f0b7dd77fc005559df697fcc01ce/bibclassifylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11771, 67, 19299, 12, 955, 768, 16, 2065, 768, 16, 876, 16, 596, 3753, 16, 1965, 4672, 3536, 432, 707, 716, 6026, 7093, 628, 392, 9160, 286, 281, 28659, 407, 18, 3536, 498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11771, 67, 19299, 12, 955, 768, 16, 2065, 768, 16, 876, 16, 596, 3753, 16, 1965, 4672, 3536, 432, 707, 716, 6026, 7093, 628, 392, 9160, 286, 281, 28659, 407, 18, 3536, 498, ...
"""
raw_input("")
def parseWikiPage(ofn,wikilang,pagetopic): '''This function will parse the content of a Wiktionary page and read it into our object structure''' apage = WiktionaryPage(wikilang,pagetopic) templist = [] context = {} content = open(ofn).readlines() splitcontent=[] for line in content: # Let's get rid of line breaks an...
1b1b4569b6745a15f68c338b63248732b0b8fe0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1b1b4569b6745a15f68c338b63248732b0b8fe0d/wiktionary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 25438, 1964, 12, 792, 82, 16, 11999, 330, 539, 16, 9095, 278, 28237, 4672, 9163, 2503, 445, 903, 1109, 326, 913, 434, 279, 678, 1766, 24252, 814, 1363, 471, 855, 518, 1368, 3134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25438, 1964, 12, 792, 82, 16, 11999, 330, 539, 16, 9095, 278, 28237, 4672, 9163, 2503, 445, 903, 1109, 326, 913, 434, 279, 678, 1766, 24252, 814, 1363, 471, 855, 518, 1368, 3134, ...
subs['pepindex'] = pyhome + '/peps/'
subs['pepindex'] = pyhome + '/glep/'
def translate(self): html4css1.Writer.translate(self) settings = self.document.settings template = open(settings.pep_template).read() # Substitutions dict for template: subs = {} subs['encoding'] = settings.output_encoding subs['version'] = docutils.__version__ subs['stylesheet'] = ''.join(self.stylesheet) pyhome = set...
cbc11f51e86d5b44aa56032f4913f2d8d1ab6969 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2807/cbc11f51e86d5b44aa56032f4913f2d8d1ab6969/glep_htmlwrite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 2890, 4672, 1729, 24, 5212, 21, 18, 2289, 18, 13929, 12, 2890, 13, 1947, 273, 365, 18, 5457, 18, 4272, 1542, 273, 1696, 12, 4272, 18, 29363, 67, 3202, 2934, 896, 1435, 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, 4204, 12, 2890, 4672, 1729, 24, 5212, 21, 18, 2289, 18, 13929, 12, 2890, 13, 1947, 273, 365, 18, 5457, 18, 4272, 1542, 273, 1696, 12, 4272, 18, 29363, 67, 3202, 2934, 896, 1435, 468, ...
fname,ext = os.path.splitext(f.split('/')[-1])
mod_lst = f.split('/') fname,ext = os.path.splitext(mod_lst[-1])
def start(self): s = self.build.getSourceStamp() self.pofiles = [] for change in s.changes: files = ( change.files_added + change.files_modified + [f[1] for f in change.files_renamed] ) for f in files: fname,ext = os.path.splitext(f.split('/')[-1]) if ext == '.po': if 'bin' in f.split('/'): addonsdir = '' else: addonsd...
ebbf77dbde8b1ca1e43ac3ea55be7b01ef0199a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12355/ebbf77dbde8b1ca1e43ac3ea55be7b01ef0199a8/buildstep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 272, 273, 365, 18, 3510, 18, 588, 1830, 8860, 1435, 365, 18, 84, 792, 1449, 273, 5378, 364, 2549, 316, 272, 18, 6329, 30, 1390, 273, 261, 2549, 18, 2354, 67, 966...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 272, 273, 365, 18, 3510, 18, 588, 1830, 8860, 1435, 365, 18, 84, 792, 1449, 273, 5378, 364, 2549, 316, 272, 18, 6329, 30, 1390, 273, 261, 2549, 18, 2354, 67, 966...
EMR_UNKNOWN.__init__(self)
_EMR_UNKNOWN.__init__(self)
def __init__(self): EMR_UNKNOWN.__init__(self)
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 7141, 54, 67, 14737, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 7141, 54, 67, 14737, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self_.cv.acquire()
logging.debug("Broker Event STABLE received"); self._cv.acquire()
def do_broker_events(self): count = 0 valid = self.impl.getEvent(self._event) while valid: count += 1 # print "Broker Event: ", self._event.kind if self._event.kind == qmfengine.BrokerEvent.BROKER_INFO: pass elif self._event.kind == qmfengine.BrokerEvent.DECLARE_QUEUE: self.conn.impl.declareQueue(self._session.handle, ...
baef67bcc8ab8c9bd2d1c1939587efa7edf66937 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/198/baef67bcc8ab8c9bd2d1c1939587efa7edf66937/qmf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 21722, 67, 5989, 12, 2890, 4672, 1056, 273, 374, 923, 273, 365, 18, 11299, 18, 588, 1133, 12, 2890, 6315, 2575, 13, 1323, 923, 30, 1056, 1011, 404, 468, 1172, 315, 11194, 2587...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 21722, 67, 5989, 12, 2890, 4672, 1056, 273, 374, 923, 273, 365, 18, 11299, 18, 588, 1133, 12, 2890, 6315, 2575, 13, 1323, 923, 30, 1056, 1011, 404, 468, 1172, 315, 11194, 2587...
numcols = t.numcols
numcols = max(len(row.children) for row in t.children)
def checkSpans(t): if getattr(t, 'checked_spans', False): return styles = [] num_rows = len(t.children) for row_idx, row in enumerate(t.children): col_idx = 0 for cell in row.children: if cell.colspan > 1: emptycell = getEmptyCell(None, cell.colspan-1, cell.rowspan) emptycell.moveto(cell) # move behind orignal cell if ...
9a857e9d04b90f8ad6a3e645aa6eb82007fdda09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/9a857e9d04b90f8ad6a3e645aa6eb82007fdda09/rltables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 17798, 12, 88, 4672, 309, 3869, 12, 88, 16, 296, 4532, 67, 30885, 2187, 1083, 4672, 327, 5687, 273, 5378, 818, 67, 3870, 273, 562, 12, 88, 18, 5906, 13, 364, 1027, 67, 3465, 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, 866, 17798, 12, 88, 4672, 309, 3869, 12, 88, 16, 296, 4532, 67, 30885, 2187, 1083, 4672, 327, 5687, 273, 5378, 818, 67, 3870, 273, 562, 12, 88, 18, 5906, 13, 364, 1027, 67, 3465, 16,...
data = np.empty(self.shape, np.float)
data = np.empty(self.shape, self.dtype)
def get_leaktest_scenario(self): self.assertAlmostEqual(np.prod(self.shape)*np.nbytes[np.float], \ self.footprint, -2) #100B
88b603ff621e2ad746a5d41f5fd968d468f8b565 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/88b603ff621e2ad746a5d41f5fd968d468f8b565/vtk_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 298, 581, 3813, 67, 26405, 12, 2890, 4672, 365, 18, 11231, 1067, 10329, 5812, 12, 6782, 18, 17672, 12, 2890, 18, 4867, 17653, 6782, 18, 82, 3890, 63, 6782, 18, 5659, 6487, 521...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 298, 581, 3813, 67, 26405, 12, 2890, 4672, 365, 18, 11231, 1067, 10329, 5812, 12, 6782, 18, 17672, 12, 2890, 18, 4867, 17653, 6782, 18, 82, 3890, 63, 6782, 18, 5659, 6487, 521...
if _debug: print "\tBASE: Called Plot.setYLabel()"
debugMsg("Called Plot.setYLabel()")
def setYLabel(self,label): """ Set the label of the y-axis
38fd554c4a21e1b5b45fa19628e36da643a2dbda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/38fd554c4a21e1b5b45fa19628e36da643a2dbda/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27837, 2224, 12, 2890, 16, 1925, 4672, 3536, 1000, 326, 1433, 434, 326, 677, 17, 4890, 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, 27837, 2224, 12, 2890, 16, 1925, 4672, 3536, 1000, 326, 1433, 434, 326, 677, 17, 4890, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
new_bmp = wx.ArtProvider.GetBitmap(wx.ART_NORMAL_FILE, wx.ART_TOOLBAR) open_bmp = wx.ArtProvider.GetBitmap(wx.ART_FILE_OPEN, wx.ART_TOOLBAR) save_bmp = wx.ArtProvider.GetBitmap(wx.ART_FILE_SAVE, wx.ART_TOOLBAR) undo_bmp = wx.ArtProvider.GetBitmap(wx.ART_UNDO, wx.ART_TOOLBAR) redo_bmp = wx.ArtProvider.GetBitmap(wx.ART_...
if wx.Platform != '__WXMAC__': new_bmp = wx.ArtProvider.GetBitmap(wx.ART_NORMAL_FILE, wx.ART_TOOLBAR) open_bmp = wx.ArtProvider.GetBitmap(wx.ART_FILE_OPEN, wx.ART_TOOLBAR) save_bmp = wx.ArtProvider.GetBitmap(wx.ART_FILE_SAVE, wx.ART_TOOLBAR) undo_bmp = wx.ArtProvider.GetBitmap(wx.ART_UNDO, wx.ART_TOOLBAR) redo_bmp ...
def __init__(self, pos, size): wx.Frame.__init__(self, None, -1, '', pos, size) global frame frame = g.frame = self bar = self.CreateStatusBar(2) bar.SetStatusWidths([-1, 40]) self.SetIcon(images.getIconIcon())
2702a0c1bf81b553f493320776918fe5d9259e7e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12725/2702a0c1bf81b553f493320776918fe5d9259e7e/xrced.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 949, 16, 963, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 10226, 949, 16, 963, 13, 2552, 2623, 2623, 273, 314, 18, 3789...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 949, 16, 963, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 10226, 949, 16, 963, 13, 2552, 2623, 2623, 273, 314, 18, 3789...
bm <address-address> [process] - set memory breakpoint
[~process] bm <address-address> - set memory breakpoint
def do_bm(self, arg): """ bm <address-address> [process] - set memory breakpoint """ if not self.lastEvent: raise CmdError, "no process is being debugged" token_list = self.split_tokens(arg, 1, 2) if len(token_list) > 1: pid = self.input_process(token_list[1]) else: pid = self.lastEvent.get_pid() address, size = self.i...
95edb553305e95a1ded0ce46aa595556f55c8dbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/95edb553305e95a1ded0ce46aa595556f55c8dbe/pdebug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 25709, 12, 2890, 16, 1501, 4672, 3536, 306, 98, 2567, 65, 18829, 411, 2867, 17, 2867, 34, 300, 444, 3778, 18820, 3536, 309, 486, 365, 18, 2722, 1133, 30, 1002, 13328, 668, 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, 741, 67, 25709, 12, 2890, 16, 1501, 4672, 3536, 306, 98, 2567, 65, 18829, 411, 2867, 17, 2867, 34, 300, 444, 3778, 18820, 3536, 309, 486, 365, 18, 2722, 1133, 30, 1002, 13328, 668, 16,...
self.refresh_patch(cache_update = False, log = log)
self.refresh_patch(bottom = head, cache_update = False, log = log)
def push_patch(self, name): """Pushes a patch on the stack """ unapplied = self.get_unapplied() assert(name in unapplied)
6889c93cb0d60acea1af4b490559cc88b4128de5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/6889c93cb0d60acea1af4b490559cc88b4128de5/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 67, 2272, 12, 2890, 16, 508, 4672, 3536, 7621, 281, 279, 4729, 603, 326, 2110, 3536, 640, 438, 3110, 273, 365, 18, 588, 67, 318, 438, 3110, 1435, 1815, 12, 529, 316, 640, 438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1817, 67, 2272, 12, 2890, 16, 508, 4672, 3536, 7621, 281, 279, 4729, 603, 326, 2110, 3536, 640, 438, 3110, 273, 365, 18, 588, 67, 318, 438, 3110, 1435, 1815, 12, 529, 316, 640, 438, ...
p = 'espeak text="%s" pitch=%d rate=%d voice=%s ' \
p = 'espeak name=espeak ' \
def _speak(self, status, text): pitch = int(status.pitch) - 100 rate = int(status.rate) - 100
d6103cdd84e6fd9109678d4ee999f37ed4b356e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6949/d6103cdd84e6fd9109678d4ee999f37ed4b356e9/audio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 87, 10244, 12, 2890, 16, 1267, 16, 977, 4672, 14486, 273, 509, 12, 2327, 18, 25910, 13, 300, 2130, 4993, 273, 509, 12, 2327, 18, 5141, 13, 300, 2130, 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, 389, 87, 10244, 12, 2890, 16, 1267, 16, 977, 4672, 14486, 273, 509, 12, 2327, 18, 25910, 13, 300, 2130, 4993, 273, 509, 12, 2327, 18, 5141, 13, 300, 2130, 2, -100, -100, -100, -100, ...
n = 0
n = 0L
def addr2bin (addr): if type(addr) == type(0): return addr bytes = addr.split('.') if len(bytes) != 4: raise ValueError, 'bad IP address' n = 0 for byte in bytes: n = n<<8 | int(byte) return n
fc9b88bb917a0ca81a8b61f8ad145d77419f879c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/fc9b88bb917a0ca81a8b61f8ad145d77419f879c/Lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3091, 22, 4757, 261, 4793, 4672, 309, 618, 12, 4793, 13, 422, 618, 12, 20, 4672, 327, 3091, 1731, 273, 3091, 18, 4939, 2668, 1093, 13, 309, 562, 12, 3890, 13, 480, 1059, 30, 1002, 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, 3091, 22, 4757, 261, 4793, 4672, 309, 618, 12, 4793, 13, 422, 618, 12, 20, 4672, 327, 3091, 1731, 273, 3091, 18, 4939, 2668, 1093, 13, 309, 562, 12, 3890, 13, 480, 1059, 30, 1002, 20...
if self.op.snode is None: raise errors.OpPrereqError("The networked disk templates need" " a mirror node", errors.ECODE_INVAL)
def CheckPrereq(self): """Check prerequisites.
af5970abf5026ae438d0a64a964cf6414f800a26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/af5970abf5026ae438d0a64a964cf6414f800a26/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
eval ("self._vtk_obj.%s (\"%s\")"%(m, val))
eval ("self._vtk_obj.%s (r\"%s\")"%(m, val))
def apply_changes (self, event=None):
2c577f838e995d5eff68e716cbee2c1ea890e138 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/2c577f838e995d5eff68e716cbee2c1ea890e138/ConfigVtkObj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 6329, 261, 2890, 16, 871, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2230, 67, 6329, 261, 2890, 16, 871, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ready = select.select ([self.client, self.tun_sock], [], [], 1)
ready = select.select ([self.client, self.tun_sock], [], [], 0.5)
def run (self): global pfsd_port try: self.tun_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.tun_sock.connect ((self.remote_ip, self.remote_port))
06f9f6679283b3891781dbcda4305146aa4b6782 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12216/06f9f6679283b3891781dbcda4305146aa4b6782/lan_tun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2552, 293, 2556, 72, 67, 655, 775, 30, 365, 18, 88, 318, 67, 15031, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 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, 1086, 261, 2890, 4672, 2552, 293, 2556, 72, 67, 655, 775, 30, 365, 18, 88, 318, 67, 15031, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13...
if 5 in remaining_primes and E.is_reducible(5) and N.is_prime(): remaining_primes.remove(5) print 'True for p=5 by Mazur'
if N.is_prime(): for p in remaining_primes: if E.is_reducible(p): remaining_primes.remove(p) print 'True for p=%s by Mazur'%p
def prove_BSD(self, verbosity=0, simon=False, proof=None): """ Attempts to prove the Birch and Swinnerton-Dyer conjectural formula for `E`, returning a list of primes `p` for which this function fails to prove BSD(E,p). Here, BSD(E,p) is the statement: "the Birch and Swinnerton-Dyer formula holds up to a rational numb...
58785ed05c306558b1915d145d76acb03e720c6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/58785ed05c306558b1915d145d76acb03e720c6e/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 537, 67, 30780, 12, 2890, 16, 11561, 33, 20, 16, 3142, 265, 33, 8381, 16, 14601, 33, 7036, 4672, 3536, 6020, 9585, 358, 450, 537, 326, 605, 481, 343, 471, 5434, 267, 82, 1051, 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, 450, 537, 67, 30780, 12, 2890, 16, 11561, 33, 20, 16, 3142, 265, 33, 8381, 16, 14601, 33, 7036, 4672, 3536, 6020, 9585, 358, 450, 537, 326, 605, 481, 343, 471, 5434, 267, 82, 1051, 2...
config.scan.cab.polarization.value,
config.scan.cab.modulation.value,
def keyGo(self): tlist = [] flags = 0 if (config.scan.type.value == 0): # single transponder scan if (nimmanager.getNimType(config.scan.nims.value) == nimmanager.nimType["DVB-S"]): self.addSatTransponder(tlist, config.scan.sat.frequency.value[0], config.scan.sat.symbolrate.value[0], config.scan.sat.polarization.value, ...
7f2be2921d806077eb1cca6c3016c767cb76fd22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/7f2be2921d806077eb1cca6c3016c767cb76fd22/ScanSetup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 5741, 12, 2890, 4672, 268, 1098, 273, 5378, 2943, 273, 374, 309, 261, 1425, 18, 9871, 18, 723, 18, 1132, 422, 374, 4672, 468, 2202, 906, 17707, 4135, 309, 261, 82, 381, 4181, 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, 498, 5741, 12, 2890, 4672, 268, 1098, 273, 5378, 2943, 273, 374, 309, 261, 1425, 18, 9871, 18, 723, 18, 1132, 422, 374, 4672, 468, 2202, 906, 17707, 4135, 309, 261, 82, 381, 4181, 18, ...
ostream.close()
os.remove(path)
def test_export_import_as_file_idempotent(self): from OFS.DTMLMethod import DTMLMethod from OFS.XMLExportImport import exportXML from OFS.XMLExportImport import importXML
77e086c8919a0209ebd7eda0130e6c30bbba3b4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/77e086c8919a0209ebd7eda0130e6c30bbba3b4f/test_XMLExportImport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6530, 67, 5666, 67, 345, 67, 768, 67, 831, 17854, 319, 12, 2890, 4672, 628, 531, 4931, 18, 40, 2838, 1305, 1930, 463, 2838, 1305, 628, 531, 4931, 18, 4201, 6144, 5010, 1930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6530, 67, 5666, 67, 345, 67, 768, 67, 831, 17854, 319, 12, 2890, 4672, 628, 531, 4931, 18, 40, 2838, 1305, 1930, 463, 2838, 1305, 628, 531, 4931, 18, 4201, 6144, 5010, 1930, ...
if actor.block: status = True n = actor.get_nb_output() outputs = [i for i in range(n) if actor.get_output(i) is not None ] if not outputs: status = False return status
try: if actor.block: status = True n = actor.get_nb_output() outputs = [i for i in range(n) if actor.get_output(i) is not None ] if not outputs: status = False return status except: pass
def is_stopped(self, vid, actor): """ Return True if evaluation must be stop at this vertex """ if vid in self._evaluated: return True
339d18d7a3c4c0f226039a7345a4ee355f9165f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11338/339d18d7a3c4c0f226039a7345a4ee355f9165f8/dataflow_evaluation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 24228, 12, 2890, 16, 18339, 16, 8327, 4672, 3536, 2000, 1053, 309, 9873, 1297, 506, 2132, 622, 333, 5253, 3536, 225, 309, 18339, 316, 365, 6315, 14168, 690, 30, 327, 1053, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 24228, 12, 2890, 16, 18339, 16, 8327, 4672, 3536, 2000, 1053, 309, 9873, 1297, 506, 2132, 622, 333, 5253, 3536, 225, 309, 18339, 316, 365, 6315, 14168, 690, 30, 327, 1053, 2, ...
def constructSessionDataManager(self, id, title='', path=None, automatic=None,
def constructSessionDataManager(self, id, title='', path=None, requestName=None,
def constructSessionDataManager(self, id, title='', path=None, automatic=None, REQUEST=None): """ """ ob = SessionDataManager(id, path, title, automatic) self._setObject(id, ob) if REQUEST is not None: return self.manage_main(self, REQUEST, update_menu=1)
19985ee3fa2b5130bfb09a7ea7bf8aa014e8257c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/19985ee3fa2b5130bfb09a7ea7bf8aa014e8257c/SessionDataManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4872, 2157, 751, 1318, 12, 2890, 16, 612, 16, 2077, 2218, 2187, 589, 33, 7036, 16, 590, 461, 33, 7036, 16, 12492, 33, 7036, 4672, 3536, 3536, 3768, 273, 3877, 751, 1318, 12, 350, 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, 4872, 2157, 751, 1318, 12, 2890, 16, 612, 16, 2077, 2218, 2187, 589, 33, 7036, 16, 590, 461, 33, 7036, 16, 12492, 33, 7036, 4672, 3536, 3536, 3768, 273, 3877, 751, 1318, 12, 350, 16, ...
self.__init__(filename=self.__file__)
self.__init__(filename=self._config.get('__file__'))
def reload(self): os.environ = self._orig_environ.copy() self.__init__(filename=self.__file__)
94be7c6de49838fdcb60b6e804a45c34bd644cbf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4596/94be7c6de49838fdcb60b6e804a45c34bd644cbf/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 4672, 1140, 18, 28684, 273, 365, 6315, 4949, 67, 28684, 18, 3530, 1435, 365, 16186, 2738, 972, 12, 3459, 33, 2890, 16186, 768, 972, 13, 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, 7749, 12, 2890, 4672, 1140, 18, 28684, 273, 365, 6315, 4949, 67, 28684, 18, 3530, 1435, 365, 16186, 2738, 972, 12, 3459, 33, 2890, 16186, 768, 972, 13, 2, -100, -100, -100, -100, -100, ...
def getItemTitle (self, index, item): id = item.GetId() title = self.GetLabel (id) return title
def getMenuItems (self): return self.GetMenuItems()
a50680d3bcb16e290e0705a6e2a06ddeae8d025a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a50680d3bcb16e290e0705a6e2a06ddeae8d025a/MenusAndToolbars.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25877, 3126, 261, 2890, 4672, 327, 365, 18, 967, 4599, 3126, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25877, 3126, 261, 2890, 4672, 327, 365, 18, 967, 4599, 3126, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
dci = matlib.empty([len(time), matlib.size(p)])
dci = matlib.zeros([len(time), matlib.size(p)])
def calcHessianJtrA(dc, c, y): ctc = matlib.dot(c.T, c) ctcinv = ctc.I aux = matlib.dot(ctcinv, c.T) a = matlib.dot(aux, y) aux = matlib.dot(c, a) r = aux - y ssq = 0 for i in range(0, r.shape[0]): for j in range(0, r.shape[1]): ssq += r[i,j] * r[i,j] j = matlib.empty([dc[0].shape[0], len(dc)]) dq = [] for p in range(0...
bbe3f10e4c957a215ad479cad9a3a0f1cc9edd6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10129/bbe3f10e4c957a215ad479cad9a3a0f1cc9edd6e/ngml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 44, 20529, 46, 313, 37, 12, 7201, 16, 276, 16, 677, 4672, 276, 5111, 273, 4834, 2941, 18, 9811, 12, 71, 18, 56, 16, 276, 13, 276, 5111, 5768, 273, 276, 5111, 18, 45, 9397, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 44, 20529, 46, 313, 37, 12, 7201, 16, 276, 16, 677, 4672, 276, 5111, 273, 4834, 2941, 18, 9811, 12, 71, 18, 56, 16, 276, 13, 276, 5111, 5768, 273, 276, 5111, 18, 45, 9397, 27...
def toString(self, globals={}, locals={}):
def toString(self, globals=None, locals=None):
def toString(self, globals={}, locals={}): '''Renders template and returns result as string.''' fp = _Writer() self.toFile(fp, globals, locals) return fp.getvalue()
32d8dc455f3bea0ee8d80cdf8bcc209baac35aac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1872/32d8dc455f3bea0ee8d80cdf8bcc209baac35aac/Controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1762, 12, 2890, 16, 10941, 33, 7036, 16, 8985, 33, 7036, 4672, 9163, 10900, 1542, 471, 1135, 563, 487, 533, 1093, 6309, 4253, 273, 389, 2289, 1435, 365, 18, 869, 812, 12, 7944, 16, 109...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1762, 12, 2890, 16, 10941, 33, 7036, 16, 8985, 33, 7036, 4672, 9163, 10900, 1542, 471, 1135, 563, 487, 533, 1093, 6309, 4253, 273, 389, 2289, 1435, 365, 18, 869, 812, 12, 7944, 16, 109...
output += '\n'.join([self.markup(line, 'output') for line in want.split('\n')])
output += self.NEWLINE.join([self.markup(line, 'output') for line in want.split('\n')])
def colorize_doctest(self, s, strip_directives=False): """ Colorize a string containing one or more doctest examples. """ output = [] charno = 0 for m in self.DOCTEST_EXAMPLE_RE.finditer(s): # Parse the doctest example: pysrc, want = m.group('source', 'want') # Pre-example text: output.append(s[charno:m.start()]) # Exa...
34fa141212cd065ec34c07f027d315059d9e82cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3512/34fa141212cd065ec34c07f027d315059d9e82cb/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21077, 67, 2896, 299, 395, 12, 2890, 16, 272, 16, 2569, 67, 30850, 33, 8381, 4672, 3536, 5563, 554, 279, 533, 4191, 1245, 578, 1898, 31263, 395, 10991, 18, 3536, 876, 273, 5378, 1149, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21077, 67, 2896, 299, 395, 12, 2890, 16, 272, 16, 2569, 67, 30850, 33, 8381, 4672, 3536, 5563, 554, 279, 533, 4191, 1245, 578, 1898, 31263, 395, 10991, 18, 3536, 876, 273, 5378, 1149, ...
("%s-mdrun-stdout.txt" % gmxFullBaseFileName)
("%s-mdrun-stdout.txt" % gromacsFullBaseFileName)
def run_using_old_movie_obj_to_hold_sim_params(self, movie): #bruce 051115 removed unused 'options' arg self._movie = movie # general kluge for old-code compat (lots of our methods still use this and modify it) # note, this movie object (really should be a simsetup object?) does not yet know a proper alist (or any alis...
ebefa2b2e13eb7c8a72bc6f8929f5ff6cbaa85bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/ebefa2b2e13eb7c8a72bc6f8929f5ff6cbaa85bd/runSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 468, 2848, 3965, 15331, 2499, 3600, 3723, 10197, 296, 2116, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 468, 2848, 3965, 15331, 2499, 3600, 3723, 10197, 296, 2116, 11, ...
offset_i = k*(KE-KEshared)*M
offset_i = k*NE
def create_noise_connectivity_matrix_fixed_pairwise(M, Nnoise, gamma, g, w, epsilon): NE = int(gamma * Nnoise) NI = int(Nnoise - NE) KE = int(epsilon * NE) KI = int(epsilon * NI) KEshared = 0 KIshared = 0 if NE > 0: KEshared = int(1. * KE**2 / NE) if NI > 0: KIshared = int(1. * KI**2 / NI) # check whether it is possibl...
045cba9a6ea9b90da97b42fd30566b5cd9ba39f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6301/045cba9a6ea9b90da97b42fd30566b5cd9ba39f3/helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 17814, 67, 3612, 2818, 67, 5667, 67, 12429, 67, 6017, 2460, 12, 49, 16, 423, 17814, 16, 9601, 16, 314, 16, 341, 16, 12263, 4672, 12901, 273, 509, 12, 20589, 380, 423, 17814, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17814, 67, 3612, 2818, 67, 5667, 67, 12429, 67, 6017, 2460, 12, 49, 16, 423, 17814, 16, 9601, 16, 314, 16, 341, 16, 12263, 4672, 12901, 273, 509, 12, 20589, 380, 423, 17814, ...
if pos == max: break
if pos == max: break
def tokenize(readline, tokeneater=printtoken): lnum = parenlev = continued = 0 namechars, numchars = string.letters + '_', string.digits contstr = '' indents = [0] while 1: # loop over lines in stream line = readline() lnum = lnum + 1 pos, max = 0, len(line) if contstr: ...
da67869f766cef01e3126399eb209553c39dc565 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/da67869f766cef01e3126399eb209553c39dc565/tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13672, 12, 896, 1369, 16, 1147, 73, 2045, 33, 1188, 2316, 4672, 328, 2107, 273, 22146, 298, 90, 273, 17545, 5957, 273, 374, 508, 7549, 16, 818, 7549, 273, 533, 18, 26054, 397, 2070, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13672, 12, 896, 1369, 16, 1147, 73, 2045, 33, 1188, 2316, 4672, 328, 2107, 273, 22146, 298, 90, 273, 17545, 5957, 273, 374, 508, 7549, 16, 818, 7549, 273, 533, 18, 26054, 397, 2070, 21...
to_addrs = set([reported_by, assigned_to])
if assigned_to: to_addrs.add(assigned_to)
def _add_row(self, context): user = context.user root = context.root parent = self.parent users = root.get_handler('users')
6c7820da9c7713d993d8c1a078e76566866a6b1c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/6c7820da9c7713d993d8c1a078e76566866a6b1c/tracker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 492, 12, 2890, 16, 819, 4672, 729, 273, 819, 18, 1355, 1365, 273, 819, 18, 3085, 982, 273, 365, 18, 2938, 3677, 273, 1365, 18, 588, 67, 4176, 2668, 5577, 6134, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 67, 492, 12, 2890, 16, 819, 4672, 729, 273, 819, 18, 1355, 1365, 273, 819, 18, 3085, 982, 273, 365, 18, 2938, 3677, 273, 1365, 18, 588, 67, 4176, 2668, 5577, 6134, 2, -100...
if os.path.exists(os.path.join(self.orangeDir, "OrangeCanvas/widgetregistry.xml")):
if os.path.exists(os.path.join(self.orangeDir, "OrangeCanvas/widgetregistry.xml")) and newFiles + updatedFiles > 0:
def executeUpdate(self): self.addText("Starting updating new files") self.addText("Reading file status from server")
a02e8d7153f2c4738602d3234a7588184bd80c5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/a02e8d7153f2c4738602d3234a7588184bd80c5f/updateOrange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17521, 12, 2890, 4672, 365, 18, 1289, 1528, 2932, 11715, 9702, 394, 1390, 7923, 365, 18, 1289, 1528, 2932, 15714, 585, 1267, 628, 1438, 7923, 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, 0, 0, 0, 0, 0, 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, 17521, 12, 2890, 4672, 365, 18, 1289, 1528, 2932, 11715, 9702, 394, 1390, 7923, 365, 18, 1289, 1528, 2932, 15714, 585, 1267, 628, 1438, 7923, 2, -100, -100, -100, -100, -100, -100, -100, ...
self.on_font_change(mods, justify, family, size)
self.on_font_change(self.editor, mods, justify, family, size)
def on_font_size_inc(self): mods, justify, family, size = self.editor.get_textview().get_font() size += 2 self.editor.get_textview().on_font_size_set(size) self.on_font_change(mods, justify, family, size)
6f51b0134803173aa6a008cc6f4b020c0aa3af62 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/6f51b0134803173aa6a008cc6f4b020c0aa3af62/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5776, 67, 1467, 67, 9523, 12, 2890, 4672, 15546, 16, 31455, 16, 6755, 16, 963, 273, 365, 18, 9177, 18, 588, 67, 955, 1945, 7675, 588, 67, 5776, 1435, 963, 1011, 576, 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, 603, 67, 5776, 67, 1467, 67, 9523, 12, 2890, 4672, 15546, 16, 31455, 16, 6755, 16, 963, 273, 365, 18, 9177, 18, 588, 67, 955, 1945, 7675, 588, 67, 5776, 1435, 963, 1011, 576, 365, 18...
window = ui.windows.manager.get_active()
window = windows.manager.get_active()
def trigger_start(): events.trigger("Start") if not windows: windows.new(StatusWindow, None, "status").activate() window = ui.windows.manager.get_active() events.run(command, window, window.network)
05b3c9d6be6f5391ba554a39c763b355b56bdd09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/05b3c9d6be6f5391ba554a39c763b355b56bdd09/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3080, 67, 1937, 13332, 2641, 18, 10668, 2932, 1685, 7923, 225, 309, 486, 9965, 30, 9965, 18, 2704, 12, 1482, 3829, 16, 599, 16, 315, 2327, 20387, 10014, 1435, 225, 2742, 273, 9965, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3080, 67, 1937, 13332, 2641, 18, 10668, 2932, 1685, 7923, 225, 309, 486, 9965, 30, 9965, 18, 2704, 12, 1482, 3829, 16, 599, 16, 315, 2327, 20387, 10014, 1435, 225, 2742, 273, 9965, 18, ...
print "! Compiling model failed." def parse_model(model_file_name, model_class_name):
def parse_model(model_file_name):
def compile_model(model_file_name, model_class_name, build_wth_algs=False): """ Performs all steps in the compilation of a model: parsing, instantiating, flattening, code generation and dll generation. Outputs are object file, c-code file, xml file and dll which are all written to the folder in which the compilation is...
2f2d35507cfe9a5104de512cd9432f3c4a6d6c5f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/2f2d35507cfe9a5104de512cd9432f3c4a6d6c5f/compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 2284, 12, 2284, 67, 768, 67, 529, 16, 938, 67, 1106, 67, 529, 16, 1361, 67, 91, 451, 67, 287, 564, 33, 8381, 4672, 3536, 27391, 777, 6075, 316, 326, 8916, 434, 279, 938, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2284, 12, 2284, 67, 768, 67, 529, 16, 938, 67, 1106, 67, 529, 16, 1361, 67, 91, 451, 67, 287, 564, 33, 8381, 4672, 3536, 27391, 777, 6075, 316, 326, 8916, 434, 279, 938, ...
name = ensure_utf8(name) executable_path = ensure_utf8(executable_path)
def dyld_find(name, executable_path=None, env=None): """ Find a library or framework using dyld semantics """ name = ensure_utf8(name) executable_path = ensure_utf8(executable_path) for path in dyld_image_suffix_search(chain( dyld_override_search(name, env), dyld_executable_path_search(name, executable_path), dyld_defa...
c7515ac134ac943a1c65a28da3dc299946e7576a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/c7515ac134ac943a1c65a28da3dc299946e7576a/dyld.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7732, 1236, 67, 4720, 12, 529, 16, 9070, 67, 803, 33, 7036, 16, 1550, 33, 7036, 4672, 3536, 4163, 279, 5313, 578, 8257, 1450, 7732, 1236, 17267, 3536, 364, 589, 316, 7732, 1236, 67, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7732, 1236, 67, 4720, 12, 529, 16, 9070, 67, 803, 33, 7036, 16, 1550, 33, 7036, 4672, 3536, 4163, 279, 5313, 578, 8257, 1450, 7732, 1236, 17267, 3536, 364, 589, 316, 7732, 1236, 67, 27...
if self.date_lst_string: self.cr.execute( "SELECT l.id,l.date,j.code, l.ref, l.name, l.debit, l.credit,l.amount_currency,c.code AS currency_code " \ "FROM account_move_line l " \ "LEFT JOIN account_journal j " \ "ON (l.journal_id = j.id) " \ "LEFT JOIN res_currency c on (l.currency_id=c.id)" \ "WHERE l.partner_id = %s ...
self.cr.execute( "SELECT l.id,l.date,j.code, l.ref, l.name, l.debit, l.credit,l.amount_currency,c.code AS currency_code " \ "FROM account_move_line l " \ "LEFT JOIN account_journal j " \ "ON (l.journal_id = j.id) " \ "LEFT JOIN res_currency c on (l.currency_id=c.id)" \ "WHERE l.partner_id = %s " \ "AND l.account_id I...
def lines(self, partner,data): full_account = [] if data['form']['reconcil'] : RECONCILE_TAG = " " else: RECONCILE_TAG = "AND l.reconcile_id IS NULL"
fbadca8d34f0137a629f314b5e51a2ecd4c769b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fbadca8d34f0137a629f314b5e51a2ecd4c769b8/third_party_ledger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2362, 12, 2890, 16, 19170, 16, 892, 4672, 1983, 67, 4631, 273, 5378, 309, 501, 3292, 687, 21712, 266, 11504, 330, 3546, 294, 2438, 2248, 7266, 900, 67, 7927, 273, 315, 315, 469, 30, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2362, 12, 2890, 16, 19170, 16, 892, 4672, 1983, 67, 4631, 273, 5378, 309, 501, 3292, 687, 21712, 266, 11504, 330, 3546, 294, 2438, 2248, 7266, 900, 67, 7927, 273, 315, 315, 469, 30, 24...
file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) all_but_last_args = func.GetOriginalArgs()[:-1] arg_string = ( ", ".join(["%s" % arg.name for arg in all_but_last_args])) code = """ typedef %(func_name)s::Result Result;
impl_decl = func.GetInfo('impl_decl') if impl_decl == None or impl_decl == True: file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) all_but_last_args = func.GetOriginalArgs()[:-1] arg_string = ( ", ".join(["%s" % arg.name for arg in all_but_last_args])) code = """ ...
def WriteGLES2ImplementationHeader(self, func, file): """Overrriden from TypeHandler.""" file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) all_but_last_args = func.GetOriginalArgs()[:-1] arg_string = ( ", ".join(["%s" % arg.name for arg in all_but_last_args])) cod...
29a9eb570a57f7c8d2204e18bb11be2b7d565b74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/29a9eb570a57f7c8d2204e18bb11be2b7d565b74/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 27188, 87, 738, 87, 9275, 87, 13, 18890, 82, 6, 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, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 27188, 87, 738, 87, 9275, 87, 13, 18890, 82, 6, 738,...
s = scsiinfo.split()
s = scsiinfo.replace(']', '] ').split()
def _vscsi_get_scsidevices_by_lsscsi(option = ""): """ get all scsi devices information by lsscsi """ devices = [] for scsiinfo in os.popen('{ lsscsi -g %s; } 2>/dev/null' % option).readlines(): s = scsiinfo.split() hctl = s[0][1:-1] try: devname = s[-2].split('/dev/')[1] except IndexError: devname = None try: sg = s...
636d57a1ceee7b9445781f0fed78dc87c7ab2f01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6195/636d57a1ceee7b9445781f0fed78dc87c7ab2f01/vscsi_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 90, 1017, 7722, 67, 588, 67, 1017, 5564, 2094, 67, 1637, 67, 3251, 1017, 7722, 12, 3482, 273, 1408, 4672, 3536, 336, 777, 888, 7722, 7166, 1779, 635, 7180, 1017, 7722, 3536, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 90, 1017, 7722, 67, 588, 67, 1017, 5564, 2094, 67, 1637, 67, 3251, 1017, 7722, 12, 3482, 273, 1408, 4672, 3536, 336, 777, 888, 7722, 7166, 1779, 635, 7180, 1017, 7722, 3536, 225, ...
stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, Contexteters)
stream = XMLParser(data, NAMESPACES) stream.next() para = paragraph_stream(stream, 'p', {}, context)
def test_formatting(self): Contexteters = Context() data = '<p>TXT <i>TEXT<u>TEXT</u></i></p>' stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, Contexteters) self.assertEqual(para.text, '<para>TXT <i>TEXT<u>TEXT</u></i></para>')
3f5572cf3ff452e63a9867d97740e432a5973b1d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/3f5572cf3ff452e63a9867d97740e432a5973b1d/test_rml2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2139, 1787, 12, 2890, 4672, 1772, 1032, 273, 1772, 1435, 501, 273, 2368, 84, 34, 29399, 411, 77, 34, 5151, 32, 89, 34, 5151, 1757, 89, 4695, 77, 4695, 84, 1870, 1407, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2139, 1787, 12, 2890, 4672, 1772, 1032, 273, 1772, 1435, 501, 273, 2368, 84, 34, 29399, 411, 77, 34, 5151, 32, 89, 34, 5151, 1757, 89, 4695, 77, 4695, 84, 1870, 1407, 273, ...
return NGram, (list(self), self.threshold, self.warp, self.key,
return NGram, (list(self), self.threshold, self.warp, self._key,
def __reduce__(self): """Return state information for pickling, no references to this instance.""" return NGram, (list(self), self.threshold, self.warp, self.key, self.N, self._pad_len, self._pad_char)
6149725c463762d88bddd802a0ff907e06438dfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12095/6149725c463762d88bddd802a0ff907e06438dfd/ngram.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12498, 972, 12, 2890, 4672, 3536, 990, 919, 1779, 364, 6002, 2456, 16, 1158, 5351, 358, 333, 791, 12123, 327, 423, 43, 1940, 16, 261, 1098, 12, 2890, 3631, 365, 18, 8699, 16, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12498, 972, 12, 2890, 4672, 3536, 990, 919, 1779, 364, 6002, 2456, 16, 1158, 5351, 358, 333, 791, 12123, 327, 423, 43, 1940, 16, 261, 1098, 12, 2890, 3631, 365, 18, 8699, 16, 365...
if dir not in dirs and os.path.isdir(dir):
normdir = os.path.normcase(dir) if normdir not in normdirs and os.path.isdir(dir):
def pathdirs(): """Convert sys.path into a list of absolute, existing, unique paths.""" dirs = [] for dir in sys.path: dir = os.path.abspath(dir or '.') if dir not in dirs and os.path.isdir(dir): dirs.append(dir) return dirs
1d384634bf8f9e6180839048207bfd3539bbbc51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1d384634bf8f9e6180839048207bfd3539bbbc51/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 8291, 13332, 3536, 2723, 2589, 18, 803, 1368, 279, 666, 434, 4967, 16, 2062, 16, 3089, 2953, 12123, 7717, 273, 5378, 364, 1577, 316, 2589, 18, 803, 30, 1577, 273, 1140, 18, 803, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 8291, 13332, 3536, 2723, 2589, 18, 803, 1368, 279, 666, 434, 4967, 16, 2062, 16, 3089, 2953, 12123, 7717, 273, 5378, 364, 1577, 316, 2589, 18, 803, 30, 1577, 273, 1140, 18, 803, 1...
backwards += DELETE_UNIQUE_SNIPPET % (
backwards = DELETE_UNIQUE_SNIPPET % (
new_def = triples_to_defs(app, model, { field_name: new_triple,
db4b60b70d21b1300e659e30e85d13bf29a312ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/db4b60b70d21b1300e659e30e85d13bf29a312ca/startmigration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 394, 67, 536, 273, 22388, 67, 869, 67, 12537, 12, 2910, 16, 938, 16, 288, 652, 67, 529, 30, 394, 67, 313, 2444, 16, 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, 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, 394, 67, 536, 273, 22388, 67, 869, 67, 12537, 12, 2910, 16, 938, 16, 288, 652, 67, 529, 30, 394, 67, 313, 2444, 16, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
This returns a list of values for headers given more than once; each value in the result list is stripped in the same way as the result of getheader(). If the header is not given, return an empty list.
This returns a list of values for headers given more than once; each value in the result list is stripped in the same way as the result of getheader(). If the header is not given, return an empty list.
def getheaders(self, name): """Get all values for a header.
52d51c96f28f628bf085945df0f7b389d6cbc349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52d51c96f28f628bf085945df0f7b389d6cbc349/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2485, 12, 2890, 16, 508, 4672, 3536, 967, 777, 924, 364, 279, 1446, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2485, 12, 2890, 16, 508, 4672, 3536, 967, 777, 924, 364, 279, 1446, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
p.drawText(26,4,w,h,flags,text)
p.drawText(4,4,w,h,flags,text)
def paint_nodes(self, p, drag_type, nodes): "paint a dragobject picture of these nodes into the QPainter p; if you give up, raise an exception; return w,h used??" nn = len(nodes) if not nn: print nodes,"no nodes??" # when i try to drag the clipboard?? because unselected. # need to filter it somehow... should be done no...
c5389ab52b8ceb67187007add71c1b713262bf6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c5389ab52b8ceb67187007add71c1b713262bf6f/TreeWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 67, 4690, 12, 2890, 16, 293, 16, 8823, 67, 723, 16, 2199, 4672, 315, 84, 1598, 279, 8823, 1612, 15406, 434, 4259, 2199, 1368, 326, 2238, 15775, 293, 31, 309, 1846, 8492, 731, 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, 12574, 67, 4690, 12, 2890, 16, 293, 16, 8823, 67, 723, 16, 2199, 4672, 315, 84, 1598, 279, 8823, 1612, 15406, 434, 4259, 2199, 1368, 326, 2238, 15775, 293, 31, 309, 1846, 8492, 731, 16...
if not (opts.min_mass and opts.max_mass and opts.mean_mass and opts.stdev_mass): print >> sys.stderr, "Must specify all mass options" sys.exit(1)
def symlinksafe( target, linkname ): """ Creates a link, does not nag about when it already exists """ try: os.symlink( target, linkname ) except OSError, (errno, strerror): if errno==17: print "WARNING: link %s already exist" % (linkname) else: raise
6ad3c83b17a791224c0765a4003cd99798d403c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/6ad3c83b17a791224c0765a4003cd99798d403c1/upperlimit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10563, 4626, 12, 1018, 16, 1692, 529, 262, 30, 3536, 10210, 279, 1692, 16, 1552, 486, 290, 346, 2973, 1347, 518, 1818, 1704, 3536, 775, 30, 1140, 18, 21278, 12, 1018, 16, 1692, 529, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10563, 4626, 12, 1018, 16, 1692, 529, 262, 30, 3536, 10210, 279, 1692, 16, 1552, 486, 290, 346, 2973, 1347, 518, 1818, 1704, 3536, 775, 30, 1140, 18, 21278, 12, 1018, 16, 1692, 529, 26...
wikipedia.output(u'Checking redirect %i of %i...' % (num + 1, len(dict)))
wikipedia.output(u'\nChecking redirect %i of %i...' % (num + 1, len(dict)))
def retrieve_double_redirects(self): if self.xmlFilename == None: mysite = wikipedia.getSite() # retrieve information from the live wiki's maintenance page # double redirect maintenance page's URL path = mysite.double_redirects_address(default_limit = False) wikipedia.output(u'Retrieving special page...') maintenance_t...
e6e4f04969ca42b49897f4a7392255439f729e38 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/e6e4f04969ca42b49897f4a7392255439f729e38/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 9056, 67, 22715, 12, 2890, 4672, 309, 365, 18, 2902, 5359, 422, 599, 30, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 9056, 67, 22715, 12, 2890, 4672, 309, 365, 18, 2902, 5359, 422, 599, 30, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, ...
currentDirectory = os.path.join(self.config.storageRoot, currentDirectory[5:])
currentDirectory = os.path.join(self.config.storageRoot, currentDirectory[6:])
def priorityJobAllocationLoop(self): try: self.priorityJobAllocationDatabaseConnection = psycopg2.connect(self.config.databaseDSN) self.priorityJobAllocationCursor = self.priorityJobAllocationDatabaseConnection.cursor() except: self.quit = True socorro.lib.util.reportExceptionAndAbort(logger) # can't continue without a...
41ea0d0e06f5242783d4d044b697e5c6dd45361b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/41ea0d0e06f5242783d4d044b697e5c6dd45361b/monitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4394, 2278, 17353, 6452, 12, 2890, 4672, 775, 30, 365, 18, 8457, 2278, 17353, 4254, 1952, 273, 4250, 93, 22295, 75, 22, 18, 3612, 12, 2890, 18, 1425, 18, 6231, 3948, 50, 13, 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, 4394, 2278, 17353, 6452, 12, 2890, 4672, 775, 30, 365, 18, 8457, 2278, 17353, 4254, 1952, 273, 4250, 93, 22295, 75, 22, 18, 3612, 12, 2890, 18, 1425, 18, 6231, 3948, 50, 13, 365, 18, ...
e.x_root = getint(X) e.y_root = getint(Y)
e.x_root = getint_event(X) e.y_root = getint_event(Y)
def _substitute(self, *args): """Internal function.""" if len(args) != len(self._subst_format): return args getboolean = self.tk.getboolean getint = int nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args # Missing: (a, c, d, m, o, v, B, R) e = Event() e.serial = getint(nsign) e.num = getint(b) try: e.fo...
851b1c8d466c86af5052fb03f636288f91058f32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/851b1c8d466c86af5052fb03f636288f91058f32/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1717, 17207, 12, 2890, 16, 380, 1968, 4672, 3536, 3061, 445, 12123, 309, 562, 12, 1968, 13, 480, 562, 12, 2890, 6315, 1717, 334, 67, 2139, 4672, 327, 833, 336, 6494, 273, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1717, 17207, 12, 2890, 16, 380, 1968, 4672, 3536, 3061, 445, 12123, 309, 562, 12, 1968, 13, 480, 562, 12, 2890, 6315, 1717, 334, 67, 2139, 4672, 327, 833, 336, 6494, 273, 365, 18,...
modes, person = e.arguments()
modes, person = e.arguments()[:2]
def on_mode(self, c, e): modes, person = e.arguments() channel = e.target() giver = nm_to_n(e.source()) self.write(channel, self.format["mode"].replace("%channel%", channel) \ .replace("%modes%", modes) \ .replace("%person%", person) \ .replace("%giver%", giver))
6486dce10b93488ae0e3627e3b144bb7accd2ebd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2050/6486dce10b93488ae0e3627e3b144bb7accd2ebd/logbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3188, 12, 2890, 16, 276, 16, 425, 4672, 12382, 16, 6175, 273, 425, 18, 7099, 1435, 10531, 22, 65, 1904, 273, 425, 18, 3299, 1435, 314, 1667, 273, 8442, 67, 869, 67, 82, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3188, 12, 2890, 16, 276, 16, 425, 4672, 12382, 16, 6175, 273, 425, 18, 7099, 1435, 10531, 22, 65, 1904, 273, 425, 18, 3299, 1435, 314, 1667, 273, 8442, 67, 869, 67, 82, 12, ...
x = tensor.Tensor(dtype='float32', broadcastable=(0,0,0,0))('x')
x = tensor.Tensor(dtype='float32', broadcastable=(0,1,0,0))('x')
def run_conv_nnet1(shared_fn): n_batch = 16 n_kern = 20 shape_img = (n_batch, 1, 32, 32) shape_kern = (n_kern, 1, 5, 5) logical_hid_shape = tcn.blas.GpuConv.logical_output_shape_2d(shape_img[2:],shape_kern[2:], 'valid') n_hid = n_kern * logical_hid_shape[0] * logical_hid_shape[1] n_out = 10 w = shared_fn(numpy.asarra...
132c9d49c0fc507cdeefa0967029d34df3cc3208 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/132c9d49c0fc507cdeefa0967029d34df3cc3208/test_nnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4896, 67, 82, 2758, 21, 12, 11574, 67, 4293, 4672, 290, 67, 5303, 273, 2872, 290, 67, 79, 8865, 273, 4200, 2179, 67, 6081, 273, 261, 82, 67, 5303, 16, 404, 16, 3847, 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, 1086, 67, 4896, 67, 82, 2758, 21, 12, 11574, 67, 4293, 4672, 290, 67, 5303, 273, 2872, 290, 67, 79, 8865, 273, 4200, 2179, 67, 6081, 273, 261, 82, 67, 5303, 16, 404, 16, 3847, 16, ...
wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % redir_page.title())
wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % redir_page.title())
def delete_1_broken_redirect(self, redir_name, reason): redir_page = wikipedia.Page(self.site, redir_name) # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % redir_page.title()) try: targetPage = redir_page.getRedirectTarget()...
c499f5c4d7eb66e6b361af0a88786c3f2ea91f11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/c499f5c4d7eb66e6b361af0a88786c3f2ea91f11/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 21, 67, 70, 19906, 67, 7590, 12, 2890, 16, 283, 1214, 67, 529, 16, 3971, 4672, 283, 1214, 67, 2433, 273, 21137, 18, 1964, 12, 2890, 18, 4256, 16, 283, 1214, 67, 529, 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, 1430, 67, 21, 67, 70, 19906, 67, 7590, 12, 2890, 16, 283, 1214, 67, 529, 16, 3971, 4672, 283, 1214, 67, 2433, 273, 21137, 18, 1964, 12, 2890, 18, 4256, 16, 283, 1214, 67, 529, 13, ...
del self._node_pool[highest_scoring_id]
try: del self._node_pool[highest_scoring_id] except: print "couldn't delete", highest_scoring_id
def _resume_populate(self): '''Gather a group of TwitterUsers. Tries to choose a highly interconnected group. Picks up where a previous _populate() call stopped''' while self._node_pool and len(self._community_members) < self._max_population: #choose person on list with highest interconnection #first 0 at end of line i...
bad94276b572cff74b795506016091ff4eeffed5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14113/bad94276b572cff74b795506016091ff4eeffed5/populate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25158, 67, 19936, 12, 2890, 4672, 9163, 26092, 279, 1041, 434, 19551, 6588, 18, 10000, 281, 358, 9876, 279, 3551, 715, 1554, 8537, 1041, 18, 453, 20642, 731, 1625, 279, 2416, 389, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25158, 67, 19936, 12, 2890, 4672, 9163, 26092, 279, 1041, 434, 19551, 6588, 18, 10000, 281, 358, 9876, 279, 3551, 715, 1554, 8537, 1041, 18, 453, 20642, 731, 1625, 279, 2416, 389, 1...
def checktool(char, item, wearout = 0):
def checktool(char, item, wearout = False):
def checktool(char, item, wearout = 0): if not item: return 0 # Has to be in our posession if item.getoutmostchar() != char: char.socket.clilocmessage(500364) return 0 # We do not allow "invulnerable" tools. if not item.hastag('remaining_uses'): char.socket.clilocmessage(1044038) item.delete() return 0 if wearout: u...
9f268bcf5219f9554c119949e15dff3c48669156 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9f268bcf5219f9554c119949e15dff3c48669156/tailoring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 6738, 12, 3001, 16, 761, 16, 732, 297, 659, 273, 1083, 4672, 309, 486, 761, 30, 327, 374, 225, 468, 4393, 358, 506, 316, 3134, 949, 893, 309, 761, 18, 588, 659, 10329, 3001, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 6738, 12, 3001, 16, 761, 16, 732, 297, 659, 273, 1083, 4672, 309, 486, 761, 30, 327, 374, 225, 468, 4393, 358, 506, 316, 3134, 949, 893, 309, 761, 18, 588, 659, 10329, 3001, 143...
self.initdef = None self.classdef = None
self.prepend = StringWriter() self.classdef = StringWriter() self.classvar = StringWriter() self.initdef = StringWriter() self.initcode = StringWriter() self.basector = StringWriter() self.postpend = StringWriter()
self.initdef = None
e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 2738, 536, 225, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 365, 18, 2738, 536, 225, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if isinstance(pagedata, dict):
def __iter__(self): """Submit request and iterate the response based on self.resultkey
a0fdf2a7ec637cad8700d73f1968031391ee0015 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9005/a0fdf2a7ec637cad8700d73f1968031391ee0015/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 3536, 11620, 590, 471, 7401, 326, 766, 2511, 603, 365, 18, 2088, 856, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 3536, 11620, 590, 471, 7401, 326, 766, 2511, 603, 365, 18, 2088, 856, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def read(filename, index=-1):
def read(filename, index=-1, format=None): """Read Atoms object(s) from file. Parameters ========== filename: str Name of the file to read from. index: int or slice If the file contains several configurations, the last configuration will be returned by default. Use index=n to get configuration number n (counting from...
def read(filename, index=-1): p = filename.rfind('@') if p != -1: try: index = string2index(filename[p + 1:]) except ValueError: pass else: filename = filename[:p] type = filetype(filename) if type.startswith('gpw'): from gpaw import Calculator atoms = Calculator(filename, txt=None).get_atoms() atoms.set_calculator(N...
ed91493e39dbfd0ffd1dbf4fdedcf8833d9bd2f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/ed91493e39dbfd0ffd1dbf4fdedcf8833d9bd2f0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 3459, 16, 770, 29711, 21, 16, 740, 33, 7036, 4672, 3536, 1994, 7149, 87, 733, 12, 87, 13, 628, 585, 18, 225, 7012, 422, 1432, 1544, 30, 609, 1770, 434, 326, 585, 358, 855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 3459, 16, 770, 29711, 21, 16, 740, 33, 7036, 4672, 3536, 1994, 7149, 87, 733, 12, 87, 13, 628, 585, 18, 225, 7012, 422, 1432, 1544, 30, 609, 1770, 434, 326, 585, 358, 855, ...
try: self.conn = MySQLdb.connect ( host = server, port = port, user = user, passwd = password, db = database ) self.cursor = self.conn.cursor() except MySQLdb.Error, e: print "Error %d: %s" % (e.args[0], e.args[1]) exit(1)
self.conn = MySQLdb.connect ( host = server, port = port, user = user, passwd = password, db = database ) self.cursor = self.conn.cursor()
def __init__(self, server, port, database, user, password): try: self.conn = MySQLdb.connect ( host = server, port = port, user = user, passwd = password, db = database ) self.cursor = self.conn.cursor() except MySQLdb.Error, e: print "Error %d: %s" % (e.args[0], e.args[1]) exit(1)
f3b51174b0d9bf94260278d7716006016596683c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11257/f3b51174b0d9bf94260278d7716006016596683c/LumberJack_Database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 1756, 16, 2063, 16, 729, 16, 2201, 4672, 775, 30, 365, 18, 4646, 273, 13485, 1966, 18, 3612, 261, 1479, 273, 1438, 16, 1756, 273, 1756, 16, 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, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 1756, 16, 2063, 16, 729, 16, 2201, 4672, 775, 30, 365, 18, 4646, 273, 13485, 1966, 18, 3612, 261, 1479, 273, 1438, 16, 1756, 273, 1756, 16, 7...
def on_vte_size_allocate(self): pass def on_vte_notify_enter(self): pass def close_term(self):
def on_vte_size_allocate(self, widget, allocation): self.titlebar.update_terminal_size(self.vte.get_column_count(), self.vte.get_row_count()) pass def on_vte_notify_enter(self, term, event): pass def close_term(self, widget):
def on_vte_size_allocate(self): pass
8925c464261bfb8e9d6f330215c61416f479647c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/8925c464261bfb8e9d6f330215c61416f479647c/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 90, 736, 67, 1467, 67, 16247, 12, 2890, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 90, 736, 67, 1467, 67, 16247, 12, 2890, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
http = Http (timeout=timeout)
http = Http(timeout=timeout)
def _get_http(timeout): try: http = Http (timeout=timeout) except TypeError: # The user's version of http2lib is old. Omit the timeout. http = Http () return http
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2505, 12, 4538, 4672, 775, 30, 1062, 273, 2541, 12, 4538, 33, 4538, 13, 1335, 3580, 30, 468, 1021, 729, 1807, 1177, 434, 1062, 22, 2941, 353, 1592, 18, 531, 1938, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2505, 12, 4538, 4672, 775, 30, 1062, 273, 2541, 12, 4538, 33, 4538, 13, 1335, 3580, 30, 468, 1021, 729, 1807, 1177, 434, 1062, 22, 2941, 353, 1592, 18, 531, 1938, 326, ...
Set up our private global changedict subscription handlers. """
Do whatever one-time initialization is needed before our other public functions should be called. [Also called after this module is reloaded.] """
def initialize(): """ Meant to be called only from master_model_updater.py. Set up our private global changedict subscription handlers. """ global _rcdp1, _rcdp2 _rcdp = _refreshing_changedict_subscription_for_dict _rcdp1 = _rcdp(_changed_structure_Atoms) _rcdp2 = _rcdp(_changed_parent_Atoms) return
a8f51e55801760506bc307f0529ac884c2d70a1a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/a8f51e55801760506bc307f0529ac884c2d70a1a/dna_updater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 13332, 3536, 7499, 970, 358, 506, 2566, 1338, 628, 4171, 67, 2284, 67, 25575, 18, 2074, 18, 2256, 15098, 1245, 17, 957, 10313, 353, 3577, 1865, 3134, 1308, 1071, 4186, 1410, 506, 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, 4046, 13332, 3536, 7499, 970, 358, 506, 2566, 1338, 628, 4171, 67, 2284, 67, 25575, 18, 2074, 18, 2256, 15098, 1245, 17, 957, 10313, 353, 3577, 1865, 3134, 1308, 1071, 4186, 1410, 506, 2...
jid = wikiutil.clean_input(form.get('jid', "")[0]).strip()
jid = wikiutil.clean_input(form.get('jid', [''])[0]).strip()
def _save_user_prefs(self): _ = self._ form = self.request.form
d4e11ffdd04a9440c63e8d2c87a9437fb44593d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/d4e11ffdd04a9440c63e8d2c87a9437fb44593d8/prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 1355, 67, 1484, 2556, 12, 2890, 4672, 389, 273, 365, 6315, 646, 273, 365, 18, 2293, 18, 687, 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, 389, 5688, 67, 1355, 67, 1484, 2556, 12, 2890, 4672, 389, 273, 365, 6315, 646, 273, 365, 18, 2293, 18, 687, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for atm in axisAtomsToRemove: if not atomsScheduledForDeletionDict.has_key(id(atm)): atomsScheduledForDeletionDict[id(atm)] = atm else: print "unexpected: atom %r already in atomsScheduledForDeletionDict" % atm
for atm in axisAtomsToRemove:
def _remove_bases_from_duplex(self, group, resizeEndAxisAtom, numberOfBasePairsToRemove): """ Remove the specified number of base pairs from the duplex. @param group: The DnaGroup which contains this duplex @type group: DnaGroup @param resizeEndAxisAtom: The end axis base atom at a DnaLadder end of the duplex. This e...
becc1aa0f194cba385183e52203efbaa4be28676 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/becc1aa0f194cba385183e52203efbaa4be28676/DnaDuplex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 67, 18602, 67, 2080, 67, 72, 2268, 92, 12, 2890, 16, 1041, 16, 7041, 1638, 6558, 3641, 16, 7922, 2171, 10409, 12765, 4672, 3536, 3581, 326, 1269, 1300, 434, 1026, 5574, 628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 67, 18602, 67, 2080, 67, 72, 2268, 92, 12, 2890, 16, 1041, 16, 7041, 1638, 6558, 3641, 16, 7922, 2171, 10409, 12765, 4672, 3536, 3581, 326, 1269, 1300, 434, 1026, 5574, 628, ...
inifile.write ("%s=%s\n" % (name, repr (data)[1:-1]))
lines.append ("%s=%s" % (name, repr (data)[1:-1]))
def create_inifile (self): # Create an inifile containing data describing the installation. # This could be done without creating a real file, but # a file is (at least) useful for debugging bdist_wininst.
1ac9802748c26e716685f8ba19277d1a4dc0bcf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1ac9802748c26e716685f8ba19277d1a4dc0bcf1/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 267, 430, 398, 261, 2890, 4672, 468, 1788, 392, 316, 430, 398, 4191, 501, 16868, 326, 13193, 18, 468, 1220, 3377, 506, 2731, 2887, 4979, 279, 2863, 585, 16, 1496, 468, 279, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 67, 267, 430, 398, 261, 2890, 4672, 468, 1788, 392, 316, 430, 398, 4191, 501, 16868, 326, 13193, 18, 468, 1220, 3377, 506, 2731, 2887, 4979, 279, 2863, 585, 16, 1496, 468, 279, 58...
OR a floating point number such as that which is returned by the python time module. Returns true if the object
OR a floating point number such as that which is returned by the python time module. Returns true if the object
def equalTo(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time equal to the specified DateTime or time module style time. Revised to give more correct results through c...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3959, 774, 12, 2890, 16, 88, 4672, 3536, 8583, 333, 3716, 733, 358, 4042, 3716, 733, 4869, 279, 13861, 1634, 1300, 4123, 487, 716, 1492, 353, 2106, 635, 326, 5790, 813, 1605, 18, 2860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3959, 774, 12, 2890, 16, 88, 4672, 3536, 8583, 333, 3716, 733, 358, 4042, 3716, 733, 4869, 279, 13861, 1634, 1300, 4123, 487, 716, 1492, 353, 2106, 635, 326, 5790, 813, 1605, 18, 2860, ...
module.__path__.append(subpath) loader.load_module(packageName)
path = module.__path__; path.append(subpath) loader.load_module(packageName); module.__path__ = path
def _handle_ns(packageName, path_item): """Ensure that named package includes a subpath of path_item (if needed)""" importer = get_importer(path_item) if importer is None: return None loader = importer.find_module(packageName) if loader is None: return None module = sys.modules.get(packageName) if module is None: modul...
30c03898b510cc87f6895dc1bd0a063291ed76e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/30c03898b510cc87f6895dc1bd0a063291ed76e4/pkg_resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 2387, 12, 5610, 461, 16, 589, 67, 1726, 4672, 3536, 12512, 716, 4141, 2181, 6104, 279, 19944, 434, 589, 67, 1726, 261, 430, 3577, 15574, 15198, 273, 336, 67, 381, 7988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 2387, 12, 5610, 461, 16, 589, 67, 1726, 4672, 3536, 12512, 716, 4141, 2181, 6104, 279, 19944, 434, 589, 67, 1726, 261, 430, 3577, 15574, 15198, 273, 336, 67, 381, 7988, ...
option_parser.add_option('-c', '--clean_html_directory', action='store_true', default=False, help=('If specified, delete all existing files in ' 'the html directory before rebaselining.')) option_parser.add_option('-e', '--browser_path', default='', help=('The browser path that you would like to ' 'use to launch the ...
def main(): """Main function to produce new baselines.""" option_parser = optparse.OptionParser() option_parser.add_option('-v', '--verbose', action='store_true', default=False, help='include debug-level logging.') option_parser.add_option('-p', '--platforms', default='mac,win,win-xp,win-vista,linux', help=('Comma de...
a8cca2e7f89f106d5b2cdf9f818191a14c4afb8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/a8cca2e7f89f106d5b2cdf9f818191a14c4afb8b/rebaseline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 445, 358, 11402, 394, 2580, 14567, 12123, 225, 1456, 67, 4288, 273, 2153, 2670, 18, 1895, 2678, 1435, 1456, 67, 4288, 18, 1289, 67, 3482, 2668, 17, 90, 2187, 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, 2774, 13332, 3536, 6376, 445, 358, 11402, 394, 2580, 14567, 12123, 225, 1456, 67, 4288, 273, 2153, 2670, 18, 1895, 2678, 1435, 1456, 67, 4288, 18, 1289, 67, 3482, 2668, 17, 90, 2187, 353...
Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called. Parameter `visitor`: A `NodeVisitor` object, containing...
Perform a tree traversal similarly to `Node.walk()` (which see), except also call the `dispatch_departure()` method before exiting each node. Parameter `visitor`: A `NodeVisitor` object, containing a ``visit`` and ``depart`` implementation for each `Node` subclass encountered.
def walkabout(self, visitor): """ Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called.
72131502737df314ee3f03c53f6eec5e5556dce9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/72131502737df314ee3f03c53f6eec5e5556dce9/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 21071, 12, 2890, 16, 8000, 4672, 3536, 11217, 279, 2151, 15940, 7281, 715, 358, 1375, 907, 18, 11348, 20338, 261, 12784, 2621, 3631, 1335, 2546, 745, 12176, 323, 2680, 67, 2777, 1033...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 21071, 12, 2890, 16, 8000, 4672, 3536, 11217, 279, 2151, 15940, 7281, 715, 358, 1375, 907, 18, 11348, 20338, 261, 12784, 2621, 3631, 1335, 2546, 745, 12176, 323, 2680, 67, 2777, 1033...
self.assertSourceEqual(mod2.wrapped, 16, 17)
self.assertSourceEqual(mod2.wrapped, 14, 17)
def test_wrapped_decorator(self): self.assertSourceEqual(mod2.wrapped, 16, 17)
1d56447a843ec4069745449d8faf74758d63c4b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/1d56447a843ec4069745449d8faf74758d63c4b5/test_inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 18704, 67, 19142, 12, 2890, 4672, 365, 18, 11231, 1830, 5812, 12, 1711, 22, 18, 18704, 16, 2872, 16, 8043, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 18704, 67, 19142, 12, 2890, 4672, 365, 18, 11231, 1830, 5812, 12, 1711, 22, 18, 18704, 16, 2872, 16, 8043, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
xopt = _cobyla.minimize(calcfc, m=m, x=x0, rhobeg=rhobeg, rhoend=rhoend,
xopt = _cobyla.minimize(calcfc, m=m, x=copy(x0), rhobeg=rhobeg, rhoend=rhoend,
def calcfc(x, con): f = func(x, *args) k = 0 for constraints in cons: con[k] = constraints(x, *consargs) k += 1 return f
0d35df40da0f56d4653ceccb48807ee63dc70ca6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/0d35df40da0f56d4653ceccb48807ee63dc70ca6/cobyla.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 7142, 12, 92, 16, 356, 4672, 284, 273, 1326, 12, 92, 16, 380, 1968, 13, 417, 273, 374, 364, 6237, 316, 1959, 30, 356, 63, 79, 65, 273, 6237, 12, 92, 16, 380, 8559, 1968, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 7142, 12, 92, 16, 356, 4672, 284, 273, 1326, 12, 92, 16, 380, 1968, 13, 417, 273, 374, 364, 6237, 316, 1959, 30, 356, 63, 79, 65, 273, 6237, 12, 92, 16, 380, 8559, 1968, 13, ...
s = hmac.new(merchkey, self.cart_xml, sha)
s = hmac.new(str(merchkey), self.cart_xml, sha)
def _signature(self, live): if live: merchkey = self.settings.MERCHANT_KEY.value else: merchkey = self.settings.MERCHANT_TEST_KEY.value
78cbe366cf1ee0557cd474db7dd3cd7f53785da5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13656/78cbe366cf1ee0557cd474db7dd3cd7f53785da5/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8195, 12, 2890, 16, 8429, 4672, 309, 8429, 30, 4045, 343, 856, 273, 365, 18, 4272, 18, 20969, 1792, 6856, 67, 3297, 18, 1132, 469, 30, 4045, 343, 856, 273, 365, 18, 4272, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8195, 12, 2890, 16, 8429, 4672, 309, 8429, 30, 4045, 343, 856, 273, 365, 18, 4272, 18, 20969, 1792, 6856, 67, 3297, 18, 1132, 469, 30, 4045, 343, 856, 273, 365, 18, 4272, 18, 20...
return env.ComponentTestProgram(*args, **kw)
result = env.ComponentTestProgram(*args, **kw) if env.get('INCREMENTAL'): env.Precious(*result) return result
def ChromeTestProgram(env, *args, **kw): return env.ComponentTestProgram(*args, **kw)
0321bab8ae0e152a93f1e50e353cc9d2a9c50345 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/0321bab8ae0e152a93f1e50e353cc9d2a9c50345/chromium_builders.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15159, 4709, 9459, 12, 3074, 16, 380, 1968, 16, 2826, 9987, 4672, 327, 1550, 18, 1841, 4709, 9459, 30857, 1968, 16, 2826, 9987, 13, 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, 15159, 4709, 9459, 12, 3074, 16, 380, 1968, 16, 2826, 9987, 4672, 327, 1550, 18, 1841, 4709, 9459, 30857, 1968, 16, 2826, 9987, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
itemId = self.tree.GetItemPyData(item)
itemId = self.tree.GetItemPyData(parent)
def addPandaObjectChildren(self, item): # first, find Panda Object's NodePath of the item itemId = self.tree.GetItemPyData(item) obj = self.editor.objectMgr.findObjectById(itemId) if obj is None: return
bc84a2c412b80a4333c92706942270a55cc827a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/bc84a2c412b80a4333c92706942270a55cc827a4/SceneGraphUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 52, 464, 69, 921, 4212, 12, 2890, 16, 761, 4672, 468, 1122, 16, 1104, 453, 464, 69, 1033, 1807, 2029, 743, 434, 326, 761, 18424, 273, 365, 18, 3413, 18, 967, 1180, 9413, 751, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 52, 464, 69, 921, 4212, 12, 2890, 16, 761, 4672, 468, 1122, 16, 1104, 453, 464, 69, 1033, 1807, 2029, 743, 434, 326, 761, 18424, 273, 365, 18, 3413, 18, 967, 1180, 9413, 751, 12...
raise error_perm, resp
raise NNTPPermanentError(resp)
def getresp(self): """Internal: get a response from the server. Raise various errors if the response indicates an error.""" resp = self.getline() if self.debugging: print '*resp*', `resp` c = resp[:1] if c == '4': raise error_temp, resp if c == '5': raise error_perm, resp if c not in '123': raise error_proto, resp retu...
9dd78729459478023a46401d8f04e2dc3bf974e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9dd78729459478023a46401d8f04e2dc3bf974e5/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12243, 12, 2890, 4672, 3536, 3061, 30, 336, 279, 766, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 1718, 273, 365, 18, 588, 1369, 1435, 309, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12243, 12, 2890, 4672, 3536, 3061, 30, 336, 279, 766, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 1718, 273, 365, 18, 588, 1369, 1435, 309, 365, ...
if dupCount == 3:
if dupCount == 8:
def scrapeCourt(courtID, result, verbosity, daemonmode): if verbosity >= 1: result += "NOW SCRAPING COURT: " + str(courtID) + "\n" if verbosity >= 2: print "NOW SCRAPING COURT: " + str(courtID) if (courtID == 1): """ PDFs are available from the first circuit if you go to their RSS feed. So go to their RSS feed we shal...
a2c330722731f0163de49a433859aa6ca21fac0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/a2c330722731f0163de49a433859aa6ca21fac0a/scrape_and_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 25360, 29328, 88, 12, 71, 477, 88, 734, 16, 563, 16, 11561, 16, 8131, 3188, 4672, 309, 11561, 1545, 404, 30, 563, 1011, 315, 27091, 348, 5093, 2203, 1360, 7910, 1099, 56, 30, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 25360, 29328, 88, 12, 71, 477, 88, 734, 16, 563, 16, 11561, 16, 8131, 3188, 4672, 309, 11561, 1545, 404, 30, 563, 1011, 315, 27091, 348, 5093, 2203, 1360, 7910, 1099, 56, 30, 315,...
p7, data = SMIME.smime_load_pkcs7_bio(signature) assert data.read() == cleartext
p7, data = SMIME.smime_load_pkcs7_bio(self.signature) assert data.read() == self.cleartext
def check_2_verify(self): s = SMIME.SMIME() x509 = X509.load_cert('signer.pem') sk = X509.X509_Stack() sk.push(x509) s.set_x509_stack(sk) st = X509.X509_Store() st.load_info('ca.pem') s.set_x509_store(st) p7, data = SMIME.smime_load_pkcs7_bio(signature) assert data.read() == cleartext assert isinstance(p7, SMIME.PKC...
35dd3ef04f86b49ce0a8c8dd259c6162e42f8b28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/35dd3ef04f86b49ce0a8c8dd259c6162e42f8b28/test_smime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 22, 67, 8705, 12, 2890, 4672, 272, 273, 12014, 3114, 18, 7303, 3114, 1435, 225, 619, 5995, 273, 1139, 5995, 18, 945, 67, 7593, 2668, 2977, 264, 18, 20313, 6134, 4343, 273, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 22, 67, 8705, 12, 2890, 4672, 272, 273, 12014, 3114, 18, 7303, 3114, 1435, 225, 619, 5995, 273, 1139, 5995, 18, 945, 67, 7593, 2668, 2977, 264, 18, 20313, 6134, 4343, 273, 113...
self.liststore[treeview_name].append ([pixbuf, entry.title.text, mrl, youtube_id])
gobject.idle_add(self._append_to_liststore, treeview_name, pixbuf, entry.title.text, mrl, youtube_id)
def populate_list_from_results (self, treeview_name): """Check and acquire the lock""" if self.entry_lock.acquire (False) == False: if (self.last_pulse + 0.035) < time.time(): self.progress_bar.pulse () self.last_pulse = time.time() return True
46523ddcd022328735d34c97303e166c1ff3dd97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11070/46523ddcd022328735d34c97303e166c1ff3dd97/youtube.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 1098, 67, 2080, 67, 4717, 261, 2890, 16, 2151, 1945, 67, 529, 4672, 3536, 1564, 471, 10533, 326, 2176, 8395, 309, 365, 18, 4099, 67, 739, 18, 1077, 1039, 261, 8381, 13, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 1098, 67, 2080, 67, 4717, 261, 2890, 16, 2151, 1945, 67, 529, 4672, 3536, 1564, 471, 10533, 326, 2176, 8395, 309, 365, 18, 4099, 67, 739, 18, 1077, 1039, 261, 8381, 13, 422, ...