rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
dlg = ChangeMasterPasswordDialog(changing=prefs.masterPassword,
dlg = ChangeMasterPasswordDialog(parent, changing=prefs.masterPassword,
def change(view, parent=None): """ Set or change the master password. Safe to call from from a background thread. @param view: Repository view. @return: deferred """ if _timer is not None: _timer.cancel() prefs = schema.ns("osaf.framework.MasterPassword", view).masterPasswordPrefs view.refresh() ret = Fals...
0d17a55566be18e8cb3792cc44821a177b2bb8f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/0d17a55566be18e8cb3792cc44821a177b2bb8f9/MasterPassword.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 12, 1945, 16, 982, 33, 7036, 4672, 3536, 1000, 578, 2549, 326, 4171, 2201, 18, 225, 14060, 358, 745, 628, 628, 279, 5412, 2650, 18, 225, 632, 891, 1476, 30, 282, 6281, 1476, 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, 2549, 12, 1945, 16, 982, 33, 7036, 4672, 3536, 1000, 578, 2549, 326, 4171, 2201, 18, 225, 14060, 358, 745, 628, 628, 279, 5412, 2650, 18, 225, 632, 891, 1476, 30, 282, 6281, 1476, 18, ...
f.text('last modified: %(time)s' % page.page.lastEditInfo()),
f.text('last modified: %s' % page.page.mtime_printable(request)),
def formatHitInfoBar(self, page): f = self.formatter _ = self.request.getText
2a68691be7d649d514bb0f386e8abd6b9635021d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/2a68691be7d649d514bb0f386e8abd6b9635021d/results.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 13616, 966, 5190, 12, 2890, 16, 1363, 4672, 284, 273, 365, 18, 12354, 389, 273, 365, 18, 2293, 18, 588, 1528, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 13616, 966, 5190, 12, 2890, 16, 1363, 4672, 284, 273, 365, 18, 12354, 389, 273, 365, 18, 2293, 18, 588, 1528, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not IFinderUploadCapable.providedBy(self.scope) :
if not IFinderUploadCapable.providedBy(self.data['scope']) :
def __call__(self): context = aq_inner(self.context) request = aq_inner(self.request) session = request.get('SESSION', None) # use self.rootpath or rootpath in request or session to change browser root self.rootpath = request.get('rootpath', self.rootpath) # use self.browse=False (or browse=False in request) to disall...
347e94cd476fff654d676c70d876655150dcb18b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/347e94cd476fff654d676c70d876655150dcb18b/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 225, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 590, 273, 279, 85, 67, 7872, 12, 2890, 18, 2293, 13, 1339, 273, 590, 18, 588, 2668, 7042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 590, 273, 279, 85, 67, 7872, 12, 2890, 18, 2293, 13, 1339, 273, 590, 18, 588, 2668, 7042, ...
classInfo, cacheModTime = self._getClassCache() deps = classInfo[cacheId] if cacheId in classInfo else None
deps, cacheModTime = cache.readmulti(cacheId, self.path)
def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._...
1abc907797564cd97d808fe122ba7fb63a6ebc45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/1abc907797564cd97d808fe122ba7fb63a6ebc45/Class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30442, 14430, 4704, 42, 1955, 12, 14877, 3823, 16, 1247, 1739, 950, 4672, 309, 1247, 1739, 950, 353, 599, 30, 225, 468, 2660, 30, 333, 848, 4551, 1338, 3334, 598, 279, 4379, 18, 3917, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30442, 14430, 4704, 42, 1955, 12, 14877, 3823, 16, 1247, 1739, 950, 4672, 309, 1247, 1739, 950, 353, 599, 30, 225, 468, 2660, 30, 333, 848, 4551, 1338, 3334, 598, 279, 4379, 18, 3917, ...
return data.encode('utf-8')
return data.encode('ascii', 'xmlcharrefreplace')
def encode(data): #return data.encode('ascii', 'xmlcharrefreplace') return data.encode('utf-8')
35320295f8c6ffbc7a430117696da434c8b3f2fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/35320295f8c6ffbc7a430117696da434c8b3f2fc/writer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 892, 4672, 468, 2463, 501, 18, 3015, 2668, 9184, 2187, 296, 2902, 3001, 1734, 2079, 6134, 225, 327, 501, 18, 3015, 2668, 9184, 2187, 296, 2902, 3001, 1734, 2079, 6134, 225, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 892, 4672, 468, 2463, 501, 18, 3015, 2668, 9184, 2187, 296, 2902, 3001, 1734, 2079, 6134, 225, 327, 501, 18, 3015, 2668, 9184, 2187, 296, 2902, 3001, 1734, 2079, 6134, 225, 2, ...
" be added to the python path on script startup"),
" be added to the python path on script startup"),
def initialize_options(self): self.paths = None self.default_config = None return _install.initialize_options(self)
82bf642178d9bbed43f5e4f85d6a2e14f77b4e29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/82bf642178d9bbed43f5e4f85d6a2e14f77b4e29/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 2116, 12, 2890, 4672, 365, 18, 4481, 273, 599, 365, 18, 1886, 67, 1425, 273, 599, 327, 389, 5425, 18, 11160, 67, 2116, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 2116, 12, 2890, 4672, 365, 18, 4481, 273, 599, 365, 18, 1886, 67, 1425, 273, 599, 327, 389, 5425, 18, 11160, 67, 2116, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, ...
computingElement = self.computingElements[self.computingElement] result = computingElement.available( pilotRequirements )
result = self.computingElement.available( pilotRequirements )
def _listQueues( self, pilotRequirements ): """ For each defined CE return the list of Queues with available, running and waiting slots, matching the requirements of the pilots. Currently only CPU time is considered """ availableQueues = [] computingElement = self.computingElements[self.computingElement] result = compu...
eece7f82aa4bf7bef3f9e8cb3f06a5d9125ef708 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/eece7f82aa4bf7bef3f9e8cb3f06a5d9125ef708/DIRACPilotDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 17428, 12, 365, 16, 293, 22797, 15465, 262, 30, 3536, 2457, 1517, 2553, 29538, 327, 326, 666, 434, 27949, 3610, 598, 2319, 16, 3549, 471, 7336, 12169, 16, 3607, 326, 8433, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 17428, 12, 365, 16, 293, 22797, 15465, 262, 30, 3536, 2457, 1517, 2553, 29538, 327, 326, 666, 434, 27949, 3610, 598, 2319, 16, 3549, 471, 7336, 12169, 16, 3607, 326, 8433, 434...
for values in CoincDatabaseConnection.cursor().execute("SELECT * FROM coinc_event WHERE coinc_def_id == ?", (coinc_def_id,)):
for values in self.connection.cursor().execute("SELECT * FROM coinc_event WHERE coinc_def_id == ?", (coinc_def_id,)):
def selectByDefID(self, coinc_def_id): for values in CoincDatabaseConnection.cursor().execute("SELECT * FROM coinc_event WHERE coinc_def_id == ?", (coinc_def_id,)): yield self._row_from_cols(values)
bda9934b4450fe05001a0bec22c8b186ac2c3c12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/bda9934b4450fe05001a0bec22c8b186ac2c3c12/SnglBurstUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 858, 3262, 734, 12, 2890, 16, 13170, 71, 67, 536, 67, 350, 4672, 364, 924, 316, 365, 18, 4071, 18, 9216, 7675, 8837, 2932, 4803, 380, 4571, 13170, 71, 67, 2575, 4852, 13170, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 858, 3262, 734, 12, 2890, 16, 13170, 71, 67, 536, 67, 350, 4672, 364, 924, 316, 365, 18, 4071, 18, 9216, 7675, 8837, 2932, 4803, 380, 4571, 13170, 71, 67, 2575, 4852, 13170, 71, ...
Valid resource names: anchor, background, bd, bg, bitmap, borderwidth, cursor, fg, font, foreground, height, highlightbackground, highlightcolor, highlightthickness, image, justify, padx, pady, relief, takefocus, text, textvariable, underline, width, wraplength."""
STANDARD OPTIONS activebackground, activeforeground, anchor, background, bitmap, borderwidth, cursor, disabledforeground, font, foreground, highlightbackground, highlightcolor, highlightthickness, image, justify, padx, pady, relief, takefocus, text, textvariable, underline, wraplength WIDGET-SPECIFIC OPTIONS height...
def __init__(self, master=None, cnf={}, **kw): """Construct a label widget with the parent MASTER.
229e0d7ad116b4e3a662d43339dca92ea19cb0d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/229e0d7ad116b4e3a662d43339dca92ea19cb0d3/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 3536, 7249, 279, 1433, 3604, 598, 326, 982, 27312, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 3536, 7249, 279, 1433, 3604, 598, 326, 982, 27312, 18, 2, -100, -100, -100, -100, -100, -100, -100, -10...
r""" The sequence of Uppuluri-Carpenter numbers. The Uppuluri-Carpenter number $C_n$ counts the imbalance in the number of ways to put $n$ distinguishable things into an even number of indistinguishable boxes versus into an odd number of indistinguishable boxes, such that no box is empty. Let $S(n, k)$ denote the Sti...
def __init__(self): r""" The sequence of Uppuluri-Carpenter numbers. The Uppuluri-Carpenter number $C_n$ counts the imbalance in the number of ways to put $n$ distinguishable things into an even number of indistinguishable boxes versus into an odd number of indistinguishable boxes, such that no box is empty. Let $S(n...
def _repr_(self): return "Sequence of Bell numbers"
d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 327, 315, 4021, 434, 605, 1165, 5600, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 327, 315, 4021, 434, 605, 1165, 5600, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
logging.debug("Got unexpected login prompt") return False
if login_prompt_count == 0: logging.debug("Got username prompt; sending '%s'" % username) session.sendline(username) login_prompt_count += 1 continue else: logging.debug("Got username prompt again") return False
def _remote_login(session, password, prompt, timeout=10): """ Log into a remote host (guest) using SSH or Telnet. Wait for questions and provide answers. If timeout expires while waiting for output from the child (e.g. a password prompt or a shell prompt) -- fail. @brief: Log into a remote host (guest) using SSH or ...
674d89d59d98f9c46de67a37c104d3cd5f42c9c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/674d89d59d98f9c46de67a37c104d3cd5f42c9c7/kvm_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7222, 67, 5819, 12, 3184, 16, 2201, 16, 6866, 16, 2021, 33, 2163, 4672, 3536, 1827, 1368, 279, 2632, 1479, 261, 18908, 13, 1450, 9892, 578, 399, 292, 2758, 18, 225, 5838, 364, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7222, 67, 5819, 12, 3184, 16, 2201, 16, 6866, 16, 2021, 33, 2163, 4672, 3536, 1827, 1368, 279, 2632, 1479, 261, 18908, 13, 1450, 9892, 578, 399, 292, 2758, 18, 225, 5838, 364, 134...
open(directory+'term_index.html', 'w').write(str)
open(directory+'epydoc-index.html', 'w').write(str) self._show_private = 'both' if self._show_private == 'both': self._show_both = 1 self._show_private = 0 self._write_docs(directory, verbose) self._show_private = 1 self._cssfile = '../'+self._cssfile self._write_docs(os.path.join(directory, 'private'), verbose) else...
def write(self, directory, verbose=1): """## Write the documentation to the given directory.""" if directory in ('', None): directory = './' if directory[-1] != '/': directory = directory + '/'
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 16, 3988, 33, 21, 4672, 3536, 1189, 2598, 326, 7323, 358, 326, 864, 1867, 12123, 309, 1867, 316, 7707, 2187, 599, 4672, 1867, 273, 26544, 309, 1867, 18919, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 16, 3988, 33, 21, 4672, 3536, 1189, 2598, 326, 7323, 358, 326, 864, 1867, 12123, 309, 1867, 316, 7707, 2187, 599, 4672, 1867, 273, 26544, 309, 1867, 18919, 21, ...
visitor.save()
try: visitor.save() except DatabaseError: pass
def process_request(self, request): # don't process AJAX requests if request.is_ajax(): return
7c74163196be738174e70d9f121da680cf9cdf66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7421/7c74163196be738174e70d9f121da680cf9cdf66/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 590, 4672, 468, 2727, 1404, 1207, 22355, 3285, 309, 590, 18, 291, 67, 12813, 13332, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 590, 4672, 468, 2727, 1404, 1207, 22355, 3285, 309, 590, 18, 291, 67, 12813, 13332, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if size <= i: i = size - 1 self._unread(c[i+1:]) return bufs + c[:i+1] else: if len(c) > size: i = size - 1 bufs = bufs + c size = size - len(c) readsize = min(size, int(readsize * 1.1)) if readsize > self.min_readsize: self.min_readsize = readsize
bufs.append(c[:i+1]) self._unread(c[i+1:]) return ''.join(bufs) bufs.append(c) size = size - len(c) readsize = min(size, readsize * 2)
def readline(self, size=-1): if size < 0: size = sys.maxint # Line can be as long as maxint readsize = self.min_readsize # Read from file in small chunks else: readsize = size # Only read in as much as specified
b97597316b1176e62d538c812b9e468ff3372b6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b97597316b1176e62d538c812b9e468ff3372b6b/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 309, 963, 411, 374, 30, 963, 273, 2589, 18, 1896, 474, 2868, 468, 5377, 848, 506, 487, 1525, 487, 943, 474, 855, 1467, 273, 365, 18, 1154, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 309, 963, 411, 374, 30, 963, 273, 2589, 18, 1896, 474, 2868, 468, 5377, 848, 506, 487, 1525, 487, 943, 474, 855, 1467, 273, 365, 18, 1154, ...
return Time(ctx.eval(self.time))
compiling(self.loc) return Time(self.loc, ctx.eval(self.time))
def compile(self, ctx): return Time(ctx.eval(self.time))
94506ad601e8639d16184a6d5789d5fc03754d55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10962/94506ad601e8639d16184a6d5789d5fc03754d55/atl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 12, 2890, 16, 1103, 4672, 327, 2647, 12, 5900, 18, 8622, 12, 2890, 18, 957, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 12, 2890, 16, 1103, 4672, 327, 2647, 12, 5900, 18, 8622, 12, 2890, 18, 957, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
instanceName == "%s%s%d" % (instanceName, tl, len(self._moduleDict))
instanceName = "%s%s%d" % (instanceName, tl, len(self._moduleDict))
def _makeUniqueInstanceName(self, instanceName=None): """Ensure that instanceName is unique or create a new unique instanceName.
12fefabeae68613cf461cc39a3f87554f4b76ecc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/12fefabeae68613cf461cc39a3f87554f4b76ecc/moduleManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 6303, 22520, 12, 2890, 16, 21090, 33, 7036, 4672, 3536, 12512, 716, 21090, 353, 3089, 578, 752, 279, 394, 3089, 21090, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 6540, 6303, 22520, 12, 2890, 16, 21090, 33, 7036, 4672, 3536, 12512, 716, 21090, 353, 3089, 578, 752, 279, 394, 3089, 21090, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
return False
return False return True
def can_handle(cls, device_info, debug=False): USBMS.can_handle(device_info, debug) if islinux: if device_info[3] == 'Bookeen' and device_info[4] == 'Cybook Gen3': return True return False
288b64529c4caf5472d532fedf3abaf04c86ec35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/288b64529c4caf5472d532fedf3abaf04c86ec35/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 4110, 12, 6429, 16, 2346, 67, 1376, 16, 1198, 33, 8381, 4672, 11836, 38, 3537, 18, 4169, 67, 4110, 12, 5964, 67, 1376, 16, 1198, 13, 309, 353, 20132, 30, 309, 2346, 67, 1376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 4110, 12, 6429, 16, 2346, 67, 1376, 16, 1198, 33, 8381, 4672, 11836, 38, 3537, 18, 4169, 67, 4110, 12, 5964, 67, 1376, 16, 1198, 13, 309, 353, 20132, 30, 309, 2346, 67, 1376...
return self.context.getProperty('location', '')
return self._getProperty('location')
def get_location(self): return self.context.getProperty('location', '')
16abf2ea76793957c39dc00347fc2883d161d2f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12186/16abf2ea76793957c39dc00347fc2883d161d2f4/personalpreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3562, 12, 2890, 4672, 327, 365, 18, 2472, 18, 588, 1396, 2668, 3562, 2187, 28707, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3562, 12, 2890, 4672, 327, 365, 18, 2472, 18, 588, 1396, 2668, 3562, 2187, 28707, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
argv0 = quote_arg(argv[0])
def _exec_command( command, use_shell=None, **env ): log.debug('_exec_command(...)') if use_shell is None: use_shell = os.name=='posix' using_command = 0 if use_shell: # We use shell (unless use_shell==0) so that wildcards can be # used. sh = os.environ.get('SHELL','/bin/sh') if type(command) is type([]): argv = [sh,...
b51513377fd4619784f1fa1748037bb7318c81a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/b51513377fd4619784f1fa1748037bb7318c81a1/exec_command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4177, 67, 3076, 12, 1296, 16, 999, 67, 10304, 33, 7036, 16, 2826, 3074, 262, 30, 613, 18, 4148, 2668, 67, 4177, 67, 3076, 5825, 2506, 13, 225, 309, 999, 67, 10304, 353, 599, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4177, 67, 3076, 12, 1296, 16, 999, 67, 10304, 33, 7036, 16, 2826, 3074, 262, 30, 613, 18, 4148, 2668, 67, 4177, 67, 3076, 5825, 2506, 13, 225, 309, 999, 67, 10304, 353, 599, 30,...
cmd_solink = $(LD) -shared $(LDFLAGS) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LIBS)
cmd_solink = $(LD) -shared $(LDFLAGS) -o $@ -Wl,--start-group $^ -Wl,--end-group
ifdef V quiet=
33fe67cb2be7bc93b3820f3805f84fd521c8455c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/33fe67cb2be7bc93b3820f3805f84fd521c8455c/make.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 536, 776, 10902, 33, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 536, 776, 10902, 33, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
raise RegionLengthError, ('Range specified does not match'+
raise RegionLengthError, ('Range specified does not match '
def __init__(self, start, end, data): ''' Initializer. Can raise InvalidRegionSpecifiedError and RegionDoesNotMatchLengthError. '''
a7ece18aead8cb0c13d0a8e5054f36442f8132f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/a7ece18aead8cb0c13d0a8e5054f36442f8132f8/dataregion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 787, 16, 679, 16, 501, 4672, 9163, 4378, 3926, 18, 4480, 1002, 1962, 5165, 17068, 668, 471, 9164, 10154, 1248, 2060, 1782, 668, 18, 9163, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 787, 16, 679, 16, 501, 4672, 9163, 4378, 3926, 18, 4480, 1002, 1962, 5165, 17068, 668, 471, 9164, 10154, 1248, 2060, 1782, 668, 18, 9163, 2, -100, -100, ...
times = windows_api.process_times(pid)
times = process_times(pid)
def get_process_cpu_time(pid): """ <Purpose> See process_times <Arguments> See process_times <Exceptions> See process_times <Returns> The amount of CPU time used by the kernel and user in seconds. """ # Get the times times = windows_api.process_times(pid) # Add kernel and user time together... It's in units of 10...
ca634464fbe1c9cd3de6c128109f725e1024341f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7272/ca634464fbe1c9cd3de6c128109f725e1024341f/windows_api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2567, 67, 11447, 67, 957, 12, 6610, 4672, 3536, 411, 10262, 4150, 34, 2164, 1207, 67, 8293, 225, 411, 4628, 34, 2164, 1207, 67, 8293, 225, 411, 11416, 34, 2164, 1207, 67, 8293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2567, 67, 11447, 67, 957, 12, 6610, 4672, 3536, 411, 10262, 4150, 34, 2164, 1207, 67, 8293, 225, 411, 4628, 34, 2164, 1207, 67, 8293, 225, 411, 11416, 34, 2164, 1207, 67, 8293...
return '%s?batch_start%s=%s&batch_size.%s=%s%s' % (
return '%s?batch_start%s=%s&batch_size%s=%s%s' % (
def next_url(self): start = self.size + self.start if self.full_size > start: return '%s?batch_start%s=%s&batch_size.%s=%s%s' % ( self.base_url, self.name, start, self.name, self.size, self.extra_url)
17ed56e108ee254f159167909ccc32a79c319922 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7127/17ed56e108ee254f159167909ccc32a79c319922/batch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 718, 12, 2890, 4672, 787, 273, 365, 18, 1467, 397, 365, 18, 1937, 309, 365, 18, 2854, 67, 1467, 405, 787, 30, 327, 1995, 87, 35, 5303, 67, 1937, 9, 87, 5095, 87, 10, 5303...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 718, 12, 2890, 4672, 787, 273, 365, 18, 1467, 397, 365, 18, 1937, 309, 365, 18, 2854, 67, 1467, 405, 787, 30, 327, 1995, 87, 35, 5303, 67, 1937, 9, 87, 5095, 87, 10, 5303...
def __init__(self, request, queryset, title): DataGrid.__init__(self, request, queryset, title)
def __init__(self, *args, **kwargs): DataGrid.__init__(self, *args, **kwargs)
def __init__(self, request, queryset, title): DataGrid.__init__(self, request, queryset, title) self.listview_template = 'reviews/review_request_listview.html' self.profile_sort_field = 'sort_review_request_columns' self.profile_columns_field = 'review_request_columns' self.show_submitted = True self.submitter_url_name...
e7cb1323f636e18c35febbc49e306ce1ae2bfb16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/e7cb1323f636e18c35febbc49e306ce1ae2bfb16/datagrids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 1910, 6313, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 1098, 1945, 67, 3202, 273, 296, 266,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 16, 2826, 4333, 4672, 1910, 6313, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 1098, 1945, 67, 3202, 273, 296, 266,...
valids = self._valid_dict for name in self.list_inputs():
self.parent.update_inputs(self.name, invalid_ins) for name in invalid_ins:
def _pre_execute (self, force=False): """Prepares for execution by calling *tree_rooted()* and *check_config()* if their "dirty" flags are set, and by requesting that the parent Assembly update this Component's invalid inputs. Overrides of this function must call this version. """ if self._call_tree_rooted: self.tree_...
f8b40b2169faff3f9d5cb7ff514ab5c5f0ccf45a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/f8b40b2169faff3f9d5cb7ff514ab5c5f0ccf45a/component.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1484, 67, 8837, 261, 2890, 16, 2944, 33, 8381, 4672, 3536, 18486, 364, 4588, 635, 4440, 380, 3413, 67, 3085, 329, 1435, 14, 471, 380, 1893, 67, 1425, 1435, 14, 309, 3675, 315, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1484, 67, 8837, 261, 2890, 16, 2944, 33, 8381, 4672, 3536, 18486, 364, 4588, 635, 4440, 380, 3413, 67, 3085, 329, 1435, 14, 471, 380, 1893, 67, 1425, 1435, 14, 309, 3675, 315, 180...
def runsource(self, source, filename='<input>', symbol='single'): source = ' source.encode(self.encoding))
def runsource(self, source, filename='<input>', symbol='single', encode=True): if encode: source = ' source.encode(self.encoding))
def runsource(self, source, filename='<input>', symbol='single'): source = '# coding: %s\n%s' % (self.encoding, source.encode(self.encoding)) return code.InteractiveInterpreter.runsource(self, source, filename, symbol)
54f5835ce2bcad2b0db6e1ff7f75caf78d4f8c21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/54f5835ce2bcad2b0db6e1ff7f75caf78d4f8c21/repl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3168, 12, 2890, 16, 1084, 16, 1544, 2218, 32, 2630, 1870, 16, 3273, 2218, 7526, 11, 4672, 1084, 273, 2946, 14848, 30, 738, 87, 64, 82, 9, 87, 11, 738, 261, 2890, 18, 5999, 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, 3168, 12, 2890, 16, 1084, 16, 1544, 2218, 32, 2630, 1870, 16, 3273, 2218, 7526, 11, 4672, 1084, 273, 2946, 14848, 30, 738, 87, 64, 82, 9, 87, 11, 738, 261, 2890, 18, 5999, 16, ...
v['fcshlib_FCFLAGS'] = ['-fpic'] v['fcshlib_LINKFLAGS'] = ['-shared']
v['FCFLAGS_fcshlib'] = ['-fpic'] v['LINKFLAGS_fcshlib'] = ['-shared']
def fc_flags(conf): v = conf.env v['FC_SRC_F'] = '' v['FC_TGT_F'] = ['-c', '-o', ''] v['FCINCPATH_ST'] = '-I%s' v['FCDEFINES_ST'] = '-D%s' if not v['LINK_FC']: v['LINK_FC'] = v['FC'] v['FCLNK_SRC_F'] = '' v['FCLNK_TGT_F'] = ['-o', ''] v['fcshlib_FCFLAGS'] = ['-fpic'] v['fcshlib_LINKFLAGS'] = ['-shared'] v[...
ed52d6dad6bae794da483232dafcd1b94eaf3518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/ed52d6dad6bae794da483232dafcd1b94eaf3518/fc_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8036, 67, 7133, 12, 3923, 4672, 331, 273, 2195, 18, 3074, 225, 331, 3292, 4488, 67, 28413, 67, 42, 3546, 565, 273, 875, 331, 3292, 4488, 67, 56, 16506, 67, 42, 3546, 565, 273, 10228, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8036, 67, 7133, 12, 3923, 4672, 331, 273, 2195, 18, 3074, 225, 331, 3292, 4488, 67, 28413, 67, 42, 3546, 565, 273, 875, 331, 3292, 4488, 67, 56, 16506, 67, 42, 3546, 565, 273, 10228, ...
elif len(oper_cells) > self.options.get('max_operations', 15):
elif len(oper_cells) > max_operations:
def _get_html_label(self): # Get the class name & contextualize it. classname = self.class_doc.canonical_name classname = classname.contextualize(self.context.canonical_name) # If we're collapsed, display the node as a single box. if self.collapsed: return self._COLLAPSED_LABEL % (self.bgcolor, classname) # Construct...
690188d9e8599bbb6e43471bc184695c43959ebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/690188d9e8599bbb6e43471bc184695c43959ebd/dotgraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2620, 67, 1925, 12, 2890, 4672, 468, 968, 326, 667, 508, 473, 22724, 554, 518, 18, 7479, 273, 365, 18, 1106, 67, 2434, 18, 18288, 67, 529, 7479, 273, 7479, 18, 2472, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2620, 67, 1925, 12, 2890, 4672, 468, 968, 326, 667, 508, 473, 22724, 554, 518, 18, 7479, 273, 365, 18, 1106, 67, 2434, 18, 18288, 67, 529, 7479, 273, 7479, 18, 2472, 14...
self.assertEqual(keys, self._dkeys)
dkeys = self._dict.keys() dkeys.sort() self.assertEqual(keys, dkeys)
def keys_helper(self, f): keys = f.keys() keys.sort() self.assertEqual(keys, self._dkeys) return keys
c08fe82b32386d2621f4c6c17cc334c7a3a924b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c08fe82b32386d2621f4c6c17cc334c7a3a924b9/test_dumbdbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1311, 67, 4759, 12, 2890, 16, 284, 4672, 1311, 273, 284, 18, 2452, 1435, 1311, 18, 3804, 1435, 302, 2452, 273, 365, 6315, 1576, 18, 2452, 1435, 302, 2452, 18, 3804, 1435, 365, 18, 1123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1311, 67, 4759, 12, 2890, 16, 284, 4672, 1311, 273, 284, 18, 2452, 1435, 1311, 18, 3804, 1435, 302, 2452, 273, 365, 6315, 1576, 18, 2452, 1435, 302, 2452, 18, 3804, 1435, 365, 18, 1123...
rows = model.read(cr, uid, datas['ids'], result['fields'].keys(), context) ids2 = map(itemgetter('id'), rows) if datas['ids'] != ids2: rows_new = [] for id in datas['ids']: rows_new += [elem for elem in rows if elem['id'] == id] rows = rows_new
rows = model.read(cr, uid, datas['ids'], result['fields'].keys(), context) ids2 = map(itemgetter('id'), rows) if datas['ids'] != ids2: rows_new = [] for id in datas['ids']: rows_new += [elem for elem in rows if elem['id'] == id] rows = rows_new
def get_groupby_data(groupby = [], domain = []): records = model.read_group(cr, uid, domain, fields_order, groupby , 0, None, context) for rec in records: rec['__group'] = True rec['__no_leaf'] = self.groupby_no_leaf rec['__grouped_by'] = groupby[0] if (isinstance(groupby, list) and groupby) else groupby for f in fiel...
19bf88b997406a3e45052934a78e76801c9ec277 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/19bf88b997406a3e45052934a78e76801c9ec277/ps_list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1655, 1637, 67, 892, 12, 1655, 1637, 273, 5378, 16, 2461, 273, 5378, 4672, 3853, 273, 225, 938, 18, 896, 67, 1655, 12, 3353, 16, 4555, 16, 2461, 16, 1466, 67, 1019, 16, 1312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1655, 1637, 67, 892, 12, 1655, 1637, 273, 5378, 16, 2461, 273, 5378, 4672, 3853, 273, 225, 938, 18, 896, 67, 1655, 12, 3353, 16, 4555, 16, 2461, 16, 1466, 67, 1019, 16, 1312...
dictDate = self.formatDate(dict[field])
dictDate = self.formatDate(value)
def Check_Object(self, dict): """ Check expected value by comparison to the data contained in the object attributes @type dict : dictionary @param dict : dictionary with expected item attributes values for checking {"attributeName":"expected value",...} """ if self.logger: self.logger.SetChecked(True) # check the chang...
5c6ba404b99947f3210082287c79a9b81a402c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5c6ba404b99947f3210082287c79a9b81a402c26/QAUITestAppLib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 67, 921, 12, 2890, 16, 2065, 4672, 3536, 2073, 2665, 460, 635, 5826, 358, 326, 501, 7542, 316, 326, 733, 1677, 632, 723, 2065, 294, 3880, 632, 891, 2065, 294, 3880, 598, 2665, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 67, 921, 12, 2890, 16, 2065, 4672, 3536, 2073, 2665, 460, 635, 5826, 358, 326, 501, 7542, 316, 326, 733, 1677, 632, 723, 2065, 294, 3880, 632, 891, 2065, 294, 3880, 598, 2665, 76...
self._implicitNameOp('DELETE', append)
self._implicitNameOp('DELETE', tmpname)
def visitListComp(self, node): self.set_lineno(node) # setup list append = "$append%d" % self.__list_count self.__list_count = self.__list_count + 1 self.emit('BUILD_LIST', 0) self.emit('DUP_TOP') self.emit('LOAD_ATTR', 'append') self._implicitNameOp('STORE', append)
2baa123081849da33ef8ac1c37b56d04252d77cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2baa123081849da33ef8ac1c37b56d04252d77cc/pycodegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 682, 2945, 12, 2890, 16, 756, 4672, 365, 18, 542, 67, 17782, 12, 2159, 13, 468, 3875, 666, 714, 273, 4662, 6923, 9, 72, 6, 738, 365, 16186, 1098, 67, 1883, 365, 16186, 1098, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 682, 2945, 12, 2890, 16, 756, 4672, 365, 18, 542, 67, 17782, 12, 2159, 13, 468, 3875, 666, 714, 273, 4662, 6923, 9, 72, 6, 738, 365, 16186, 1098, 67, 1883, 365, 16186, 1098, 67...
'description' : ('\n', ''),
def __init__(self, document): nodes.NodeVisitor.__init__(self, document) self.settings = settings = document.settings lcode = settings.language_code self.language = languages.get_language(lcode) self.head = [] self.body = [] self.foot = [] self.section_level = 0 self.context = [] self.topic_class = '' self.colspecs = [...
2e86202953f5508878f482543956d988e25d6f8f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/2e86202953f5508878f482543956d988e25d6f8f/manpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1668, 4672, 2199, 18, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1947, 273, 1668, 18, 4272, 328, 710, 273, 1947, 18, 4923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1668, 4672, 2199, 18, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1947, 273, 1668, 18, 4272, 328, 710, 273, 1947, 18, 4923, ...
add_error_message(doc, _('Authentication failed.'))
doc.addError(_('Authentication failed.'))
def main(): doc = Document() doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) parts = Utils.GetPathPieces() lenparts = parts and len(parts) if not parts or lenparts < 1: title = _('CGI script error') doc.SetTitle(title) doc.AddItem(Header(2, title)) add_error_message(doc, _('Invalid options to CGI script.')) doc.AddIt...
1b0a7186ef948b504ed35356bdee74957c65566d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/1b0a7186ef948b504ed35356bdee74957c65566d/options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 997, 273, 4319, 1435, 997, 18, 542, 67, 4923, 12, 7020, 67, 7066, 18, 5280, 67, 4370, 67, 15547, 13, 225, 2140, 273, 6091, 18, 967, 743, 16539, 8610, 1435, 562, 6019, 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, 2774, 13332, 997, 273, 4319, 1435, 997, 18, 542, 67, 4923, 12, 7020, 67, 7066, 18, 5280, 67, 4370, 67, 15547, 13, 225, 2140, 273, 6091, 18, 967, 743, 16539, 8610, 1435, 562, 6019, 273,...
:param date: :param persistent: ``True`` to store the job in a persistent job store
:param date: the date/time to run the job at :param name: name of the job :param persistent: ``True`` to store the job in any persistent job store
def add_date_job(self, func, date, args=None, kwargs=None, **options): """ Adds a job to be completed on a specific date and time.
6dd2e2b8f529c53f3b95282212a8546d72aaec81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/6dd2e2b8f529c53f3b95282212a8546d72aaec81/scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 712, 67, 4688, 12, 2890, 16, 1326, 16, 1509, 16, 833, 33, 7036, 16, 1205, 33, 7036, 16, 2826, 2116, 4672, 3536, 15605, 279, 1719, 358, 506, 5951, 603, 279, 2923, 1509, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 712, 67, 4688, 12, 2890, 16, 1326, 16, 1509, 16, 833, 33, 7036, 16, 1205, 33, 7036, 16, 2826, 2116, 4672, 3536, 15605, 279, 1719, 358, 506, 5951, 603, 279, 2923, 1509, 471, ...
nc = netCDF3.Dataset(make_fp(lts))
fp = make_fp(lts) if not os.path.isfile(fp): continue nc = netCDF3.Dataset( fp )
def doit(ts, hours): """ Create a plot of precipitation stage4 estimates for some day """ # Mod the minute down remain = ts.minute % 5 ts -= mx.DateTime.RelativeDateTime(minutes=(ts.minute%5)) lons = numpy.arange(-110., -89.99, 0.01) lats = numpy.arange(55.0, 39.99, -0.01) limit = 20 while not os.path.isfile(make_fp(...
ab17b2200e407367442f04e994212b2485086635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11189/ab17b2200e407367442f04e994212b2485086635/q2_Xhour.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 305, 12, 3428, 16, 7507, 4672, 3536, 1788, 279, 3207, 434, 675, 3449, 8773, 6009, 24, 27585, 364, 2690, 2548, 3536, 468, 3431, 326, 8044, 2588, 7232, 273, 3742, 18, 17637, 738, 1381...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 305, 12, 3428, 16, 7507, 4672, 3536, 1788, 279, 3207, 434, 675, 3449, 8773, 6009, 24, 27585, 364, 2690, 2548, 3536, 468, 3431, 326, 8044, 2588, 7232, 273, 3742, 18, 17637, 738, 1381...
log.warning("%d markup error(s) were found while processing " "docstrings. Use the verbose switch (-v) to " "display markup errors." % logger.supressed_docstring_warning)
if logger.supressed_docstring_warning == 1: prefix = '1 markup error was found' else: prefix = ('%d markup errors were found' % logger.supressed_docstring_warning) log.warning("%s while processing docstrings. Use the verbose " "switch (-v) to display markup errors." % prefix)
def main(options, names): if options.action == 'text': if options.parse and options.introspect: options.parse = False # Set up the logger if options.action == 'text': logger = None # no logger for text output. elif options.verbosity > 1: logger = ConsoleLogger(options.verbosity) log.register_logger(logger) else: # Eac...
62447e868cef72dccdfe774828c735c067c90674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/62447e868cef72dccdfe774828c735c067c90674/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 1257, 4672, 309, 702, 18, 1128, 422, 296, 955, 4278, 309, 702, 18, 2670, 471, 702, 18, 474, 26170, 30, 702, 18, 2670, 273, 1083, 225, 468, 1000, 731, 326, 1194, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 1257, 4672, 309, 702, 18, 1128, 422, 296, 955, 4278, 309, 702, 18, 2670, 471, 702, 18, 474, 26170, 30, 702, 18, 2670, 273, 1083, 225, 468, 1000, 731, 326, 1194, 3...
print "Exp Data Labels:\n", exp_scatter_data_labels print "Mod Data Labels:\n", mod_scatter_data_labels combined_scatter_data = [exp_scatter_data_labels,mod_scatter_data_labels]
combined_scatter_data_labels = [exp_scatter_data_labels,mod_scatter_data_labels]
def extract_comp_data(comp_file_info): ## Read in d line dict from config file and Process data from source .csv files. exp_data = [] mod_data = [] exp_data_dict = {} mod_data_dict = {} exp_scatter_data_labels = [] mod_scatter_data_labels = [] #List of variables from configuration file column names. exp_data_filenam...
8b29e6ed42f5e5e45bcb0f60f033670da998a673 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/8b29e6ed42f5e5e45bcb0f60f033670da998a673/Validation_Data_Processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 2919, 67, 892, 12, 2919, 67, 768, 67, 1376, 4672, 7541, 2720, 316, 302, 980, 2065, 628, 642, 585, 471, 4389, 501, 628, 1084, 263, 6715, 1390, 18, 225, 1329, 67, 892, 273, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 2919, 67, 892, 12, 2919, 67, 768, 67, 1376, 4672, 7541, 2720, 316, 302, 980, 2065, 628, 642, 585, 471, 4389, 501, 628, 1084, 263, 6715, 1390, 18, 225, 1329, 67, 892, 273, 5...
Note that the provided `doc` is required to have a `_rev` field. Thus, if the `doc` is based on a view row, the view row would need to include the `_rev` field.
Note that the provided `doc` is required to have a ``_rev`` field. Thus, if the `doc` is based on a view row, the view row would need to include the ``_rev`` field.
def delete_attachment(self, doc, filename): """Delete the specified attachment. Note that the provided `doc` is required to have a `_rev` field. Thus, if the `doc` is based on a view row, the view row would need to include the `_rev` field.
93269836c6d213105109d7b095e3405e4cd8a9ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9373/93269836c6d213105109d7b095e3405e4cd8a9ff/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 11461, 12, 2890, 16, 997, 16, 1544, 4672, 3536, 2613, 326, 1269, 6042, 18, 225, 3609, 716, 326, 2112, 1375, 2434, 68, 353, 1931, 358, 1240, 279, 1375, 67, 9083, 68, 652, 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, 1430, 67, 11461, 12, 2890, 16, 997, 16, 1544, 4672, 3536, 2613, 326, 1269, 6042, 18, 225, 3609, 716, 326, 2112, 1375, 2434, 68, 353, 1931, 358, 1240, 279, 1375, 67, 9083, 68, 652, 18, ...
old_param = self.pipeline.db_get_object(pType,pId)
old_param = function.params[pId]
def collectParameterActions(self): """ collectParameterActions() -> list Return a list of action lists corresponding to each dimension """ if not self.pipeline: return None parameterValues = [[], [], [], []] typeCast = {'Integer': int, 'Float': float, 'String': str} counts = self.label.getCounts() for i in xrange(self...
2dbc1b9fab8bd7642528d64f8595a8939a7444fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/2dbc1b9fab8bd7642528d64f8595a8939a7444fb/pe_table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 1662, 6100, 12, 2890, 4672, 3536, 3274, 1662, 6100, 1435, 317, 666, 2000, 279, 666, 434, 1301, 6035, 4656, 358, 1517, 4968, 225, 3536, 309, 486, 365, 18, 14511, 30, 327, 599, 1569,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 1662, 6100, 12, 2890, 4672, 3536, 3274, 1662, 6100, 1435, 317, 666, 2000, 279, 666, 434, 1301, 6035, 4656, 358, 1517, 4968, 225, 3536, 309, 486, 365, 18, 14511, 30, 327, 599, 1569,...
virtualHardwareSection = Ovf.getElementsByTagName(ovfNode,
virtualHardwareSection = Ovf.getElementsByTagName(virtualSys,
def getOvfDomain(ovf, virtualSys, ovfId, configId=None): """ Returns a libvirt domain object for a specific virtual system, based on the id and configuration, from the ovf. @param ovf: Ovf file @type ovf: DOM Document @param ovfId: VirtualSystem(Collection) identifier @type ovfId: String @param configId: configurati...
4e4f044c0f1172401ad35891822f58d22b6948b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/4e4f044c0f1172401ad35891822f58d22b6948b3/OvfLibvirt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17971, 90, 74, 3748, 12, 1527, 74, 16, 5024, 12712, 16, 23094, 74, 548, 16, 642, 548, 33, 7036, 4672, 3536, 2860, 279, 16388, 2461, 733, 364, 279, 2923, 5024, 2619, 16, 2511, 603, 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, 17971, 90, 74, 3748, 12, 1527, 74, 16, 5024, 12712, 16, 23094, 74, 548, 16, 642, 548, 33, 7036, 4672, 3536, 2860, 279, 16388, 2461, 733, 364, 279, 2923, 5024, 2619, 16, 2511, 603, 326,...
self.parentWidget._lastGroupBox.VSpacerWidget.changeSize(
self.parentWidget._lastGroupBox.verticalSpacer.changeSize(
def _addBottomSpacer(self): """ Add a vertical spacer below this groupbox <self>. Assume <self> is going to be the last groupbox in this PropMgr, so set its spacer's vertical sizePolicy to MinimumExpanding. We then set the vertical sizePolicy of the last groupbox's spacer to Fixed and set its height to pmGroupBoxSpacin...
2c693e515c1d7f66b30f5a604a259df854e709ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/2c693e515c1d7f66b30f5a604a259df854e709ab/PM_GroupBox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 10393, 3389, 10598, 12, 2890, 4672, 3536, 1436, 279, 9768, 31896, 5712, 333, 1041, 2147, 411, 2890, 18652, 15983, 411, 2890, 34, 353, 8554, 358, 506, 326, 1142, 1041, 2147, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 10393, 3389, 10598, 12, 2890, 4672, 3536, 1436, 279, 9768, 31896, 5712, 333, 1041, 2147, 411, 2890, 18652, 15983, 411, 2890, 34, 353, 8554, 358, 506, 326, 1142, 1041, 2147, 316,...
row_header = " ".join(map(rowstr, self.rows)) row_header += " ".join(map(colstr, self.cols)) lines.append(row_header)
table_header = "" if isinstance(self.rows, str): table_header += "%%%ds" % self.row_label_width % self.rows else: table_header += " ".join(map(rowstr, self.rows)) table_header += " ".join(map(colstr, self.cols)) lines.append(table_header)
def __str__(self): rowstr = lambda x: '%%%ds' % self.row_label_width % x colstr = lambda x: '%%%ds' % self.width % x
6ebe3615cb9faaca7b3b1f08a54867e14c2a4f69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2781/6ebe3615cb9faaca7b3b1f08a54867e14c2a4f69/psi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 1027, 701, 273, 3195, 619, 30, 1995, 11438, 2377, 11, 738, 365, 18, 492, 67, 1925, 67, 2819, 738, 619, 645, 701, 273, 3195, 619, 30, 1995, 11438, 2377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 701, 972, 12, 2890, 4672, 1027, 701, 273, 3195, 619, 30, 1995, 11438, 2377, 11, 738, 365, 18, 492, 67, 1925, 67, 2819, 738, 619, 645, 701, 273, 3195, 619, 30, 1995, 11438, 2377, ...
if overwrite:
if not overwrite:
def reassembly(request, pagename, filename, chunkSize, digests, overwrite=True): _ = request.getText # Using the same access controls as in MoinMoin's xmlrpc_putPage # as defined in MoinMoin/wikirpc.py if (request.cfg.xmlrpc_putpage_trusted_only and not request.user.trusted): return xmlrpclib.Fault(1, _("You are not a...
f2fa7cbc4e1d5cb19ae698edb6bc8e23482a867e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/f2fa7cbc4e1d5cb19ae698edb6bc8e23482a867e/ChunkedAttachFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 28050, 12, 2293, 16, 4262, 1069, 16, 1544, 16, 17791, 16, 5403, 87, 16, 6156, 33, 5510, 4672, 389, 273, 590, 18, 588, 1528, 225, 468, 11637, 326, 1967, 2006, 11022, 487, 316, 490,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 28050, 12, 2293, 16, 4262, 1069, 16, 1544, 16, 17791, 16, 5403, 87, 16, 6156, 33, 5510, 4672, 389, 273, 590, 18, 588, 1528, 225, 468, 11637, 326, 1967, 2006, 11022, 487, 316, 490,...
@keyword axis: This is the axis one wishes to manipulate. If no argument is given the default value is I{y}. @type axis: C{string}=<y or x> @keyword axis_pos: This is position of the axis in the axis array. If no argument is given, the default value is I{0}. @type axis_pos: C{int}
def integrate_axis(obj, **kwargs): """ This function takes a spectrum and integrates the given axis. The function assumes that the incoming data is in the histogram form. @param obj: Spectrum to be integrated @type obj: C{SOM.SOM} or C{SOM.SO} @param kwargs: A list of keyword arguments that the function accepts: @ke...
053aac520160dc049a55963169d8a79cee672e6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/053aac520160dc049a55963169d8a79cee672e6a/hlr_integrate_axis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23367, 67, 4890, 12, 2603, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 279, 17970, 471, 11301, 815, 326, 864, 2654, 18, 1021, 445, 13041, 716, 326, 6935, 501, 353, 316, 326, 8892, 646, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23367, 67, 4890, 12, 2603, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 279, 17970, 471, 11301, 815, 326, 864, 2654, 18, 1021, 445, 13041, 716, 326, 6935, 501, 353, 316, 326, 8892, 646, ...
-- There are even faster ways to do this; for some coefficient
\begin{itemize} \item There are even faster ways to do this; for some coefficient
def exp(self, prec = infinity): r""" Returns exp of this power series to the indicated precision.
46ea401e33b29612fe0c39b8964723eeb03ff038 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/46ea401e33b29612fe0c39b8964723eeb03ff038/power_series_ring_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1329, 12, 2890, 16, 13382, 273, 27272, 4672, 436, 8395, 2860, 1329, 434, 333, 7212, 4166, 358, 326, 17710, 6039, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1329, 12, 2890, 16, 13382, 273, 27272, 4672, 436, 8395, 2860, 1329, 434, 333, 7212, 4166, 358, 326, 17710, 6039, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print 'nueva listaaa: ',sml_x_pd_id
def procesar_producto(self, cr, uid, ids, prod_id, Dict, loc_ids, inter_loc_ids, prod_loc_ids, pending=False): ''' Concepto de prueba de Humberto Arocha para procesamiento recursivo de de stock card line ''' rpp_obj = self.pool.get('report.profit.picking') sc_line_obj = self.pool.get('stock.card.line') product = Dict[p...
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 764, 297, 67, 5896, 83, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10791, 67, 350, 16, 9696, 16, 1515, 67, 2232, 16, 1554, 67, 1829, 67, 2232, 16, 10791, 67, 1829, 67, 2232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 764, 297, 67, 5896, 83, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10791, 67, 350, 16, 9696, 16, 1515, 67, 2232, 16, 1554, 67, 1829, 67, 2232, 16, 10791, 67, 1829, 67, 2232, ...
carry += a._getshort(i) z._setshort(i, carry & MASK)
carry += a.digits[i] z.digits[i] = carry & MASK
def _x_add(a, b): """ Add the absolute values of two long integers. """ size_a = len(a.digits) * 2 size_b = len(b.digits) * 2 # Ensure a is the larger of the two: if size_a < size_b: a, b = b, a size_a, size_b = size_b, size_a z = W_LongObject(a.space, [r_uint(0)] * (len(a.digits) + 1), 1) i = 0 carry = r_uint(0) whil...
ad929a678777d2ef2df66adef7cd3564d723bca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ad929a678777d2ef2df66adef7cd3564d723bca6/longobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 92, 67, 1289, 12, 69, 16, 324, 4672, 3536, 1436, 326, 4967, 924, 434, 2795, 1525, 12321, 18, 3536, 963, 67, 69, 273, 562, 12, 69, 18, 16649, 13, 380, 576, 963, 67, 70, 273, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 92, 67, 1289, 12, 69, 16, 324, 4672, 3536, 1436, 326, 4967, 924, 434, 2795, 1525, 12321, 18, 3536, 963, 67, 69, 273, 562, 12, 69, 18, 16649, 13, 380, 576, 963, 67, 70, 273, 56...
res = os.popen("file --brief --mime-type '%s'" % filename).read().strip()
res = os.popen(file_cmd % filename).read().strip()
def get_file_mimetype(filename): res = os.popen("file --brief --mime-type '%s'" % filename).read().strip() assert res, "Cannot get mime type using `file' command" return res
fe896447cf1494e613734ee3bbf84c287399e0c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/fe896447cf1494e613734ee3bbf84c287399e0c0/sip_im_send_file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 22571, 12, 3459, 4672, 400, 273, 1140, 18, 84, 3190, 12, 768, 67, 4172, 738, 1544, 2934, 896, 7675, 6406, 1435, 1815, 400, 16, 315, 4515, 336, 4892, 618, 1450, 1375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 768, 67, 22571, 12, 3459, 4672, 400, 273, 1140, 18, 84, 3190, 12, 768, 67, 4172, 738, 1544, 2934, 896, 7675, 6406, 1435, 1815, 400, 16, 315, 4515, 336, 4892, 618, 1450, 1375, ...
"deprecated, use useUpdateCallback() instead")
"deprecated, use setUpdateCallback() instead")
def updateChangeSet(self, itemList, keepExisting = False, recurse = True, resolveDeps = True, test = False, updateByDefault = True, callback=None, split = True, sync = False, fromChangesets = [], checkPathConflicts = True, checkPrimaryPins = True, resolveRepos = True, syncChildren = False, updateOnly = False, resolveGr...
a6fffb0700ec02169a9a444ce26c52d55e686eba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/a6fffb0700ec02169a9a444ce26c52d55e686eba/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 21565, 12, 2890, 16, 761, 682, 16, 3455, 9895, 273, 1083, 16, 11502, 273, 1053, 16, 2245, 14430, 273, 1053, 16, 1842, 273, 1083, 16, 1089, 858, 1868, 273, 1053, 16, 1348, 33, 703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 21565, 12, 2890, 16, 761, 682, 16, 3455, 9895, 273, 1083, 16, 11502, 273, 1053, 16, 2245, 14430, 273, 1053, 16, 1842, 273, 1083, 16, 1089, 858, 1868, 273, 1053, 16, 1348, 33, 703...
self.assert_(isinstance(an_entry, gspreadsheet.GSpreadsheetsSpreadsheet))
self.assert_(isinstance(an_entry, gspreadsheet.SpreadsheetsSpreadsheet))
def testToAndFromString(self): self.assert_(len(self.feed.entry) == 1) for an_entry in self.feed.entry: self.assert_(isinstance(an_entry, gspreadsheet.GSpreadsheetsSpreadsheet)) new_feed = gspreadsheet.GSpreadsheetsSpreadsheetsFeedFromString( str(self.feed)) for an_entry in new_feed.entry: self.assert_(isinstance(an_en...
50afc41651ef00ab4626fbe905c8ac1304fb3b37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/50afc41651ef00ab4626fbe905c8ac1304fb3b37/gspreadsheet_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 774, 1876, 9193, 12, 2890, 4672, 365, 18, 11231, 67, 12, 1897, 12, 2890, 18, 7848, 18, 4099, 13, 422, 404, 13, 364, 392, 67, 4099, 316, 365, 18, 7848, 18, 4099, 30, 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, 1842, 774, 1876, 9193, 12, 2890, 4672, 365, 18, 11231, 67, 12, 1897, 12, 2890, 18, 7848, 18, 4099, 13, 422, 404, 13, 364, 392, 67, 4099, 316, 365, 18, 7848, 18, 4099, 30, 365, 18, ...
if sys.platform.startswith("win"): lookfor = " denied"
if sys.platform == 'win32': expected_exit_code = 2
def test_directories(self): # Does this test make sense? The message for "< ." may depend on # the command shell, and the message for "." depends on the OS. if sys.platform.startswith("win"): # On WinXP w/ cmd.exe, # "< ." gives "Access is denied.\n" # "." gives "C:\\Code\\python\\PCbuild\\python.exe: " + # ...
bc1646a846c494d093af945ba5d70215d8fb2af5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bc1646a846c494d093af945ba5d70215d8fb2af5/test_cmd_line.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15121, 12, 2890, 4672, 468, 9637, 333, 1842, 1221, 12764, 35, 225, 1021, 883, 364, 3532, 263, 6, 225, 2026, 2447, 603, 468, 326, 1296, 5972, 16, 471, 326, 883, 364, 4585, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15121, 12, 2890, 4672, 468, 9637, 333, 1842, 1221, 12764, 35, 225, 1021, 883, 364, 3532, 263, 6, 225, 2026, 2447, 603, 468, 326, 1296, 5972, 16, 471, 326, 883, 364, 4585, 109...
pass
pass
def file_dialog(self):
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 12730, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 12730, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return u"<Poll(%d,%s,%s,%s)>" % (self.id,
return u"<Poll(%s,%s,%s,%s)>" % (self.id,
def __repr__(self): return u"<Poll(%d,%s,%s,%s)>" % (self.id, self.motion_id, self.begin_time, self.end_time)
bc48e2131081eb487311586471d9d41d6c137642 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/bc48e2131081eb487311586471d9d41d6c137642/poll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 582, 6, 32, 19085, 9275, 87, 15529, 87, 15529, 87, 15529, 87, 13, 2984, 738, 261, 2890, 18, 350, 16, 365, 18, 81, 8240, 67, 350, 16, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 582, 6, 32, 19085, 9275, 87, 15529, 87, 15529, 87, 15529, 87, 13, 2984, 738, 261, 2890, 18, 350, 16, 365, 18, 81, 8240, 67, 350, 16, 365, 18, ...
env={key: value})
env=env)
def test_undecodable_env(self): for key, value in (('test', 'abc\uDCFF'), ('test\uDCFF', '42')): value_repr = repr(value).encode("ascii")
2c251e40f93cfea5ba536a21955ca18012cebccc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/2c251e40f93cfea5ba536a21955ca18012cebccc/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 323, 1559, 429, 67, 3074, 12, 2890, 4672, 364, 498, 16, 460, 316, 261, 2668, 3813, 2187, 296, 18947, 64, 89, 5528, 2246, 19899, 7707, 3813, 64, 89, 5528, 2246, 2187, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 323, 1559, 429, 67, 3074, 12, 2890, 4672, 364, 498, 16, 460, 316, 261, 2668, 3813, 2187, 296, 18947, 64, 89, 5528, 2246, 19899, 7707, 3813, 64, 89, 5528, 2246, 2187, 296...
os.symlink(item['source'], path)
source = item['source'] logging.info('%s -> %s', path, source) if os.path.exists(path): os.unlink(path) os.symlink(source, path) self.restore_stat(path, item, call_utime=False) elif item['type'] == 'HARDLINK': if not os.path.exists(os.path.dirname(path)): os.makedirs(os.path.dirname(path)) source = os.path.join(dest, i...
def extract(self, dest=None): dest = dest or os.getcwdu() for item in self.items: assert item['path'][0] not in ('/', '\\', ':') path = os.path.join(dest, item['path'].decode('utf-8')) if item['type'] == 'DIRECTORY': logging.info(path) if not os.path.exists(path): os.makedirs(path) elif item['type'] == 'SYMLINK': loggi...
afdabb623a59791b47f636e1a523011992cb3fde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3863/afdabb623a59791b47f636e1a523011992cb3fde/archive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 1570, 33, 7036, 4672, 1570, 273, 1570, 578, 1140, 18, 588, 71, 91, 2544, 1435, 364, 761, 316, 365, 18, 3319, 30, 1815, 761, 3292, 803, 3546, 63, 20, 65, 486, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 1570, 33, 7036, 4672, 1570, 273, 1570, 578, 1140, 18, 588, 71, 91, 2544, 1435, 364, 761, 316, 365, 18, 3319, 30, 1815, 761, 3292, 803, 3546, 63, 20, 65, 486, 316,...
elif self.clean_data.get('use_repository'):
elif use_repository:
def apply(self, cset, request, repos): if cset.asset.repos and cset.asset.repos.is_active and not self.clean_data.get('use_repository'): # Deactivate repository
1bd84fd46c8dd3338087e5bf23c93073ece705f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6757/1bd84fd46c8dd3338087e5bf23c93073ece705f8/assets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 276, 542, 16, 590, 16, 13686, 4672, 309, 276, 542, 18, 9406, 18, 15564, 471, 276, 542, 18, 9406, 18, 15564, 18, 291, 67, 3535, 471, 486, 365, 18, 6200, 67, 892, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 276, 542, 16, 590, 16, 13686, 4672, 309, 276, 542, 18, 9406, 18, 15564, 471, 276, 542, 18, 9406, 18, 15564, 18, 291, 67, 3535, 471, 486, 365, 18, 6200, 67, 892, ...
import ImageEnhance
def ReduceOpacity(im, opacity): """ Returns an image with reduced opacity. Taken from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/362879 """ import ImageEnhance assert opacity >= 0 and opacity <= 1 if im.mode != 'RGBA': im = im.convert('RGBA') else: im = im.copy() alpha = im.split()[3] alpha = ImageEnhance...
86aab786ac935ad7bedbaf0a1d31cac905e1574e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5402/86aab786ac935ad7bedbaf0a1d31cac905e1574e/pwm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24614, 21379, 12, 381, 16, 12636, 4672, 3536, 2860, 392, 1316, 598, 13162, 12636, 18, 399, 7940, 628, 1062, 2207, 345, 7449, 18, 11422, 395, 340, 18, 832, 19, 3033, 15124, 19, 39, 1184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24614, 21379, 12, 381, 16, 12636, 4672, 3536, 2860, 392, 1316, 598, 13162, 12636, 18, 399, 7940, 628, 1062, 2207, 345, 7449, 18, 11422, 395, 340, 18, 832, 19, 3033, 15124, 19, 39, 1184, ...
def findSuffix(self, regex): """ Try to find a common prefix of two string regex, returns: - None if there is no common prefix - (regexa, regexb, suffix) otherwise => (regexa|regexb) + suffix >>> RegexString('dark color').findSuffix(RegexString('deep color')) (<RegexString 'dark'>, <RegexString 'deep'>, <RegexString ...
def _str(self, **kw): return escapeRegex(self._text)
4a8d93e059c3f6a04f35567f0126ed487a6490e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/4a8d93e059c3f6a04f35567f0126ed487a6490e6/regex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 701, 12, 2890, 16, 2826, 9987, 4672, 327, 4114, 6628, 12, 2890, 6315, 955, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 701, 12, 2890, 16, 2826, 9987, 4672, 327, 4114, 6628, 12, 2890, 6315, 955, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
from Numeric import array, Float
def get_wannier_localization_matrix(self, nbands, dirG, kpoint, nextkpoint, G_I, spin): from Numeric import array, Float return npy.array(self.calc.GetWannierLocalizationMatrix( array(G_I, Float), nbands, array(dirG, Float), kpoint, nextkpoint, spin))
60533436451e6b9578b6353231e45ab960e34dcb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/60533436451e6b9578b6353231e45ab960e34dcb/old.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 91, 1072, 2453, 67, 3729, 1588, 67, 5667, 12, 2890, 16, 4264, 5708, 16, 1577, 43, 16, 417, 1153, 16, 1024, 79, 1153, 16, 611, 67, 45, 16, 12490, 4672, 327, 1130, 93, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 91, 1072, 2453, 67, 3729, 1588, 67, 5667, 12, 2890, 16, 4264, 5708, 16, 1577, 43, 16, 417, 1153, 16, 1024, 79, 1153, 16, 611, 67, 45, 16, 12490, 4672, 327, 1130, 93, 18, 1...
filename = "%s/%s"%(self.famID[event.requestID], event.filename)
filename = "%s/%s" % (self.famID[event.requestID], event.filename)
def HandleEvent(self, event): action = event.code2str() if event.filename[0] != '/': filename = "%s/%s"%(self.famID[event.requestID], event.filename) else: filename = event.filename if action == 'exists': if filename != self.name: self.AddEntry(filename) elif action == 'created': self.AddEntry(filename) elif action == ...
853220b7567cb814567d38bf7d0924fd4ebd2d1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/853220b7567cb814567d38bf7d0924fd4ebd2d1c/cfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1133, 12, 2890, 16, 871, 4672, 1301, 273, 871, 18, 710, 22, 701, 1435, 309, 871, 18, 3459, 63, 20, 65, 480, 2023, 30, 1544, 273, 2213, 87, 5258, 87, 6, 738, 261, 2890, 18, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1133, 12, 2890, 16, 871, 4672, 1301, 273, 871, 18, 710, 22, 701, 1435, 309, 871, 18, 3459, 63, 20, 65, 480, 2023, 30, 1544, 273, 2213, 87, 5258, 87, 6, 738, 261, 2890, 18, 74...
self.nim_slots.append(NIM(slot = id, description = entry["name"], type = entry["type"], has_outputs = entry["has_outputs"], internally_connectable = entry["internally_connectable"], multi_type = entry["multi_type"], frontend_id = entry["frontend_device"]))
self.nim_slots.append(NIM(slot = id, description = entry["name"], type = entry["type"], has_outputs = entry["has_outputs"], internally_connectable = entry["internally_connectable"], multi_type = entry["multi_type"], frontend_id = entry["frontend_device"], is_empty = entry["isempty"]))
def enumerateNIMs(self): # enum available NIMs. This is currently very dreambox-centric and uses the /proc/bus/nim_sockets interface. # the result will be stored into nim_slots. # the content of /proc/bus/nim_sockets looks like: # NIM Socket 0: # Type: DVB-S # Name: BCM4501 DVB-S2 NIM (internal) # NIM...
d21824019fe93603f1c05c7263ef7570aa60e135 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/d21824019fe93603f1c05c7263ef7570aa60e135/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4241, 50, 3445, 87, 12, 2890, 4672, 468, 2792, 2319, 423, 3445, 87, 18, 1220, 353, 4551, 8572, 302, 793, 2147, 17, 71, 18395, 471, 4692, 326, 342, 9381, 19, 9274, 19, 82, 381, 67, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4241, 50, 3445, 87, 12, 2890, 4672, 468, 2792, 2319, 423, 3445, 87, 18, 1220, 353, 4551, 8572, 302, 793, 2147, 17, 71, 18395, 471, 4692, 326, 342, 9381, 19, 9274, 19, 82, 381, 67, 78...
self._beacon_media = self
self._beacon_media = weakref(self)
def update(self, prop): self.prop = prop # FIXME: could str() crash? self.device = str(prop.get('block.device')) self.mountpoint = str(prop.get('volume.mount_point')) if not self.mountpoint: self.mountpoint = self.device if not self.mountpoint.endswith('/'): self.mountpoint += '/' self.overlay = os.path.join(self._db.d...
7e57df70c271add1c72992a1978c891d7307e7a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11703/7e57df70c271add1c72992a1978c891d7307e7a9/media.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 2270, 4672, 365, 18, 5986, 273, 2270, 468, 9852, 30, 3377, 609, 1435, 17053, 35, 365, 18, 5964, 273, 609, 12, 5986, 18, 588, 2668, 2629, 18, 5964, 26112, 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, 1089, 12, 2890, 16, 2270, 4672, 365, 18, 5986, 273, 2270, 468, 9852, 30, 3377, 609, 1435, 17053, 35, 365, 18, 5964, 273, 609, 12, 5986, 18, 588, 2668, 2629, 18, 5964, 26112, 365, 18, ...
fdel=lambda self: delattr(self, "_up"))
fdel=lambda self: setattr(self, "_up", None))
def _getGroups(self): """create the groups object that will store the comps metadata finds the repos with groups, gets their comps data and merge it into the group object""" if self._comps: return self._comps self.verbose_logger.debug('Getting group metadata') reposWithGroups = [] for repo in self.repos.listGroupsEna...
8b5338bcd619ce0be5d3762af0205cbe071e8881 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/8b5338bcd619ce0be5d3762af0205cbe071e8881/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3621, 12, 2890, 4672, 3536, 2640, 326, 3252, 733, 716, 903, 1707, 326, 13979, 1982, 13094, 326, 13686, 598, 3252, 16, 5571, 3675, 13979, 501, 471, 2691, 518, 1368, 326, 1041, 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, 389, 588, 3621, 12, 2890, 4672, 3536, 2640, 326, 3252, 733, 716, 903, 1707, 326, 13979, 1982, 13094, 326, 13686, 598, 3252, 16, 5571, 3675, 13979, 501, 471, 2691, 518, 1368, 326, 1041, 7...
Type : None; Priority: 10
Type : Subversion; Priority: 10
def __str__(self): ''' >>> here = os.path.dirname(os.path.realpath(__file__)) >>> import xml.etree.ElementTree as ET # Python 2.5 >>> document = ET.parse(here + '/../tests/testfiles/global-overlays.xml') >>> overlays = document.findall('overlay') + document.findall('repo') >>> a = Overlay(overlays[0], dict()) >>> print...
54a53d5aa0302d6c97a25de21c797cbc607770de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7305/54a53d5aa0302d6c97a25de21c797cbc607770de/overlay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 9163, 4080, 2674, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 7688, 803, 12, 972, 768, 972, 3719, 4080, 1930, 2025, 18, 31303, 18, 1046, 2471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 701, 972, 12, 2890, 4672, 9163, 4080, 2674, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 7688, 803, 12, 972, 768, 972, 3719, 4080, 1930, 2025, 18, 31303, 18, 1046, 2471, ...
% test.name, tests_msg)
% (test.name, tests_msg))
def check_suite_contains_tests(self, suite, *expected_names): actual_tests = [ test for test in self.get_tests_from_suite(suite) ] tests_msg = """
613d096bee90d0e4dd1db6bc7d23b591661ab4ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/613d096bee90d0e4dd1db6bc7d23b591661ab4ae/TestCheckerLibrary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 30676, 67, 12298, 67, 16341, 12, 2890, 16, 11371, 16, 380, 3825, 67, 1973, 4672, 3214, 67, 16341, 273, 306, 1842, 364, 1842, 316, 365, 18, 588, 67, 16341, 67, 2080, 67, 30676,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 30676, 67, 12298, 67, 16341, 12, 2890, 16, 11371, 16, 380, 3825, 67, 1973, 4672, 3214, 67, 16341, 273, 306, 1842, 364, 1842, 316, 365, 18, 588, 67, 16341, 67, 2080, 67, 30676,...
def exersize_enforce_positive_amplitudes():
def exercise_enforce_positive_amplitudes():
def exersize_enforce_positive_amplitudes(): from cctbx.xray import observation_types xs = crystal.symmetry((3,4,5), "P 2 2 2") mi = flex.miller_index(((1,-2,3), (0,0,-4))) data = flex.double((-1,-2)) sigmas = flex.double((1,2)) ms = miller.set(xs, mi) ma = miller.array(ms) ma = miller.array(ms, data=data, sigmas=sigmas...
0aabe41ae68526f240ae22ea53f585aacd58b5d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/0aabe41ae68526f240ae22ea53f585aacd58b5d3/tst_miller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 275, 5734, 67, 21094, 67, 301, 1127, 6500, 13332, 628, 276, 299, 70, 92, 18, 92, 435, 1930, 13853, 67, 2352, 9280, 273, 4422, 31365, 18, 8117, 18042, 12443, 23, 16, 24, 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, 24165, 67, 275, 5734, 67, 21094, 67, 301, 1127, 6500, 13332, 628, 276, 299, 70, 92, 18, 92, 435, 1930, 13853, 67, 2352, 9280, 273, 4422, 31365, 18, 8117, 18042, 12443, 23, 16, 24, 16, ...
_OP_REQP = ["instance_name", "disks", "disk_template",
_OP_REQP = ["instance_name", "disks",
def _CheckHVParams(lu, nodenames, hvname, hvparams): """Hypervisor parameter validation. This function abstract the hypervisor parameter validation to be used in both instance create and instance modify. @type lu: L{LogicalUnit} @param lu: the logical unit for which we check @type nodenames: list @param nodenames: th...
f276c4b5558338ba7832b5a92b822f0695a5ac6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/f276c4b5558338ba7832b5a92b822f0695a5ac6c/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1564, 44, 58, 1370, 12, 28832, 16, 14003, 6809, 16, 366, 90, 529, 16, 366, 90, 2010, 4672, 3536, 15996, 10227, 1569, 3379, 18, 225, 1220, 445, 8770, 326, 9512, 10227, 1569, 3379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1564, 44, 58, 1370, 12, 28832, 16, 14003, 6809, 16, 366, 90, 529, 16, 366, 90, 2010, 4672, 3536, 15996, 10227, 1569, 3379, 18, 225, 1220, 445, 8770, 326, 9512, 10227, 1569, 3379, ...
for key in self.getLongWeekdays().keys(): if self.getLongWeekdays()[key] == p_day: return int(key)
for key in self.LongWeekdays.keys(): if self.LongWeekdays[key] == p_day: return int(key)
def getDayIndex(self, p_day): """ return the day index """ for key in self.getLongWeekdays().keys(): if self.getLongWeekdays()[key] == p_day: return int(key)
68189515448f495568529d491c3625d49d18e053 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/68189515448f495568529d491c3625d49d18e053/DateFunctions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20444, 1016, 12, 2890, 16, 293, 67, 2881, 4672, 3536, 327, 326, 2548, 770, 3536, 364, 498, 316, 365, 18, 588, 3708, 6630, 9810, 7675, 2452, 13332, 309, 365, 18, 588, 3708, 6630, 9810, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20444, 1016, 12, 2890, 16, 293, 67, 2881, 4672, 3536, 327, 326, 2548, 770, 3536, 364, 498, 316, 365, 18, 588, 3708, 6630, 9810, 7675, 2452, 13332, 309, 365, 18, 588, 3708, 6630, 9810, ...
print "Something happened last time we tried to write file. Temp file found, using it as normal."
Log.debug("Something happened to the tags file. Using backup")
def openxmlfile(zefile,root ): tmpfile = zefile+'__' try: if os.path.exists(zefile): f = open(zefile, "r") elif os.path.exists(tmpfile): print "Something happened last time we tried to write file. Temp file found, using it as normal." os.rename(tmpfile, zefile) f = open(zefile, "r") else: # Creating empty file doc,xml...
8a60ae8dcd15aef600e0a1cdc966fc6196a85a48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/8a60ae8dcd15aef600e0a1cdc966fc6196a85a48/cleanxml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 2902, 768, 12, 8489, 768, 16, 3085, 262, 30, 25613, 273, 26637, 768, 6797, 7250, 225, 775, 30, 309, 1140, 18, 803, 18, 1808, 12, 8489, 768, 4672, 284, 273, 1696, 12, 8489, 768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 2902, 768, 12, 8489, 768, 16, 3085, 262, 30, 25613, 273, 26637, 768, 6797, 7250, 225, 775, 30, 309, 1140, 18, 803, 18, 1808, 12, 8489, 768, 4672, 284, 273, 1696, 12, 8489, 768, ...
del self.watches[self.selected] self.DeleteItem(self.selected)
selItems = self.getSelection() selItems.sort() selItems.reverse() for idx in selItems: del self.watches[idx] self.DeleteItem(idx)
def OnDelete(self, event): if self.selected != -1: del self.watches[self.selected] self.DeleteItem(self.selected)
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2613, 12, 2890, 16, 871, 4672, 309, 365, 18, 8109, 480, 300, 21, 30, 1464, 365, 18, 7585, 281, 63, 2890, 18, 8109, 65, 365, 18, 2613, 1180, 12, 2890, 18, 8109, 13, 2, 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, 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, 2755, 2613, 12, 2890, 16, 871, 4672, 309, 365, 18, 8109, 480, 300, 21, 30, 1464, 365, 18, 7585, 281, 63, 2890, 18, 8109, 65, 365, 18, 2613, 1180, 12, 2890, 18, 8109, 13, 2, -100, -...
See :func:`carrot.utils.retry_over_time`.
See :func:`celery.utils.retry_over_time`.
def _open_connection(self): """Retries connecting to the AMQP broker over time.
af7bea2cc51599585d24ce6a80b894697ca7f684 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2024/af7bea2cc51599585d24ce6a80b894697ca7f684/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 67, 4071, 12, 2890, 4672, 3536, 13656, 14244, 358, 326, 16953, 8625, 1879, 813, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 67, 4071, 12, 2890, 4672, 3536, 13656, 14244, 358, 326, 16953, 8625, 1879, 813, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"WSAECONNABORTED", "WSAECONNREFUSED", "WSAECONNRESET", "WSAENETRESET", "WSAETIMEDOUT")
)
def plat_specific_errors(*errnames): """Return error numbers for all errors in errnames on this platform. The 'errno' module contains different global constants depending on the specific platform (OS). This function will return the list of numeric values for a given list of potential names. """ errno_names = dir(errno...
e1abad5c9bb062a456870c5332102c618e85b7c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/82/e1abad5c9bb062a456870c5332102c618e85b7c6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29838, 67, 12524, 67, 4324, 30857, 370, 1973, 4672, 3536, 990, 555, 5600, 364, 777, 1334, 316, 393, 1973, 603, 333, 4072, 18, 225, 1021, 296, 19088, 11, 1605, 1914, 3775, 2552, 6810, 835...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29838, 67, 12524, 67, 4324, 30857, 370, 1973, 4672, 3536, 990, 555, 5600, 364, 777, 1334, 316, 393, 1973, 603, 333, 4072, 18, 225, 1021, 296, 19088, 11, 1605, 1914, 3775, 2552, 6810, 835...
self.list.to_element(element)
self.list.to_element(element, namespace = self._xml_namespace)
def set_element(self, element): element.set('uri', self.uri) self.list.to_element(element) if self.packages: self.packages.to_element(element)
3a6f8ef591b8d187eeffafcb45f678e86136c6e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/3a6f8ef591b8d187eeffafcb45f678e86136c6e9/resourcelists.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2956, 12, 2890, 16, 930, 4672, 930, 18, 542, 2668, 1650, 2187, 365, 18, 1650, 13, 282, 365, 18, 1098, 18, 869, 67, 2956, 12, 2956, 16, 1981, 273, 365, 6315, 2902, 67, 4937, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2956, 12, 2890, 16, 930, 4672, 930, 18, 542, 2668, 1650, 2187, 365, 18, 1650, 13, 282, 365, 18, 1098, 18, 869, 67, 2956, 12, 2956, 16, 1981, 273, 365, 6315, 2902, 67, 4937, ...
person_id = 'Null'
person_id = None
def log(self, fault_code, runtime, *args): """ Log the transaction """
cc57f76e1ebedb5d039bee5af483bce0ffa14fe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/cc57f76e1ebedb5d039bee5af483bce0ffa14fe4/Method.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 16, 12530, 67, 710, 16, 3099, 16, 380, 1968, 4672, 3536, 1827, 326, 2492, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 16, 12530, 67, 710, 16, 3099, 16, 380, 1968, 4672, 3536, 1827, 326, 2492, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
import sndhdr import unittest from test.support import findfile class TestFormats(unittest.TestCase): def test_data(self): for filename, expected in ( ('sndhdr.8svx', ('8svx', 0, 1, 0, 8)), ('sndhdr.aifc', ('aifc', 44100, 2, 5, 16)), ('sndhdr.aiff', ('aiff', 44100, 2, 5, 16)), ('sndhdr.au', ('au', 44100, 2, 5.0, 16))...
def test_data(self): for filename, expected in ( ('sndhdr.8svx', ('8svx', 0, 1, 0, 8)), ('sndhdr.aifc', ('aifc', 44100, 2, 5, 16)), ('sndhdr.aiff', ('aiff', 44100, 2, 5, 16)), ('sndhdr.au', ('au', 44100, 2, 5.0, 16)), ('sndhdr.hcom', ('hcom', 22050.0, 1, -1, 8)), ('sndhdr.sndt', ('sndt', 44100, 1, 5, 8)), ('sndhdr.voc'...
834c3d46ce9cccb6b62ec880bf6ca63c068f3777 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/834c3d46ce9cccb6b62ec880bf6ca63c068f3777/test_sndhdr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 12, 2890, 4672, 364, 1544, 16, 2665, 316, 261, 7707, 87, 4880, 16587, 18, 28, 5751, 92, 2187, 7707, 28, 5751, 92, 2187, 374, 16, 404, 16, 374, 16, 1725, 13, 3631, 7707...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 892, 12, 2890, 4672, 364, 1544, 16, 2665, 316, 261, 7707, 87, 4880, 16587, 18, 28, 5751, 92, 2187, 7707, 28, 5751, 92, 2187, 374, 16, 404, 16, 374, 16, 1725, 13, 3631, 7707...
if pruneByWeight and len(alternatives)==0: if getweight(changeset) > pruneweight: self.trace(2, "pruned downgrading _updown") raise Prune, _("Pruned downgrading of %s") % (pkg) if earlyAbort: dwnpkgs = dwnpkgs.keys() sortUpgrades(dwnpkgs) pw = trans.getPolicy().getPriorityWeights(dwnpkgs) _maxpw = None
dwnpkgs = dwnpkgs.keys() sortUpgrades(dwnpkgs)
def _updown(self, pkg, force): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth pruneweight = self._pruneweight self.trace(1, "_updown(%s, pw=%f, yw=%f, f=%d)", (pkg, pruneweight, self._yieldweight, force))
042a612ab48d4e7a226d8fbf3fe66ac496d3819e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/042a612ab48d4e7a226d8fbf3fe66ac496d3819e/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 416, 2378, 12, 2890, 16, 3475, 16, 2944, 4672, 906, 273, 365, 6315, 2338, 22463, 273, 365, 6315, 6329, 278, 8586, 273, 365, 6315, 15091, 3598, 273, 365, 6315, 5979, 846, 318, 359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 416, 2378, 12, 2890, 16, 3475, 16, 2944, 4672, 906, 273, 365, 6315, 2338, 22463, 273, 365, 6315, 6329, 278, 8586, 273, 365, 6315, 15091, 3598, 273, 365, 6315, 5979, 846, 318, 359, ...
def python_tabledef_code(varname, map, comments=1):
def python_tabledef_code(varname, map, comments=1, key_precision=2):
def python_tabledef_code(varname, map, comments=1): l = [] append = l.append append('%s = (' % varname) # Analyze map and create table dict mappings = map.items() mappings.sort() table = {} maxkey = 0 if map.has_key('IDENTITY'): for key in range(256): table[key] = (key, '') maxkey = 255 del map['IDENTITY'] for mapkey...
88a416f24d864b5c6b03a1e6abf27f80832face9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/88a416f24d864b5c6b03a1e6abf27f80832face9/gencodec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5790, 67, 2121, 536, 67, 710, 12, 1401, 529, 16, 852, 16, 5678, 33, 21, 16, 498, 67, 14548, 33, 22, 4672, 225, 328, 273, 5378, 714, 273, 328, 18, 6923, 714, 29909, 87, 273, 7707, 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, 5790, 67, 2121, 536, 67, 710, 12, 1401, 529, 16, 852, 16, 5678, 33, 21, 16, 498, 67, 14548, 33, 22, 4672, 225, 328, 273, 5378, 714, 273, 328, 18, 6923, 714, 29909, 87, 273, 7707, 7...
rlog_options = 0
rlog_options = ""
def main(): import sys, getopt, time, string, regex, regsub try: opts, args = getopt.getopt(sys.argv[1:], "C:d:Hi:l:Mpr:v:", ["CVS_command", "date", "indent", "length", "Merge", "patches", #### not yet supported "rlog_options", #### not yet supported "version" ]) except getopt.error, msg: sys.stdout = sys.stderr p...
5cec93699e31f70d9b2a3f6b3887539a2e04680a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/5cec93699e31f70d9b2a3f6b3887539a2e04680a/cvs2hist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 3936, 16, 17518, 373, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 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, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 3936, 16, 17518, 373, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315,...
msg= 'Insertion Failed!'
msg= _('Insertion Failed!')
fields_def = self.fields_get(cr, uid, context=context)
a4f26ab675d1e9985259806b27d349535c04d876 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/a4f26ab675d1e9985259806b27d349535c04d876/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
universe = sage.categories.all.Objects()) return self._decomp
universe = cat.Objects())
def decomposition(self): r""" Returns the Dirichlet groups of prime power modulus corresponding to primes dividing modulus.
80bb64cda04307dbe55314d6e4fce85c5aab0086 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/80bb64cda04307dbe55314d6e4fce85c5aab0086/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26288, 12, 2890, 4672, 436, 8395, 2860, 326, 8446, 1354, 1810, 3252, 434, 17014, 7212, 24770, 4656, 358, 846, 4485, 3739, 10415, 24770, 18, 2, 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, 26288, 12, 2890, 4672, 436, 8395, 2860, 326, 8446, 1354, 1810, 3252, 434, 17014, 7212, 24770, 4656, 358, 846, 4485, 3739, 10415, 24770, 18, 2, -100, -100, -100, -100, -100, -100, -100, -10...
self.opener('localtags', 'a').write('%s %s\n' % (hex(node), name)) self.hook('tag', node=hex(node), tag=name, local=local)
writetag(fp, name, None, prevtags)
def _tag(self, name, node, message, local, user, date, parent=None, extra={}): use_dirstate = parent is None
380f9ed1c72f4cd70997e95024ac8f6f85a00b40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/380f9ed1c72f4cd70997e95024ac8f6f85a00b40/localrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2692, 12, 2890, 16, 508, 16, 756, 16, 883, 16, 1191, 16, 729, 16, 1509, 16, 982, 33, 7036, 16, 2870, 12938, 4672, 999, 67, 72, 920, 340, 273, 982, 353, 599, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2692, 12, 2890, 16, 508, 16, 756, 16, 883, 16, 1191, 16, 729, 16, 1509, 16, 982, 33, 7036, 16, 2870, 12938, 4672, 999, 67, 72, 920, 340, 273, 982, 353, 599, 2, -100, -100, -10...
if mouseActive: self.node.setEventHandler(avg.CURSORMOTION, avg.MOUSE, self.onCursorEvent) self.node.setEventHandler(avg.CURSORDOWN, avg.MOUSE, self.onCursorEvent) self.node.setEventHandler(avg.CURSORUP, avg.MOUSE, self.onCursorEvent) self.node.setEventHandler(avg.CURSORMOTION, avg.TOUCH, self.onCursorEvent) self.node....
self.node.setEventHandler(avg.CURSORDOWN, avg.TOUCH|avg.MOUSE, self.onCursorDown)
def __init__(self, parentNode, mouseActive): global g_Player, g_AudioInterface g_Player = avg.Player.get() self.parentNode=parentNode
8d0e6591341b9080daf0caea2de05c84bdd3b31c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7301/8d0e6591341b9080daf0caea2de05c84bdd3b31c/Game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7234, 16, 7644, 3896, 4672, 2552, 314, 67, 12148, 16, 314, 67, 12719, 1358, 314, 67, 12148, 273, 11152, 18, 12148, 18, 588, 1435, 365, 18, 2938, 907, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7234, 16, 7644, 3896, 4672, 2552, 314, 67, 12148, 16, 314, 67, 12719, 1358, 314, 67, 12148, 273, 11152, 18, 12148, 18, 588, 1435, 365, 18, 2938, 907, 33,...
for l in xrange(Nbm): if l == 0: W[l:Nbm, offset_i:offset_i+K] = template offset_i += K else: if Kshared == 0: W[l:Nbm, offset_i:offset_i+K-l*Kshared] = template[:-l, :] else: W[l:Nbm, offset_i:offset_i+K-l*Kshared] = template[:-l, :-l*Kshared] offset_i += K-l*Kshared
for l in xrange(Nbm-1): template = generate_template(Nbm-l, K-l*Kshared, Kshared, wt) W[l:Nbm, offset_i:offset_i+K-l*Kshared] = template offset_i += K-l*Kshared
def create_noise_connectivity_matrix_fixed_pairwise(Nbm, 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 possi...
94acedd481362f6804ae61c77b256e7fbbd7b771 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6301/94acedd481362f6804ae61c77b256e7fbbd7b771/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, 22816, 81, 16, 423, 17814, 16, 9601, 16, 314, 16, 341, 16, 12263, 4672, 12901, 273, 509, 12, 20589, 380, 423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22816, 81, 16, 423, 17814, 16, 9601, 16, 314, 16, 341, 16, 12263, 4672, 12901, 273, 509, 12, 20589, 380, 423, ...
sched = d("scheduler").copy()
sched = jobargs["scheduler"].copy()
def _run(self, **kwargs): jobargs = util.DefaultDict(self.defaults.__getitem__, kwargs)
1382d8f6d0db7a1a702293444e014a4da88cc69b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/1382d8f6d0db7a1a702293444e014a4da88cc69b/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 12, 2890, 16, 2826, 4333, 4672, 1719, 1968, 273, 1709, 18, 1868, 5014, 12, 2890, 18, 7606, 16186, 31571, 972, 16, 1205, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 2681, 12, 2890, 16, 2826, 4333, 4672, 1719, 1968, 273, 1709, 18, 1868, 5014, 12, 2890, 18, 7606, 16186, 31571, 972, 16, 1205, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if i:
if '=' in i:
def udev_daemon(self): start1=time.time() print_debug ("udev_daemon() starting...") udev=self.xmlrpc.GetDevicesInfo(device="", mode="--getudev").split('|') print_debug("udev_daemon GetDevicesInfo time=%f" %(time.time() - start1) ) if "error" in " ".join(udev): return udev=udev[:-1] if len(udev) < 1 or udev[0] == "unkno...
502e61d2909cae133aeeee71dfdfb9bd90190da1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13520/502e61d2909cae133aeeee71dfdfb9bd90190da1/tcos-devices-ng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 582, 5206, 67, 21511, 12, 2890, 4672, 787, 21, 33, 957, 18, 957, 1435, 1172, 67, 4148, 7566, 1317, 90, 67, 21511, 1435, 5023, 7070, 13, 582, 5206, 33, 2890, 18, 2902, 7452, 18, 967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 582, 5206, 67, 21511, 12, 2890, 4672, 787, 21, 33, 957, 18, 957, 1435, 1172, 67, 4148, 7566, 1317, 90, 67, 21511, 1435, 5023, 7070, 13, 582, 5206, 33, 2890, 18, 2902, 7452, 18, 967, ...
def almostEqualF(a, b, rel_err=2e-15, abs_err = 5e-323): """Determine whether floating-point values a and b are equal to within a (small) rounding error. The default values for rel_err and abs_err are chosen to be suitable for platforms where a float is represented by an IEEE 754 double. They allow an error of betwee...
def almostEqualF(a, b, rel_err=2e-15, abs_err = 5e-323): """Determine whether floating-point values a and b are equal to within a (small) rounding error. The default values for rel_err and abs_err are chosen to be suitable for platforms where a float is represented by an IEEE 754 double. They allow an error of betwee...
12662f56d10475f3f84ee6aa6a188e5c4760a44b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/12662f56d10475f3f84ee6aa6a188e5c4760a44b/test_cmath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23889, 5812, 42, 12, 69, 16, 324, 16, 1279, 67, 370, 33, 22, 73, 17, 3600, 16, 2417, 67, 370, 273, 1381, 73, 17, 1578, 23, 4672, 3536, 8519, 2856, 13861, 17, 1153, 924, 279, 471, 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, 23889, 5812, 42, 12, 69, 16, 324, 16, 1279, 67, 370, 33, 22, 73, 17, 3600, 16, 2417, 67, 370, 273, 1381, 73, 17, 1578, 23, 4672, 3536, 8519, 2856, 13861, 17, 1153, 924, 279, 471, 3...
self.assertEqual(stderr, "pineapple")
self.assert_(stderr.startswith("pineapple"))
def test_communicate_stderr(self): p = subprocess.Popen([sys.executable, "-c", 'import sys; sys.stderr.write("pineapple")'], stderr=subprocess.PIPE) (stdout, stderr) = p.communicate() self.assertEqual(stdout, None) self.assertEqual(stderr, "pineapple")
0823b11a55197cb09b555d7be494d63d4e6cba00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0823b11a55197cb09b555d7be494d63d4e6cba00/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5702, 318, 2659, 67, 11241, 12, 2890, 4672, 293, 273, 6652, 18, 52, 3190, 3816, 9499, 18, 17751, 16, 3701, 71, 3113, 296, 5666, 2589, 31, 2589, 18, 11241, 18, 2626, 2932, 84,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5702, 318, 2659, 67, 11241, 12, 2890, 4672, 293, 273, 6652, 18, 52, 3190, 3816, 9499, 18, 17751, 16, 3701, 71, 3113, 296, 5666, 2589, 31, 2589, 18, 11241, 18, 2626, 2932, 84,...
X = vander(x,N=None)
Generate the Vandermonde matrix of vector x.
def vander(x, N=None): """ X = vander(x,N=None) The Vandermonde matrix of vector x. The i-th column of X is the the i-th power of x. N is the maximum power to compute; if N is None it defaults to len(x). """ x = asarray(x) if N is None: N=len(x) X = ones( (len(x),N), x.dtype) for i in range(N-1): X[:,i] = x**(N-i-1...
7e0f986f1db836026348adadec555f32522008f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/7e0f986f1db836026348adadec555f32522008f5/twodim_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 464, 264, 12, 92, 16, 423, 33, 7036, 4672, 3536, 6654, 326, 776, 464, 1035, 265, 323, 3148, 434, 3806, 619, 18, 225, 1021, 776, 464, 1035, 265, 323, 3148, 434, 3806, 619, 18, 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, 331, 464, 264, 12, 92, 16, 423, 33, 7036, 4672, 3536, 6654, 326, 776, 464, 1035, 265, 323, 3148, 434, 3806, 619, 18, 225, 1021, 776, 464, 1035, 265, 323, 3148, 434, 3806, 619, 18, 22...
out += """</table></form> """
out += """</form>"""
def create_search_box(cc, colls, p, f, rg, sf, so, sp, of, ot, as, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, d1y, d1m, d1d, d2y, d2m, d2d, action="SEARCH"): "Create search box for 'search again in the results page' functionality." out = "" # print search box prolog: out += """ <form action="%s/search.py" method...
f839501b02b6f1b955e60deafa542ab8007124be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/f839501b02b6f1b955e60deafa542ab8007124be/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3072, 67, 2147, 12, 952, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 16, 9033, 16, 1427, 16, 1694, 16, 434, 16, 15835, 16, 487, 16, 293, 21, 16, 284, 21, 16, 312, 21, 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, 752, 67, 3072, 67, 2147, 12, 952, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 16, 9033, 16, 1427, 16, 1694, 16, 434, 16, 15835, 16, 487, 16, 293, 21, 16, 284, 21, 16, 312, 21, 16...
if self.taskserver == None: self.taskserver = GUITaskQueue.getInstance() self.taskserver.add_task(lambda:wx.CallAfter(removeHighlight), timeout, self)
if self.highlightTimer == None: self.highlightTimer = wx.CallLater(timeout * 1000, removeHighlight) else: self.highlightTimer.Restart(timeout * 1000)
def removeHighlight(): try: self.ShowSelected() except: #PyDeadError pass
bec7425998522b9098966054b0ef584a859d3835 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/bec7425998522b9098966054b0ef584a859d3835/list_body.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 16205, 13332, 775, 30, 365, 18, 5706, 7416, 1435, 1335, 30, 468, 9413, 11852, 668, 1342, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 16205, 13332, 775, 30, 365, 18, 5706, 7416, 1435, 1335, 30, 468, 9413, 11852, 668, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.conn.do.command_list_end()
def sort(self, type): if self.conn: self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() list = [] for track in self.songs: dict = {} # Those items that don't have the specified tag will be put at # the end of the list (hence the 'zzzzzzz'): dict["sortby"] = getattr(track, ...
0da9815c248298a9268c10f25c59ea81e5bd319d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/0da9815c248298a9268c10f25c59ea81e5bd319d/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 12, 2890, 16, 618, 4672, 309, 365, 18, 4646, 30, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 1323, 22718, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 12, 2890, 16, 618, 4672, 309, 365, 18, 4646, 30, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 1323, 22718, 1...
def drawOrderedCanvasItems(self):
def SetDrawOrder(self):
def drawOrderedCanvasItems(self): """ Calculate the order of canvas items, taking selection, history, and active collection into account. """ ordered = [] selectedBoxes = [] activeBoxes = [] orderLastMap = {} contents = CalendarSelection(self.blockItem.contents)
6c204ec8fb5922108cdfd129ffe8a855cb9a799d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6c204ec8fb5922108cdfd129ffe8a855cb9a799d/TimedCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 6493, 2448, 12, 2890, 4672, 3536, 9029, 326, 1353, 434, 5953, 1516, 16, 13763, 4421, 16, 4927, 16, 471, 2695, 1849, 1368, 2236, 18, 225, 3536, 5901, 4202, 273, 5378, 3170, 29521, 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, 1000, 6493, 2448, 12, 2890, 4672, 3536, 9029, 326, 1353, 434, 5953, 1516, 16, 13763, 4421, 16, 4927, 16, 471, 2695, 1849, 1368, 2236, 18, 225, 3536, 5901, 4202, 273, 5378, 3170, 29521, 2...
elif wxs.xsQualifiedName('choice' == node.nodeName):
elif wxs.xsQualifiedName('choice') == node.nodeName:
def CreateFromDOM (cls, wxs, node): if wxs.xsQualifiedName('all' == node.nodeName): compositor = cls.C_ALL elif wxs.xsQualifiedName('choice' == node.nodeName): compositor = cls.C_CHOICE elif wxs.xsQualifiedName('sequence' == node.nodeName): compositor = cls.C_SEQUENCE else: raise IncompleteImplementationError('ModelGro...
830460ebd089758fd7fd4f9c27cb1a6ad1f91e68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/830460ebd089758fd7fd4f9c27cb1a6ad1f91e68/structures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1265, 8168, 261, 6429, 16, 7075, 87, 16, 756, 4672, 309, 7075, 87, 18, 13713, 12345, 2668, 454, 11, 422, 756, 18, 2159, 461, 4672, 532, 1724, 280, 273, 2028, 18, 39, 67, 4685, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1265, 8168, 261, 6429, 16, 7075, 87, 16, 756, 4672, 309, 7075, 87, 18, 13713, 12345, 2668, 454, 11, 422, 756, 18, 2159, 461, 4672, 532, 1724, 280, 273, 2028, 18, 39, 67, 4685, ...
result = PassStatNode(pos)
result = Nodes.PassStatNode(pos)
def p_IF_statement(s, level, cdef_flag, visibility, api): pos = s.position saved_eval = s.compile_time_eval current_eval = saved_eval denv = s.compile_time_env result = None while 1: s.next() # 'IF' or 'ELIF' expr = p_compile_time_expr(s) s.compile_time_eval = current_eval and bool(expr.compile_time_value(denv)) body =...
f6eb3c627a619c15584a9e3646373a6259f2583d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2099/f6eb3c627a619c15584a9e3646373a6259f2583d/Parsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 5501, 67, 11516, 12, 87, 16, 1801, 16, 276, 536, 67, 6420, 16, 9478, 16, 1536, 4672, 949, 273, 272, 18, 3276, 5198, 67, 8622, 273, 272, 18, 11100, 67, 957, 67, 8622, 783, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 5501, 67, 11516, 12, 87, 16, 1801, 16, 276, 536, 67, 6420, 16, 9478, 16, 1536, 4672, 949, 273, 272, 18, 3276, 5198, 67, 8622, 273, 272, 18, 11100, 67, 957, 67, 8622, 783, ...
return http.Response(stream=s)
return HTMLResponse(stream=s)
def render(self, ctx): s = notebook.worksheet_html(self.name, do_print=True) return http.Response(stream=s)
2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 272, 273, 14718, 18, 1252, 8118, 67, 2620, 12, 2890, 18, 529, 16, 741, 67, 1188, 33, 5510, 13, 327, 1062, 18, 1064, 12, 3256, 33, 87, 13, 2, 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, 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, 1743, 12, 2890, 16, 1103, 4672, 272, 273, 14718, 18, 1252, 8118, 67, 2620, 12, 2890, 18, 529, 16, 741, 67, 1188, 33, 5510, 13, 327, 1062, 18, 1064, 12, 3256, 33, 87, 13, 2, -100, -...
if not error_prefix: msg = 'No active session' else: msg = error_prefix + ': no active session'
def get_current_session(self, error_prefix=None): session = self.current_session if not session: if not error_prefix: msg = 'No active session' else: msg = error_prefix + ': no active session' raise UserCommandError(msg) return session
757218aa36e3d9194fabf2b88e4254a122dc47e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/757218aa36e3d9194fabf2b88e4254a122dc47e9/sip_session2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2972, 67, 3184, 12, 2890, 16, 555, 67, 3239, 33, 7036, 4672, 1339, 273, 365, 18, 2972, 67, 3184, 309, 486, 1339, 30, 1002, 2177, 2189, 668, 12, 3576, 13, 327, 1339, 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, 336, 67, 2972, 67, 3184, 12, 2890, 16, 555, 67, 3239, 33, 7036, 4672, 1339, 273, 365, 18, 2972, 67, 3184, 309, 486, 1339, 30, 1002, 2177, 2189, 668, 12, 3576, 13, 327, 1339, 2, -100,...
facet_hole_starts = len(facets) * [] facets = [[facet] for facet in facets]
facet_hole_starts = len(facets) * [[]]
def add_geometry(self, points, facets, facet_hole_starts=None, facet_markers=None, point_markers=None): """If C{facet_hole_starts} is not None, it indicates that C{facets} is a list of (potentially) multi-polygon facets. Otherwise, facets is seen as a list of single-facet polygons."""
81645c416c2271d29c0ce4a93184b7f70feef42d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11985/81645c416c2271d29c0ce4a93184b7f70feef42d/geometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 14330, 12, 2890, 16, 3143, 16, 21681, 16, 11082, 67, 27167, 67, 17514, 33, 7036, 16, 11082, 67, 22807, 33, 7036, 16, 1634, 67, 22807, 33, 7036, 4672, 3536, 2047, 385, 95, 2156...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 14330, 12, 2890, 16, 3143, 16, 21681, 16, 11082, 67, 27167, 67, 17514, 33, 7036, 16, 11082, 67, 22807, 33, 7036, 16, 1634, 67, 22807, 33, 7036, 4672, 3536, 2047, 385, 95, 2156...
print >> sys.stderr, msg print >> sys.stderr, __doc__
print(msg, file=sys.stderr) print(__doc__, file=sys.stderr)
def usage(msg=None): if msg is not None: print >> sys.stderr, msg print >> sys.stderr, __doc__
2f30fac56992ed396f664b446bcb83b1b3e1add5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/2f30fac56992ed396f664b446bcb83b1b3e1add5/reindent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 3576, 33, 7036, 4672, 309, 1234, 353, 486, 599, 30, 1172, 12, 3576, 16, 585, 33, 9499, 18, 11241, 13, 1172, 12, 972, 2434, 972, 16, 585, 33, 9499, 18, 11241, 13, 225, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 3576, 33, 7036, 4672, 309, 1234, 353, 486, 599, 30, 1172, 12, 3576, 16, 585, 33, 9499, 18, 11241, 13, 1172, 12, 972, 2434, 972, 16, 585, 33, 9499, 18, 11241, 13, 225, 2, ...
self.DrawGraph(element,self.pstricks_code.index("%GRID\n")+1)
self.DrawGraph(element,"GRID")
def DrawGrid(self,grid): # The difficulty is that the grid has to be draw first, while most of time it is given last because of the bounding box. self.BB.AddBB(grid.BB) for element in grid.drawing(): self.DrawGraph(element,self.pstricks_code.index("%GRID\n")+1)
9d2efc3d6c32e84b237b0b8c846aa8aeaf38faf4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5111/9d2efc3d6c32e84b237b0b8c846aa8aeaf38faf4/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 6313, 12, 2890, 16, 5222, 4672, 468, 1021, 3122, 21934, 353, 716, 326, 3068, 711, 358, 506, 3724, 1122, 16, 1323, 4486, 434, 813, 518, 353, 864, 1142, 2724, 434, 326, 7552, 3919, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 6313, 12, 2890, 16, 5222, 4672, 468, 1021, 3122, 21934, 353, 716, 326, 3068, 711, 358, 506, 3724, 1122, 16, 1323, 4486, 434, 813, 518, 353, 864, 1142, 2724, 434, 326, 7552, 3919, ...