rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
visit_author = depart_author = lambda self,node: None visit_authors = depart_authors = lambda self,node: None
def visit_author(self, node): raise nodes.SkipNode def visit_authors(self, node): raise nodes.SkipNode
def depart_attention(self, node): self.body.append('</note>\n')
d2ea2631a31ca67e6d03da659353adf4e941a9bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/d2ea2631a31ca67e6d03da659353adf4e941a9bc/docbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 17899, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 2668, 1757, 7652, 5333, 82, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 17899, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 2668, 1757, 7652, 5333, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.db.set_title(self.id, title, notify=False)
def accept(self): try: if self.formats_changed: self.sync_formats() title = unicode(self.title.text()) except IOError, err: if err.errno == 13: # Permission denied fname = err.filename if err.filename else 'file' return error_dialog(self, _('Permission denied'), _('Could not open %s. Is it being used by another' ' program?')%fname, show=True) raise self.db.set_title(self.id, title, notify=False) au = unicode(self.authors.text()) if au: self.db.set_authors(self.id, string_to_authors(au), notify=False) aus = qstring_to_unicode(self.author_sort.text()) if aus: self.db.set_author_sort(self.id, aus, notify=False) self.db.set_isbn(self.id, re.sub(r'[^0-9a-zA-Z]', '', unicode(self.isbn.text())), notify=False) self.db.set_rating(self.id, 2*self.rating.value(), notify=False) self.db.set_publisher(self.id, qstring_to_unicode(self.publisher.currentText()), notify=False) self.db.set_tags(self.id, qstring_to_unicode(self.tags.text()).split(','), notify=False) self.db.set_series(self.id, qstring_to_unicode(self.series.currentText()), notify=False) self.db.set_series_index(self.id, self.series_index.value(), notify=False) self.db.set_comment(self.id, qstring_to_unicode(self.comments.toPlainText()), notify=False) d = self.pubdate.date() self.db.set_pubdate(self.id, datetime(d.year(), d.month(), d.day()))
958bdb549e4535b849e11baa6908b19f6239f636 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/958bdb549e4535b849e11baa6908b19f6239f636/metadata_single.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 12, 2890, 4672, 775, 30, 309, 365, 18, 11962, 67, 6703, 30, 365, 18, 8389, 67, 11962, 1435, 2077, 273, 5252, 12, 2890, 18, 2649, 18, 955, 10756, 1335, 8340, 16, 393, 30, 309, 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, 2791, 12, 2890, 4672, 775, 30, 309, 365, 18, 11962, 67, 6703, 30, 365, 18, 8389, 67, 11962, 1435, 2077, 273, 5252, 12, 2890, 18, 2649, 18, 955, 10756, 1335, 8340, 16, 393, 30, 309, 3...
self.task_tv = ActiveTaskTreeView()
self.task_tv = ActiveTaskTreeView()
def _init_ui_widget(self): # The Active tasks treeview self.task_tv = ActiveTaskTreeView()#sort_func=self.sort_tasklist_rows) self.main_pane.add(self.task_tv)
00dde3da1d1e1513aa3e60b10cffce30a5695d48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/00dde3da1d1e1513aa3e60b10cffce30a5695d48/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 4881, 67, 6587, 12, 2890, 4672, 468, 1021, 8857, 4592, 2151, 1945, 365, 18, 4146, 67, 24161, 273, 8857, 2174, 2471, 1767, 1435, 7, 3804, 67, 644, 33, 2890, 18, 3804, 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, 389, 2738, 67, 4881, 67, 6587, 12, 2890, 4672, 468, 1021, 8857, 4592, 2151, 1945, 365, 18, 4146, 67, 24161, 273, 8857, 2174, 2471, 1767, 1435, 7, 3804, 67, 644, 33, 2890, 18, 3804, 67,...
"Return a list of files"
"""Return a list of files in the specified directory to the client. Defaults to the current working directory. """
def ftp_LIST(self, line): "Return a list of files" if line: # some FTP clients (like Konqueror or Nautilus) erroneously use # /bin/ls-like LIST formats (e.g. "LIST -l", "LIST -al" and so on...). # If this happens we LIST the current working directory. if line.lower() in ("-a", "-l", "-al", "-la"): path = self.fs.translate(self.fs.cwd) line = self.fs.cwd else: path = self.fs.translate(line) line = self.fs.normalize(line) else: path = self.fs.translate(self.fs.cwd) line = self.fs.cwd
367a95e4363ae8b7515230480fff6ef354b95226 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/367a95e4363ae8b7515230480fff6ef354b95226/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 7085, 12, 2890, 16, 980, 4672, 3536, 990, 279, 666, 434, 1390, 316, 326, 1269, 1867, 358, 326, 1004, 18, 14159, 358, 326, 783, 5960, 1867, 18, 3536, 309, 980, 30, 468, 2690,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 7085, 12, 2890, 16, 980, 4672, 3536, 990, 279, 666, 434, 1390, 316, 326, 1269, 1867, 358, 326, 1004, 18, 14159, 358, 326, 783, 5960, 1867, 18, 3536, 309, 980, 30, 468, 2690,...
component.draw(self, view_bounds=(0, 0, self.width(), self.height()))
try: component.draw(self, view_bounds=(0, 0, self.width(), self.height())) finally: self.restore_state()
def render_component(self, component, container_coords=False): """ Renders the given component. Parameters ---------- component : Component The component to be rendered. container_coords : Boolean Whether to use coordinates of the component's container Description ----------- If *container_coords* is False, then the (0,0) coordinate of this graphics context corresponds to the lower-left corner of the component's **outer_bounds**. If *container_coords* is True, then the method draws the component as it appears inside its container, i.e., it treats (0,0) of the graphics context as the lower-left corner of the container's outer bounds. """ x, y = component.outer_position if not container_coords: x = -x y = -y self.translate_ctm(x, y) component.draw(self, view_bounds=(0, 0, self.width(), self.height())) return
4f84cb75f0e5cf43f983544b727bec05fbb4db4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/4f84cb75f0e5cf43f983544b727bec05fbb4db4b/plot_graphics_context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 4652, 12, 2890, 16, 1794, 16, 1478, 67, 9076, 33, 8381, 4672, 3536, 534, 10130, 326, 864, 1794, 18, 225, 7012, 12181, 1794, 294, 5435, 1021, 1794, 358, 506, 7935, 18, 1478, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 4652, 12, 2890, 16, 1794, 16, 1478, 67, 9076, 33, 8381, 4672, 3536, 534, 10130, 326, 864, 1794, 18, 225, 7012, 12181, 1794, 294, 5435, 1021, 1794, 358, 506, 7935, 18, 1478, 6...
wj = Matrix(R, r*c*e, 1, _vars("w",i+1,r*c,e))
wj = Matrix(R, r*c*e, 1, _vars("w", i+1, r*c, e))
def round_polynomials(self, i, plaintext = None, ciphertext = None): r""" Return list of polynomials for a given round $i$.
cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3643, 67, 3915, 13602, 87, 12, 2890, 16, 277, 16, 11917, 273, 599, 16, 12657, 273, 599, 4672, 436, 8395, 2000, 666, 434, 16991, 87, 364, 279, 864, 3643, 271, 77, 8, 18, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3643, 67, 3915, 13602, 87, 12, 2890, 16, 277, 16, 11917, 273, 599, 16, 12657, 273, 599, 4672, 436, 8395, 2000, 666, 434, 16991, 87, 364, 279, 864, 3643, 271, 77, 8, 18, 2, -100, -100...
lib.Module.Module.reset(self)
Module.reset(self)
def reset(self): """ Created: 04.11.2004, KP Description: Resets the module to initial state. This method is used mainly when doing previews, when the parameters that control the colocalization are changed and the preview data becomes invalid. """ lib.Module.Module.reset(self) self.colocFilter = vtkbxd.vtkImageColocalizationFilter() self.colocFilter.AddObserver("ProgressEvent", self.updateProgress)
4f2a0ca14dd2b3eff47dc45fffa2201441e7c68e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/4f2a0ca14dd2b3eff47dc45fffa2201441e7c68e/Colocalization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 3536, 12953, 30, 16486, 18, 2499, 18, 6976, 24, 16, 1475, 52, 6507, 30, 1124, 2413, 326, 1605, 358, 2172, 919, 18, 1220, 707, 353, 1399, 31457, 1347, 9957, 675, 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, 2715, 12, 2890, 4672, 3536, 12953, 30, 16486, 18, 2499, 18, 6976, 24, 16, 1475, 52, 6507, 30, 1124, 2413, 326, 1605, 358, 2172, 919, 18, 1220, 707, 353, 1399, 31457, 1347, 9957, 675, 7...
print 'class ' + self.python_name + '(DispatchBaseClass):' if doc[1]: print '\t' + build._safeQuotedString(doc[1])
stream = generator.file print >> stream, 'class ' + self.python_name + '(DispatchBaseClass):' if doc[1]: print >> stream, '\t' + build._safeQuotedString(doc[1])
def WriteClassHeader(self, generator): generator.checkWriteDispatchBaseClass() doc = self.doc print 'class ' + self.python_name + '(DispatchBaseClass):' if doc[1]: print '\t' + build._safeQuotedString(doc[1]) try: progId = pythoncom.ProgIDFromCLSID(self.clsid) print "\t# This class is creatable by the name '%s'" % (progId) except pythoncom.com_error: pass print "\tCLSID = " + repr(self.clsid) if self.coclass_clsid is None: print "\tcoclass_clsid = None" else: print "\tcoclass_clsid = " + repr(self.coclass_clsid) print self.bWritten = 1
cfd84d318292d699ca53899ee423b08bfb797445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/cfd84d318292d699ca53899ee423b08bfb797445/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 797, 1864, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 5325, 2171, 797, 1435, 997, 273, 365, 18, 2434, 1407, 273, 4456, 18, 768, 1172, 1671, 1407, 16, 296, 1106, 296, 397, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 797, 1864, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 5325, 2171, 797, 1435, 997, 273, 365, 18, 2434, 1407, 273, 4456, 18, 768, 1172, 1671, 1407, 16, 296, 1106, 296, 397, 36...
return '.'.join(self.__schemaGroupPrefix + [ module_base ])
return '.'.join(self.__schemaGroupPrefixElts + [ module_base ])
def schemaGroupModulePath (self, schema_group_module): module_base = utility.MakeUnique('_'.join([ _s.schemaLocationTag() for _s in schema_group_module.schemaGroup() ]), self.__uniqueInSchemaGroup) return '.'.join(self.__schemaGroupPrefix + [ module_base ])
5eacb77c8998fd31b68477e0ec37388e9983b97b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/5eacb77c8998fd31b68477e0ec37388e9983b97b/generate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1963, 1114, 3120, 743, 261, 2890, 16, 1963, 67, 1655, 67, 2978, 4672, 1605, 67, 1969, 273, 12788, 18, 6464, 6303, 2668, 4623, 18, 5701, 3816, 389, 87, 18, 4821, 2735, 1805, 1435, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1963, 1114, 3120, 743, 261, 2890, 16, 1963, 67, 1655, 67, 2978, 4672, 1605, 67, 1969, 273, 12788, 18, 6464, 6303, 2668, 4623, 18, 5701, 3816, 389, 87, 18, 4821, 2735, 1805, 1435, 364, ...
log.error('calling inactivate callback for %s', self) import traceback traceback.print_stack()
log.debug('calling callback on inactive timer (%s)' % repr(self))
def __call__(self, *args, **kwargs): if not self.active(): # This should not happen, but it does. Somewhere deep inside the # notifier code is a bug log.error('calling inactivate callback for %s', self) import traceback traceback.print_stack() return False
9347702c90b2b59f94dec592de2e028b533add99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/9347702c90b2b59f94dec592de2e028b533add99/timer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 486, 365, 18, 3535, 13332, 468, 1220, 1410, 486, 5865, 16, 1496, 518, 1552, 18, 348, 362, 359, 14852, 4608, 4832, 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, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 486, 365, 18, 3535, 13332, 468, 1220, 1410, 486, 5865, 16, 1496, 518, 1552, 18, 348, 362, 359, 14852, 4608, 4832, 3...
masterOccurrences = event.getMaster().occurrences or []
master = event.getMaster() master.getFirstOccurrence() masterOccurrences = master.occurrences or []
def mergeFunction(code, item, attribute, value): # 'value' is the one from the *this* view # getattr(item, attribute) is the value from a different view
11f314f16eeedd75476fb9e98c458e3f76332248 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/11f314f16eeedd75476fb9e98c458e3f76332248/Sharing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 2083, 12, 710, 16, 761, 16, 1566, 16, 460, 4672, 468, 296, 1132, 11, 353, 326, 1245, 628, 326, 380, 2211, 14, 1476, 468, 3869, 12, 1726, 16, 1566, 13, 353, 326, 460, 628, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 2083, 12, 710, 16, 761, 16, 1566, 16, 460, 4672, 468, 296, 1132, 11, 353, 326, 1245, 628, 326, 380, 2211, 14, 1476, 468, 3869, 12, 1726, 16, 1566, 13, 353, 326, 460, 628, 279, ...
if where == 'help':
if where == 'epydoc-help':
def _navbar(self, where, uid=None): """ @return: The HTML code for a navigation bar on the given type of page. The navigation bar typically looks like:: [ Package Module Class Tree Index Help ] @rtype: C{string} @param where: The type of page for which a navigation bar should be generated. Possible values are C{'class'}, C{'module'}, C{'package'}, C{'tree'}, C{'index'}, and C{'help'}. @type where: C{string} """ str = self._start_of('Navbar') str += '<table class="navbar" border="0" width="100%"' str += ' cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">\n' str += ' <tr>\n' str += ' <td width="100%">\n' str += ' <table border="0" cellpadding="0" cellspacing="0">\n' str += ' <tr valign="top">\n'
dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 10394, 4653, 603, 326, 864, 618, 434, 1363, 18, 225, 1021, 10394, 4653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 10394, 4653, 603, 326, 864, 618, 434, 1363, 18, 225, 1021, 10394, 4653, ...
Index = self._DynamicPcdList.index(PcdFromModule) self._DynamicPcdList[Index] = PcdFromModule elif PcdFromModule not in self._NonDynamicPcdList: self._NonDynamicPcdList.append(PcdFromModule)
Index = self._DynaPcdList_.index(PcdFromModule) self._DynaPcdList_[Index] = PcdFromModule elif PcdFromModule not in self._NonDynaPcdList_: self._NonDynaPcdList_.append(PcdFromModule)
def _GetPcdList(self): self._NonDynamicPcdList = [] self._DynamicPcdList = []
6f6bc1f6b84bc8f55d69f33d380a27a68e9e9ffe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/6f6bc1f6b84bc8f55d69f33d380a27a68e9e9ffe/AutoGen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 52, 4315, 682, 12, 2890, 4672, 365, 6315, 3989, 9791, 52, 4315, 682, 273, 5378, 365, 6315, 9791, 52, 4315, 682, 273, 5378, 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, 967, 52, 4315, 682, 12, 2890, 4672, 365, 6315, 3989, 9791, 52, 4315, 682, 273, 5378, 365, 6315, 9791, 52, 4315, 682, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
return message(req, "Reporter %d deleted" % (grp.pk),
transaction.commit() return message(req, "Reporter %d deleted" % (pk),
def post(req): # if DELETE was clicked... delete # the object, then and redirect if req.POST.get("delete", ""): rep.delete() return message(req, "Reporter %d deleted" % (grp.pk), link="/reporters") else: # check the form for errors (just # missing fields, for the time being) errors = check_reporter_form(req) # if any fields were missing, abort. this is # the only server-side check we're doing, for # now, since we're not using django forms here if errors["missing"]: transaction.rollback() return message(req, "Missing Field(s): %s" % ", ".join(errors["missing"]), link="/reporters/%s" % (rep.pk)) try: # automagically update the fields of the # reporter object, from the form update_via_querydict(rep, req.POST).save() update_reporter(req, rep) # no exceptions, so no problems # commit everything to the db transaction.commit() # full-page notification return message(req, "Reporter %d updated" % (rep.pk), link="/reporters") except Exception, err: transaction.rollback() raise
272ff5db6641e5e163ac6ed2b59baf9aaeee0b7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/272ff5db6641e5e163ac6ed2b59baf9aaeee0b7c/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 3658, 4672, 225, 468, 309, 8568, 1703, 17688, 2777, 1430, 468, 326, 733, 16, 1508, 471, 3136, 309, 1111, 18, 3798, 18, 588, 2932, 3733, 3113, 1408, 4672, 2071, 18, 3733, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 3658, 4672, 225, 468, 309, 8568, 1703, 17688, 2777, 1430, 468, 326, 733, 16, 1508, 471, 3136, 309, 1111, 18, 3798, 18, 588, 2932, 3733, 3113, 1408, 4672, 2071, 18, 3733, 1435, ...
committer = "%s %s %s" % (changes[1], date, date_ar[1])
committer = changes[1]
def catcommit(repo, n, prefix, changes=None): nlprefix = '\n' + prefix; (p1, p2) = repo.changelog.parents(n) (h, h1, h2) = map(hg.hex, (n, p1, p2)) (i1, i2) = map(repo.changelog.rev, (p1, p2)) if not changes: changes = repo.changelog.read(n) print "tree %s" % (hg.hex(changes[0])) if i1 != -1: print "parent %s" % (h1) if i2 != -1: print "parent %s" % (h2) date_ar = changes[2] date = int(float(date_ar[0])) lines = changes[4].splitlines() if lines[-1].startswith('committer:'): committer = lines[-1].split(': ')[1].rstrip() else: committer = "%s %s %s" % (changes[1], date, date_ar[1]) print "author %s %s %s" % (changes[1], date, date_ar[1]) print "committer %s" % (committer) print "" if prefix != "": print "%s%s" % (prefix, changes[4].replace('\n', nlprefix).strip()) else: print changes[4] if prefix: sys.stdout.write('\0')
d993c412df8b5ed9788cc1335b2f2ad8f1e0a0ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/d993c412df8b5ed9788cc1335b2f2ad8f1e0a0ca/hgk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6573, 7371, 12, 7422, 16, 290, 16, 1633, 16, 3478, 33, 7036, 4672, 7741, 3239, 273, 2337, 82, 11, 397, 1633, 31, 261, 84, 21, 16, 293, 22, 13, 273, 3538, 18, 24083, 12970, 18, 12606,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6573, 7371, 12, 7422, 16, 290, 16, 1633, 16, 3478, 33, 7036, 4672, 7741, 3239, 273, 2337, 82, 11, 397, 1633, 31, 261, 84, 21, 16, 293, 22, 13, 273, 3538, 18, 24083, 12970, 18, 12606,...
self._evsys.createReceiver(brokerhost, topic)
self._evsys.createReceiver(brokerhost, self._topic)
def __init__(self, parent, pollingIntv=0.2, listenTimeout=10): self._parent = parent self._pollintv = pollingIntv self._timeout = listenTimeout brokerhost = parent.policy.get("eventBrokerHost") self._topic = parent.policy.get("shutdownTopic") self._evsys = events.EventSystem.getDefaultEventSystem() self._evsys.createReceiver(brokerhost, topic)
65a5ee5db100f00f3fbc036c0dc3d5333cd137bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/65a5ee5db100f00f3fbc036c0dc3d5333cd137bb/ProductionRunManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 13708, 1702, 90, 33, 20, 18, 22, 16, 6514, 2694, 33, 2163, 4672, 365, 6315, 2938, 273, 982, 365, 6315, 3915, 5671, 90, 273, 13708, 1702, 90, 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, 1001, 2738, 972, 12, 2890, 16, 982, 16, 13708, 1702, 90, 33, 20, 18, 22, 16, 6514, 2694, 33, 2163, 4672, 365, 6315, 2938, 273, 982, 365, 6315, 3915, 5671, 90, 273, 13708, 1702, 90, 3...
return sym
if sym == 'Off': return False elif sym == 'Maximum': return True else: raise Exception, 'Type of symmetry not recognized'
def get_symmetry(self): '''return the type of symmetry used''' nc = netCDF(self.nc,'r') if 'UseSymmetry' in nc.variables: sym = string.join(nc.variables['UseSymmetry'][:],'').strip() else: sym = None nc.close() return sym
28c3f2a245341cd8f82e1ffe9c9883dad13198ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/28c3f2a245341cd8f82e1ffe9c9883dad13198ad/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8117, 18042, 12, 2890, 4672, 9163, 2463, 326, 618, 434, 26144, 1399, 26418, 8194, 273, 2901, 39, 4577, 12, 2890, 18, 14202, 11189, 86, 6134, 309, 296, 3727, 11901, 18042, 11, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8117, 18042, 12, 2890, 4672, 9163, 2463, 326, 618, 434, 26144, 1399, 26418, 8194, 273, 2901, 39, 4577, 12, 2890, 18, 14202, 11189, 86, 6134, 309, 296, 3727, 11901, 18042, 11, 31...
prepareExamples()
prepareExamples(self.examplesPath, docProjects)
def run(self): core = wnsbase.playground.Core.getCore() print "Identifying projects for documentation ..." # find all documentation projects: docProjects = [] masterDocumentationProject = None for project in core.getProjects().all: if isinstance(project, (wnsbase.playground.Project.Library, wnsbase.playground.Project.Binary, wnsbase.playground.Project.Documentation)): print "... found: " + project.getDir() docProjects.append(project) if isinstance(project, wnsbase.playground.Project.MasterDocumentation): # we can have only 1 (in words: one) master documentation project assert masterDocumentationProject == None masterDocumentationProject = project
8ab6ae673014c9781abdb74a1de9511fdde2ef90 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8259/8ab6ae673014c9781abdb74a1de9511fdde2ef90/CPPDocumentation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2922, 273, 341, 2387, 1969, 18, 1601, 2915, 18, 4670, 18, 588, 4670, 1435, 1172, 315, 25787, 310, 10137, 364, 7323, 18483, 468, 1104, 777, 7323, 10137, 30, 997, 152...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 2922, 273, 341, 2387, 1969, 18, 1601, 2915, 18, 4670, 18, 588, 4670, 1435, 1172, 315, 25787, 310, 10137, 364, 7323, 18483, 468, 1104, 777, 7323, 10137, 30, 997, 152...
if comment != None:
if comment is not None:
def new_param(name, type, value, comment = None): """ Construct a LIGO Light Weight XML Param document subtree. """ elem = Param({"Name": "%s:param" % name, "Type": type}) elem.pcdata = value if comment != None: elem.appendChild(ligolw.Comment()) elem.childNodes[-1].pcdata = comment return elem
ceb0e82121957f9b5dbb10315d3df2f96fe6125b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/ceb0e82121957f9b5dbb10315d3df2f96fe6125b/param.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 891, 12, 529, 16, 618, 16, 460, 16, 2879, 273, 599, 4672, 3536, 14291, 279, 511, 3047, 51, 15992, 15437, 3167, 3014, 1668, 12773, 18, 3536, 3659, 273, 3014, 12590, 6, 461, 687...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 891, 12, 529, 16, 618, 16, 460, 16, 2879, 273, 599, 4672, 3536, 14291, 279, 511, 3047, 51, 15992, 15437, 3167, 3014, 1668, 12773, 18, 3536, 3659, 273, 3014, 12590, 6, 461, 687...
self.hash = sha.new(str(self.id) + settings.SECRET_KEY).hexdigest()
self.hash = sha1(str(self.id) + settings.SECRET_KEY).hexdigest()
def save(self, *args, **kwargs): super(Attachment, self).save(*args, **kwargs) if not self.hash: self.hash = sha.new(str(self.id) + settings.SECRET_KEY).hexdigest() super(Attachment, self).save(*args, **kwargs)
2fcad80040e98e5642b0105e5ff91967a31a22ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12938/2fcad80040e98e5642b0105e5ff91967a31a22ba/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 6803, 16, 365, 2934, 5688, 30857, 1968, 16, 2826, 4333, 13, 309, 486, 365, 18, 2816, 30, 365, 18, 2816, 273, 6056, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 6803, 16, 365, 2934, 5688, 30857, 1968, 16, 2826, 4333, 13, 309, 486, 365, 18, 2816, 30, 365, 18, 2816, 273, 6056, 21, ...
q = F.order() n = len(G.columns())
def extended_code(self): r""" If self is a linear code of length n defined over F then this returns the code of length n+1 where the last digit $c_n$ satisfies the check condition $c_0+...+c_n=0$. If self is an $[n,k,d]$ binary code then the extended code $C^{\vee}$ is an $[n+1,k,d^{\vee}]$ code, where $d^=d$ (if d is even) and $d^{\vee}=d+1$ (if $d$ is odd).
0ba98abb880903a64744b106daee6f5e9f0c2143 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/0ba98abb880903a64744b106daee6f5e9f0c2143/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7021, 67, 710, 12, 2890, 4672, 436, 8395, 971, 365, 353, 279, 9103, 981, 434, 769, 290, 2553, 1879, 478, 1508, 333, 1135, 326, 981, 434, 769, 290, 15, 21, 1625, 326, 1142, 8035, 271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7021, 67, 710, 12, 2890, 4672, 436, 8395, 971, 365, 353, 279, 9103, 981, 434, 769, 290, 2553, 1879, 478, 1508, 333, 1135, 326, 981, 434, 769, 290, 15, 21, 1625, 326, 1142, 8035, 271, ...
return self._qexp
if prec is None: return self._qexp elif prec > self.prec(): raise ValueError else: return self._qexp.add_bigoh(prec)
def qexp(self): r""" Return the q-expansion of self, to as high precision as it is known.
ed0a3ce8f392224845d699a88cf40b90f375c64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ed0a3ce8f392224845d699a88cf40b90f375c64a/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 2749, 12, 2890, 4672, 436, 8395, 2000, 326, 1043, 17, 2749, 12162, 434, 365, 16, 358, 487, 3551, 6039, 487, 518, 353, 4846, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1043, 2749, 12, 2890, 4672, 436, 8395, 2000, 326, 1043, 17, 2749, 12162, 434, 365, 16, 358, 487, 3551, 6039, 487, 518, 353, 4846, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ans is not None and result_sign == 1: ans = _dec_from_triple(1, ans._int, ans._exp) exact = True
if ans is not None: if result_sign == 1: ans = _dec_from_triple(1, ans._int, ans._exp) exact = True
def __pow__(self, other, modulo=None, context=None): """Return self ** other [ % modulo].
e64fd149cf2d5a6f11c492b83c0f9b78b52a03d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/e64fd149cf2d5a6f11c492b83c0f9b78b52a03d8/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 1308, 16, 26109, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 990, 365, 2826, 1308, 306, 738, 26109, 8009, 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, 1001, 23509, 972, 12, 2890, 16, 1308, 16, 26109, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 990, 365, 2826, 1308, 306, 738, 26109, 8009, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
class CWarningsDisplayTests(WarningsDisplayTests):
class CWarningsDisplayTests(BaseTest, WarningsDisplayTests):
def test_showwarning(self): file_name = os.path.splitext(warning_tests.__file__)[0] + '.py' line_num = 3 expected_file_line = linecache.getline(file_name, line_num).strip() message = 'msg' category = Warning file_object = StringIO.StringIO() expect = self.module.formatwarning(message, category, file_name, line_num) self.module.showwarning(message, category, file_name, line_num, file_object) self.failUnlessEqual(file_object.getvalue(), expect) # Test 'line' argument. expected_file_line += "for the win!" expect = self.module.formatwarning(message, category, file_name, line_num, expected_file_line) file_object = StringIO.StringIO() self.module.showwarning(message, category, file_name, line_num, file_object, expected_file_line) self.failUnlessEqual(expect, file_object.getvalue())
5561b5a428065a2753637468b90a1bbcdc8ab686 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/5561b5a428065a2753637468b90a1bbcdc8ab686/test_warnings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4500, 8551, 12, 2890, 4672, 585, 67, 529, 273, 1140, 18, 803, 18, 4939, 408, 12, 8551, 67, 16341, 16186, 768, 972, 25146, 20, 65, 397, 2418, 2074, 11, 980, 67, 2107, 273, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4500, 8551, 12, 2890, 4672, 585, 67, 529, 273, 1140, 18, 803, 18, 4939, 408, 12, 8551, 67, 16341, 16186, 768, 972, 25146, 20, 65, 397, 2418, 2074, 11, 980, 67, 2107, 273, 8...
saved_user_config = config.sidebar user_config = copy.copy(saved_user_config) for name in sidebar_snapins.keys(): found = False for n, u in user_config: if n == name: found = True if not found: user_config.append((name, "off")) return [ entry for entry in user_config if config.may("sidesnap." + entry[0])]
user_config = config.sidebar return [ entry for entry in user_config if entry[1] != "off" and config.may("sidesnap." + entry[0])]
def load_user_config(): path = config.user_confdir + "/sidebar.mk" try: saved_user_config = eval(file(path).read()) except: saved_user_config = config.sidebar # Now make sure that all snapins are listed in the config # even if turned off. user_config = copy.copy(saved_user_config) for name in sidebar_snapins.keys(): found = False for n, u in user_config: if n == name: found = True if not found: user_config.append((name, "off")) # Remove entries the user is not allowed for return [ entry for entry in user_config if config.may("sidesnap." + entry[0])]
b185948e5da39c0e150c572bd72289e8878338c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/b185948e5da39c0e150c572bd72289e8878338c9/sidebar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1355, 67, 1425, 13332, 589, 273, 642, 18, 1355, 67, 3923, 1214, 397, 2206, 26417, 18, 24816, 6, 775, 30, 5198, 67, 1355, 67, 1425, 273, 5302, 12, 768, 12, 803, 2934, 896, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1355, 67, 1425, 13332, 589, 273, 642, 18, 1355, 67, 3923, 1214, 397, 2206, 26417, 18, 24816, 6, 775, 30, 5198, 67, 1355, 67, 1425, 273, 5302, 12, 768, 12, 803, 2934, 896, 1...
self._loaded = True
self._stored = True
def load_from_id(self, check_pass=0): """ Load user account data from disk.
00400dbee718b208a5440b54ceed8dd66c9bce59 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/00400dbee718b208a5440b54ceed8dd66c9bce59/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2080, 67, 350, 12, 2890, 16, 866, 67, 5466, 33, 20, 4672, 3536, 4444, 729, 2236, 501, 628, 4234, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 67, 2080, 67, 350, 12, 2890, 16, 866, 67, 5466, 33, 20, 4672, 3536, 4444, 729, 2236, 501, 628, 4234, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.diff+=[newdiff]
def __init__(self,credsMax): self.credsToMax=credsMax un=VS.getPlayerX(0) self.i=0 while (un): newdiff=0 if (Director.getSaveDataLength(self.i,_key)): newdiff=Director.getSaveData(self.i,_key,0) self.diff+=[newdiff] else: newdiff=VS.GetDifficulty() self.diff+=[newdiff] Director.pushSaveData(self.i,_key,newdiff) SetDiff(newdiff) self.creds+=[un.getCredits()] self.i+=1 un=VS.getPlayerX(self.i)
474c553c0a5917564266c3a49d8cae7a28f5c3db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/474c553c0a5917564266c3a49d8cae7a28f5c3db/difficulty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 29260, 2747, 4672, 365, 18, 20610, 11634, 2747, 33, 29260, 2747, 640, 33, 14640, 18, 588, 12148, 60, 12, 20, 13, 365, 18, 77, 33, 20, 1323, 261, 318, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 29260, 2747, 4672, 365, 18, 20610, 11634, 2747, 33, 29260, 2747, 640, 33, 14640, 18, 588, 12148, 60, 12, 20, 13, 365, 18, 77, 33, 20, 1323, 261, 318, 4...
raise PLCPermissionDenied, "Could not write into %s"%node_floppy node_image = "%s/%s"%(tempdir,nodename)
raise PLCPermissionDenied, "Could not write into %s"%floppy_file self.trash.append(floppy_file) node_image = "%s/%s"%(self.WORKDIR,nodename) serial_arg="" for option in options: console=option.replace("console:","") if option != console: serial_arg="-s %s"%console
def hexa2 (c): return chr((c>>4)+65) + chr ((c&16)+65)
c8a588799344db08a0317644ebb9ebfc6ebf9860 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7598/c8a588799344db08a0317644ebb9ebfc6ebf9860/GetBootMedium.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 69, 22, 261, 71, 4672, 327, 4513, 12443, 71, 9778, 24, 27921, 9222, 13, 397, 4513, 14015, 71, 10, 2313, 27921, 9222, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 69, 22, 261, 71, 4672, 327, 4513, 12443, 71, 9778, 24, 27921, 9222, 13, 397, 4513, 14015, 71, 10, 2313, 27921, 9222, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return self._arg_arg_op_with_imm(gv_ptr, gv_itemoffset, opcode, opcodei)
return self._arg_arg_op_with_simm(gv_ptr, gv_itemoffset, opcode, opcodei)
def genop_getarrayitem(self, arraytoken, gv_ptr, gv_index): _, _, itemsize = arraytoken opcode = {1:_PPC.lbzx, 2:_PPC.lhzx, 4:_PPC.lwzx}[itemsize] opcodei = {1:_PPC.lbz, 2:_PPC.lhz, 4:_PPC.lwz}[itemsize] gv_itemoffset = self.itemoffset(arraytoken, gv_index) return self._arg_arg_op_with_imm(gv_ptr, gv_itemoffset, opcode, opcodei)
1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672/rgenop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 556, 67, 588, 1126, 1726, 12, 2890, 16, 526, 2316, 16, 11404, 67, 6723, 16, 11404, 67, 1615, 4672, 389, 16, 389, 16, 761, 1467, 273, 526, 2316, 11396, 273, 288, 21, 30, 67, 52,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 556, 67, 588, 1126, 1726, 12, 2890, 16, 526, 2316, 16, 11404, 67, 6723, 16, 11404, 67, 1615, 4672, 389, 16, 389, 16, 761, 1467, 273, 526, 2316, 11396, 273, 288, 21, 30, 67, 52,...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 65) else quickfix.StringField.__init__(self, 65, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 15892, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 15892, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972...
basedir = abspath listing = os.listdir(abspath)
basedir = path listing = self.listdir(path)
def get_list_dir(self, abspath): """Return a directory listing in a form suitable for LIST command.""" # if path is a file we return information about it if os.path.isfile(abspath): basedir, filename = os.path.split(abspath) listing = [filename] else: basedir = abspath listing = os.listdir(abspath) listing.sort() return self.format_list(basedir, listing)
60284966d1f07a9fb0cd04d09b6433131f29a6e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/60284966d1f07a9fb0cd04d09b6433131f29a6e4/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1098, 67, 1214, 12, 2890, 16, 9488, 4672, 3536, 990, 279, 1867, 11591, 316, 279, 646, 10631, 364, 15130, 1296, 12123, 468, 309, 589, 353, 279, 585, 732, 327, 1779, 2973, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1098, 67, 1214, 12, 2890, 16, 9488, 4672, 3536, 990, 279, 1867, 11591, 316, 279, 646, 10631, 364, 15130, 1296, 12123, 468, 309, 589, 353, 279, 585, 732, 327, 1779, 2973, 518, ...
elif type(in_file) == type(''):
elif isinstance(in_file, StringType):
def decode(in_file, out_file=None, mode=None): """Decode uuencoded file""" # # Open the input file, if needed. # if in_file == '-': in_file = sys.stdin elif type(in_file) == type(''): in_file = open(in_file) # # Read until a begin is encountered or we've exhausted the file # while 1: hdr = in_file.readline() if not hdr: raise Error, 'No valid begin line found in input file' if hdr[:5] != 'begin': continue hdrfields = hdr.split(" ", 2) if len(hdrfields) == 3 and hdrfields[0] == 'begin': try: int(hdrfields[1], 8) break except ValueError: pass if out_file is None: out_file = hdrfields[2].rstrip() if mode is None: mode = int(hdrfields[1], 8) # # Open the output file # if out_file == '-': out_file = sys.stdout elif type(out_file) == type(''): fp = open(out_file, 'wb') try: os.path.chmod(out_file, mode) except AttributeError: pass out_file = fp # # Main decoding loop # s = in_file.readline() while s and s != 'end\n': try: data = binascii.a2b_uu(s) except binascii.Error, v: # Workaround for broken uuencoders by /Fredrik Lundh nbytes = (((ord(s[0])-32) & 63) * 4 + 5) / 3 data = binascii.a2b_uu(s[:nbytes]) sys.stderr.write("Warning: %s\n" % str(v)) out_file.write(data) s = in_file.readline() if not s: raise Error, 'Truncated input file'
7dd503dda36ba97cf1f0dc07da0505ba843532d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7dd503dda36ba97cf1f0dc07da0505ba843532d7/uu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 267, 67, 768, 16, 596, 67, 768, 33, 7036, 16, 1965, 33, 7036, 4672, 3536, 6615, 582, 89, 10787, 585, 8395, 468, 468, 3502, 326, 810, 585, 16, 309, 3577, 18, 468, 309, 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, 2495, 12, 267, 67, 768, 16, 596, 67, 768, 33, 7036, 16, 1965, 33, 7036, 4672, 3536, 6615, 582, 89, 10787, 585, 8395, 468, 468, 3502, 326, 810, 585, 16, 309, 3577, 18, 468, 309, 316, ...
assy.csys.quat = self.win.glpane.quat
assy.csys.quat = Q(self.win.glpane.quat)
def processCsysMenu(self, id): if id == 0: #Rename self.selectedTreeItem.startRename(0) else: # Set current view as default view assy = self.win.assy assy.csys.quat = self.win.glpane.quat
fc70c256da94e2e1396c1a5a2e00d018e89ea4b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/fc70c256da94e2e1396c1a5a2e00d018e89ea4b5/modelTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 39, 9499, 4599, 12, 2890, 16, 612, 4672, 309, 612, 422, 374, 30, 468, 16019, 365, 18, 8109, 2471, 1180, 18, 1937, 16019, 12, 20, 13, 469, 30, 468, 1000, 783, 1476, 487, 805, 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, 1207, 39, 9499, 4599, 12, 2890, 16, 612, 4672, 309, 612, 422, 374, 30, 468, 16019, 365, 18, 8109, 2471, 1180, 18, 1937, 16019, 12, 20, 13, 469, 30, 468, 1000, 783, 1476, 487, 805, 14...
Returns the number of arguements this object can take.
Returns the number of arguments this object can take.
def number_of_arguments(self): """ Returns the number of arguements this object can take.
5660983e2d1fdbdccff05ba8c1fa7849d92dd96d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/5660983e2d1fdbdccff05ba8c1fa7849d92dd96d/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 7099, 12, 2890, 4672, 3536, 2860, 326, 1300, 434, 1501, 344, 1346, 333, 733, 848, 4862, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 7099, 12, 2890, 4672, 3536, 2860, 326, 1300, 434, 1501, 344, 1346, 333, 733, 848, 4862, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
assert_equal(y.format, 'l') x = np.array([1,2,3], dtype='<l')
assert_equal(y.format, 'i') x = np.array([1,2,3], dtype='<i')
def test_export_endian(self): x = np.array([1,2,3], dtype='>l') y = memoryview(x) if sys.byteorder == 'little': assert_equal(y.format, '>l') else: assert_equal(y.format, 'l')
8e50ad6e4f3cd6dd80372475771fcf28bf700127 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8e50ad6e4f3cd6dd80372475771fcf28bf700127/test_multiarray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6530, 67, 22910, 12, 2890, 4672, 619, 273, 1130, 18, 1126, 3816, 21, 16, 22, 16, 23, 6487, 3182, 2218, 34, 80, 6134, 677, 273, 3778, 1945, 12, 92, 13, 309, 2589, 18, 7229, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6530, 67, 22910, 12, 2890, 4672, 619, 273, 1130, 18, 1126, 3816, 21, 16, 22, 16, 23, 6487, 3182, 2218, 34, 80, 6134, 677, 273, 3778, 1945, 12, 92, 13, 309, 2589, 18, 7229, ...
return line
print line
def format_line(line, error_output, conflicts=conflicts): if line[-1] == '\n': line = line[:-1] if line.startswith('C '): conflicts.append(line) print '%s%s%s' % (t_colour[12], line, t_reset) elif line.startswith('M '): print '%s%s%s' % (t_colour[10], line, t_reset) elif line.startswith('? '): print '%s%s%s' % (t_colour[8], line, t_reset) else: return line
6ce2631eeb38d2d0ca823aa7c11beae6bb45413f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/6ce2631eeb38d2d0ca823aa7c11beae6bb45413f/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 1369, 12, 1369, 16, 555, 67, 2844, 16, 14450, 33, 20340, 87, 4672, 309, 980, 18919, 21, 65, 422, 2337, 82, 4278, 980, 273, 980, 10531, 17, 21, 65, 309, 980, 18, 17514, 1918,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 1369, 12, 1369, 16, 555, 67, 2844, 16, 14450, 33, 20340, 87, 4672, 309, 980, 18919, 21, 65, 422, 2337, 82, 4278, 980, 273, 980, 10531, 17, 21, 65, 309, 980, 18, 17514, 1918,...
self.name = re.findall('^(\w*)', self.str)[0] if (self.name == ''): self.name = 'div' self.name = self.name.lower()
name = re.findall('^([\w:]*)', self.str)[0] name = name.lower() if ':' in name: try: spaces_count = int(self.parser.options.get('indent-spaces')) except: spaces_count = 4 indent = ' ' * spaces_count shortcuts = { 'cc:ie': { 'opening_tag': '<!--[if IE]>', 'closing_tag': '<![endif]-->'}, 'cc:ie6': { 'opening_tag': '<!--[if lte IE 6]>', 'closing_tag': '<![endif]-->'}, 'cc:ie7': { 'opening_tag': '<!--[if lte IE 7]>', 'closing_tag': '<![endif]-->'}, 'cc:noie': { 'opening_tag': '<!--[if !IE]><!-->', 'closing_tag': '<!--<![endif]-->'}, 'html:4t': { 'opening_tag': '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n' + '<html lang="en">\n' + '<head>\n' + indent + '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />\n' + indent + '<title></title>\n' + '</head>\n' + '<body>', 'closing_tag': '</body>\n' + '</html>'}, 'html:4s': { 'opening_tag': '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n' + '<html lang="en">\n' + '<head>\n' + indent + '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />\n' + indent + '<title></title>\n' + '</head>\n' + '<body>', 'closing_tag': '</body>\n' + '</html>'}, 'html:xs': { 'opening_tag': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n' + '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\n' + '<head>\n' + indent + '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />\n' + indent + '<title></title>\n' + '</head>\n' + '<body>', 'closing_tag': '</body>\n' + '</html>'}, 'html:xxs': { 'opening_tag': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n' + '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\n' + '<head>\n' + indent + '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />\n' + indent + '<title></title>\n' + '</head>\n' + '<body>', 'closing_tag': '</body>\n' + '</html>'}, 'html:5': { 'opening_tag': '<!DOCTYPE html>\n' + '<html lang="en">\n' + '<head>\n' + indent + '<meta charset="UTF-8" />\n' + indent + '<title></title>\n' + '</head>\n' + '<body>', 'closing_tag': '</body>\n' + '</html>'}, } if name in shortcuts.keys(): for key, value in shortcuts[name].iteritems(): setattr(self, key, value) return if (name == ''): self.name = 'div' else: self.name = name
def _init_element(self): """Initializes. Only called if the token is an element token. [Private] """ # Get the tag name. Default to DIV if none given. self.name = re.findall('^(\w*)', self.str)[0] if (self.name == ''): self.name = 'div' self.name = self.name.lower()
31746b2c12abc94e701d932b47560a36d5494b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10890/31746b2c12abc94e701d932b47560a36d5494b1d/sparkup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 2956, 12, 2890, 4672, 3536, 9685, 18, 5098, 2566, 309, 326, 1147, 353, 392, 930, 1147, 18, 306, 6014, 65, 3536, 468, 968, 326, 1047, 508, 18, 2989, 358, 27355, 309, 6555...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 2956, 12, 2890, 4672, 3536, 9685, 18, 5098, 2566, 309, 326, 1147, 353, 392, 930, 1147, 18, 306, 6014, 65, 3536, 468, 968, 326, 1047, 508, 18, 2989, 358, 27355, 309, 6555...
宁 níng /peaceful/rather/Ningxia (abbr.)/Nanjing (abbr.)/surname Ning/
宁(寧) níng /peaceful/rather/Ningxia (abbr.)/Nanjing (abbr.)/surname Ning/ @todo Fix: letter case
>>> def search(string, reading=None):
7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 1623, 12, 1080, 16, 6453, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 1623, 12, 1080, 16, 6453, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
focusIncr = int(round(focusRange / (numPos - 1)))
focusIncr = focusRange / float(numPos - 1)
def updFocusIncr(self, *args): """Update focus increment widget. """ focusRange = self.focusRangeWdg.getNumOrNone() numPos = self.numFocusPosWdg.getNumOrNone() if None in (focusRange, numPos): self.focusIncrWdg.set(None, isCurrent = False) return
5ce90ef6a58e18ae844d9c09d0aab251fd7a91ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6354/5ce90ef6a58e18ae844d9c09d0aab251fd7a91ab/BaseFocusScript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2166, 9233, 382, 3353, 12, 2890, 16, 380, 1968, 4672, 3536, 1891, 7155, 5504, 3604, 18, 3536, 7155, 2655, 273, 365, 18, 13923, 2655, 59, 72, 75, 18, 588, 2578, 1162, 7036, 1435, 818, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2166, 9233, 382, 3353, 12, 2890, 16, 380, 1968, 4672, 3536, 1891, 7155, 5504, 3604, 18, 3536, 7155, 2655, 273, 365, 18, 13923, 2655, 59, 72, 75, 18, 588, 2578, 1162, 7036, 1435, 818, 1...
print '+ found LilyPond, but version %s is too old.' % version_number
logger.info('+ found LilyPond, but version %s is too old.' % version_number)
def checkConverterEntries(): ''' Check all converters (\converter entries) ''' checkProg('the pdflatex program', ['pdflatex $$i'], rc_entry = [ r'\converter pdflatex pdf2 "%%" "latex"' ]) ''' If we're running LyX in-place then tex2lyx will be found in ../src/tex2lyx. Add this directory to the PATH temporarily and search for tex2lyx. Use PATH to avoid any problems with paths-with-spaces. ''' path_orig = os.environ["PATH"] os.environ["PATH"] = os.path.join('..', 'src', 'tex2lyx') + \ os.pathsep + path_orig checkProg('a LaTeX/Noweb -> LyX converter', ['tex2lyx', 'tex2lyx' + version_suffix], rc_entry = [r'''\converter latex lyx "%% -f $$i $$o" ""
b8ce87578f9d75ccccfc9a3eb0e0156576b6d158 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/b8ce87578f9d75ccccfc9a3eb0e0156576b6d158/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5072, 5400, 13332, 9163, 2073, 777, 19414, 17938, 15747, 3222, 13, 9163, 866, 626, 75, 2668, 5787, 8169, 26264, 5402, 2187, 10228, 7699, 26264, 5366, 77, 17337, 4519, 67, 4099, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5072, 5400, 13332, 9163, 2073, 777, 19414, 17938, 15747, 3222, 13, 9163, 866, 626, 75, 2668, 5787, 8169, 26264, 5402, 2187, 10228, 7699, 26264, 5366, 77, 17337, 4519, 67, 4099, 273, 3...
os.system(convert_cmd2 % (pict.props.name, tmp_pict))
os.system(convert_cmd2 % (os.path.join(self.album.dir, pict.props.name), tmp_pict))
def __check_picts(self, chapter): print " converting picts.." convert_cmd1 = "convert -resize 704x576! '%s' '%s'" convert_cmd2 = "convert -resize 704x576 '%s' '%s'" convert_cmd3 = "convert -border %dx0 -bordercolor black '%s' '%s'"
197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 84, 933, 87, 12, 2890, 16, 23580, 4672, 1172, 315, 225, 14540, 293, 933, 87, 18460, 1765, 67, 4172, 21, 273, 315, 6283, 300, 15169, 2371, 3028, 92, 25, 6669, 5, 1995, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 67, 84, 933, 87, 12, 2890, 16, 23580, 4672, 1172, 315, 225, 14540, 293, 933, 87, 18460, 1765, 67, 4172, 21, 273, 315, 6283, 300, 15169, 2371, 3028, 92, 25, 6669, 5, 1995, ...
usage = '\n' + __doc__
def get_app(config_file, name, loadapp=loadapp): """ Return the WSGI application named ``name`` in the PasteDeploy config file ``config_file``""" config_name = 'config:%s' % config_file here_dir = os.getcwd() app = loadapp(config_name, name=name, relative_to=here_dir) return app
791a23ffbba7d22f2b66a04868f76fd97740d618 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/791a23ffbba7d22f2b66a04868f76fd97740d618/paster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2910, 12, 1425, 67, 768, 16, 508, 16, 1262, 2910, 33, 945, 2910, 4672, 3536, 2000, 326, 7649, 13797, 2521, 4141, 12176, 529, 10335, 316, 326, 453, 14725, 10015, 642, 585, 12176,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2910, 12, 1425, 67, 768, 16, 508, 16, 1262, 2910, 33, 945, 2910, 4672, 3536, 2000, 326, 7649, 13797, 2521, 4141, 12176, 529, 10335, 316, 326, 453, 14725, 10015, 642, 585, 12176,...
TargetAdd('pview.exe', opts=['ADVAPI'])
TargetAdd('pview.exe', opts=['ADVAPI', 'WINSOCK2', 'WINSHELL'])
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
4dccd642577d426e967bc8a0466294803197210b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/4dccd642577d426e967bc8a0466294803197210b/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
offset = int((ts - (ts + mx.DateTime.RelativeDateTime(month=1,day=1))).hours)
offset = int((ts - (ts + mx.DateTime.RelativeDateTime(month=1,day=1,hour=0))).hours)
def fix_hourly(ts): """ Fix the hourly precipitation values, just hard code the stupid IEMRE value """ nc = netCDF3.Dataset("/mnt/mesonet/data/iemre/%s_hourly.nc" % (ts.year,),'r') p01m = nc.variables['p01m'] offset = int((ts - (ts + mx.DateTime.RelativeDateTime(month=1,day=1))).hours) # Find ISUAG Data rs = isuag.query("SELECT * from hourly WHERE valid = '%s+00' and station not in ('A133259')" % (ts.strftime("%Y-%m-%d"),)).dictresult() for i in range(len(rs)): stid = rs[i]['station'] lat = sts[ stid ]['lat'] lon = sts[ stid ]['lon'] # Lookup IEMRE data ix,jy = constants.find_ij(lon, lat) estimate = p01m[offset,jy,ix] / 25.4 if estimate > 100: estimate = 0 print "Missing Estimate", ts print "%s %-20.20s %5.2f %s %5.2f" % (stid, sts[stid]['name'], rs[i]['c900'], rs[i]['c900_f'], estimate) # Fix it sql = """UPDATE hourly SET c900 = %.2f, c900_f = 'e' WHERE valid = '%s+00' and station = '%s'""" % (estimate, ts.strftime("%Y-%m-%d %H:%M"), stid) isuag.query(sql) nc.close()
056bda6bbba3334f6543918267a24bf0ad71c179 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11189/056bda6bbba3334f6543918267a24bf0ad71c179/fix_precip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 12091, 715, 12, 3428, 4672, 225, 3536, 12139, 326, 30662, 675, 3449, 8773, 924, 16, 2537, 7877, 981, 326, 384, 416, 350, 467, 3375, 862, 460, 3536, 8194, 273, 2901, 39, 4577, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 12091, 715, 12, 3428, 4672, 225, 3536, 12139, 326, 30662, 675, 3449, 8773, 924, 16, 2537, 7877, 981, 326, 384, 416, 350, 467, 3375, 862, 460, 3536, 8194, 273, 2901, 39, 4577, ...
def nnlf(self, *args):
def nnlf(self, theta, x):
def nnlf(self, *args): # - sum (log pdf(x, theta)) # where theta are the parameters (including loc and scale) # try: x = args[-1] loc = args[-2] scale = args[-3] args = args[:-3] except IndexError: raise ValueError, "Not enough input arguments." if not self._argcheck(*args) or scale <= 0: return inf x = arr((x-loc) / scale) cond0 = (x <= self.a) | (x >= self.b) if (any(cond0)): return inf else: N = len(x) return self._nnlf(self, x, *args) + N*log(scale)
4fc3c3382d4f39d6cb250f55b2b024d3eef437e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/4fc3c3382d4f39d6cb250f55b2b024d3eef437e9/distributions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7761, 20850, 12, 2890, 16, 7338, 16, 619, 4672, 468, 300, 2142, 261, 1330, 8169, 12, 92, 16, 7338, 3719, 468, 282, 1625, 7338, 854, 326, 1472, 261, 31348, 1515, 471, 3159, 13, 468, 775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7761, 20850, 12, 2890, 16, 7338, 16, 619, 4672, 468, 300, 2142, 261, 1330, 8169, 12, 92, 16, 7338, 3719, 468, 282, 1625, 7338, 854, 326, 1472, 261, 31348, 1515, 471, 3159, 13, 468, 775...
if where == 'tree':
if where == 'epydoc-tree':
def _navbar(self, where, uid=None): """ @return: The HTML code for a navigation bar on the given type of page. The navigation bar typically looks like:: [ Package Module Class Tree Index Help ] @rtype: C{string} @param where: The type of page for which a navigation bar should be generated. Possible values are C{'class'}, C{'module'}, C{'package'}, C{'tree'}, C{'index'}, and C{'help'}. @type where: C{string} """ str = self._start_of('Navbar') str += '<table class="navbar" border="0" width="100%"' str += ' cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">\n' str += ' <tr>\n' str += ' <td width="100%">\n' str += ' <table border="0" cellpadding="0" cellspacing="0">\n' str += ' <tr valign="top">\n'
60b4598f963657af72659f4c3492b6028c51c37e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/60b4598f963657af72659f4c3492b6028c51c37e/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 10394, 4653, 603, 326, 864, 618, 434, 1363, 18, 225, 1021, 10394, 4653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 10394, 4653, 603, 326, 864, 618, 434, 1363, 18, 225, 1021, 10394, 4653, ...
ret = self.WriteByte(search_type)
self.WriteByte(search_type)
def PickSearchBit(i, desc_bit, last_rn): if i == desc_bit: # took 0 path last time, so take 1 path return 1 elif i > desc_bit: # take the 0 path on the next branch return 0 else: return ((last_rn >> i) & 0x1)
bfa31159dc6d7c288d550890d8b7c004a84a48e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3996/bfa31159dc6d7c288d550890d8b7c004a84a48e8/GenericOneWireMaster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23038, 2979, 5775, 12, 77, 16, 3044, 67, 3682, 16, 1142, 67, 27639, 4672, 309, 277, 422, 3044, 67, 3682, 30, 468, 23151, 374, 589, 1142, 813, 16, 1427, 4862, 404, 589, 327, 404, 1327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23038, 2979, 5775, 12, 77, 16, 3044, 67, 3682, 16, 1142, 67, 27639, 4672, 309, 277, 422, 3044, 67, 3682, 30, 468, 23151, 374, 589, 1142, 813, 16, 1427, 4862, 404, 589, 327, 404, 1327, ...
self.set_stderr_file('logs/' + exec_namee + '-$(cluster)-$(process).err')
self.set_stderr_file('logs/' + exec_name + '-$(cluster)-$(process).err')
def __init__(self, cp, dax = False): """ cp: ConfigParser object from which options are read. """ exec_name = "mvsc_get_doubles" universe = "vanilla" executable = cp.get('condor',exec_name) pipeline.CondorDAGJob.__init__(self, universe, executable) pipeline.AnalysisJob.__init__(self, cp, dax) self.add_condor_cmd('getenv','True') self.add_condor_cmd('environment',"KMP_LIBRARY=serial;MKL_SERIAL=yes") self.set_stdout_file('logs/' + exec_name + '-$(cluster)-$(process).out') self.set_stderr_file('logs/' + exec_namee + '-$(cluster)-$(process).err') self.set_sub_file(exec_name + '.sub')
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3283, 16, 302, 651, 273, 1083, 4672, 3536, 3283, 30, 25076, 733, 628, 1492, 702, 854, 855, 18, 3536, 1196, 67, 529, 273, 315, 17509, 1017, 67, 588, 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, 1001, 2738, 972, 12, 2890, 16, 3283, 16, 302, 651, 273, 1083, 4672, 3536, 3283, 30, 25076, 733, 628, 1492, 702, 854, 855, 18, 3536, 1196, 67, 529, 273, 315, 17509, 1017, 67, 588, 67, ...
for arg in sys.argv[:]: if arg.find('--hdf5=') == 0: hdf5 = arg.partition('=')[2] sys.argv.remove(arg) warn(wstr) if arg.find('--api=') == 0: self.api = arg.partition('=')[2] sys.argv.remove(arg) warn(wstr)
try: f = open(localpath('buildconf.pickle'),'r') hdf5_pkl, api_pkl = pickle.load(f) f.close() except Exception: pass else: if hdf5_pkl is not None: hdf5 = hdf5_pkl debug("Loaded HDF5 dir %s from pickle file" % hdf5) if api_pkl is not None: api = api_pkl debug("Loaded API %s from pickle file" % api)
def __init__(self):
77fa55ec0922286611602427600a840ec2342459 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10380/77fa55ec0922286611602427600a840ec2342459/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 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, 1001, 2738, 972, 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, -1...
return self._site
return aq_self(self._site)
def getSite( self ):
06ac350743dbb45b6c9370d0b8123a20f2a493f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/06ac350743dbb45b6c9370d0b8123a20f2a493f6/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 12, 365, 262, 30, 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,...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 12, 365, 262, 30, 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...
lib_opts = gen_lib_options (self.library_dirs + library_dirs, self.libraries + libraries, "-L%s", "-l%s")
lib_opts = gen_lib_options (self, self.library_dirs + library_dirs, self.libraries + libraries)
def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None):
80d5359c8b7b767de912d214722287d9a46908ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/80d5359c8b7b767de912d214722287d9a46908ec/unixccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 2870, 67, 1484, 1968, 33, 7036,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 2870, 67, 1484, 1968, 33, 7036,...
if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_currency_id,to_currency_id], context=context) from_currency = (xc[0].id == from_currency_id and xc[0]) or xc[1] to_currency = (xc[0].id == to_currency_id and xc[0]) or xc[1]
def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): if context is None: context = {} if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_currency_id,to_currency_id], context=context) from_currency = (xc[0].id == from_currency_id and xc[0]) or xc[1] to_currency = (xc[0].id == to_currency_id and xc[0]) or xc[1] if from_currency['rate'] == 0 or to_currency['rate'] == 0: date = context.get('date', time.strftime('%Y-%m-%d')) if from_currency['rate'] == 0: currency_symbol = from_currency.symbol else: currency_symbol = to_currency.symbol raise osv.except_osv(_('Error'), _('No rate found \n' \ 'for the currency: %s \n' \ 'at the date: %s') % (currency_symbol, date)) rate = to_currency.rate/from_currency.rate if account and (account.currency_mode=='average') and account.currency_id: q = self.pool.get('account.move.line')._query_get(cr, uid, context=context) cr.execute('select sum(debit-credit),sum(amount_currency) from account_move_line l ' \ 'where l.currency_id=%s and l.account_id=%s and '+q, (account.currency_id.id,account.id,)) tot1,tot2 = cr.fetchone() if tot2 and not account_invert: rate = float(tot1)/float(tot2) elif tot1 and account_invert: rate = float(tot2)/float(tot1) if to_currency_id==from_currency_id: if round: return self.round(cr, uid, to_currency, from_amount) else: return from_amount else: if round: return self.round(cr, uid, to_currency, from_amount * rate) else: return (from_amount * rate)
342857ee74d4ba849a7544c356a431377efd706c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/342857ee74d4ba849a7544c356a431377efd706c/res_currency.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 16, 4422, 16, 4555, 16, 628, 67, 7095, 67, 350, 16, 358, 67, 7095, 67, 350, 16, 628, 67, 8949, 16, 3643, 33, 5510, 16, 819, 33, 7036, 16, 2236, 33, 7036, 16, 2236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 16, 4422, 16, 4555, 16, 628, 67, 7095, 67, 350, 16, 358, 67, 7095, 67, 350, 16, 628, 67, 8949, 16, 3643, 33, 5510, 16, 819, 33, 7036, 16, 2236, 33, 7036, 16, 2236, ...
def PIDLoop(a)
def PIDLoop(a):
def PIDLoop(a) return a
04566e6c60af5bcbde76b7b21ec90b56e4a9f8e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/04566e6c60af5bcbde76b7b21ec90b56e4a9f8e7/common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14788, 6452, 12, 69, 4672, 225, 327, 279, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14788, 6452, 12, 69, 4672, 225, 327, 279, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Compare self and right.
Compare ``self`` and ``right``.
def __cmp__(self, right): """ Compare self and right. The ordering is whatever it is in Gap. EXAMPLES:: sage: G1 = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G2 = PermutationGroup([[(1,2,3),(4,5)]]) sage: G1 > G2 True sage: G1 < G2 False """ if not isinstance(right, PermutationGroup_generic): return -1 return right._gap_().__cmp__(self._gap_())
f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 2145, 4672, 3536, 11051, 12176, 2890, 10335, 471, 12176, 4083, 68, 8338, 225, 1021, 9543, 353, 15098, 518, 353, 316, 611, 438, 18, 225, 5675, 8900, 11386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 972, 12, 2890, 16, 2145, 4672, 3536, 11051, 12176, 2890, 10335, 471, 12176, 4083, 68, 8338, 225, 1021, 9543, 353, 15098, 518, 353, 316, 611, 438, 18, 225, 5675, 8900, 11386, ...
code[skip] = len(code) - skip if op == MAX_REPEAT:
code[skip] = _len(code) - skip if op is MAX_REPEAT:
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
3f8fdffe72485d69e9e31bdeb4796c1cca750eba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f8fdffe72485d69e9e31bdeb4796c1cca750eba/sre_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
class _PEB_2003_64(Structure): _pack_ = 8 _fields_ = [ ("InheritedAddressSpace", BOOLEAN), ("ReadImageFileExecOptions", UCHAR), ("BeingDebugged", BOOLEAN), ("BitField", UCHAR), ("Mutant", HANDLE), ("ImageBaseAddress", PVOID), ("Ldr", PVOID), ("ProcessParameters", PVOID), ("SubSystemData", PVOID), ("ProcessHeap", PVOID), ("FastPebLock", PVOID), ("AtlThunkSListPtr", PVOID), ("SparePtr2", PVOID), ("EnvironmentUpdateCount", DWORD), ("KernelCallbackTable", PVOID), ("SystemReserved", DWORD), ("SpareUlong", DWORD), ("FreeList", PVOID), ("TlsExpansionCounter", DWORD), ("TlsBitmap", PVOID), ("TlsBitmapBits", DWORD * 2), ("ReadOnlySharedMemoryBase", PVOID), ("ReadOnlySharedMemoryHeap", PVOID), ("ReadOnlyStaticServerData", PVOID), ("AnsiCodePageData", PVOID), ("OemCodePageData", PVOID), ("UnicodeCaseTableData", PVOID), ("NumberOfProcessors", DWORD), ("NtGlobalFlag", DWORD), ("CriticalSectionTimeout", LONGLONG), ("HeapSegmentReserve", QWORD), ("HeapSegmentCommit", QWORD), ("HeapDeCommitTotalFreeThreshold", QWORD), ("HeapDeCommitFreeBlockThreshold", QWORD), ("NumberOfHeaps", DWORD), ("MaximumNumberOfHeaps", DWORD), ("ProcessHeaps", PVOID), ("GdiSharedHandleTable", PVOID), ("ProcessStarterHelper", PVOID), ("GdiDCAttributeList", DWORD), ("LoaderLock", PVOID), ("OSMajorVersion", DWORD), ("OSMinorVersion", DWORD), ("OSBuildNumber", WORD), ("OSCSDVersion", WORD), ("OSPlatformId", DWORD), ("ImageSubsystem", DWORD), ("ImageSubsystemMajorVersion", DWORD), ("ImageSubsystemMinorVersion", DWORD), ("ImageProcessAffinityMask", QWORD), ("GdiHandleBuffer", DWORD * 60), ("PostProcessInitRoutine", PPS_POST_PROCESS_INIT_ROUTINE), ("TlsExpansionBitmap", PVOID), ("TlsExpansionBitmapBits", DWORD * 32), ("SessionId", DWORD), ("AppCompatFlags", ULONGLONG), ("AppCompatFlagsUser", ULONGLONG), ("pShimData", PVOID), ("AppCompatInfo", PVOID), ("CSDVersion", UNICODE_STRING), ("ActivationContextData", PVOID), ("ProcessAssemblyStorageMap", PVOID), ("SystemDefaultActivationContextData", PVOID), ("SystemAssemblyStorageMap", PVOID), ("MinimumStackCommit", QWORD), ("FlsCallback", PVOID), ("FlsListHead", LIST_ENTRY), ("FlsBitmap", PVOID), ("FlsBitmapBits", DWORD * 4), ("FlsHighIndex", DWORD), ]
_PEB_2003_64 = _PEB_XP_64 _PEB_2003_R2 = _PEB_2003 _PEB_2003_R2_64 = _PEB_2003_64
# typedef struct _RTL_CRITICAL_SECTION
42829baafe49a5c7f142918f583dc856d464ec03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/42829baafe49a5c7f142918f583dc856d464ec03/peb_teb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 618, 536, 1958, 389, 54, 5967, 67, 5093, 21377, 67, 19082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 618, 536, 1958, 389, 54, 5967, 67, 5093, 21377, 67, 19082, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return ''
pass return ''
def _getMonClasses(option): """ for a given app,backend pair return the monitoring classes or an empty string if it's not defined """ try: return mc[option] except (ConfigError,KeyError): return ''
8f79188915ff0648fa07f7b1aaae8bfad581ccdd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/8f79188915ff0648fa07f7b1aaae8bfad581ccdd/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 11415, 4818, 12, 3482, 4672, 3536, 364, 279, 864, 595, 16, 9993, 3082, 327, 326, 16309, 3318, 578, 392, 1008, 533, 309, 518, 1807, 486, 2553, 3536, 775, 30, 327, 6108, 63, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 11415, 4818, 12, 3482, 4672, 3536, 364, 279, 864, 595, 16, 9993, 3082, 327, 326, 16309, 3318, 578, 392, 1008, 533, 309, 518, 1807, 486, 2553, 3536, 775, 30, 327, 6108, 63, 34...
'kernel-hugemem', 'kernel-enterprise', 'kernel-bigmem'])
'kernel-hugemem', 'kernel-enterprise', 'kernel-bigmem', 'kernel-devel'])
def setConfigOption(self, option, value): if hasattr(self, option): setattr(self, option, value) else: raise Errors.ConfigError, 'No such option %s' % option
b4b2cbf877c4ba3be6a8507a50e9a97a03c59928 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/b4b2cbf877c4ba3be6a8507a50e9a97a03c59928/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15517, 1895, 12, 2890, 16, 1456, 16, 460, 4672, 309, 3859, 12, 2890, 16, 1456, 4672, 9241, 12, 2890, 16, 1456, 16, 460, 13, 469, 30, 1002, 9372, 18, 809, 668, 16, 296, 2279, 4123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15517, 1895, 12, 2890, 16, 1456, 16, 460, 4672, 309, 3859, 12, 2890, 16, 1456, 4672, 9241, 12, 2890, 16, 1456, 16, 460, 13, 469, 30, 1002, 9372, 18, 809, 668, 16, 296, 2279, 4123, 14...
self.request_go()
self.request_go(fdetach = True)
def detach(self): self.__verify_attached()
06dc681403fdcdb1a8e31d49e638995e605cf070 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1662/06dc681403fdcdb1a8e31d49e638995e605cf070/rpdb2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10199, 12, 2890, 4672, 365, 16186, 8705, 67, 24157, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10199, 12, 2890, 4672, 365, 16186, 8705, 67, 24157, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
print 'Captured',count*2, 'fields,', 0.1*int(count*20000.0/(t1-t0)), 'f/s', print count*200.0/lastid, '%,', print count*rate*200.0/lastid, '% of wanted rate'
print 'Captured',count*2, 'fields,', print 0.1*int(count*20000.0/(t1-t0)), 'f/s', if lastid: print count*200.0/lastid, '%,', print count*rate*200.0/lastid, '% of wanted rate', print
def record(v, info, filename, audiofilename, mono, grey, monotreshold): import thread format, x, y, qsize, rate = info fps = 59.64 # Fields per second # XXX (Strange: need fps of Indigo monitor, not of PAL or NTSC!) tpf = 1000.0 / fps # Time per field in msec if filename: vout = VFile.VoutFile().init(filename) if mono: vout.format = 'mono' elif grey: vout.format = 'grey' else: vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() MAXSIZE = 20 # XXX should be a user option import Queue queue = Queue.Queue().init(MAXSIZE) done = thread.allocate_lock() done.acquire_lock() thread.start_new_thread(saveframes, \ (vout, queue, done, mono, monotreshold)) if audiofilename: audiodone = thread.allocate_lock() audiodone.acquire_lock() audiostop = [] initaudio(audiofilename, audiostop, audiodone) gl.wintitle('(rec) ' + filename) lastid = 0 t0 = time.millitimer() count = 0 timestamps = [] ids = [] v.InitContinuousCapture(info) while not gl.qtest(): try: cd, id = v.GetCaptureData() except sv.error: time.millisleep(10) # XXX is this necessary? continue timestamps.append(time.millitimer()) ids.append(id) id = id + 2*rate
9533ebe85737fdd61b9f9936472303c0d51d233b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9533ebe85737fdd61b9f9936472303c0d51d233b/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1123, 16, 1544, 16, 20232, 77, 792, 2550, 16, 6921, 83, 16, 5174, 93, 16, 6921, 352, 3444, 4672, 1930, 2650, 740, 16, 619, 16, 677, 16, 1043, 1467, 16, 4993, 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, 1409, 12, 90, 16, 1123, 16, 1544, 16, 20232, 77, 792, 2550, 16, 6921, 83, 16, 5174, 93, 16, 6921, 352, 3444, 4672, 1930, 2650, 740, 16, 619, 16, 677, 16, 1043, 1467, 16, 4993, 273, ...
if os.name=='nt': extensions.append(Extension('wc.js.jslib', sources=['wc/js/jslib.c'], define_macros = [('WIN32', None), ('XP_WIN', None), ('EXPORT_JS_API', None)], include_dirs = include_dirs + ['libjs'], extra_compile_args = extra_compile_args, extra_objects = ['libjs/.libs/libjs.a'], library_dirs = library_dirs, libraries = libraries, ))
if win_compiling: define_macros = [('WIN32', None), ('XP_WIN', None), ('EXPORT_JS_API', None), ]
def get_exe_bytes (self): if win_cross_compiling: # wininst.exe is in the same directory as bdist_wininst # XXX for python2.4, use wininst-X.Y.exe directory = os.path.dirname(distutils.command.__file__) filename = os.path.join(directory, "wininst.exe") return open(filename, "rb").read() return super(MyBdistWininst, self).get_exe_bytes()
44ccc6339c9b7b06a9beaa414a5ef9dd982bdb33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/44ccc6339c9b7b06a9beaa414a5ef9dd982bdb33/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14880, 67, 3890, 261, 2890, 4672, 309, 5657, 67, 14653, 67, 2919, 4973, 30, 468, 5657, 8591, 18, 14880, 353, 316, 326, 1967, 1867, 487, 324, 4413, 67, 8082, 8591, 468, 11329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14880, 67, 3890, 261, 2890, 4672, 309, 5657, 67, 14653, 67, 2919, 4973, 30, 468, 5657, 8591, 18, 14880, 353, 316, 326, 1967, 1867, 487, 324, 4413, 67, 8082, 8591, 468, 11329, ...
clist = tools.Walk(root, pattern=re.compile('.*'), return_folders=1) clist = [mem[len(root)+1:] for mem in clist] clist.sort() clist.insert(0, "")
def genCategories(self): config = self._request.getConfiguration() root = config["datadir"]
16f048911f07ff3f62fdc8867dc527d3ce99f2a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/16f048911f07ff3f62fdc8867dc527d3ce99f2a4/pycategories.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 10487, 12, 2890, 4672, 642, 273, 365, 6315, 2293, 18, 588, 1750, 1435, 1365, 273, 642, 9614, 3404, 361, 481, 11929, 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, 3157, 10487, 12, 2890, 4672, 642, 273, 365, 6315, 2293, 18, 588, 1750, 1435, 1365, 273, 642, 9614, 3404, 361, 481, 11929, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if not Globals.options.reload:
noonToday = datetime.datetime.combine( datetime.date.today(), datetime.time(12, tzinfo=ICUtzinfo.floating)) WelcomeEvent = pim.EventStamp.update(parcel, 'WelcomeEvent', displayName=_(u'Welcome to Chandler %(version)s') % {'version': version.version}, startTime=noonToday, duration=datetime.timedelta(minutes=60), anyTime=False, read=False, creator=osafDev, location=pim.Location.update(parcel, "OSAFLocation", displayName=_("Open Source Applications Foundation"), ), ) body = _(u"""Welcome to the Chandler %(version)s! For a wealth of information for end-users and developers, point your browser to: http://chandler.osafoundation.org There you can see presentations on the Vision of Chandler, details about this release, screenshots and screencast demos, documentation and tutorials for developers, and how to participate in testing and giving us feedback about your experience in experimenting with Chandler. This release is focused on "experimentally usable" calendar functionality. It meets the following four goals: 1. Usable Calendar We intend to use the %(version)s calendar internally at OSAF on a day-to-day basis in order to experience first hand the features, functionality, limitations, and any bugs in the product. We believe using the product ourselves early on is the best way to ensure superlative design and implementation. The calendar now includes timezones, repeating events, all-day events, multiple overlaying calendars, and shared collaborative (multi-author) group calendars using our new CalDAV-based calendar server. 2. Polished User Interface Adding polish to the UI helps calendar usability. To a lesser extent we have also polished other areas of the application UI. 3. Infrastructure Investment * Although the focus for this release is usable calendar functionality, we have invested in some projects for both developer and Quality Assurance productivity. For example, we have begun optimizing for performance, and have developed automated QA code tests. We want Chandler to be testable, high quality source code. * In addition, this release also includes continuing infrastructure work on email and internationalization. 4. Developer Platform * If you are an experienced Python programmer, you should be able to create simple forms-based parcels like the Flickr, Feeds, and Amazon parcels that are included in the %(version)s release. * Developer documentation, tutorials, and sample add-in parcels are part of this release. Please note, this release is still intended to be experimental; do not trust your real data with this version. An experimental file import/export feature is available to back up your calendar data. Thank you for trying Chandler. Your feedback is welcome on our mail lists: http://wiki.osafoundation.org/bin/view/Chandler/OsafMailingLists The Chandler Team""") % {'version': version.version} WelcomeEvent.body = body WelcomeEvent.changeEditState(pim.Modification.created) WelcomeEvent.setTriageStatus(pim.TriageEnum.now) pim.TaskStamp(WelcomeEvent).add() if Globals.options.reload: schema.ns('osaf.pim', parcel.itsView).allCollection.add(WelcomeEvent) else:
def installParcel(parcel, oldVersion=None): import scripts as Scripts from osaf.framework import scripting pim_ns = schema.ns('osaf.pim', parcel) sharing_ns = schema.ns('osaf.sharing', parcel) me = pim.Contact.update(parcel, 'me', displayName=_(u'Me'), contactName=pim.ContactName.update(parcel, 'meName', firstName=_(u'Chandler'), lastName=_(u'User') ), references=[pim_ns.currentContact] ) # The Sidebar collection sidebarListCollection = pim.ListCollection.update(parcel, 'sidebarCollection', inclusions=[pim_ns.allCollection, pim_ns.inCollection, pim_ns.outCollection, pim_ns.trashCollection] ) testReply = pim.mail.EmailAddress.update(parcel, 'TestReplyAddress') # [i18n] Test Accounts are not displayed to the user and # do not require localization testSmtp = pim.mail.SMTPAccount.update(parcel, 'TestSMTPAccount', displayName=u'Test SMTP Account', password=password.Password.update(parcel, 'TestSMTPAccountPassword'), isActive=False ) pim.mail.IMAPAccount.update(parcel, 'TestIMAPAccount', displayName=u'Test IMAP mail', replyToAddress=testReply, password=password.Password.update(parcel, 'TestIMAPAccountPassword'), isActive=False ) pim.mail.POPAccount.update(parcel, 'TestPOPAccount', displayName=u'Test POP mail', replyToAddress=testReply, defaultSMTPAccount=testSmtp, password=password.Password.update(parcel, 'TestPOPAccountPassword'), isActive=False ) osafDev = pim.Contact.update(parcel, 'OSAFContact', emailAddress=u'dev@osafoundation.org', contactName=pim.ContactName.update(parcel, 'OSAFContactName', firstName=u'OSAF', lastName=u'Development' ) ) # OOTB collections and items (bug 6545) # http://chandlerproject.org/bin/view/Journal/PreviewOOTBChandlerExperience # # (1) Don't create these in //parcels, or they won't get dumped # (2) Don't create these if reloading, or else there will be endless # duplication of items/events # (3) We do want new UUIDs, so different users can share these # collections/items to the same morsecode server # if not Globals.options.reload: # OOTB user defined collections: collections should be in mine mine = schema.ns("osaf.pim", parcel.itsView).mine def makeCollection(name, checked, colorTuple): collection = pim.SmartCollection( itsView=parcel.itsView, displayName=name, color=pim.structs.ColorType(colorTuple) ) # include collection in overlays, as spec'ed UserCollection(collection).checked = checked sidebarListCollection.add(collection) mine.addSource(collection) return collection # OOTB user defined collections: Work, Home and Fun work = makeCollection(_(u"Work"), True, [0,0,255,255]) home = makeCollection(_(u"Home"), True, [255,0,0,255]) fun = makeCollection(_(u"Fun"), False, [0,255,0,255]) # OOTB item: Welcome item noonToday = datetime.datetime.combine( datetime.date.today(), datetime.time(12, tzinfo=ICUtzinfo.floating)) WelcomeEvent = pim.EventStamp.update(parcel, 'WelcomeEvent', displayName=_(u'Welcome to Chandler %(version)s') % {'version': version.version}, startTime=noonToday, duration=datetime.timedelta(minutes=60), anyTime=False, collections=[home,work], read=False, creator=osafDev, location=pim.Location.update(parcel, "OSAFLocation", displayName=_("Open Source Applications Foundation"), ), ) body = _(u"""Welcome to the Chandler %(version)s!
323dda2eb4ce3cecaa28709e02c317ca86d6eb46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/323dda2eb4ce3cecaa28709e02c317ca86d6eb46/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 1553, 2183, 12, 1065, 2183, 16, 1592, 1444, 33, 7036, 4672, 225, 1930, 8873, 487, 2850, 6513, 628, 1140, 1727, 18, 12303, 1930, 2728, 310, 225, 293, 381, 67, 2387, 273, 1963, 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, 3799, 1553, 2183, 12, 1065, 2183, 16, 1592, 1444, 33, 7036, 4672, 225, 1930, 8873, 487, 2850, 6513, 628, 1140, 1727, 18, 12303, 1930, 2728, 310, 225, 293, 381, 67, 2387, 273, 1963, 18, ...
self.update_tag = None
def __init__(self): global loop self.size = ui.get_cols_rows() # Happy screen saying that you can't do anything because we're scanning # for networks. :-) self.screen_locker = urwid.Filler(urwid.Text(('important',language['scanning_stand_by']), align='center')) self.no_wlan = urwid.Filler(urwid.Text(('important',language['no_wireless_networks_found']), align='center')) self.TITLE = language['wicd_curses'] self.WIRED_IDX = 1 self.WLESS_IDX = 3
6157eb782ace3423b9e7c138483e058585eee471 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/6157eb782ace3423b9e7c138483e058585eee471/wicd-curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2552, 2798, 365, 18, 1467, 273, 5915, 18, 588, 67, 6842, 67, 3870, 1435, 468, 670, 438, 2074, 5518, 12532, 310, 716, 1846, 848, 1404, 741, 6967, 2724, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 2552, 2798, 365, 18, 1467, 273, 5915, 18, 588, 67, 6842, 67, 3870, 1435, 468, 670, 438, 2074, 5518, 12532, 310, 716, 1846, 848, 1404, 741, 6967, 2724, ...
NAME ====
def removeComponents(self, componentList, groupName = None): """ NAME ====
748cbae21f60ac1c42057955f2dae32754c7f701 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/748cbae21f60ac1c42057955f2dae32754c7f701/grouprecipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 7171, 12, 2890, 16, 1794, 682, 16, 11619, 273, 599, 4672, 3536, 6048, 422, 631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 7171, 12, 2890, 16, 1794, 682, 16, 11619, 273, 599, 4672, 3536, 6048, 422, 631, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return self.pagename.split('/')[-1] def SUBPAGENAMEE(self, args): return urlquote(self.qpagename.split('/')[-1]) def BASEPAGENAME(self, args):
return pagename.split('/')[-1] SUBPAGENAMEE = _quoted(SUBPAGENAME) @_wrap_pagename def BASEPAGENAME(self, pagename):
def SUBPAGENAME(self, args): """[MW1.6+] Returns the name of the current page, excluding parent pages ('Title/Subtitle' becomes 'Subtitle'). """ return self.pagename.split('/')[-1]
b84fcb106b1dc6f3f55e2c6f9bde6419128e9fba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/b84fcb106b1dc6f3f55e2c6f9bde6419128e9fba/magics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10025, 30633, 21150, 12, 2890, 16, 833, 4672, 3536, 63, 49, 59, 21, 18, 26, 15, 65, 2860, 326, 508, 434, 326, 783, 1363, 16, 19560, 982, 4689, 7707, 4247, 19, 1676, 2649, 11, 12724, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10025, 30633, 21150, 12, 2890, 16, 833, 4672, 3536, 63, 49, 59, 21, 18, 26, 15, 65, 2860, 326, 508, 434, 326, 783, 1363, 16, 19560, 982, 4689, 7707, 4247, 19, 1676, 2649, 11, 12724, ...
raise NotImplementedError(self.read_until)
lines = [] term = terminator + '\n' while True: line = self.input.readline() if line == term: break else: lines.append(line) return ''.join(lines)
def read_until(self, terminator): """Read the input stream until the terminator is found. Throws MissingTerminator if the terminator is not found.
205d62536829a9d49825b39b76969a03da76258e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8703/205d62536829a9d49825b39b76969a03da76258e/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 12198, 12, 2890, 16, 24965, 4672, 3536, 1994, 326, 810, 1407, 3180, 326, 24965, 353, 1392, 18, 225, 22435, 10230, 31868, 309, 326, 24965, 353, 486, 1392, 18, 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, 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, 855, 67, 12198, 12, 2890, 16, 24965, 4672, 3536, 1994, 326, 810, 1407, 3180, 326, 24965, 353, 1392, 18, 225, 22435, 10230, 31868, 309, 326, 24965, 353, 486, 1392, 18, 2, -100, -100, -100...
if not WakeOnLan.WakeOnLan("%s"%mac):
if not WakeOnLan("%s"%mac):
def wol_one(self, widget, ip): if not self.get_client(): return if self.main.config.GetVar("scan_network_method") != "static": msg=(_("Wake On Lan only works with static list.\n\nEnable scan method \"static\" in Preferences\nand (wake on lan) support in bios of clients." )) shared.info_msg ( msg ) return msg=_( _("Do you want boot %s client?" %ip)) if shared.ask_msg ( msg ): data=[] hostslist=self.main.config.GetVar("statichosts") #eth=self.main.config.GetVar("network_interface") if hostslist == "": return data=hostslist.split("#") data=data[:-1] for host in data: mip, mac=host.split("|") if mip == self.main.selected_ip: if mac == "": self.main.write_into_statusbar(_("No register MAC address for ip: \"%s\"")%ip) continue print_debug("Send magic packet to mac=%s" %mac) if not WakeOnLan.WakeOnLan("%s"%mac): self.main.write_into_statusbar(_("Not valid MAC address: \"%s\"")%mac)
5df28d130fb730bac7b6ec68e4c44e143b006e97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13520/5df28d130fb730bac7b6ec68e4c44e143b006e97/wakeonlan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 355, 67, 476, 12, 2890, 16, 3604, 16, 2359, 4672, 309, 486, 365, 18, 588, 67, 2625, 13332, 327, 309, 365, 18, 5254, 18, 1425, 18, 967, 1537, 2932, 9871, 67, 5185, 67, 2039, 7923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 355, 67, 476, 12, 2890, 16, 3604, 16, 2359, 4672, 309, 486, 365, 18, 588, 67, 2625, 13332, 327, 309, 365, 18, 5254, 18, 1425, 18, 967, 1537, 2932, 9871, 67, 5185, 67, 2039, 7923...
self.removeRow(row) self.emit(SIGNAL('layoutChanged()'))
self.beginRemoveRows(QModelIndex(), row, row) self.db.delete_books(rows) self.endRemoveRows()
def delete_books(self, indices): rows = [ i.row() for i in indices ] for row in rows: self.removeRow(row) self.emit(SIGNAL('layoutChanged()')) self.emit(SIGNAL('deleted()'))
93a1a15533aedead8d2d52d77be0136dbf38c259 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/93a1a15533aedead8d2d52d77be0136dbf38c259/library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 12567, 12, 2890, 16, 4295, 4672, 2595, 273, 306, 277, 18, 492, 1435, 364, 277, 316, 4295, 308, 364, 1027, 316, 2595, 30, 365, 18, 10086, 3288, 4300, 12, 53, 1488, 1016, 9334,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12567, 12, 2890, 16, 4295, 4672, 2595, 273, 306, 277, 18, 492, 1435, 364, 277, 316, 4295, 308, 364, 1027, 316, 2595, 30, 365, 18, 10086, 3288, 4300, 12, 53, 1488, 1016, 9334,...
else:
if opts.enable or args:
def do_scan(self, subcmd, opts, *args): """${cmd_name}: scan mirrors
8fba047d38852560b8692d6cac6aa555ddfdf510 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3890/8fba047d38852560b8692d6cac6aa555ddfdf510/mirrordoctor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 9871, 12, 2890, 16, 720, 4172, 16, 1500, 16, 380, 1968, 4672, 3536, 18498, 4172, 67, 529, 6713, 4135, 312, 27026, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 9871, 12, 2890, 16, 720, 4172, 16, 1500, 16, 380, 1968, 4672, 3536, 18498, 4172, 67, 529, 6713, 4135, 312, 27026, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
milestones = [m for m in milestones if 'MILESTONE_VIEW' in req.perm(m.resource)]
if req: milestones = [m for m in milestones if 'MILESTONE_VIEW' in req.perm(m.resource)]
def template_data(self, context, tickets, orig_list=None, orig_time=None, req=None): clauses = [] for clause in self.constraints: constraints = {} for k, v in clause.items(): constraint = {'values': [], 'mode': ''} for val in v: neg = val.startswith('!') if neg: val = val[1:] mode = '' if val[:1] in ('~', '^', '$') \ and not val in self.substitutions: mode, val = val[:1], val[1:] constraint['mode'] = (neg and '!' or '') + mode constraint['values'].append(val) constraints[k] = constraint clauses.append(constraints)
cb4a777662f2a5e7e2f833a891854cd008ff342d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/cb4a777662f2a5e7e2f833a891854cd008ff342d/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1542, 67, 892, 12, 2890, 16, 819, 16, 24475, 16, 1647, 67, 1098, 33, 7036, 16, 1647, 67, 957, 33, 7036, 16, 1111, 33, 7036, 4672, 14093, 273, 5378, 364, 6591, 316, 365, 18, 11967, 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, 1542, 67, 892, 12, 2890, 16, 819, 16, 24475, 16, 1647, 67, 1098, 33, 7036, 16, 1647, 67, 957, 33, 7036, 16, 1111, 33, 7036, 4672, 14093, 273, 5378, 364, 6591, 316, 365, 18, 11967, 30...
x1, x2 : array_like of string_ or unicode_
x1, x2 : array_like of str or unicode
def greater(x1, x2): """ Return (x1 > x2) element-wise. Unlike `numpy.greater`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters ---------- x1, x2 : array_like of string_ or unicode_ Input arrays of the same shape. Returns ------- out : {ndarray, bool} Output array of bools, or a single bool if x1 and x2 are scalars. See Also -------- equal, not_equal, greater_equal, less_equal, less """ return compare_chararrays(x1, x2, '>', True)
05324d0e986a1012a342e2650b3883e13a285029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/05324d0e986a1012a342e2650b3883e13a285029/defchararray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6802, 12, 92, 21, 16, 619, 22, 4672, 3536, 2000, 261, 92, 21, 405, 619, 22, 13, 930, 17, 2460, 18, 225, 25448, 1375, 15974, 18, 11556, 2045, 9191, 333, 5826, 353, 9591, 635, 1122, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6802, 12, 92, 21, 16, 619, 22, 4672, 3536, 2000, 261, 92, 21, 405, 619, 22, 13, 930, 17, 2460, 18, 225, 25448, 1375, 15974, 18, 11556, 2045, 9191, 333, 5826, 353, 9591, 635, 1122, 25...
sources = ['sage/ext/arith.pyx', 'sage/rings/integer.pyx'],
sources = ['sage/ext/arith.pyx', 'sage/rings/integer.pyx', \ 'sage/ext/mpn_pylong.c', 'sage/ext/mpz_pylong.c'],
def needs_c_lib_build(): lib = '../../local/lib/libcsage.so' files = os.listdir( 'c_lib/src' ) src_files = ['c_lib/src/' + f for f in files if is_src_file( f )] src_files += ['c_lib/configure', 'c_lib/Makefile'] for f in src_files: if is_older( f, lib ): return True return False
5bdce1b4b9791f00a34e31aa84f44d5dc3b3f3fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5bdce1b4b9791f00a34e31aa84f44d5dc3b3f3fd/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4260, 67, 71, 67, 2941, 67, 3510, 13332, 2561, 273, 296, 16644, 3729, 19, 2941, 19, 2941, 2143, 410, 18, 2048, 11, 1390, 273, 1140, 18, 1098, 1214, 12, 296, 71, 67, 2941, 19, 4816, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4260, 67, 71, 67, 2941, 67, 3510, 13332, 2561, 273, 296, 16644, 3729, 19, 2941, 19, 2941, 2143, 410, 18, 2048, 11, 1390, 273, 1140, 18, 1098, 1214, 12, 296, 71, 67, 2941, 19, 4816, 1...
def _parsebody(self, container, fp):
return firstbodyline def _parsebody(self, container, fp, firstbodyline=None):
def _parseheaders(self, container, fp): # Parse the headers, returning a list of header/value pairs. None as # the header means the Unix-From header. lastheader = '' lastvalue = [] lineno = 0 while True: # Don't strip the line before we test for the end condition, # because whitespace-only header lines are RFC compliant # continuation lines. line = fp.readline() if not line: break line = line.splitlines()[0] if not line: break # Ignore the trailing newline lineno += 1 # Check for initial Unix From_ line if line.startswith('From '): if lineno == 1: container.set_unixfrom(line) continue elif self._strict: raise Errors.HeaderParseError( 'Unix-from in headers after first rfc822 header') else: # ignore the wierdly placed From_ line # XXX: maybe set unixfrom anyway? or only if not already? continue # Header continuation line if line[0] in ' \t': if not lastheader: raise Errors.HeaderParseError( 'Continuation line seen before first header') lastvalue.append(line) continue # Normal, non-continuation header. BAW: this should check to make # sure it's a legal header, e.g. doesn't contain spaces. Also, we # should expose the header matching algorithm in the API, and # allow for a non-strict parsing mode (that ignores the line # instead of raising the exception). i = line.find(':') if i < 0: if self._strict: raise Errors.HeaderParseError( "Not a header, not a continuation: ``%s''"%line) elif lineno == 1 and line.startswith('--'): # allow through duplicate boundary tags. continue else: raise Errors.HeaderParseError( "Not a header, not a continuation: ``%s''"%line) if lastheader: container[lastheader] = NL.join(lastvalue) lastheader = line[:i] lastvalue = [line[i+1:].lstrip()] # Make sure we retain the last header if lastheader: container[lastheader] = NL.join(lastvalue)
29cf8f613a5699943f15196d8af7711688c174ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/29cf8f613a5699943f15196d8af7711688c174ea/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 2485, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1607, 16, 5785, 279, 666, 434, 1446, 19, 1132, 5574, 18, 225, 599, 487, 468, 326, 1446, 4696, 326, 9480, 17, 1265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 2485, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1607, 16, 5785, 279, 666, 434, 1446, 19, 1132, 5574, 18, 225, 599, 487, 468, 326, 1446, 4696, 326, 9480, 17, 1265, ...
self.frame_vbox.Add(self.top_hbox, 0, wx.EXPAND)
def __init__(self): wx.Locale(wx.LOCALE_LOAD_DEFAULT) self.app = wx.App(True, "mlox.err") print_version() self.can_update = True self.dir = os.getcwd() # setup widgets default_font = wx.Font(-1, family=wx.FONTFAMILY_DEFAULT, style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL, underline=False, face="", encoding=wx.FONTENCODING_SYSTEM) size = default_font.GetPointSize() self.label_font = wx.Font(size + 2, family=wx.FONTFAMILY_DEFAULT, style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_BOLD) self.button_font = wx.Font(size + 6, family=wx.FONTFAMILY_DEFAULT, style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_BOLD) self.frame = wx.Frame(None, wx.ID_ANY, ("mlox %s" % Version)) self.frame.SetSizeHints(800,600) self.frame.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DFACE)) self.logo = wx.Panel(self.frame, -1) wx.StaticBitmap(self.logo, bitmap=wx.BitmapFromImage(wx.Image("mlox.gif", wx.BITMAP_TYPE_GIF))) self.label_stats = wx.StaticText(self.frame, -1, _["Statistics"]) self.label_stats.SetFont(self.label_font) self.txt_stats = wx.TextCtrl(self.frame, -1, "", style=wx.TE_READONLY|wx.TE_MULTILINE|wx.TE_RICH2) self.txt_stats.SetFont(default_font) if Opt.AutoFocus: self.txt_stats.Bind(wx.EVT_ENTER_WINDOW, lambda e: self.txt_stats.SetFocus())
07c6564afc09f1eae18d93180e08f3e41b8bb49e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/07c6564afc09f1eae18d93180e08f3e41b8bb49e/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 7075, 18, 3916, 12, 27226, 18, 25368, 67, 7783, 67, 5280, 13, 365, 18, 2910, 273, 7075, 18, 3371, 12, 5510, 16, 315, 81, 383, 92, 18, 370, 7923, 1172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 7075, 18, 3916, 12, 27226, 18, 25368, 67, 7783, 67, 5280, 13, 365, 18, 2910, 273, 7075, 18, 3371, 12, 5510, 16, 315, 81, 383, 92, 18, 370, 7923, 1172...
else: raise NotFound(self.context, name, request)
raise NotFound(self.context, name, request)
def publishTraverse(self, request, name): # Note: the way the code is written now lets the user access # existing timetables even if their name refers to a deleted # term/schema. Not sure if that is a good or a bad thing. try: return self.context[name] except KeyError: app = getSchoolToolApplication() try: term, schema = name.split('.') except ValueError: raise NotFound(self.context, name, request) if term in app['terms'] and schema in app['ttschemas']: return NullTimetable(self.context, name) else: raise NotFound(self.context, name, request)
47b4d3471af281c255eb5f03ea67ed8d1763b81d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/47b4d3471af281c255eb5f03ea67ed8d1763b81d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 29654, 12, 2890, 16, 590, 16, 508, 4672, 468, 3609, 30, 326, 4031, 326, 981, 353, 5941, 2037, 14557, 326, 729, 2006, 468, 2062, 26668, 1538, 5456, 309, 3675, 508, 21368, 358, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 29654, 12, 2890, 16, 590, 16, 508, 4672, 468, 3609, 30, 326, 4031, 326, 981, 353, 5941, 2037, 14557, 326, 729, 2006, 468, 2062, 26668, 1538, 5456, 309, 3675, 508, 21368, 358, 279, ...
revision = request.POST.get('at_rev', None) or revision
def index(self, repo_name, revision, f_path): revision = request.POST.get('at_rev', None) or revision hg_model = HgModel() c.repo = repo = hg_model.get_repo(c.repo_name) c.f_path = f_path try: c.changeset = repo.get_changeset(repo._get_revision(revision)) c.cur_rev = c.changeset.raw_id c.rev_nr = c.changeset.revision c.files_list = c.changeset.get_node(f_path) c.file_history = self._get_history(repo, c.files_list, f_path) except RepositoryError: c.files_list = None return render('files/files.html')
b267e94412adf972a6fb5cd5703fe4b43c744305 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/b267e94412adf972a6fb5cd5703fe4b43c744305/files.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 16, 3538, 67, 529, 16, 6350, 16, 284, 67, 803, 4672, 22576, 67, 2284, 273, 670, 75, 1488, 1435, 276, 18, 7422, 273, 3538, 273, 22576, 67, 2284, 18, 588, 67, 7422, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 16, 3538, 67, 529, 16, 6350, 16, 284, 67, 803, 4672, 22576, 67, 2284, 273, 670, 75, 1488, 1435, 276, 18, 7422, 273, 3538, 273, 22576, 67, 2284, 18, 588, 67, 7422, 12, ...
(re.compile(u'¨\s*(<br.*?>)*\s*e', re.UNICODE), lambda match: u'ë'), (re.compile(u'¨\s*(<br.*?>)*\s*E', re.UNICODE), lambda match: u'Ë'), (re.compile(u'¨\s*(<br.*?>)*\s*i', re.UNICODE), lambda match: u'ï'), (re.compile(u'¨\s*(<br.*?>)*\s*I', re.UNICODE), lambda match: u'Ï'), (re.compile(u'¨\s*(<br.*?>)*\s*a', re.UNICODE), lambda match: u'ä'), (re.compile(u'¨\s*(<br.*?>)*\s*A', re.UNICODE), lambda match: u'Ä'),
def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@charset')): ans.append(XHTML_CSS_NAMESPACE.strip()) namespaced = True ans.append(line)
3e24b6a1152f7fcd4694023d0e95fc81ae802e08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/3e24b6a1152f7fcd4694023d0e95fc81ae802e08/preprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 501, 16, 527, 67, 4937, 33, 8381, 4672, 628, 26139, 266, 18, 73, 12567, 18, 15548, 70, 18, 1969, 1930, 30551, 67, 10276, 67, 11368, 501, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 501, 16, 527, 67, 4937, 33, 8381, 4672, 628, 26139, 266, 18, 73, 12567, 18, 15548, 70, 18, 1969, 1930, 30551, 67, 10276, 67, 11368, 501, 273, 365, 18, ...
cache = self.context["cache"] cacheId = "class-%s" % (self.path,) classinfo, _ = cache.readmulti(cacheId, self.path)
classinfo, _ = self._getClassCache()
def classVariants(self, generate=True):
a1279da621ac20b7821dec8ec07f0f8f6cdff441 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/a1279da621ac20b7821dec8ec07f0f8f6cdff441/Class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 667, 21165, 12, 2890, 16, 2103, 33, 5510, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 667, 21165, 12, 2890, 16, 2103, 33, 5510, 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,...
raise TestFailed, 'zip() - no args, expected TypeError, got', e
raise TestFailed, 'zip() - no args, expected TypeError, got %s' % e
def __getitem__(self, i): if i < 0 or i > 2: raise IndexError return i + 4
2f5d2fbd3d0565f41dd1efc0368a7ac737a67164 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2f5d2fbd3d0565f41dd1efc0368a7ac737a67164/test_b2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 411, 374, 578, 277, 405, 576, 30, 1002, 10195, 327, 277, 397, 1059, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 411, 374, 578, 277, 405, 576, 30, 1002, 10195, 327, 277, 397, 1059, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
log.error('Failed to get ' + str(fileId) + ' mtime : ' + str(e)) raise monitors.OmeroFSError('Failed to get ' + str(fileId) + ' mtime : ' + str(e))
log.error('Failed to get ' + str(fileId) + ' mtime : ' + str(e)) raise monitors.OmeroFSError('Failed to get ' + str(fileId) + ' mtime : ' + str(e))
def getMTime(self, fileId, current=None): """ Return the mtime of the file. :Parameters: fileId : string A string uniquely identifying a file on this Monitor. current An ICE context, this parameter is required to be present in an ICE interface method. :return: mtime :rtype: float """ try: pathString = self._getPathString(fileId) except Exception, e: log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
c12bc7fb04f687c05f37bb5a6eba2577b9556cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/c12bc7fb04f687c05f37bb5a6eba2577b9556cda/MonitorServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2108, 950, 12, 2890, 16, 21223, 16, 783, 33, 7036, 4672, 3536, 2000, 326, 13158, 434, 326, 585, 18, 225, 294, 2402, 30, 21223, 294, 533, 432, 533, 30059, 29134, 279, 585, 603, 333, 140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2108, 950, 12, 2890, 16, 21223, 16, 783, 33, 7036, 4672, 3536, 2000, 326, 13158, 434, 326, 585, 18, 225, 294, 2402, 30, 21223, 294, 533, 432, 533, 30059, 29134, 279, 585, 603, 333, 140...
root + 'us'])
root + 'us', root + 'u'])
def get_variants(word): # every possible legitimate spelling of this word, always lower # case to give a case insensitive sort (see vortaro/models.py) variants = [word.lower()] if is_infinitive(word): root = word[:-1] variants.extend([root + 'is', root + 'as', root + 'os', root + 'us']) elif is_declinable_adjective(word): variants.extend([word + 'j', word + 'n', word + 'jn']) elif is_declinable_noun(word): variants.extend([word + 'j', word + 'n', word + 'jn']) elif is_declinable_adverb(word): variants.extend([word + 'n']) for word in copy(variants): if word != to_x_system(word): variants.append(to_x_system(word)) if word != to_h_system(word): variants.append(to_h_system(word)) return variants
a50cf9397336310b57d4c3456b01bfd2ff4c6840 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14856/a50cf9397336310b57d4c3456b01bfd2ff4c6840/generate_initial_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15886, 12, 1095, 4672, 468, 3614, 3323, 4553, 305, 4988, 22377, 310, 434, 333, 2076, 16, 3712, 2612, 468, 648, 358, 8492, 279, 648, 17904, 1524, 261, 5946, 331, 499, 14349, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15886, 12, 1095, 4672, 468, 3614, 3323, 4553, 305, 4988, 22377, 310, 434, 333, 2076, 16, 3712, 2612, 468, 648, 358, 8492, 279, 648, 17904, 1524, 261, 5946, 331, 499, 14349, 19, ...
self.statusbar_msg( sbar_text + " [not yet implemented]")
desc = sbar_text + " [not yet implemented]" self.drag_handler.describe_drag = desc self.statusbar_msg( desc + " <this suffix should not be seen>" )
def advise_starting_drag_and_get_dragobj(self, drag_type, nodes): """Our current drag_handler can call this to advise us that it started a drag of given type on given nodes, and that we should highlight the original nodes to indicate this, and that if we get any drop-related events (e.g. dragEnter, dragMove, dragLeave) that we should also highlight the possible drop points (assuming the potential drop is this drag it started). Also it wants a QDragObject from us, so we have to make one and return it! (It will then start the drag on it in the right way... unless we decide to move that code from it to here, as well. #e) """ #####@@@@@ moved from caller (next 2 paras), works here yet? # make up some text to be dragged in case the custom pixmap doesn't work or is nim ## text = "x\n%s %d item(s)" % ... # this results in appearance (w/o custom pixmap) of "x move 5 items..." dragobj_text = "%s %d item(s)" % (drag_type, len(nodes)) # e.g. "copy 5 item(s)" dragobj_text = fix_plurals(dragobj_text) # e.g. "copy 5 items" or "move 1 item" -- no "ing" to keep it as short as possible ## works but not very useful: for node in self.nodes: dragobj_text += "\n %s" % node.name ####@@@@ use the above to verify nodes are in the right order! and might be more useful for history or sbar...
8e76c375339a6ae063e685fcb0b4bee3c03d78cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8e76c375339a6ae063e685fcb0b4bee3c03d78cd/TreeWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17825, 784, 67, 18526, 67, 15997, 67, 464, 67, 588, 67, 15997, 2603, 12, 2890, 16, 8823, 67, 723, 16, 2199, 4672, 3536, 51, 295, 783, 8823, 67, 4176, 848, 745, 333, 358, 17825, 784, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17825, 784, 67, 18526, 67, 15997, 67, 464, 67, 588, 67, 15997, 2603, 12, 2890, 16, 8823, 67, 723, 16, 2199, 4672, 3536, 51, 295, 783, 8823, 67, 4176, 848, 745, 333, 358, 17825, 784, ...
raise ImportError, 'No module named ' + module_name
raise ImportError, 'No module named ' + head
def load_component(name, path=None, globals=None, locals=None): if '.' in name: i = name.find('.') head, tail = name[:i], name[i + 1:] else: head, tail = name, '' module = _load_module(head, head, None, path) if not module: raise ImportError, 'No module named ' + module_name while tail: i = tail.find('.') if i < 0: i = len(tail) head, tail = tail[:i], tail[i + 1:] module_name = '%s.%s' % (module.__name__, head) module = _load_module(head, module_name, module, path) if not module: raise ImportError, 'No module named ' + module_name
7521ff6a64105a61512e4be8eef2a41e25effbe7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/7521ff6a64105a61512e4be8eef2a41e25effbe7/loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 4652, 12, 529, 16, 589, 33, 7036, 16, 10941, 33, 7036, 16, 8985, 33, 7036, 4672, 309, 2611, 316, 508, 30, 277, 273, 508, 18, 4720, 2668, 1093, 13, 910, 16, 5798, 273, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 4652, 12, 529, 16, 589, 33, 7036, 16, 10941, 33, 7036, 16, 8985, 33, 7036, 4672, 309, 2611, 316, 508, 30, 277, 273, 508, 18, 4720, 2668, 1093, 13, 910, 16, 5798, 273, 508, ...
self.attrs = { 'FAILED': curses.color_pair(1) | curses.A_BOLD, 'SUCCESS': curses.color_pair(2) | curses.A_BOLD }
self.attrs = [ ('DONE(?!:)', curses.color_pair(3) | curses.A_BOLD), ('FAILED(?!:)', curses.color_pair(1) | curses.A_BOLD), ('SUCCESS(?!:)', curses.color_pair(2) | curses.A_BOLD), ('(?<=DONE:)\s+[1-9]\d*', curses.color_pair(3) | curses.A_BOLD), ('(?<=Failing jobs:)\s+[1-9]\d*', curses.color_pair(1) | curses.A_BOLD), ('(?<=FAILED:)\s+[1-9]\d*', curses.color_pair(1) | curses.A_BOLD), ('(?<=Successful jobs:)\s+[1-9]\d*', curses.color_pair(2) | curses.A_BOLD), ('(?<=SUCCESS:)\s+[1-9]\d*', curses.color_pair(2) | curses.A_BOLD), ] self.regex = re.compile('(%s)' % '|'.join(map(lambda (a, b): a, self.attrs))) def attributes(self, string, pos): """Retrieve the attributes for a match in string at position pos. This is a helper routine for write(). """ for (expr, attr) in self.attrs: match = re.search(expr, string) if match and match.start() == pos: return attr return 0
def __init__(self, *args): (self.stream, self.screen) = args self.logged = True
d126b76a0f0329d1b0298968a8c61db78078c97a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8443/d126b76a0f0329d1b0298968a8c61db78078c97a/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 261, 2890, 18, 3256, 16, 365, 18, 9252, 13, 273, 833, 365, 18, 19385, 273, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 261, 2890, 18, 3256, 16, 365, 18, 9252, 13, 273, 833, 365, 18, 19385, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if not dict[field] == s_time : if self.logger: self.logger.ReportFailure("(On start time Checking) || object start time = %s ; expected start time = %s" %(s_time, dict[field]))
if not value == s_time : if self.logger: self.logger.ReportFailure("(On start time Checking) || object start time = %s ; expected start time = %s" %(s_time, 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 changing values for field in dict.keys(): if field == "displayName": # display name checking if self.isMailMessage: d_name = "%s" %self.item.subject else: d_name = "%s" %self.item.displayName if not dict[field] == d_name : if self.logger: self.logger.ReportFailure("(On display name Checking) || object title = %s ; expected title = %s" %(d_name, dict[field])) else: if self.logger: self.logger.ReportPass("(On display name Checking)") elif field == "startDate": # start date checking startTime = self.item.startTime s_date = self.formatDate("%s/%s/%s" %(startTime.month, startTime.day, startTime.year) ) dictDate = self.formatDate(dict[field]) if not dictDate == s_date : if self.logger: self.logger.ReportFailure("(On start date Checking) || object start date = %s ; expected start date = %s" %(s_date, dictDate)) else: if self.logger: self.logger.ReportPass("(On start date Checking)") elif field == "startTime": # start time checking startTime = self.item.startTime s_time = getTime(startTime) if not dict[field] == s_time : if self.logger: self.logger.ReportFailure("(On start time Checking) || object start time = %s ; expected start time = %s" %(s_time, dict[field])) else: if self.logger: self.logger.ReportPass("(On start time Checking)") elif field == "endDate": # end date checking endTime = self.item.endTime e_date = self.formatDate("%s/%s/%s" %(endTime.month, endTime.day, endTime.year)) dictDate = self.formatDate(dict[field]) if not dictDate == e_date : if self.logger: self.logger.ReportFailure("(On end date Checking) || object end date = %s ; expected end date = %s" %(e_date, dictDate)) else: if self.logger: self.logger.ReportPass("(On end date Checking)") elif field == "endTime": # end time checking endTime = self.item.endTime e_time = getTime(endTime) if not dict[field] == e_time : if self.logger: self.logger.ReportFailure("(On end time Checking) || object end time = %s ; expected end time = %s" %(e_time, dict[field])) else: if self.logger: self.logger.ReportPass("(On end time Checking)") elif field == "location": # location checking loc = "%s" %self.item.location if not dict[field] == loc : if self.logger: self.logger.ReportFailure("(On location Checking) || object location = %s ; expected location = %s" %(loc, dict[field])) else: if self.logger: self.logger.ReportPass("(On location Checking)") elif field == "body": # body checking body = "%s" %self.item.body if not dict[field] == body : if self.logger: self.logger.ReportFailure("(On body Checking) || object body = %s ; expected body = %s" %(body, dict[field])) else: if self.logger: self.logger.ReportPass("(On body Checking)") elif field == "fromAddress": # from address checking f = "%s" %self.item.fromAddress if not dict[field] == f : if self.logger: self.logger.ReportFailure("(On from address Checking) || object from address = %s ; expected from address = %s" %(f, dict[field])) else: if self.logger: self.logger.ReportPass("(On from address Checking)") elif field == "toAddress": # to address checking t = "%s" %self.item.toAddress if not dict[field] == t : if self.logger: self.logger.ReportFailure("(On to address Checking) || object to address = %s ; expected to address = %s" %(t, dict[field])) else: if self.logger: self.logger.ReportPass("(On to address Checking)") elif field == "status": # status checking status = "%s" %string.upper(self.item.transparency) if not dict[field] == status : if self.logger: self.logger.ReportFailure("(On status Checking) || object status = %s ; expected status = %s" %(status, dict[field])) else: if self.logger: self.logger.ReportPass("(On status Checking)") elif field == "timeZone": # time zone checking timeZone = "%s" %self.item.startTime.tzname() if not dict[field] == timeZone : if self.logger: self.logger.ReportFailure("(On time zone Checking) || object time zone = %s ; expected time zone = %s" %(timeZone, dict[field])) else: if self.logger: self.logger.ReportPass("(On time zone Checking)") elif field == "alarm": # status checking alarm = self.item.startTime - self.item.reminderTime field = timedelta(minutes = string.atoi(dict[field])) if not field == alarm : if self.logger: self.logger.ReportFailure("(On alarm Checking) || object alarm = %s ; expected alarm = %s" %(alarm, field)) else: if self.logger: self.logger.ReportPass("(On alarm Checking)") elif field == "allDay": # status checking allDay = self.item.allDay if not dict[field] == allDay : if self.logger: self.logger.ReportFailure("(On all Day Checking) || object all day = %s ; expected all day = %s" %(allDay, dict[field])) else: if self.logger: self.logger.ReportPass("(On all Day Checking)") elif field == "stampMail": # Mail stamp checking kind = "%s" %self.item.getKind() if not string.find(kind, "MailMessage") == -1: stampMail = True else: stampMail = False if not dict[field] == stampMail : if self.logger: self.logger.ReportFailure("(On Mail Stamp Checking) || object Mail Stamp = %s ; expected Mail Stamp = %s" %(stampMail, dict[field])) else: if self.logger: self.logger.ReportPass("(On Mail Stamp Checking)") elif field == "stampTask": # Task stamp checking kind = "%s" %self.item.getKind() if not string.find(kind, "Task") == -1: stampTask = True else: stampTask = False if not dict[field] == stampTask : if self.logger: self.logger.ReportFailure("(On Task Stamp Checking) || object Task Stamp = %s ; expected Task Stamp = %s" %(stampTask, dict[field])) else: if self.logger: self.logger.ReportPass("(On Task Stamp Checking)") elif field == "stampEvent": # Event stamp checking kind = "%s" %self.item.getKind() if not string.find(kind, "CalendarEvent") == -1: stampEvent = True else: stampEvent = False if not dict[field] == stampEvent : if self.logger: self.logger.ReportFailure("(On Event Stamp Checking) || object Event Stamp = %s ; expected Event Stamp = %s" %(stampEvent, dict[field])) else: if self.logger: self.logger.ReportPass("(On Event Stamp Checking)") else: # Wrong check => set the report state to unchecked if self.logger: self.logger.SetChecked(False) #report the checkings if self.logger: self.logger.Report("Object state")
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...
cmd.deferred.addBoth(lambda x, m=_mutable: m[0].disconnect() or x)
cmd.deferred.addBoth(lambda x, m=_mutable: m[0] and m[0].disconnect() or x)
def clientConnectionFailed(self, connector, reason): self.protocol.connectionFailed()
ad3d580424e15044c1b11ec33056d8e42a2c5fd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/ad3d580424e15044c1b11ec33056d8e42a2c5fd5/ftp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1004, 1952, 2925, 12, 2890, 16, 8703, 16, 3971, 4672, 365, 18, 8373, 18, 4071, 2925, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 1004, 1952, 2925, 12, 2890, 16, 8703, 16, 3971, 4672, 365, 18, 8373, 18, 4071, 2925, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
diaptr = afwDet.SourceSharedPtr()
diaptr = afwDet.SourcePtr()
def testFootprintsMeasure(self): """Check that we can measure the objects in a detectionSet"""
4b9a671d3f9d91fd86110cca79976df7cffebac7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6535/4b9a671d3f9d91fd86110cca79976df7cffebac7/Measure_1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 28103, 1188, 87, 7197, 12, 2890, 4672, 3536, 1564, 716, 732, 848, 6649, 326, 2184, 316, 279, 11649, 694, 8395, 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, 1842, 28103, 1188, 87, 7197, 12, 2890, 4672, 3536, 1564, 716, 732, 848, 6649, 326, 2184, 316, 279, 11649, 694, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'staff': v.status==STAFF,
'administrateur': v.status>COACH,
def add_echeance(request): """View: adds a deadline for user/group and course/module. """ # récup visiteur v = request.session['v'] if request.method == 'POST': if 'c' in request.POST: # dernière étape, recup des valeurs et sauvegarde de l'échéance g = Groupe.objects.get(id=request.POST['g']) uf = {} if request.POST['u'] == "0": u = None uf['id'], uf['nom_prenom'] = (0, _('== All Students ==')) else: u = Utilisateur.objects.get(id=request.POST['u']) uf['id'], uf['nom_prenom'] = (u.id, u.nom_prenom()) c = Cours.objects.get(id=request.POST['c']) c.title = c.titre(v.langue) f3 = EcheanceForm3(request.POST) lm = [(0, _('== All Modules =='))] lm.extend([(mc.module.id, mc.module.slug) for mc in c.modulecours_set.all()]) f3.fields['module'].choices = lm if f3.is_valid(): v.lastw = datetime.datetime.now() request.session['v'] = v v.save() if f3.cleaned_data['module'] == "0": m = None mf = {} mf['id'], mf['slug'] = (0, _('== All Modules ==')) else: m = Module.objects.get(id=f3.cleaned_data['module']) mf = m e = Echeance(groupe=g,utilisateur=u,cours=c,module=m, echeance=f3.cleaned_data['deadline']) e.save()
5622003147f995391ac97c1031fcc18f24ef8d30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11552/5622003147f995391ac97c1031fcc18f24ef8d30/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 8987, 73, 1359, 12, 2293, 4672, 3536, 1767, 30, 4831, 279, 14096, 364, 729, 19, 1655, 471, 4362, 19, 2978, 18, 3536, 468, 436, 132, 107, 71, 416, 2281, 1137, 295, 331, 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, 527, 67, 8987, 73, 1359, 12, 2293, 4672, 3536, 1767, 30, 4831, 279, 14096, 364, 729, 19, 1655, 471, 4362, 19, 2978, 18, 3536, 468, 436, 132, 107, 71, 416, 2281, 1137, 295, 331, 273, ...
return Numeric.ones(1,'d')
return ones(1,'d')
def nuttall(M,sym=1): """A minimum 4-term Blackman-Harris window according to Nuttall. """ if M < 1: return Numeric.array([]) if M == 1: return Numeric.ones(1,'d') odd = M % 2 if not sym and not odd: M = M+1 a = [0.3635819, 0.4891775, 0.1365995, 0.0106411] n = arange(0,M) fac = n*2*pi/(M-1.0) w = a[0] - a[1]*cos(fac) + a[2]*cos(2*fac) - a[3]*cos(3*fac) if not sym and not odd: w = w[:-1] return w
936da8591e6b92539aeda1c0c884ca93d37a2754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/936da8591e6b92539aeda1c0c884ca93d37a2754/signaltools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 322, 88, 454, 12, 49, 16, 8117, 33, 21, 4672, 3536, 37, 5224, 1059, 17, 6408, 22467, 4728, 17, 44, 5399, 291, 2742, 4888, 358, 423, 322, 88, 454, 18, 3536, 309, 490, 411, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 322, 88, 454, 12, 49, 16, 8117, 33, 21, 4672, 3536, 37, 5224, 1059, 17, 6408, 22467, 4728, 17, 44, 5399, 291, 2742, 4888, 358, 423, 322, 88, 454, 18, 3536, 309, 490, 411, 404, ...
return -1, -1, -1, None
def read_netstr(idx, data, tot): ldata = len(data) i = 0 lenstr = "" if ldata - idx < 11: data = data[idx:] + fd.read(8192) ldata = len(data) idx = 0
cba211f4d1a0d5da31433100af6323330d464458 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/373/cba211f4d1a0d5da31433100af6323330d464458/disco_worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2758, 701, 12, 3465, 16, 501, 16, 9997, 4672, 328, 892, 273, 562, 12, 892, 13, 277, 273, 374, 562, 701, 273, 1408, 309, 328, 892, 300, 2067, 411, 4648, 30, 501, 273, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2758, 701, 12, 3465, 16, 501, 16, 9997, 4672, 328, 892, 273, 562, 12, 892, 13, 277, 273, 374, 562, 701, 273, 1408, 309, 328, 892, 300, 2067, 411, 4648, 30, 501, 273, 501, ...
self.topFile.storeXml(xarchive)
self.currentFile.storeXml(xarchive)
def writeDescFile(self): """ Rewrites the desc file with the new patch information. """
2c81597aa70b8307a2253b59ef1df0354b72a056 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/2c81597aa70b8307a2253b59ef1df0354b72a056/PatchMaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 4217, 812, 12, 2890, 4672, 3536, 534, 359, 24047, 326, 3044, 585, 598, 326, 394, 4729, 1779, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 4217, 812, 12, 2890, 4672, 3536, 534, 359, 24047, 326, 3044, 585, 598, 326, 394, 4729, 1779, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def parse_clone_text(self, text):
def parse_vcs_bundle_file(self, content):
def parse_clone_text(self, text): url = rev = None for line in text.splitlines(): if not line.strip() or line.strip().startswith('#'): continue url_match = re.search(r'hg\s*pull\s*(.*)\s*', line) if url_match: url = url_match.group(1).strip() rev_match = re.search(r'^hg\s*update\s*-r\s*(.*)\s*', line) if rev_match: rev = rev_match.group(1).strip() if url and rev: return url, rev return None, None
4faa7a5f6c74f814cee91ccd722060b26857a0d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/4faa7a5f6c74f814cee91ccd722060b26857a0d3/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 18982, 67, 9991, 67, 768, 12, 2890, 16, 913, 4672, 880, 273, 5588, 273, 599, 364, 980, 316, 977, 18, 4939, 3548, 13332, 309, 486, 980, 18, 6406, 1435, 578, 980, 18, 6406, 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, 1109, 67, 18982, 67, 9991, 67, 768, 12, 2890, 16, 913, 4672, 880, 273, 5588, 273, 599, 364, 980, 316, 977, 18, 4939, 3548, 13332, 309, 486, 980, 18, 6406, 1435, 578, 980, 18, 6406, 7...
if not SDK.has_key("MACOSX"): SdkLocateMacOSX()
if "MACOSX" not in SDK: SdkLocateMacOSX()
def SdkLocatePython(): if (PkgSkip("PYTHON")==0): if (sys.platform == "win32"): (arch, osName) = platform.architecture() if arch == "32bit": SDK["PYTHON"] = "thirdparty/win32/win-python" else: SDK["PYTHON"] = "thirdparty/win64/win-python" if (not os.path.exists(SDK["PYTHON"])): SDK["PYTHON"] = "thirdparty/win-python" if (not os.path.exists(SDK["PYTHON"]+"/python.exe")): exit("Could not find thirdparty/win-python/python.exe!") os.system(SDK["PYTHON"].replace("/", "\\") + "\\python.exe -V > "+OUTPUTDIR+"/tmp/pythonversion 2>&1") pv=ReadFile(OUTPUTDIR+"/tmp/pythonversion") if (pv.startswith("Python ")==0): exit("python -V did not produce the expected output") pv = pv[7:10] SDK["PYTHONVERSION"]="python"+pv elif (sys.platform == "darwin"): if not SDK.has_key("MACOSX"): SdkLocateMacOSX() if (os.path.isdir("%s/System/Library/Frameworks/Python.framework" % SDK["MACOSX"])): os.system("readlink %s/System/Library/Frameworks/Python.framework/Versions/Current > %s/tmp/pythonversion 2>&1" % (SDK["MACOSX"], OUTPUTDIR)) pv = ReadFile(OUTPUTDIR+"/tmp/pythonversion") SDK["PYTHON"] = SDK["MACOSX"]+"/System/Library/Frameworks/Python.framework/Headers" SDK["PYTHONVERSION"] = "python"+pv else: exit("Could not find the python framework!") else: os.system("python -V > "+OUTPUTDIR+"/tmp/pythonversion 2>&1") pv=ReadFile(OUTPUTDIR+"/tmp/pythonversion") if (pv.startswith("Python ")==0): exit("python -V did not produce the expected output") pv = pv[7:10] if (os.path.isdir("/usr/include/python"+pv)==0): exit("Python reports version "+pv+" but /usr/include/python"+pv+" is not installed.") SDK["PYTHON"]="/usr/include/python"+pv SDK["PYTHONVERSION"]="python"+pv
e0e3ede644b14dcbdc2136d9a8ff5730ebaa32a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e0e3ede644b14dcbdc2136d9a8ff5730ebaa32a7/makepandacore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3426, 1333, 340, 15774, 13332, 309, 261, 11264, 6368, 2932, 16235, 20131, 7923, 631, 20, 4672, 309, 261, 9499, 18, 9898, 422, 315, 8082, 1578, 6, 4672, 261, 991, 16, 1140, 461, 13, 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, 3426, 1333, 340, 15774, 13332, 309, 261, 11264, 6368, 2932, 16235, 20131, 7923, 631, 20, 4672, 309, 261, 9499, 18, 9898, 422, 315, 8082, 1578, 6, 4672, 261, 991, 16, 1140, 461, 13, 273, ...
if record[treeview.sequence].get_state_attrs(
if field.get_state_attrs(
def drag_data_received(self, treeview, context, x, y, selection, info, etime): treeview.emit_stop_by_name('drag-data-received') if treeview.sequence: for record in self.screen.group: if record[treeview.sequence].get_state_attrs( record).get('readonly', False): return if not selection.data: return model = treeview.get_model() data = common.safe_eval(selection.data) drop_info = treeview.get_dest_row_at_pos(x, y) if drop_info: path, position = drop_info idx = path[0] if position in (gtk.TREE_VIEW_DROP_BEFORE, gtk.TREE_VIEW_DROP_INTO_OR_BEFORE): model.move(data, idx) else: model.move(data, idx + 1) context.drop_finish(False, etime) if treeview.sequence: self.screen.group.set_sequence(field=treeview.sequence)
abef52966549be74589fca36b4d05b8480f72c39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9151/abef52966549be74589fca36b4d05b8480f72c39/list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8823, 67, 892, 67, 15213, 12, 2890, 16, 2151, 1945, 16, 819, 16, 619, 16, 677, 16, 4421, 16, 1123, 16, 225, 2374, 4672, 2151, 1945, 18, 18356, 67, 5681, 67, 1637, 67, 529, 2668, 1599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8823, 67, 892, 67, 15213, 12, 2890, 16, 2151, 1945, 16, 819, 16, 619, 16, 677, 16, 4421, 16, 1123, 16, 225, 2374, 4672, 2151, 1945, 18, 18356, 67, 5681, 67, 1637, 67, 529, 2668, 1599...
path = normpath(path)
path = normpath(relpath(path))
def getcontents(self, path): if not self.exists(path): raise ResourceNotFoundError(path) path = normpath(path) try: contents = self.zf.read(path.encode(self.encoding)) except KeyError: raise ResourceNotFoundError(path) except RuntimeError: raise OperationFailedError("read file", path=path, msg="Zip file must be oppened with 'r' or 'a' to read") return contents
cf6ad09bba11fa01aaef149fc5b346dfe087766e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5579/cf6ad09bba11fa01aaef149fc5b346dfe087766e/zipfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3980, 12, 2890, 16, 589, 4672, 309, 486, 365, 18, 1808, 12, 803, 4672, 1002, 2591, 13276, 12, 803, 13, 589, 273, 20446, 12, 2878, 803, 12, 803, 3719, 775, 30, 2939, 273, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3980, 12, 2890, 16, 589, 4672, 309, 486, 365, 18, 1808, 12, 803, 4672, 1002, 2591, 13276, 12, 803, 13, 589, 273, 20446, 12, 2878, 803, 12, 803, 3719, 775, 30, 2939, 273, 365, 18...
if self._ref and self._ref():
if self._ref and self._ref() is not None:
def __nonzero__(self): if self._ref and self._ref(): return 1 else: return 0
18ee914f78ae6af526e18210af0dc865dcfdf04b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/18ee914f78ae6af526e18210af0dc865dcfdf04b/weakref.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 26449, 972, 12, 2890, 4672, 309, 365, 6315, 1734, 471, 365, 6315, 1734, 1435, 353, 486, 599, 30, 327, 404, 469, 30, 327, 374, 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, 1001, 26449, 972, 12, 2890, 4672, 309, 365, 6315, 1734, 471, 365, 6315, 1734, 1435, 353, 486, 599, 30, 327, 404, 469, 30, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 289) else quickfix.StringField.__init__(self, 289, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 576, 6675, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 576, 6675, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 9...
if not unpack: print "Resume point detected, skipping unpack operation..."
invalid_snapshot=False elif os.path.isfile(self.settings["source_path"]) and self.settings["source_path_md5sum"] != clst_unpack_md5sum: unpack=True invalid_snapshot=True else: if self.settings.has_key("SEEDCACHE"): if os.path.isdir(self.settings["source_path"]): unpack=True invalid_snapshot=False elif os.path.isfile(self.settings["source_path"]): unpack=True invalid_snapshot=True else: if os.path.isfile(self.settings["source_path"]): unpack=True invalid_snapshot=True elif os.path.isdir(self.settings["source_path"]): raise CatalystError,"source path is a dir but seedcache is not enabled"
def unpack(self): unpack=True
919c311ef5f3283aa181be51be2146d298b7407b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/919c311ef5f3283aa181be51be2146d298b7407b/generic_stage_target.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 12, 2890, 4672, 6167, 33, 5510, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 12, 2890, 4672, 6167, 33, 5510, 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, -10...
self.model.size['x'] = event.GetPosition().x self.model.size['y'] = event.GetPosition().y
def OnMove(self, event): self.model.size['x'] = event.GetPosition().x self.model.size['y'] = event.GetPosition().y """ Calling Skip causes wxWindows to continue processing the event, which will cause the parent class to get a crack at the event. """ event.Skip()
63eee33ceffbaf41edc0717242c99ded7fc46397 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/63eee33ceffbaf41edc0717242c99ded7fc46397/ChandlerWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 7607, 12, 2890, 16, 871, 4672, 3536, 21020, 6611, 14119, 7075, 10399, 358, 1324, 4929, 326, 871, 16, 1492, 903, 4620, 326, 982, 667, 358, 336, 279, 276, 21580, 622, 326, 871, 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, 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, 7607, 12, 2890, 16, 871, 4672, 3536, 21020, 6611, 14119, 7075, 10399, 358, 1324, 4929, 326, 871, 16, 1492, 903, 4620, 326, 982, 667, 358, 336, 279, 276, 21580, 622, 326, 871, 18, ...