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
catalog = getToolByName(content_instance, config.UID_CATALOG) if self.allowed_type_column in catalog.indexes(): kw = {self.allowed_type_column:self.allowed_types} else: kw = {'Type':self.allowed_types} results = catalog(**kw)
catalog = getToolByName(content_instance, 'portal_catalog') results = catalog(portal_type=self.allowed_types)
def Vocabulary(self, content_instance=None): # If we have a method providing the list of types go with it, # it can always pull allowed_types if it needs to (not that we # pass the field name) value = ObjectField.Vocabulary(self, content_instance) if value: return value results = [] if self.allowed_types: catalog = get...
589c8a00edeed82af11646c142742440f2908f59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/589c8a00edeed82af11646c142742440f2908f59/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 776, 23348, 12, 2890, 16, 913, 67, 1336, 33, 7036, 4672, 468, 971, 732, 1240, 279, 707, 17721, 326, 666, 434, 1953, 1960, 598, 518, 16, 468, 518, 848, 3712, 6892, 2935, 67, 2352, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 776, 23348, 12, 2890, 16, 913, 67, 1336, 33, 7036, 4672, 468, 971, 732, 1240, 279, 707, 17721, 326, 666, 434, 1953, 1960, 598, 518, 16, 468, 518, 848, 3712, 6892, 2935, 67, 2352, 309, ...
elif fn[-3:] in ["pdb","PDB"]: try: insertpdb(self.assy, fn) except: print_compact_traceback( "MWsemantics.py: fileInsert(): error inserting PDB file [%s]: " % fn ) env.history.message( redmsg( "Internal error while inserting PDB file: [ " + fn + " ]") ) else: self.assy.changed() env.history.message( cmd + "PDB file in...
def fileImport(self): # Code copied from fileInsert() slot method. Mark 060731. """Slot method for 'File > Import'. """ cmd = greenmsg("Import File: ") # This format list generated from the Open Babel wiki page: # http://openbabel.sourceforge.net/wiki/Babel#File_Formats formats = \ "All Files (*.*);;"\ "Molecular Mach...
e5d8879f8783f59d8b609bfd390c8b99c26b00c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e5d8879f8783f59d8b609bfd390c8b99c26b00c1/ops_files.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 5010, 12, 2890, 4672, 468, 3356, 9268, 628, 585, 4600, 1435, 4694, 707, 18, 6622, 374, 4848, 27, 6938, 18, 3536, 8764, 707, 364, 296, 812, 405, 6164, 10332, 3536, 1797, 273, 10004, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 5010, 12, 2890, 4672, 468, 3356, 9268, 628, 585, 4600, 1435, 4694, 707, 18, 6622, 374, 4848, 27, 6938, 18, 3536, 8764, 707, 364, 296, 812, 405, 6164, 10332, 3536, 1797, 273, 10004, ...
errStr = "ReplicationScheduler._execute: Failed to get a request list from RequestDB."
errStr = "ReplicationScheduler._execute: Failed to get channel queues from TransferDB."
def execute(self): """ The main agent execution method """
c1f8eb1d2bbc7cd4df2a54c42faff5c04a709853 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c1f8eb1d2bbc7cd4df2a54c42faff5c04a709853/ReplicationScheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
for ident in dotted_name[1:]:
for i in range(1, len(dotted_name)):
def lookup_dotted_name(self, dotted_name): """ @rtype: L{ValueDoc} """ valuedoc = self.lookup_name(dotted_name[0]) for ident in dotted_name[1:]: if valuedoc is None: return None if not isinstance(valuedoc, NamespaceDoc): return None valuedoc = valuedoc.children.get(ident).valuedoc return valuedoc
1fb4c317bfd16a777415b4874c4c8db19e81beff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/1fb4c317bfd16a777415b4874c4c8db19e81beff/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 67, 9811, 2344, 67, 529, 12, 2890, 16, 20965, 67, 529, 4672, 3536, 632, 86, 723, 30, 511, 95, 620, 1759, 97, 3536, 31037, 504, 273, 365, 18, 8664, 67, 529, 12, 9811, 2344, 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, 3689, 67, 9811, 2344, 67, 529, 12, 2890, 16, 20965, 67, 529, 4672, 3536, 632, 86, 723, 30, 511, 95, 620, 1759, 97, 3536, 31037, 504, 273, 365, 18, 8664, 67, 529, 12, 9811, 2344, 67, ...
D._embedding = self._embedding
D._embedding = self._embedding.copy()
def to_directed(self, implementation='networkx'): """ Returns a directed version of the graph. A single edge becomes two edges, one in each direction. EXAMPLE: sage: graphs.PetersenGraph().to_directed() Petersen graph: Digraph on 10 vertices
a17cf97d13353046a414697c0d5320af24770a31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/a17cf97d13353046a414697c0d5320af24770a31/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 26830, 12, 2890, 16, 4471, 2218, 5185, 92, 11, 4672, 3536, 2860, 279, 20830, 1177, 434, 326, 2667, 18, 432, 2202, 3591, 12724, 2795, 5231, 16, 1245, 316, 1517, 4068, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 26830, 12, 2890, 16, 4471, 2218, 5185, 92, 11, 4672, 3536, 2860, 279, 20830, 1177, 434, 326, 2667, 18, 432, 2202, 3591, 12724, 2795, 5231, 16, 1245, 316, 1517, 4068, 18, 225, ...
self.Grabber.key = self.key = mods self.Grabber.mods = self.mods = key
self.Grabber.key = self.key = key self.Grabber.mods = self.mods = mods
def RunEditDialog (self, widget): dlg = gtk.Dialog (_("Edit %s") % self.Setting.ShortDesc) dlg.set_position (gtk.WIN_POS_CENTER_ON_PARENT) dlg.set_transient_for (get_parent_toplevel (self.Widget)) dlg.add_button (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL) dlg.add_button (gtk.STOCK_OK, gtk.RESPONSE_OK).grab_default() dlg.se...
ce69a7ebcb576fbb1912429d83383d8e71ae8127 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7183/ce69a7ebcb576fbb1912429d83383d8e71ae8127/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 4666, 6353, 261, 2890, 16, 3604, 4672, 25840, 273, 22718, 18, 6353, 261, 67, 2932, 4666, 738, 87, 7923, 738, 365, 18, 5568, 18, 4897, 4217, 13, 25840, 18, 542, 67, 3276, 261, 452...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 4666, 6353, 261, 2890, 16, 3604, 4672, 25840, 273, 22718, 18, 6353, 261, 67, 2932, 4666, 738, 87, 7923, 738, 365, 18, 5568, 18, 4897, 4217, 13, 25840, 18, 542, 67, 3276, 261, 452...
backlinks = []
def footnote_backrefs(self, node): if self.settings.footnote_backlinks and node.hasattr('backrefs'): backrefs = node['backrefs'] if len(backrefs) == 1: self.context.append('') self.context.append('<a class="fn-backref" href="#%s" ' 'name="%s">' % (backrefs[0], node['id'])) else: i = 1 backlinks = [] for backref in back...
f76b74a8b2af798bcf89deb98687503f9b4c33c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/f76b74a8b2af798bcf89deb98687503f9b4c33c3/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14200, 7652, 67, 823, 9316, 12, 2890, 16, 756, 4672, 309, 365, 18, 4272, 18, 10923, 7652, 67, 823, 7135, 471, 756, 18, 5332, 1747, 2668, 823, 9316, 11, 4672, 1473, 9316, 273, 756, 3292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14200, 7652, 67, 823, 9316, 12, 2890, 16, 756, 4672, 309, 365, 18, 4272, 18, 10923, 7652, 67, 823, 7135, 471, 756, 18, 5332, 1747, 2668, 823, 9316, 11, 4672, 1473, 9316, 273, 756, 3292...
test_web_page_content(weburl + '/help/search?ln=fr', expected_text="Aide de recherche"))
test_web_page_content(weburl + '/help/?ln=fr', expected_text="Centre d'aide"))
def test_search_help_page_availability(self): """websearch - availability of Search Help page"""
c88cd4f1af40a1ac6a3f16aff626c22f3fcd06d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2139/c88cd4f1af40a1ac6a3f16aff626c22f3fcd06d6/websearch_regression_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3072, 67, 5201, 67, 2433, 67, 24318, 12, 2890, 4672, 3536, 4875, 3072, 300, 13395, 434, 5167, 11288, 1363, 8395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3072, 67, 5201, 67, 2433, 67, 24318, 12, 2890, 4672, 3536, 4875, 3072, 300, 13395, 434, 5167, 11288, 1363, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print self.stack print self.stackinfo if self.stackinfo[len(self.stack) + 1]: self.skip = self.skip - 1 del self.stackinfo[len(self.stack) + 1]
try: if self.stackinfo[len(self.stack) + 1]: self.skip = self.skip - 1 del self.stackinfo[len(self.stack) + 1] except KeyError: print '*** end_ifset: KeyError :', len(self.stack) + 1
def end_ifset(self): print self.stack print self.stackinfo if self.stackinfo[len(self.stack) + 1]: self.skip = self.skip - 1 del self.stackinfo[len(self.stack) + 1]
db6f5c4045c0343f80223a59ad6975c71dc11049 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/db6f5c4045c0343f80223a59ad6975c71dc11049/texi2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 430, 542, 12, 2890, 4672, 1172, 365, 18, 3772, 1172, 365, 18, 3772, 1376, 309, 365, 18, 3772, 1376, 63, 1897, 12, 2890, 18, 3772, 13, 397, 404, 14542, 365, 18, 7457, 273, 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, 679, 67, 430, 542, 12, 2890, 4672, 1172, 365, 18, 3772, 1172, 365, 18, 3772, 1376, 309, 365, 18, 3772, 1376, 63, 1897, 12, 2890, 18, 3772, 13, 397, 404, 14542, 365, 18, 7457, 273, 36...
if div and n>=3:
if div:
def tubedRegression(cache, dimensions, progressCallback = None): if not cache.findNearest: cache.findNearest = orange.FindNearestConstructor_BruteForce(cache.data, distanceConstructor=orange.ExamplesDistanceConstructor_Euclidean(), includeSame=False) if not cache.attrStat: cache.attrStat = orange.DomainBasicAttrStat(c...
838f9279384f7c326a0124c29d31974e232a9521 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/838f9279384f7c326a0124c29d31974e232a9521/orngPade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 373, 329, 1617, 16345, 12, 2493, 16, 5769, 16, 4007, 2428, 273, 599, 4672, 309, 486, 1247, 18, 4720, 28031, 30, 1247, 18, 4720, 28031, 273, 578, 726, 18, 3125, 28031, 6293, 67, 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, 268, 373, 329, 1617, 16345, 12, 2493, 16, 5769, 16, 4007, 2428, 273, 599, 4672, 309, 486, 1247, 18, 4720, 28031, 30, 1247, 18, 4720, 28031, 273, 578, 726, 18, 3125, 28031, 6293, 67, 19...
if self["payloadcompressor"] == "bzip2":
if self["payloadcompressor"] in [None, "gzip"]: fd = PyGZIP(self.fd, cpiosize) elif self["payloadcompressor"] == "bzip2":
def readPayload(self, func, filenames=None, extract=None): self.__openFd(96 + self.sigdatasize + self.hdrdatasize) devinode = {} # this will contain possibly hardlinked files filenamehash = {} # full filename of all files if filenames == None: filenames = self.getFilenames() if filenames: fileinfo = zip(filenames, ...
36064e9e7b8187b1d2723e47eb83915d362cf0b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/36064e9e7b8187b1d2723e47eb83915d362cf0b4/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 6110, 12, 2890, 16, 1326, 16, 9066, 33, 7036, 16, 2608, 33, 7036, 4672, 365, 16186, 3190, 27263, 12, 10525, 397, 365, 18, 7340, 13178, 554, 397, 365, 18, 16587, 13178, 554, 13, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 6110, 12, 2890, 16, 1326, 16, 9066, 33, 7036, 16, 2608, 33, 7036, 4672, 365, 16186, 3190, 27263, 12, 10525, 397, 365, 18, 7340, 13178, 554, 397, 365, 18, 16587, 13178, 554, 13, 44...
self._atomProcessors = {
self._elementProcessors = {
def __init__(self): self._verboseMode = True self._version = "PyAIML 0.6.1" self._botName = "Nameless" self._brain = PatternMgr() self._respondLock = threading.RLock()
cdb5ca51cf362e7f41cc166060e200bc84fcb1e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6428/cdb5ca51cf362e7f41cc166060e200bc84fcb1e8/Kernel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 6315, 11369, 2309, 273, 1053, 365, 6315, 1589, 273, 315, 9413, 18194, 1495, 374, 18, 26, 18, 21, 6, 365, 6315, 4819, 461, 273, 315, 50, 9925, 403,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 6315, 11369, 2309, 273, 1053, 365, 6315, 1589, 273, 315, 9413, 18194, 1495, 374, 18, 26, 18, 21, 6, 365, 6315, 4819, 461, 273, 315, 50, 9925, 403,...
sys.stdout.write("-----extract_references_from_fulltext: ref_sect_start is None\n")
sys.stdout.write("-----extract_references_from_fulltext: " \ "ref_sect_start is None\n")
def extract_references_from_fulltext(fulltext): """Locate and extract the reference section from a fulltext document. Return the extracted reference section as a list of strings, whereby each string in the list is considered to be a single reference line. E.g. a string could be something like: '[19] Wilson, A. Unpublis...
afd852f45332d11ac027b8d47ce1a922ce7f2cc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/afd852f45332d11ac027b8d47ce1a922ce7f2cc6/refextract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 14353, 67, 2080, 67, 2854, 955, 12, 2854, 955, 4672, 3536, 1333, 340, 471, 2608, 326, 2114, 2442, 628, 279, 1983, 955, 1668, 18, 2000, 326, 9438, 2114, 2442, 487, 279, 666, 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, 2608, 67, 14353, 67, 2080, 67, 2854, 955, 12, 2854, 955, 4672, 3536, 1333, 340, 471, 2608, 326, 2114, 2442, 628, 279, 1983, 955, 1668, 18, 2000, 326, 9438, 2114, 2442, 487, 279, 666, 4...
@unittest.skipUnless(has_sound("SystemAsterisk"), "No default SystemAsterisk")
def test_errors(self): self.assertRaises(TypeError, winsound.PlaySound) self.assertRaises(TypeError, winsound.PlaySound, "bad", "bad") self.assertRaises( RuntimeError, winsound.PlaySound, "none", winsound.SND_ASYNC | winsound.SND_MEMORY )
b46d7ba12fc56c13e674a87bcca5143012627016 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/b46d7ba12fc56c13e674a87bcca5143012627016/test_winsound.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4324, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 31307, 772, 18, 11765, 24331, 13, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 31307, 772, 18, 11765, 24331, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4324, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 31307, 772, 18, 11765, 24331, 13, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 31307, 772, 18, 11765, 24331, 16...
env={'PATH': os.environ['PATH']})
env=trimmed_env)
def _SystemSearchdirsGCC(compiler, language, canonical_lookup): """Run gcc on empty file; parse output to figure out default paths. Arguments: compiler: a filepath (the first argument on the distcc command line) language: 'c' or 'c++' or other item in basics.LANGUAGES canonical_lookup: a function that maps strings to ...
3a721e61a2eda724c4ffe8394c31e2f350df0dfa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/3a721e61a2eda724c4ffe8394c31e2f350df0dfa/compiler_defaults.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3163, 2979, 8291, 43, 6743, 12, 9576, 16, 2653, 16, 7378, 67, 8664, 4672, 3536, 1997, 314, 952, 603, 1008, 585, 31, 1109, 876, 358, 7837, 596, 805, 2953, 18, 225, 13599, 30, 5274,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3163, 2979, 8291, 43, 6743, 12, 9576, 16, 2653, 16, 7378, 67, 8664, 4672, 3536, 1997, 314, 952, 603, 1008, 585, 31, 1109, 876, 358, 7837, 596, 805, 2953, 18, 225, 13599, 30, 5274,...
if re.search( table_name+r'[.]', table_param ) is None:
if table_param.find( table_name+'.' ) == -1:
def __init__( self, table_name, table_param, param_ranges_opt, verbose = False ): """ Parse --param-ranges option. Creates self.param which is the table_name and the table_param appended together (with a '.') and self.param_ranges, which is a list of tuples that give the lower parameter value, whether it is an open or ...
4c49c1fb5437a05aff3cd51768415cbec048e68a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/4c49c1fb5437a05aff3cd51768415cbec048e68a/ligolw_sqlutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 1014, 67, 529, 16, 1014, 67, 891, 16, 579, 67, 14530, 67, 3838, 16, 3988, 273, 1083, 262, 30, 3536, 2884, 1493, 891, 17, 14530, 1456, 18, 10210, 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, 2738, 972, 12, 365, 16, 1014, 67, 529, 16, 1014, 67, 891, 16, 579, 67, 14530, 67, 3838, 16, 3988, 273, 1083, 262, 30, 3536, 2884, 1493, 891, 17, 14530, 1456, 18, 10210, 365, 18...
pfn = idaapi.get_fchunk(ea) if pfn: dummy = idaapi.func_parent_iterator_t(pfn); if idx >= pfn.refqty or len(pfn.referers) == 0: return BADADDR return pfn.referers[idx] return BADADDR
return idaapi.get_fchunk_referer(ea, idx)
def GetFchunkReferer(ea, idx): """ Get a function chunk referer @param ea: any address in the chunk @param idx: referer index (0..GetFchunkAttr(FUNCATTR_REFQTY)) @return: referer address or BADADDR """ pfn = idaapi.get_fchunk(ea) if pfn: dummy = idaapi.func_parent_iterator_t(pfn); # read referer info if idx >= pfn.re...
8b2650eebaf80bde2146ed36982b6253636dd286 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/8b2650eebaf80bde2146ed36982b6253636dd286/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 42, 6551, 426, 18459, 12, 24852, 16, 2067, 4672, 3536, 968, 279, 445, 2441, 18068, 225, 632, 891, 24164, 30, 1281, 1758, 316, 326, 2441, 632, 891, 2067, 30, 18068, 770, 261, 20, 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, 968, 42, 6551, 426, 18459, 12, 24852, 16, 2067, 4672, 3536, 968, 279, 445, 2441, 18068, 225, 632, 891, 24164, 30, 1281, 1758, 316, 326, 2441, 632, 891, 2067, 30, 18068, 770, 261, 20, 8...
if True:
if False:
def fixup_typeobject_initializers(content): while True: m = re.match(pat, content) if m: if True: print m.groups() print m.group(2) print m.group(3) print m.group(4) print m.span(2) content = (content[:m.start(2)] + 'PyVarObject_HEAD_INIT(%s, %s)' % (m.group(3),m.group(4)) + content[m.end(2):]) else: return content
ee3130deb4312fd541a89eb6f885375ec6935cd3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7987/ee3130deb4312fd541a89eb6f885375ec6935cd3/typeobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 723, 1612, 67, 6769, 8426, 12, 1745, 4672, 1323, 1053, 30, 312, 273, 283, 18, 1916, 12, 16330, 16, 913, 13, 309, 312, 30, 309, 1083, 30, 1172, 312, 18, 4650, 1435, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 416, 67, 723, 1612, 67, 6769, 8426, 12, 1745, 4672, 1323, 1053, 30, 312, 273, 283, 18, 1916, 12, 16330, 16, 913, 13, 309, 312, 30, 309, 1083, 30, 1172, 312, 18, 4650, 1435, 117...
duration = time.time() - start_time if duration > 1.5: break
def animateView(self, q2, s2, p2, z2, animate=True): "Animate current view to quat (viewpoint) q2, scale s2, pov p2, and zoom factor z2" # Check User Preference "General | Standard Views: Animate" if not animate or not env.prefs[animateStandardViews_prefs_key]: self.quat = Q(q2) self.pov = V(p2[0], p2[1], p2[2]) self....
5fb22f777c91adb971bce1f786163070dfd13fc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/5fb22f777c91adb971bce1f786163070dfd13fc4/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14671, 1767, 12, 2890, 16, 1043, 22, 16, 272, 22, 16, 293, 22, 16, 998, 22, 16, 14671, 33, 5510, 4672, 315, 979, 4988, 783, 1476, 358, 25847, 261, 1945, 1153, 13, 1043, 22, 16, 3159,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14671, 1767, 12, 2890, 16, 1043, 22, 16, 272, 22, 16, 293, 22, 16, 998, 22, 16, 14671, 33, 5510, 4672, 315, 979, 4988, 783, 1476, 358, 25847, 261, 1945, 1153, 13, 1043, 22, 16, 3159,...
if whitelist is None or ce in whitelist :
if whitelist is not None and ce in whitelist :
def lcgInfo(self, tags, seList=None, blacklist=None, whitelist=None, vo='cms'): """ execute a resources discovery through bdii returns a list of resulting sites """ celist = [] if blacklist == None : blacklist = [] if whitelist == None : whitelist = []
b96bba387baa2996f7408aa92fdc644daefc3e9e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/b96bba387baa2996f7408aa92fdc644daefc3e9e/SchedulerInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9109, 75, 966, 12, 2890, 16, 2342, 16, 695, 682, 33, 7036, 16, 11709, 33, 7036, 16, 10734, 33, 7036, 16, 19993, 2218, 6851, 11, 4672, 3536, 1836, 279, 2703, 11030, 3059, 13837, 2835, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9109, 75, 966, 12, 2890, 16, 2342, 16, 695, 682, 33, 7036, 16, 11709, 33, 7036, 16, 10734, 33, 7036, 16, 19993, 2218, 6851, 11, 4672, 3536, 1836, 279, 2703, 11030, 3059, 13837, 2835, 1...
sage: a = animate(v, xmin=0, ymin=0)
sage: a = animate(v, xmin=0, ymin=0)
def graphics_array(self, ncols=3): """ Return a graphics array with the given number of columns with plots of the frames of this animation.
cda10f9e0887c9e7ea61a247e83c6c71e2727a08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/cda10f9e0887c9e7ea61a247e83c6c71e2727a08/animate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17313, 67, 1126, 12, 2890, 16, 21330, 33, 23, 4672, 3536, 2000, 279, 17313, 526, 598, 326, 864, 1300, 434, 2168, 598, 17931, 434, 326, 7793, 434, 333, 8794, 18, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17313, 67, 1126, 12, 2890, 16, 21330, 33, 23, 4672, 3536, 2000, 279, 17313, 526, 598, 326, 864, 1300, 434, 2168, 598, 17931, 434, 326, 7793, 434, 333, 8794, 18, 2, -100, -100, -100, -1...
command=self.Ok,takefocus=FALSE)
command=self.Ok,takefocus=FALSE, padx=6,pady=3)
def CreateWidgets(self): self.tabPages = TabPageSet(self, pageNames=['Fonts/Tabs','Highlighting','Keys','General']) self.tabPages.ChangePage()#activates default (first) page frameActionButtons = Frame(self) #action buttons self.buttonHelp = Button(frameActionButtons,text='Help', command=self.Help,takefocus=FALSE) self....
55017c8d2483230b370f09b40eaa33e91cc2555a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/55017c8d2483230b370f09b40eaa33e91cc2555a/configDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 16166, 12, 2890, 4672, 365, 18, 7032, 5716, 273, 9483, 1964, 694, 12, 2890, 16, 1363, 1557, 33, 3292, 5711, 87, 19, 17348, 17023, 16205, 310, 17023, 2396, 17023, 12580, 19486, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 16166, 12, 2890, 4672, 365, 18, 7032, 5716, 273, 9483, 1964, 694, 12, 2890, 16, 1363, 1557, 33, 3292, 5711, 87, 19, 17348, 17023, 16205, 310, 17023, 2396, 17023, 12580, 19486, 365, ...
Again, but with a custom isprivate function allowing _f: >>> t = Tester(globs={}, verbose=0, isprivate=lambda x,y: 0)
Again, but with the default isprivate function allowing _f: >>> t = Tester(globs={}, verbose=0)
... def bar(self):
69ea6631db2503d0aa159a5cd267f7e1a492a14a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/69ea6631db2503d0aa159a5cd267f7e1a492a14a/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 565, 1652, 4653, 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, 1372, 565, 1652, 4653, 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...
res['header'] = eval(rec.get('header'))
res['header'] = eval(rec.get('header','False'))
def _tag_report(self, cr, rec, data_node=None): res = {} for dest,f in (('name','string'),('model','model'),('report_name','name')): res[dest] = rec.get(f,'').encode('utf8') assert res[dest], "Attribute %s of report is empty !" % (f,) for field,dest in (('rml','report_rml'),('xml','report_xml'),('xsl','report_xsl'),('a...
c4ed69e7b17a03f08302b498d4929da28c12cce4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/c4ed69e7b17a03f08302b498d4929da28c12cce4/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2692, 67, 6006, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 400, 273, 2618, 364, 1570, 16, 74, 316, 261, 2668, 529, 17023, 1080, 19899, 2668, 2284, 17023, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2692, 67, 6006, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 400, 273, 2618, 364, 1570, 16, 74, 316, 261, 2668, 529, 17023, 1080, 19899, 2668, 2284, 17023, 228...
name = py3_b(name)
def _inotify_event(self, mask, name, target=None): """ Callback for inotify. """ name = py3_b(name) if mask & INotify.MODIFY and self._bursthandler.is_growing(name): # A file was modified. Do this check as fast as we can because the # events may come in bursts when a file is just copied. In this case # a timer is alrea...
4c850d0629d3f72ed70b54e827545f86d1aac15d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11703/4c850d0629d3f72ed70b54e827545f86d1aac15d/crawl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 267, 352, 1164, 67, 2575, 12, 2890, 16, 3066, 16, 508, 16, 1018, 33, 7036, 4672, 3536, 8444, 364, 316, 352, 1164, 18, 3536, 309, 3066, 473, 467, 9168, 18, 6720, 12096, 471, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 267, 352, 1164, 67, 2575, 12, 2890, 16, 3066, 16, 508, 16, 1018, 33, 7036, 4672, 3536, 8444, 364, 316, 352, 1164, 18, 3536, 309, 3066, 473, 467, 9168, 18, 6720, 12096, 471, 365, ...
return result
return result
def setJobParameters(self,jobID,parameters): """ Set parameters specified by a list of name/value pairs for the job JobID """
80754a3f17531def7cbc50d246e9e547c954723a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/80754a3f17531def7cbc50d246e9e547c954723a/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2278, 2402, 12, 2890, 16, 4688, 734, 16, 3977, 4672, 3536, 1000, 1472, 1269, 635, 279, 666, 434, 508, 19, 1132, 5574, 364, 326, 1719, 22137, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2278, 2402, 12, 2890, 16, 4688, 734, 16, 3977, 4672, 3536, 1000, 1472, 1269, 635, 279, 666, 434, 508, 19, 1132, 5574, 364, 326, 1719, 22137, 3536, 2, -100, -100, -100, -100, -100, ...
\frac{c_{TF} + c_{FT} - c_{TT} + n} {c_{FT} + c_{TF} + n}
\frac{c_{TF} + c_{FT} - c_{TT} + n} {c_{FT} + c_{TF} + n}
def kulsinski(u, v): """ Computes the Kulsinski dissimilarity between two boolean n-vectors u and v, which is defined as .. math:: \frac{c_{TF} + c_{FT} - c_{TT} + n} {c_{FT} + c_{TF} + n} where :math:`c_{ij}` is the number of occurrences of :math:`\mathtt{u[k]} = i` and :math:`\mathtt{v[k]} = j` for :math:`k < n`. ...
dcffe95513dbb5a464da95e7b7240d3d4fbb8311 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/dcffe95513dbb5a464da95e7b7240d3d4fbb8311/distance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 332, 87, 2679, 15299, 12, 89, 16, 331, 4672, 3536, 14169, 281, 326, 1475, 332, 87, 2679, 15299, 1015, 22985, 560, 3086, 2795, 1250, 290, 17, 18535, 582, 471, 331, 16, 1492, 353, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 332, 87, 2679, 15299, 12, 89, 16, 331, 4672, 3536, 14169, 281, 326, 1475, 332, 87, 2679, 15299, 1015, 22985, 560, 3086, 2795, 1250, 290, 17, 18535, 582, 471, 331, 16, 1492, 353, 2...
report_type = datas.get('report_type', 'pdf')
def create(self, cr, uid, ids, datas, context): xml = self.create_xml(cr, uid, ids, datas, context) xml = tools.ustr(xml).encode('utf8') if datas.get('report_type', 'pdf') == 'raw': return xml rml = self.create_rml(cr, xml, uid, context) pool = pooler.get_pool(cr.dbname) ir_actions_report_xml_obj = pool.get('ir.actions...
1fdb68d2f1f2728c7f78659d4b5d2e9e809dfedb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/1fdb68d2f1f2728c7f78659d4b5d2e9e809dfedb/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5386, 16, 819, 4672, 2025, 273, 365, 18, 2640, 67, 2902, 12, 3353, 16, 4555, 16, 3258, 16, 5386, 16, 819, 13, 2025, 273, 8513, 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, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5386, 16, 819, 4672, 2025, 273, 365, 18, 2640, 67, 2902, 12, 3353, 16, 4555, 16, 3258, 16, 5386, 16, 819, 13, 2025, 273, 8513, 18, ...
def __init__(self, player_ui, service_locator): self.__player_ui = player_ui
def __init__(self, quit_handler, service_locator): self.__quit_handler = quit_handler
def __init__(self, player_ui, service_locator): self.__player_ui = player_ui self.__service_locator = service_locator self.__as_presenter = AudioScrobblerPresenter(self.__service_locator) self.__last_window = None self.__current_window = None # Application screens self.__main_window = MainWindow(self.__player_ui, self...
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9706, 67, 4176, 16, 1156, 67, 20048, 4672, 365, 16186, 27176, 67, 4176, 273, 9706, 67, 4176, 365, 16186, 3278, 67, 20048, 273, 1156, 67, 20048, 365, 16186,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9706, 67, 4176, 16, 1156, 67, 20048, 4672, 365, 16186, 27176, 67, 4176, 273, 9706, 67, 4176, 365, 16186, 3278, 67, 20048, 273, 1156, 67, 20048, 365, 16186,...
ValueIndex.index_doc = value_index_doc
def value_index_doc(self, doc_id, value): if value is None: self.unindex_doc(doc_id) else: values_to_documents = self.values_to_documents documents_to_values = self.documents_to_values old = documents_to_values.get(doc_id) documents_to_values[doc_id] = value if old is None: self.documentCount.change(1) elif old != valu...
e53545860790bb53a0a70ad20fff2dbe30baf1c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12540/e53545860790bb53a0a70ad20fff2dbe30baf1c4/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 67, 1615, 67, 2434, 12, 2890, 16, 997, 67, 350, 16, 460, 4672, 309, 460, 353, 599, 30, 365, 18, 318, 1615, 67, 2434, 12, 2434, 67, 350, 13, 469, 30, 924, 67, 869, 67, 24795, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 67, 1615, 67, 2434, 12, 2890, 16, 997, 67, 350, 16, 460, 4672, 309, 460, 353, 599, 30, 365, 18, 318, 1615, 67, 2434, 12, 2434, 67, 350, 13, 469, 30, 924, 67, 869, 67, 24795, ...
[2, 2, 3]
[2, 6]
def elementary_divisors(self): """ EXAMPLES: sage: G = AbelianGroup(2,[2,6]) sage: G Multiplicative Abelian Group isomorphic to C2 x C6 sage: G.invariants() [2, 6] sage: G.elementary_divisors() [2, 2, 3] sage: J = AbelianGroup([1,3,5,12]) sage: J.elementary_divisors() [3, 3, 4, 5] """ inv = self.invariants() invs = lis...
197264f7962f163e14c6c867603c15c6fff6f36c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/197264f7962f163e14c6c867603c15c6fff6f36c/abelian_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 930, 814, 67, 2892, 291, 1383, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 611, 273, 9771, 292, 2779, 1114, 12, 22, 16, 63, 22, 16, 26, 5717, 272, 410, 30, 611, 5991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 930, 814, 67, 2892, 291, 1383, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 611, 273, 9771, 292, 2779, 1114, 12, 22, 16, 63, 22, 16, 26, 5717, 272, 410, 30, 611, 5991, ...
Abelian variety factor of dimension 1 of J0(42)
Abelian subvariety of dimension 1 of J0(42)
def __add__(self, other): """ Add two modular abelian variety factors. EXAMPLES: sage: A = J0(42); D = A.decomposition(); D [ Abelian variety factor of dimension 1 of J0(42), Abelian variety factor of dimension 2 of J0(42), Abelian variety factor of dimension 2 of J0(42) ] sage: D[0] + D[1] Abelian variety factor of d...
62147d82541f9aed0900f78cd10df5f262f228f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62147d82541f9aed0900f78cd10df5f262f228f5/abvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 4672, 3536, 1436, 2795, 681, 2490, 1223, 292, 2779, 1394, 14369, 14490, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 432, 273, 804, 20, 12, 9452, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 972, 12, 2890, 16, 1308, 4672, 3536, 1436, 2795, 681, 2490, 1223, 292, 2779, 1394, 14369, 14490, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 432, 273, 804, 20, 12, 9452, ...
logger.debug("%s - %s", threading.currentThread().getName(), (datetime.datetime.utcnow() - datetime.datetime.utcfromtimestamp(os.path.getmtime(testPath))) > self.config.minimumSymlinkAge)
def isProperAge(self, testPath): #logger.debug("%s - %s", threading.currentThread().getName(), testPath) logger.debug("%s - %s", threading.currentThread().getName(), (datetime.datetime.utcnow() - datetime.datetime.utcfromtimestamp(os.path.getmtime(testPath))) > self.config.minimumSymlinkAge) return (datetime.datetime.u...
84034bc05eed964565729d3b46fd16cb3b76c236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/84034bc05eed964565729d3b46fd16cb3b76c236/monitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 626, 457, 9692, 12, 2890, 16, 1842, 743, 4672, 468, 4901, 18, 4148, 27188, 87, 300, 738, 87, 3113, 17254, 18, 2972, 3830, 7675, 17994, 9334, 1842, 743, 13, 225, 327, 261, 6585, 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, 353, 626, 457, 9692, 12, 2890, 16, 1842, 743, 4672, 468, 4901, 18, 4148, 27188, 87, 300, 738, 87, 3113, 17254, 18, 2972, 3830, 7675, 17994, 9334, 1842, 743, 13, 225, 327, 261, 6585, 18...
nRecords = 0 nHandshakes = 0 nReprocessed = 0 nItems = 0 content = [] def addHandshake(self, xmlData): self.content.append( ['',xmlData] ) self.nHandshakes += 1 self.nItems += 1 return self.checkAndSend("Handshake added to bundle ("+str(self.nItems)+"/"+str(BundleSize)+")") def addRecord(self, filename, xmlData): sel...
nRecords = 0 nHandshakes = 0 nReprocessed = 0 nItems = 0 content = [] def addHandshake(self, xmlData): self.content.append( ['',xmlData] ) self.nHandshakes += 1 self.nItems += 1 return self.checkAndSend("Handshake added to bundle ("+str(self.nItems)+"/"+str(BundleSize)+")") def addRecord(self, filename, xmlData): sel...
def ProcessJobId(record,value): record.ProcessJobId(value)
637869f92a8322c20ea53836dc7393fc485f077a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/637/637869f92a8322c20ea53836dc7393fc485f077a/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 23378, 12, 3366, 16, 1132, 4672, 1409, 18, 2227, 23378, 12, 1132, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 23378, 12, 3366, 16, 1132, 4672, 1409, 18, 2227, 23378, 12, 1132, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def __call__(self, cmd, check_initialized=True):
def __call__(self, cmd, interactive=True):
def __call__(self, cmd, check_initialized=True): """ Run 'hg cmd' where cmd is an arbitrary string in the hg repository. """ self._warning() s = 'cd "%s" && hg %s'%(self.__dir, cmd) print s return os.system(s)
abb677c33d32b5b869e4cdd946ed134fd4650f20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/abb677c33d32b5b869e4cdd946ed134fd4650f20/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1797, 16, 12625, 33, 5510, 4672, 3536, 1939, 296, 26981, 1797, 11, 1625, 1797, 353, 392, 11078, 533, 316, 326, 22576, 3352, 18, 3536, 365, 6315, 8551, 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, 1001, 1991, 972, 12, 2890, 16, 1797, 16, 12625, 33, 5510, 4672, 3536, 1939, 296, 26981, 1797, 11, 1625, 1797, 353, 392, 11078, 533, 316, 326, 22576, 3352, 18, 3536, 365, 6315, 8551, 1435...
required_files.append(forkFolder + ':' + f)
appendToList(forkFolder + ':' + f)
def addFile(*args): global required_files, forkFolder for f in args: if forkFolder is not None: if os.path.exists(forkFolder + f): required_files.append(forkFolder + ':' + f) else: required_files.append(f) else: required_files.append(f)
a2dbe49821a3445804104a60e1d9d3e41981ac44 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/a2dbe49821a3445804104a60e1d9d3e41981ac44/build-required-files.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18671, 30857, 1968, 4672, 2552, 1931, 67, 2354, 16, 12515, 3899, 364, 284, 316, 833, 30, 309, 12515, 3899, 353, 486, 599, 30, 309, 1140, 18, 803, 18, 1808, 12, 23335, 3899, 397, 284, 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, 18671, 30857, 1968, 4672, 2552, 1931, 67, 2354, 16, 12515, 3899, 364, 284, 316, 833, 30, 309, 12515, 3899, 353, 486, 599, 30, 309, 1140, 18, 803, 18, 1808, 12, 23335, 3899, 397, 284, 4...
if not (self.ambient_vector_space() is other.ambient_vector_space()):
if not (self.ambient_vector_space() == other.ambient_vector_space()):
def __add__(self, other): r""" Return the sum of self and other, where both self and other must be submodules of the ambient vector space.
55f5610f05c3f8659b6bfa3c59600167770a547f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/55f5610f05c3f8659b6bfa3c59600167770a547f/free_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 2000, 326, 2142, 434, 365, 471, 1308, 16, 1625, 3937, 365, 471, 1308, 1297, 506, 720, 6400, 434, 326, 13232, 1979, 3806, 3476, 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, 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, 1289, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 2000, 326, 2142, 434, 365, 471, 1308, 16, 1625, 3937, 365, 471, 1308, 1297, 506, 720, 6400, 434, 326, 13232, 1979, 3806, 3476, 18, ...
print 'pre-exception output', x/0
print 'pre-exception output', x//0
>>> def f(x):
2e82ad9791c9029bfa44ef39f6c4cd1b786cef51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2e82ad9791c9029bfa44ef39f6c4cd1b786cef51/test_doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 4080, 1652, 284, 12, 92, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self._wait_on_client(host, "finished") results_dir = os.path.join(host.get_autodir(), "results", "default", "profiler_test", "profiling") + "/"
self._wait_on_client(host, autodir, "finished") results_dir = os.path.join(autodir, "results", "default", "profiler_test", "profiling") + "/"
def report(self, test, host=None, wait_on_client=True): assert self.current_test == test self.current_test = None hosts = self._get_hosts(host)
d16ba8fddbf6985a577ca31bfe9030c19678bb78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/d16ba8fddbf6985a577ca31bfe9030c19678bb78/profiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 2890, 16, 1842, 16, 1479, 33, 7036, 16, 2529, 67, 265, 67, 2625, 33, 5510, 4672, 1815, 365, 18, 2972, 67, 3813, 422, 1842, 365, 18, 2972, 67, 3813, 273, 599, 7206, 273, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 2890, 16, 1842, 16, 1479, 33, 7036, 16, 2529, 67, 265, 67, 2625, 33, 5510, 4672, 1815, 365, 18, 2972, 67, 3813, 422, 1842, 365, 18, 2972, 67, 3813, 273, 599, 7206, 273, 365...
1/0
1./0
def f(p): 1/0
6294fee72793ac61c16b5ff2e9c17a78b67f4478 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/6294fee72793ac61c16b5ff2e9c17a78b67f4478/test_profilehooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 84, 4672, 404, 19, 20, 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, 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, 284, 12, 84, 4672, 404, 19, 20, 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, -...
if name != gfs_name:
if name != fs_name:
def val_fs(self, *argname): name = argname[0] fs_name = self.fs_name.get_text() if fs_name == "": raise ValidationError('FATAL', RESOURCE_PROVIDE_NAME)
b2172f3273353ed2dc915efface98fbba634b380 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/b2172f3273353ed2dc915efface98fbba634b380/ResourceHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1244, 67, 2556, 12, 2890, 16, 380, 3175, 529, 4672, 508, 273, 1501, 529, 63, 20, 65, 2662, 67, 529, 273, 365, 18, 2556, 67, 529, 18, 588, 67, 955, 1435, 309, 2662, 67, 529, 422, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1244, 67, 2556, 12, 2890, 16, 380, 3175, 529, 4672, 508, 273, 1501, 529, 63, 20, 65, 2662, 67, 529, 273, 365, 18, 2556, 67, 529, 18, 588, 67, 955, 1435, 309, 2662, 67, 529, 422, 14...
while remaining and remaining[0] not in ('Expected:', 'Exception raised:'):
terminators = ['Expected:', 'Expected nothing', 'Exception raised:'] while remaining and remaining[0] not in terminators:
def colorize_zope_doctest_output(lines): """Colorize output formatted by the doctest engine included with Zope 3. Returns a new sequence of colored strings. `lines` is a sequence of strings. The typical structure of the doctest output looks either like this: File "...", line 123, in foo.bar.baz.doctest_quux Failed ...
bac1bef133ecddf6647cd477c316f13d402f89b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/bac1bef133ecddf6647cd477c316f13d402f89b4/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21077, 67, 94, 1306, 67, 2896, 299, 395, 67, 2844, 12, 3548, 4672, 3536, 2957, 554, 876, 4955, 635, 326, 31263, 395, 4073, 5849, 598, 2285, 1306, 890, 18, 225, 2860, 279, 394, 3102, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21077, 67, 94, 1306, 67, 2896, 299, 395, 67, 2844, 12, 3548, 4672, 3536, 2957, 554, 876, 4955, 635, 326, 31263, 395, 4073, 5849, 598, 2285, 1306, 890, 18, 225, 2860, 279, 394, 3102, 43...
display_type=display_type, build=True))
type=display_type, build=True))
def get(self, parent, listing): """ return a list of items based on the files """ items = [] if parent and hasattr(parent, 'display_type'): display_type = parent.display_type else: display_type = None
4f386d04e392b956916454ca64a656dc1d7bedd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/4f386d04e392b956916454ca64a656dc1d7bedd2/playlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 982, 16, 11591, 4672, 3536, 327, 279, 666, 434, 1516, 2511, 603, 326, 1390, 3536, 1516, 273, 5378, 309, 982, 471, 3859, 12, 2938, 16, 296, 5417, 67, 723, 11, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 982, 16, 11591, 4672, 3536, 327, 279, 666, 434, 1516, 2511, 603, 326, 1390, 3536, 1516, 273, 5378, 309, 982, 471, 3859, 12, 2938, 16, 296, 5417, 67, 723, 11, 4672, ...
if (input.has_key('value') and not input.has_key('dataType')): input['dataType'] = type(input['value'])
if (input.has_key('value') and not input.has_key('DataType')): input['DataType'] = type(input['value'])
def checkInputs(self,formvalues=None): """ Check the process input values sended in the 'formvalues' string. The string represents comma separated values: key1,value1,key2,value2
d33b62d2a6e97ee46ac50876a7fbdd930dc62702 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10967/d33b62d2a6e97ee46ac50876a7fbdd930dc62702/execute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 10059, 12, 2890, 16, 687, 2372, 33, 7036, 4672, 3536, 2073, 326, 1207, 810, 924, 272, 3934, 316, 326, 296, 687, 2372, 11, 533, 18, 1021, 533, 8686, 8716, 8936, 924, 30, 498, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 10059, 12, 2890, 16, 687, 2372, 33, 7036, 4672, 3536, 2073, 326, 1207, 810, 924, 272, 3934, 316, 326, 296, 687, 2372, 11, 533, 18, 1021, 533, 8686, 8716, 8936, 924, 30, 498, 21, ...
return
def install_package(package=None, force=False): """ Install a package or return a list of all packages that have been installed into this Sage install. You must have an internet connection. Also, you will have to restart Sage for the changes to take affect. It is not needed to provide the version number. INPUT: - ...
e0c4f3e1f24e88862821d03ab48aaa307628bbb8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/e0c4f3e1f24e88862821d03ab48aaa307628bbb8/package.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 5610, 12, 5610, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 10284, 279, 2181, 578, 225, 279, 666, 434, 777, 5907, 716, 1240, 2118, 5876, 1368, 333, 348, 410, 3799, 18, 225, 455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 5610, 12, 5610, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 10284, 279, 2181, 578, 225, 279, 666, 434, 777, 5907, 716, 1240, 2118, 5876, 1368, 333, 348, 410, 3799, 18, 225, 455...
''' % {
""" % {
def _importConfigModule(name): """ Import and return configuration module and its modification time Handle all errors except ImportError, because missing file is not always an error. @param name: module name @rtype: tuple @return: module, modification time """ try: module = __import__(name, globals(), {}) mtime = os....
dfb27923fc3c16a0cfbd8495aa0e35dd4ff4c216 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/dfb27923fc3c16a0cfbd8495aa0e35dd4ff4c216/multiconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5666, 809, 3120, 12, 529, 4672, 3536, 6164, 471, 327, 1664, 1605, 471, 2097, 11544, 813, 225, 5004, 777, 1334, 1335, 11308, 16, 2724, 3315, 585, 353, 486, 3712, 392, 555, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5666, 809, 3120, 12, 529, 4672, 3536, 6164, 471, 327, 1664, 1605, 471, 2097, 11544, 813, 225, 5004, 777, 1334, 1335, 11308, 16, 2724, 3315, 585, 353, 486, 3712, 392, 555, 18, 225, ...
if self.data and self.master.showRug:
if self.master.showRug:
def plotRug(self, noUpdate = False): for rug in self.rugKeys: self.removeCurve(rug) self.rugKeys = []
ae83bc8e1038df87b0fe497ddb634614447ce035 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/ae83bc8e1038df87b0fe497ddb634614447ce035/OWDiscretize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 54, 637, 12, 2890, 16, 1158, 1891, 273, 1083, 4672, 364, 436, 637, 316, 365, 18, 86, 637, 2396, 30, 365, 18, 4479, 9423, 12, 86, 637, 13, 365, 18, 86, 637, 2396, 273, 5378, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3207, 54, 637, 12, 2890, 16, 1158, 1891, 273, 1083, 4672, 364, 436, 637, 316, 365, 18, 86, 637, 2396, 30, 365, 18, 4479, 9423, 12, 86, 637, 13, 365, 18, 86, 637, 2396, 273, 5378, 2...
tokens = tuple(self._lexer)
try: tokens = tuple(self._lexer) except antlr.TokenStreamRecognitionException: raise TemplateError(_("Invalid value '%s'") % value)
def _checkToken(self, value, *tokenTypes): stream = StringIO.StringIO(value) self._lexer.setInput(stream) tokens = tuple(self._lexer) if len(tokens) != 1 or tokens[0].type not in tokenTypes: raise TemplateError(_("Invalid value '%s'") % value)
3cfa489b722bc568cbcb8cd80279824d4866833f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5223/3cfa489b722bc568cbcb8cd80279824d4866833f/template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 1345, 12, 2890, 16, 460, 16, 380, 2316, 2016, 4672, 1407, 273, 15777, 18, 780, 4294, 12, 1132, 13, 365, 6315, 31731, 18, 542, 1210, 12, 3256, 13, 225, 775, 30, 2430, 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, 389, 1893, 1345, 12, 2890, 16, 460, 16, 380, 2316, 2016, 4672, 1407, 273, 15777, 18, 780, 4294, 12, 1132, 13, 365, 6315, 31731, 18, 542, 1210, 12, 3256, 13, 225, 775, 30, 2430, 273, ...
viewer.connect("error", lambda w,m,e: self.error(m, e))
viewer.connect("error", lambda w,m,e: self.error(m, e, None))
def new_viewer(self): """Creates a new viewer for this window"""
e219c58bb56e73d8c1eefdf6b4bb2011b5e6a0e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/e219c58bb56e73d8c1eefdf6b4bb2011b5e6a0e8/main_window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 25256, 12, 2890, 4672, 3536, 2729, 279, 394, 14157, 364, 333, 2742, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 394, 67, 25256, 12, 2890, 4672, 3536, 2729, 279, 394, 14157, 364, 333, 2742, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
suff = self for i in xrange(0, l - 3): for ll in xrange(3, l-i+1, 3): if suff[:ll].is_cube():
for start in xrange(0, L - 2): for end in xrange(start+3, L+1, 3): if self[start:end].is_cube():
def is_cube_free(self): r""" Returns True if self does not contain cubes, and False otherwise. EXAMPLES:: sage: W = Words('123') sage: W('12312').is_cube_free() True sage: W('32221').is_cube_free() False sage: W().is_cube_free() True """ l = self.length() if l < 3: return True suff = self for i in xrange(0, l - 3): f...
608ca0250585b254464e69042498a89fb0e15156 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/608ca0250585b254464e69042498a89fb0e15156/finite_word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 21186, 67, 9156, 12, 2890, 4672, 436, 8395, 2860, 1053, 309, 365, 1552, 486, 912, 276, 23317, 16, 471, 1083, 3541, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 678, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 21186, 67, 9156, 12, 2890, 4672, 436, 8395, 2860, 1053, 309, 365, 1552, 486, 912, 276, 23317, 16, 471, 1083, 3541, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 678, 27...
for des in cur.description: print des[0].ljust(max_field_size), print print '-' * max_field_size * len(cur.description) field_indices = range(len(cur.description)) for row in cur: for index in field_indices: field_val = str(row[index]) print field_val.ljust(max_field_size) ,
if EMBEDDED_MODE: print '<html><table bgcolor=lightgrey cellpadding=0><tr>' for des in cur.description: print '<td bgcolor=white align=center> ' + des[0] + ' </td>' print '</tr>' field_indices = range(len(cur.description)) for row in cur: print '<tr>' for index in field_indices: print '<td bgcolor=white align=center>...
def show(self, max_field_size=20): """ ROBERT - Check this out! TODO : (Robert) - you knew of a way to tell whether SAGE was running in the notebook or at command line. Could you decomment the notebook version and throw in that if clause? --ek EXAMPLES: sage: DB = SQLDatabase() sage: DB.create_table('simon',{'a1':{'s...
12098d45ba68813e42a6a22032a2f2e6d360e158 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/12098d45ba68813e42a6a22032a2f2e6d360e158/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 943, 67, 1518, 67, 1467, 33, 3462, 4672, 3536, 534, 5704, 11539, 300, 2073, 333, 596, 5, 2660, 294, 261, 22869, 25925, 13, 300, 1846, 417, 2704, 434, 279, 4031, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 943, 67, 1518, 67, 1467, 33, 3462, 4672, 3536, 534, 5704, 11539, 300, 2073, 333, 596, 5, 2660, 294, 261, 22869, 25925, 13, 300, 1846, 417, 2704, 434, 279, 4031, 358...
cookiedata = self.getCookie(api = api)
try: cookiedata = self.getCookie(api = api) except NotImplementedError: wikipedia.output('API disabled because this site does not support.') config.use_api_login = api = False cookiedata = self.getCookie(api = api)
def login(self, api = config.use_api_login, retry = False): if not self.password: # As we don't want the password to appear on the screen, we set # password = True self.password = wikipedia.input(u'Password for user %s on %s:' % (self.username, self.site), password = True)
2c9678cc3f7b0f7fd19f4c4e347b9a8610687302 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/2c9678cc3f7b0f7fd19f4c4e347b9a8610687302/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 1536, 273, 642, 18, 1202, 67, 2425, 67, 5819, 16, 3300, 273, 1083, 4672, 309, 486, 365, 18, 3664, 30, 468, 2970, 732, 2727, 1404, 2545, 326, 2201, 358, 9788, 603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 1536, 273, 642, 18, 1202, 67, 2425, 67, 5819, 16, 3300, 273, 1083, 4672, 309, 486, 365, 18, 3664, 30, 468, 2970, 732, 2727, 1404, 2545, 326, 2201, 358, 9788, 603, ...
align_view='7',
align_view='7',
(def 9).
192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9/SequenceSearcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 261, 536, 2468, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 261, 536, 2468, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for i in range(num):
for i in range(min(num, len(self.new_quiz_pool))):
def _increase_quiz_pool(self, num=None): "Add quizzes from the new_quiz_pool to the quiz_pool" if num == None: num = self.batch_length new_quizzes = [] for i in range(num): new_quizzes.append(self.new_quiz_pool.pop(0)) self.num_bad_scores += num Weighted_Quiz.add_quizzes(self, new_quizzes)
408b77c91cf2d8f83cffc1bc9bad92fb66ecaa76 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2313/408b77c91cf2d8f83cffc1bc9bad92fb66ecaa76/quizdrill.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 267, 11908, 67, 18345, 67, 6011, 12, 2890, 16, 818, 33, 7036, 4672, 315, 986, 16479, 94, 281, 628, 326, 394, 67, 18345, 67, 6011, 358, 326, 16479, 67, 6011, 6, 309, 818, 422, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 267, 11908, 67, 18345, 67, 6011, 12, 2890, 16, 818, 33, 7036, 4672, 315, 986, 16479, 94, 281, 628, 326, 394, 67, 18345, 67, 6011, 358, 326, 16479, 67, 6011, 6, 309, 818, 422, 59...
return 1
""" EXAMPLES: sage: [sloane.A000012._eval(n) for n in range(10)] [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] """ return Integer(1)
def _eval(self, n): return 1
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 404, 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, 389, 8622, 12, 2890, 16, 290, 4672, 327, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
parms = urllib.urlencode({'ip':ipaddress}) f = urllib.urlopen('http://www.cz88.net/ip/ipcheck.aspx', parms)
parms = urllib.urlencode({'ip':ipaddress}) f = urllib.urlopen('http://www.cz88.net/ip/ipcheck.aspx', parms)
def handler(self, **args): query_str = args["text"].split()
0caf5a57fb7d5c962d91b5d29cb400b2d3eae008 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10749/0caf5a57fb7d5c962d91b5d29cb400b2d3eae008/geoip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 2890, 16, 2826, 1968, 4672, 843, 67, 701, 273, 833, 9614, 955, 6, 8009, 4939, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 2890, 16, 2826, 1968, 4672, 843, 67, 701, 273, 833, 9614, 955, 6, 8009, 4939, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
ln -sf /usr/lib/panda3d/$base $RPM_BUILD_ROOT/usr/lib/PYTHONV/lib-dynload/$base
ln -sf /usr/lib/panda3d/$base $RPM_BUILD_ROOT/usr/lib/$PYTHONV/lib-dynload/$base
def printUsage(): sys.exit("usage: maketarball [version]")
7b879edbcc68b14596c64e4eba60cfd06e733b98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/7b879edbcc68b14596c64e4eba60cfd06e733b98/maketarball.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 5357, 13332, 2589, 18, 8593, 2932, 9167, 30, 29796, 278, 23846, 306, 1589, 4279, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 1172, 5357, 13332, 2589, 18, 8593, 2932, 9167, 30, 29796, 278, 23846, 306, 1589, 4279, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.oneTimeCollide() self.avatarNodePath.setZ(self.avatarNodePath.getZ()-self.getAirborneHeight())
return
def placeOnFloor(self): """ Make a reasonable effor to place the avatar on the ground. For example, this is useful when switching away from the current walker. """ self.oneTimeCollide() self.avatarNodePath.setZ(self.avatarNodePath.getZ()-self.getAirborneHeight())
1e6c5509e0ce8180a390e9aa615996fdfc3d948a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/1e6c5509e0ce8180a390e9aa615996fdfc3d948a/NonPhysicsWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 1398, 42, 5807, 12, 2890, 4672, 3536, 4344, 279, 23589, 16419, 280, 358, 3166, 326, 16910, 603, 326, 19209, 18, 2457, 3454, 16, 333, 353, 5301, 1347, 30882, 10804, 628, 326, 783, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 1398, 42, 5807, 12, 2890, 4672, 3536, 4344, 279, 23589, 16419, 280, 358, 3166, 326, 16910, 603, 326, 19209, 18, 2457, 3454, 16, 333, 353, 5301, 1347, 30882, 10804, 628, 326, 783, 1...
exception(GUI, "Template error")
wc.log.exception(GUI, "Template error")
def __init__ (self, client, url, form, protocol, clientheaders, status=200, msg=wc.i18n._('Ok'), localcontext=None, auth=''): """load a web configuration template and return response""" wc.log.debug(wc.LOG_GUI, "WebConfig %s %s", url, form) self.client = client # we pretend to be the server self.connected = True header...
040418fb71088d27d487307bd693e3fb4cdf048b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/040418fb71088d27d487307bd693e3fb4cdf048b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1004, 16, 880, 16, 646, 16, 1771, 16, 1004, 2485, 16, 1267, 33, 6976, 16, 1234, 33, 27594, 18, 77, 2643, 82, 6315, 2668, 8809, 19899, 1191, 2472, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1004, 16, 880, 16, 646, 16, 1771, 16, 1004, 2485, 16, 1267, 33, 6976, 16, 1234, 33, 27594, 18, 77, 2643, 82, 6315, 2668, 8809, 19899, 1191, 2472, 33, ...
self.with_spaces('"%s" "%s"' % (self.fname, "ab cd"), shell=1)
self.with_spaces('"%s" "%s" "%s"' % (sys.executable, self.fname, "ab cd"), shell=1)
def test_shell_string_with_spaces(self): # call() function with string argument with spaces on Windows self.with_spaces('"%s" "%s"' % (self.fname, "ab cd"), shell=1)
f5a793083abeb48b6375ccb959adadbbe0a8feaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/f5a793083abeb48b6375ccb959adadbbe0a8feaf/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10304, 67, 1080, 67, 1918, 67, 9554, 12, 2890, 4672, 468, 745, 1435, 445, 598, 533, 1237, 598, 7292, 603, 8202, 365, 18, 1918, 67, 9554, 22076, 9, 87, 6, 2213, 87, 5187, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10304, 67, 1080, 67, 1918, 67, 9554, 12, 2890, 4672, 468, 745, 1435, 445, 598, 533, 1237, 598, 7292, 603, 8202, 365, 18, 1918, 67, 9554, 22076, 9, 87, 6, 2213, 87, 5187, 73...
orderpages = dict() for page in pagelist: orderpages[ordervalue(page)] = page sortlist = sorted(orderpages.keys()) pagelist = [orderpages[x] for x in sortlist]
pagelist = sorted(pagelist, key=ordervalue)
def can_be_read(name): return request.user.may.read(name)
0cf3127a42636d7bfe7ad3445bcc2c3ed8e0f4f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/0cf3127a42636d7bfe7ad3445bcc2c3ed8e0f4f8/editing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 2196, 67, 896, 12, 529, 4672, 327, 590, 18, 1355, 18, 24877, 18, 896, 12, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 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, 848, 67, 2196, 67, 896, 12, 529, 4672, 327, 590, 18, 1355, 18, 24877, 18, 896, 12, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.update_caches(nslice-1, ssorted[:ss])
self.update_caches(nslice, ssorted[:ss])
def reorder_slices(self): """Reorder completely the index at slice level (optim version).
4ec73663a9c5b2970b2d92f44b26adce15ac2395 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12687/4ec73663a9c5b2970b2d92f44b26adce15ac2395/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19427, 67, 21562, 12, 2890, 4672, 3536, 426, 1019, 14416, 326, 770, 622, 2788, 1801, 261, 16689, 1177, 2934, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19427, 67, 21562, 12, 2890, 4672, 3536, 426, 1019, 14416, 326, 770, 622, 2788, 1801, 261, 16689, 1177, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
layout7.addWidget(self.pushButton6)
layout23.addWidget(self.pushButton6)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
6166f547dc5eda73f10b7fa994920bda8fcb86cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/6166f547dc5eda73f10b7fa994920bda8fcb86cc/ElementSelectorDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, ...
pass
cm = CacheManager(self.workdir) marker1 = cm.registerDoc( self.src_path1, self.result_path1, suffix=None) marker2 = cm.registerDoc( self.src_path1, self.result_path1, suffix=None) marker3 = cm.registerDoc( self.src_path1, self.result_path2, suffix='foo') marker4 = cm.registerDoc( self.src_path2, self.result_path2, suff...
def test_register_doc(self): pass
78700f1db7ab6b957dfa992d64ce75a99d7b2d70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9481/78700f1db7ab6b957dfa992d64ce75a99d7b2d70/test_cachemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4861, 67, 2434, 12, 2890, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 67, 4861, 67, 2434, 12, 2890, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
f_sharp = zeros((N, nclasses))
f_sharp = numpy.zeros((N, nclasses))
def _calc_f_sharp(N, nclasses, features): """_calc_f_sharp(N, nclasses, features) -> matrix of f sharp values.""" # f#(x, y) = SUM_i feature(x, y) f_sharp = zeros((N, nclasses)) for feature in features: for (i, j), f in feature.items(): f_sharp[i][j] += f return f_sharp
75c1a403a0975d2d2e7dd990ee2ec03a93c5d080 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/75c1a403a0975d2d2e7dd990ee2ec03a93c5d080/MaxEntropy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12448, 67, 74, 67, 674, 11441, 12, 50, 16, 290, 4701, 16, 4467, 4672, 3536, 67, 12448, 67, 74, 67, 674, 11441, 12, 50, 16, 290, 4701, 16, 4467, 13, 317, 3148, 434, 284, 699, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12448, 67, 74, 67, 674, 11441, 12, 50, 16, 290, 4701, 16, 4467, 4672, 3536, 67, 12448, 67, 74, 67, 674, 11441, 12, 50, 16, 290, 4701, 16, 4467, 13, 317, 3148, 434, 284, 699, 1...
markheads = parse(repo).values()
markheads = parse(repo).values()
def pushnonbookmarked(orig, ui, repo, *args, **opts): 'Call push with only the heads that are not bookmarked' if opts.get('non_bookmarked'): if opts.get('rev'): heads = [repo.lookup(r) for r in opts.get('rev')] else: heads = repo.heads() markheads = parse(repo).values() opts['rev'] = [head for head in heads if not(hea...
dd3b1ffac22ca6b4f0e1af392a6046b2e2072d23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/dd3b1ffac22ca6b4f0e1af392a6046b2e2072d23/bookmarks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 5836, 3618, 3355, 329, 12, 4949, 16, 5915, 16, 3538, 16, 380, 1968, 16, 2826, 4952, 4672, 296, 1477, 1817, 598, 1338, 326, 22742, 716, 854, 486, 13696, 329, 11, 309, 1500, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 5836, 3618, 3355, 329, 12, 4949, 16, 5915, 16, 3538, 16, 380, 1968, 16, 2826, 4952, 4672, 296, 1477, 1817, 598, 1338, 326, 22742, 716, 854, 486, 13696, 329, 11, 309, 1500, 18, 58...
self.schemaList.append(("New schema", schema, self.preprocessorsListSelectionModel.selectedRow().row()))
self.schemaList.append(PreprocessorSchema("New schema", schema, self.preprocessorsListSelectionModel.selectedRow().row()))
def onAddSchema(self): schema = list(self.preprocessorsList) self.schemaList.append(("New schema", schema, self.preprocessorsListSelectionModel.selectedRow().row())) index = self.schemaList.index(len(self.schemaList) - 1) self.schemaListSelectionModel.setCurrentIndex(index, QItemSelectionModel.ClearAndSelect) self.sche...
040b4fbf2aa44ad50b9f46c3dfe85ba5dcbacbec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/040b4fbf2aa44ad50b9f46c3dfe85ba5dcbacbec/OWPreprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 986, 3078, 12, 2890, 4672, 1963, 273, 666, 12, 2890, 18, 1484, 22962, 682, 13, 365, 18, 4821, 682, 18, 6923, 12, 1386, 8700, 3078, 2932, 1908, 1963, 3113, 1963, 16, 365, 18, 1484,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 986, 3078, 12, 2890, 4672, 1963, 273, 666, 12, 2890, 18, 1484, 22962, 682, 13, 365, 18, 4821, 682, 18, 6923, 12, 1386, 8700, 3078, 2932, 1908, 1963, 3113, 1963, 16, 365, 18, 1484,...
lines = linecache.getlines(file, getmodule(object).__dict__)
module = getmodule(object) if module: lines = linecache.getlines(file, module.__dict__) else: lines = linecache.getlines(file)
def findsource(object): """Return the entire source file and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of all the lines in the file and the line number indexes a line in that list. An IOError is r...
fd5f9661b1cdc97a1e7ab63437242dc50a14bb1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fd5f9661b1cdc97a1e7ab63437242dc50a14bb1c/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 3168, 12, 1612, 4672, 3536, 990, 326, 7278, 1084, 585, 471, 5023, 980, 1300, 364, 392, 733, 18, 225, 1021, 1237, 2026, 506, 279, 1605, 16, 667, 16, 707, 16, 445, 16, 10820, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 3168, 12, 1612, 4672, 3536, 990, 326, 7278, 1084, 585, 471, 5023, 980, 1300, 364, 392, 733, 18, 225, 1021, 1237, 2026, 506, 279, 1605, 16, 667, 16, 707, 16, 445, 16, 10820, 16, ...
if resQuery['Value']: for uid,name in resQuery['Value']: resDict[name] = (uid) else: return S_ERROR('No users defined')
for uid,name in resQuery['Value']: resDict[name] = (uid)
def __getUsers(self): """ Get the current user IDs and names """ resDict = {} query = "SELECT UID,UserName from FC_Users" resQuery = self.db._query(query) if resQuery['OK']: if resQuery['Value']: for uid,name in resQuery['Value']: resDict[name] = (uid) else: return S_ERROR('No users defined') else: return resQuery
15fdda60a09163c42d906a64f1b065c47e74c4ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/15fdda60a09163c42d906a64f1b065c47e74c4ee/UserAndGroupManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 6588, 12, 2890, 4672, 3536, 968, 326, 783, 729, 7115, 471, 1257, 3536, 400, 5014, 273, 2618, 843, 273, 315, 4803, 10034, 16, 15296, 628, 478, 39, 67, 6588, 6, 400, 1138, 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, 1001, 588, 6588, 12, 2890, 4672, 3536, 968, 326, 783, 729, 7115, 471, 1257, 3536, 400, 5014, 273, 2618, 843, 273, 315, 4803, 10034, 16, 15296, 628, 478, 39, 67, 6588, 6, 400, 1138, 273...
confidence=get_child_as(elem, 'confidence', cls.to_confidence), properties=get_children_as(elem, 'property', cls.to_property), uri=get_child_as(elem, 'uri', cls.to_uri),
confidence=get_child_as(elem, 'confidence', self.confidence), properties=get_children_as(elem, 'property', self.property), uri=get_child_as(elem, 'uri', self.uri),
def to_annotation(cls, elem): return Tree.Annotation( desc=collapse_wspace(get_child_text(elem, 'desc')), confidence=get_child_as(elem, 'confidence', cls.to_confidence), properties=get_children_as(elem, 'property', cls.to_property), uri=get_child_as(elem, 'uri', cls.to_uri), **elem.attrib)
5f38465441061de22d67bc9df2281f70d7ac37ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/5f38465441061de22d67bc9df2281f70d7ac37ce/PhyloXMLIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 11495, 12, 6429, 16, 3659, 4672, 327, 4902, 18, 3257, 12, 3044, 33, 21405, 67, 91, 2981, 12, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 5569, 6134, 3631, 15588, 33, 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, 358, 67, 11495, 12, 6429, 16, 3659, 4672, 327, 4902, 18, 3257, 12, 3044, 33, 21405, 67, 91, 2981, 12, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 5569, 6134, 3631, 15588, 33, 588, 67...
sage: h._build_code_from_tree(h._tree, d) """
sage: h._build_code_from_tree(h._tree, d, prefix="") """
def _build_code_from_tree(self, tree, d, prefix=''): r""" Builds the code corresponding to a given tree and prefix
0aa5d0e07206199e4e64708c13056046cecfe083 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0aa5d0e07206199e4e64708c13056046cecfe083/huffman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 710, 67, 2080, 67, 3413, 12, 2890, 16, 2151, 16, 302, 16, 1633, 2218, 11, 4672, 436, 8395, 3998, 87, 326, 981, 4656, 358, 279, 864, 2151, 471, 1633, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3510, 67, 710, 67, 2080, 67, 3413, 12, 2890, 16, 2151, 16, 302, 16, 1633, 2218, 11, 4672, 436, 8395, 3998, 87, 326, 981, 4656, 358, 279, 864, 2151, 471, 1633, 2, -100, -100, -10...
return [(k, terms[k], links[k]) for k in keys]
print [(k, terms[k], links[k]) for k in keys] return [(k, terms[k], links[k]) for k in keys]
def _extract_term_index(self): """ Extract the set of terms that should be indexed from all documented docstrings. Return the extracted set as a list of tuples of the form C{(key, term, [links])}. This list is used by L{_write_indices} to construct the term index. @rtype: C{list} of C{(string, L{markup.ParsedDocstring...
08e4fc8223f35032d1f07de63428e0fccd68cf00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/08e4fc8223f35032d1f07de63428e0fccd68cf00/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8004, 67, 6408, 67, 1615, 12, 2890, 4672, 3536, 8152, 326, 444, 434, 6548, 716, 1410, 506, 8808, 628, 777, 23051, 997, 10219, 18, 225, 2000, 326, 9438, 444, 487, 279, 666, 434, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8004, 67, 6408, 67, 1615, 12, 2890, 4672, 3536, 8152, 326, 444, 434, 6548, 716, 1410, 506, 8808, 628, 777, 23051, 997, 10219, 18, 225, 2000, 326, 9438, 444, 487, 279, 666, 434, 10...
return Inf
return _Inf
def next_plus(self, context=None): """Returns the smallest representable number larger than itself.""" if context is None: context = getcontext()
ebab68ad25421add045049bc0a87fbe7000ec3f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/ebab68ad25421add045049bc0a87fbe7000ec3f7/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 10103, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 13541, 2406, 429, 1300, 10974, 2353, 6174, 12123, 309, 819, 353, 599, 30, 819, 273, 336, 2472, 1435, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 10103, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 13541, 2406, 429, 1300, 10974, 2353, 6174, 12123, 309, 819, 353, 599, 30, 819, 273, 336, 2472, 1435, 2, -100, -100, ...
if not self.qvalues.has_key(state): self.qvalues[state] = util.Counter() actions = self.getLegalActions(state) for action in actions: self.qvalues[state][action] = 0.0
def getQValue(self, state, action): """ Should return Q(state,action) = w * featureVector where * is the dotProduct operator """ if not self.qvalues.has_key(state): self.qvalues[state] = util.Counter() actions = self.getLegalActions(state) for action in actions: self.qvalues[state][action] = 0.0 featureVector = self.fe...
6640a0dea66eaf94a29d8f3963267edf9b798439 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/840/6640a0dea66eaf94a29d8f3963267edf9b798439/qlearningAgents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23413, 620, 12, 2890, 16, 919, 16, 1301, 4672, 3536, 9363, 327, 2238, 12, 2019, 16, 1128, 13, 273, 341, 380, 2572, 5018, 1625, 380, 353, 326, 3928, 4133, 3726, 3536, 2572, 5018, 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, 23413, 620, 12, 2890, 16, 919, 16, 1301, 4672, 3536, 9363, 327, 2238, 12, 2019, 16, 1128, 13, 273, 341, 380, 2572, 5018, 1625, 380, 353, 326, 3928, 4133, 3726, 3536, 2572, 5018, 273, 3...
line()
line("block-close-1")
def compileNode(node, enableDebug=False): global indent global pretty if node.getChild("commentsBefore", False) != None: line() for comment in node.getChild("commentsBefore").children: # Additional new lines before big comment if comment.get("detail", False) == "multi": line() pretty += comment.get("text") # New ...
9899d5c45563dd4f9057d173402244e0cf855c51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/9899d5c45563dd4f9057d173402244e0cf855c51/prettyprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 16, 4237, 2829, 33, 8381, 4672, 225, 2552, 3504, 2552, 7517, 282, 309, 756, 18, 588, 1763, 2932, 9231, 4649, 3113, 1083, 13, 480, 599, 30, 980, 2932, 2629, 17, 441...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 16, 4237, 2829, 33, 8381, 4672, 225, 2552, 3504, 2552, 7517, 282, 309, 756, 18, 588, 1763, 2932, 9231, 4649, 3113, 1083, 13, 480, 599, 30, 980, 2932, 2629, 17, 441...
s += '%s REFERRERS:\n' % len(referrers)
print '%s REFERRERS:\n' % len(referrers)
def referrersStr(self, numEach=3): """referrers of the first few of each type of object""" s = '' counts = list(set(self._count2types.keys())) counts.sort() counts.reverse() for count in counts: types = makeList(self._count2types[count]) for typ in types: s += '\n\nTYPE: %s' % typ for i in xrange(min(numEach,len(self._...
2f68815351a8c1fda94205efb8571c23be860b44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/2f68815351a8c1fda94205efb8571c23be860b44/ObjectPool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1278, 370, 414, 1585, 12, 2890, 16, 818, 3442, 33, 23, 4672, 3536, 1734, 370, 414, 434, 326, 1122, 11315, 434, 1517, 618, 434, 733, 8395, 272, 273, 875, 6880, 273, 666, 12, 542, 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, 1278, 370, 414, 1585, 12, 2890, 16, 818, 3442, 33, 23, 4672, 3536, 1734, 370, 414, 434, 326, 1122, 11315, 434, 1517, 618, 434, 733, 8395, 272, 273, 875, 6880, 273, 666, 12, 542, 12, ...
for var in spc.vars: if self.dom(var) != NoDom: spc.set_dom(var, self.dom(var).copy())
print "-- cloning %s to %s --" % (self.id, spc.id) spc.domain_history = [] for domset in self.domain_history: spc.domain_history.append(domset) assert spc._distributable() spc.distributor.start()
def clone(self): #XXX: lazy copy of domains would be nice spc = ComputationSpace(NoProblem, parent=self) for var in spc.vars: if self.dom(var) != NoDom: spc.set_dom(var, self.dom(var).copy()) return spc
617bab291499a7d2579c0901c4e68e67e54519b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/617bab291499a7d2579c0901c4e68e67e54519b6/computationspace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3236, 12, 2890, 4672, 468, 15639, 30, 7962, 1610, 434, 10128, 4102, 506, 13752, 1694, 71, 273, 14169, 367, 3819, 12, 2279, 13719, 16, 982, 33, 2890, 13, 1172, 5238, 927, 22470, 738, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3236, 12, 2890, 4672, 468, 15639, 30, 7962, 1610, 434, 10128, 4102, 506, 13752, 1694, 71, 273, 14169, 367, 3819, 12, 2279, 13719, 16, 982, 33, 2890, 13, 1172, 5238, 927, 22470, 738, 87, ...
elif EQUAL(argv[i], "-mdd") and i < argc-1:
elif EQUAL(argv[i], "-mdd") and i < nArgc-1:
def main( argv = None ): bComputeMinMax = False bSample = False bShowGCPs = True bShowMetadata = True bShowRAT=True bStats = False bApproxStats = True bShowColorTable = True bComputeChecksum = False bReportHistograms = False pszFilename = None papszExtraMDDomains = [ ] pszProjection = None hTransform = None #/* Must ...
dc41a30d065864682ba1a042c8b607439d84a8a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/dc41a30d065864682ba1a042c8b607439d84a8a4/gdalinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 5261, 273, 599, 262, 30, 225, 324, 7018, 17454, 273, 1083, 324, 8504, 273, 1083, 324, 5706, 43, 4258, 87, 273, 1053, 324, 5706, 2277, 273, 1053, 324, 5706, 54, 789, 33, 5510,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 5261, 273, 599, 262, 30, 225, 324, 7018, 17454, 273, 1083, 324, 8504, 273, 1083, 324, 5706, 43, 4258, 87, 273, 1053, 324, 5706, 2277, 273, 1053, 324, 5706, 54, 789, 33, 5510,...
return self._get_dav_props_hlpr(cr, nodes.node_dir,
return self._get_dav_props_hlpr(cr, nodes.node_file,
def get_dav_props(self, cr): return self._get_dav_props_hlpr(cr, nodes.node_dir, None, 'file_id', self.file_id) #'document.webdav.dir.property', 'dir_id', self.dir_id)
a7cc6e51a439584931bc234557d528e9ac59ac4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/a7cc6e51a439584931bc234557d528e9ac59ac4a/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 20752, 67, 9693, 12, 2890, 16, 4422, 4672, 327, 365, 6315, 588, 67, 20752, 67, 9693, 67, 25356, 683, 12, 3353, 16, 2199, 18, 2159, 67, 768, 16, 599, 16, 296, 768, 67, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 20752, 67, 9693, 12, 2890, 16, 4422, 4672, 327, 365, 6315, 588, 67, 20752, 67, 9693, 67, 25356, 683, 12, 3353, 16, 2199, 18, 2159, 67, 768, 16, 599, 16, 296, 768, 67, 350, ...
f = self.send_head() if f: if type(f) in (type(""), type(u'')): self.wfile.write(f) else: buf = f.read(LMC.configuration.licornd.buffer_size) while buf: self.wfile.write(buf)
try: f = self.send_head() if f: if type(f) in (type(""), type(u'')): self.wfile.write(f) else:
def do_GET(self): f = self.send_head() if f: if type(f) in (type(""), type(u'')): self.wfile.write(f) else: buf = f.read(LMC.configuration.licornd.buffer_size) while buf: self.wfile.write(buf) buf = f.read(LMC.configuration.licornd.buffer_size) f.close()
26616824ce153098ffae97adf6f74e20cabfd843 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/26616824ce153098ffae97adf6f74e20cabfd843/wmi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 775, 30, 284, 273, 365, 18, 4661, 67, 1978, 1435, 309, 284, 30, 309, 618, 12, 74, 13, 316, 261, 723, 2932, 6, 3631, 618, 12, 89, 6309, 3719, 30, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 775, 30, 284, 273, 365, 18, 4661, 67, 1978, 1435, 309, 284, 30, 309, 618, 12, 74, 13, 316, 261, 723, 2932, 6, 3631, 618, 12, 89, 6309, 3719, 30, 365,...
return self.readlines().join('')
return ''.join(self.readlines())
def read(self): # Note: no size argument -- read until EOF only! return self.readlines().join('')
a38eafabffbaad508e52c7f1c54f56cd38f1ca11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a38eafabffbaad508e52c7f1c54f56cd38f1ca11/multifile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 4672, 468, 3609, 30, 1158, 963, 1237, 1493, 855, 3180, 6431, 1338, 5, 327, 365, 18, 896, 3548, 7675, 5701, 2668, 6134, 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, 855, 12, 2890, 4672, 468, 3609, 30, 1158, 963, 1237, 1493, 855, 3180, 6431, 1338, 5, 327, 365, 18, 896, 3548, 7675, 5701, 2668, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
for filename in os.listdir(unicode(GetInfoDir())): file_path = os.path.join(unicode(GetInfoDir()), filename) if os.path.isfile(file_path) and filename != CODEREVIEW_SETTINGS_FILE: shutil.move(file_path, GetChangesDir())
def main(argv=None): if argv is None: argv = sys.argv if len(argv) == 1: Help() return 0; try: # Create the directories where we store information about changelists if it # doesn't exist. if not os.path.exists(GetInfoDir()): os.mkdir(GetInfoDir()) if not os.path.exists(GetChangesDir()): os.mkdir(GetChangesDir()) # Fo...
95e062100e59307154071ae1fc163afc392a92fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/95e062100e59307154071ae1fc163afc392a92fa/gcl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 225, 309, 562, 12, 19485, 13, 422, 404, 30, 11288, 1435, 327, 374, 31, 225, 775, 30, 468, 1788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 225, 309, 562, 12, 19485, 13, 422, 404, 30, 11288, 1435, 327, 374, 31, 225, 775, 30, 468, 1788, ...
filename = '%s/invenio-profile-stats-%s.raw' % (tmpdir, date)
filename = '%s/invenio-profile-stats-%s.raw' % (CFG_TMPDIR, date)
def _profiler(req): """ This handler wrap the default handler with a profiler. Profiling data is written into ${tmpdir}/invenio-profile-stats-datetime.raw, and is displayed at the bottom of the webpage. To use add profile=1 to your url. To change sorting algorithm you can provide profile=algorithm_name. You can add mor...
4d0f961a9df4806dfb0a7235317bb04143990acf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2111/4d0f961a9df4806dfb0a7235317bb04143990acf/webinterface_handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 23097, 12, 3658, 4672, 3536, 1220, 1838, 2193, 326, 805, 1838, 598, 279, 16583, 18, 1186, 74, 4973, 501, 353, 5941, 1368, 3531, 5645, 1214, 4004, 267, 3995, 1594, 17, 5040, 17, 5296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23097, 12, 3658, 4672, 3536, 1220, 1838, 2193, 326, 805, 1838, 598, 279, 16583, 18, 1186, 74, 4973, 501, 353, 5941, 1368, 3531, 5645, 1214, 4004, 267, 3995, 1594, 17, 5040, 17, 5296...
WHERE build.config=%s AND report.category='coverage' GROUP BY build.rev, build.platform ORDER BY build.rev_time""", (config.name,))
WHERE build.config=%%s AND report.category='coverage' GROUP BY build.rev_time, build.rev, build.platform ORDER BY build.rev_time""" % (db.cast('item_lines.value', 'int'), db.cast('item_lines.value', 'int'), db.cast('item_percentage.value', 'int')), (config.name,))
def generate_chart_data(self, req, config, category): assert category == 'coverage'
7691c7cdcd681e003e427cd68dcc1ffb489b9354 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/7691c7cdcd681e003e427cd68dcc1ffb489b9354/charts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11563, 67, 892, 12, 2890, 16, 1111, 16, 642, 16, 3150, 4672, 1815, 3150, 422, 296, 16356, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11563, 67, 892, 12, 2890, 16, 1111, 16, 642, 16, 3150, 4672, 1815, 3150, 422, 296, 16356, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
cmdline = CommandLine('test', [])
def test_combine(self): cmdline = CommandLine('test', []) list1 = ['foo', 'bar'] list2 = ['baz'] combined = list(cmdline._combine(list1, list2)) self.assertEqual([('foo', 'baz'), ('bar', None)], combined)
8872b5dbb2181bdb571522d40140bb5dab2c193e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/8872b5dbb2181bdb571522d40140bb5dab2c193e/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14082, 12, 2890, 4672, 666, 21, 273, 10228, 11351, 2187, 296, 3215, 3546, 666, 22, 273, 10228, 70, 1561, 3546, 8224, 273, 666, 12, 4172, 1369, 6315, 14082, 12, 1098, 21, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14082, 12, 2890, 4672, 666, 21, 273, 10228, 11351, 2187, 296, 3215, 3546, 666, 22, 273, 10228, 70, 1561, 3546, 8224, 273, 666, 12, 4172, 1369, 6315, 14082, 12, 1098, 21, 16, ...
if usingSubLanguageBackgroundColors: scimoz.caretLineVisible = False else: scimoz.caretLineBack = self._colors['caretLineBack'] scimoz.caretLineVisible = self._booleans['caretLineVisible']
scimoz.caretLineBack = self._colors['caretLineBack'] scimoz.caretLineVisible = self._booleans['caretLineVisible']
def applyScheme(self, scimoz, language, encoding, alternateType): registryService = components.classes['@activestate.com/koLanguageRegistryService;1'].\ getService(components.interfaces.koILanguageRegistryService) languageObj = registryService.getLanguage(language) # Don't worry about document-specific lexers. if langu...
d8d56e083dd722a3c2821e6640dc66a5c69acb45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9914/d8d56e083dd722a3c2821e6640dc66a5c69acb45/koScintillaSchemeService.p.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 9321, 12, 2890, 16, 888, 381, 11142, 16, 2653, 16, 2688, 16, 12184, 559, 4672, 4023, 1179, 273, 4085, 18, 4701, 3292, 36, 11422, 395, 340, 18, 832, 19, 28179, 3779, 4243, 1179, 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, 2230, 9321, 12, 2890, 16, 888, 381, 11142, 16, 2653, 16, 2688, 16, 12184, 559, 4672, 4023, 1179, 273, 4085, 18, 4701, 3292, 36, 11422, 395, 340, 18, 832, 19, 28179, 3779, 4243, 1179, 3...
('0.6',0.6),
def buildPatch(self,patchFile,keep,log): """Build patch.""" eids = ((self.key,),self.key)[isinstance(self.key,tuple)] for eid,value in zip(eids,self.choiceValues[self.chosen]): gmst = MreGmst(('GMST',0,0,0,0)) gmst.eid,gmst.value,gmst.longFids = eid,value,True fid = gmst.fid = keep(gmst.getFallout3Fid()) patchFile.GMST...
33c406410851d297b48db7962bfb397b6ace74bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6682/33c406410851d297b48db7962bfb397b6ace74bb/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 2272, 812, 16, 10102, 16, 1330, 4672, 3536, 3116, 4729, 12123, 425, 2232, 273, 14015, 2890, 18, 856, 16, 3631, 2890, 18, 856, 25146, 291, 1336, 12, 2890, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 2272, 812, 16, 10102, 16, 1330, 4672, 3536, 3116, 4729, 12123, 425, 2232, 273, 14015, 2890, 18, 856, 16, 3631, 2890, 18, 856, 25146, 291, 1336, 12, 2890, 18, ...
self.musicManager.setVolume(0.7)
def enableMusic(self, bEnableMusic): if self.AppHasAudioFocus and self.musicManagerIsValid: self.musicManager.setActive(bEnableMusic) self.musicActive = bEnableMusic if bEnableMusic: self.notify.debug("Enabling music") else: self.notify.debug("Disabling music") def SetAllSfxEnables(self, bEnabled): for i in range(...
def createAudioManager(self): self.sfxManager = AudioManager.createAudioManager() self.sfxManagerIsValid=self.sfxManager!=None \ and self.sfxManager.isValid() if self.sfxManagerIsValid: self.sfxManager.setActive(self.sfxActive)
907e6b55cb95a959cb571406b4e7e5e8642498c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/907e6b55cb95a959cb571406b4e7e5e8642498c8/ShowBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12719, 1318, 12, 2890, 4672, 365, 18, 87, 19595, 1318, 273, 15045, 1318, 18, 2640, 12719, 1318, 1435, 365, 18, 87, 19595, 1318, 20536, 33, 2890, 18, 87, 19595, 1318, 5, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12719, 1318, 12, 2890, 4672, 365, 18, 87, 19595, 1318, 273, 15045, 1318, 18, 2640, 12719, 1318, 1435, 365, 18, 87, 19595, 1318, 20536, 33, 2890, 18, 87, 19595, 1318, 5, 33, 7036, ...
self[k] = self[k].e(i) return self
return self.set_index(k, self[k].e(i))
def e(self, i):
549f7e68534e471b15e27040787328464875cebe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/549f7e68534e471b15e27040787328464875cebe/crystals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 12, 2890, 16, 277, 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, 425, 12, 2890, 16, 277, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
raise ValueError('Debug %s no longer found (maybe it has expired?)' % debugcount)
raise ValueError( 'Debug %s no longer found (maybe it has expired?)' % debugcount)
def replacement(self, **form): try: if 'debugcount' not in form: raise ValueError('You must provide a debugcount parameter') debugcount = form.pop('debugcount') try: debugcount = int(debugcount) except ValueError: raise ValueError('Bad value for debugcount') if debugcount not in self.debug_infos: raise ValueError('Debu...
b5e2d6e4bc4f0a7b4a965ca5562bbb19108f83d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/b5e2d6e4bc4f0a7b4a965ca5562bbb19108f83d1/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6060, 12, 2890, 16, 2826, 687, 4672, 775, 30, 309, 296, 4148, 1883, 11, 486, 316, 646, 30, 1002, 2068, 2668, 6225, 1297, 5615, 279, 1198, 1883, 1569, 6134, 1198, 1883, 273, 646, 18, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6060, 12, 2890, 16, 2826, 687, 4672, 775, 30, 309, 296, 4148, 1883, 11, 486, 316, 646, 30, 1002, 2068, 2668, 6225, 1297, 5615, 279, 1198, 1883, 1569, 6134, 1198, 1883, 273, 646, 18, 51...
at.params['dft_virial'] = at.virial / (HARTREE/(BOHR**3))
at.params['dft_stress'] = at.virial/at.cell_volume() / (HARTREE/(BOHR**3))
def save_ref_config(config_list): for at in config_list: at.params['dft_energy'] = at.params['energy'] / HARTREE at.add_property('dft_force', 0.0, n_cols=3) at.dft_force[:] = at.force / (HARTREE/BOHR) at.params['dft_virial'] = at.virial / (HARTREE/(BOHR**3))
c678eb69f4e3322139aeed2586b2b437a89e282f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/c678eb69f4e3322139aeed2586b2b437a89e282f/sio2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1734, 67, 1425, 12, 1425, 67, 1098, 4672, 225, 364, 622, 316, 642, 67, 1098, 30, 622, 18, 2010, 3292, 72, 1222, 67, 15358, 3546, 273, 622, 18, 2010, 3292, 15358, 3546, 342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1734, 67, 1425, 12, 1425, 67, 1098, 4672, 225, 364, 622, 316, 642, 67, 1098, 30, 622, 18, 2010, 3292, 72, 1222, 67, 15358, 3546, 273, 622, 18, 2010, 3292, 15358, 3546, 342, ...
"""Return a tupel of x and y coordinates of the pointer on the root window."""
"""Return a tuple of x and y coordinates of the pointer on the root window."""
def winfo_pointerxy(self): """Return a tupel of x and y coordinates of the pointer on the root window.""" return self._getints( self.tk.call('winfo', 'pointerxy', self._w))
0be45baf87a964eeab10570cea3c1f900317bc97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0be45baf87a964eeab10570cea3c1f900317bc97/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 1376, 67, 10437, 1698, 12, 2890, 4672, 3536, 990, 279, 3193, 434, 619, 471, 677, 5513, 434, 326, 4407, 603, 326, 1365, 2742, 12123, 327, 365, 6315, 588, 28142, 12, 365, 18, 16099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 341, 1376, 67, 10437, 1698, 12, 2890, 4672, 3536, 990, 279, 3193, 434, 619, 471, 677, 5513, 434, 326, 4407, 603, 326, 1365, 2742, 12123, 327, 365, 6315, 588, 28142, 12, 365, 18, 16099, ...
m=None
m = (None, None)
def quoteaddr(addr): """Quote a subset of the email addresses defined by RFC 821. Should be able to handle anything rfc822.parseaddr can handle. """ m=None try: m=rfc822.parseaddr(addr)[1] except AttributeError: pass if not m: #something weird here.. punt -ddm return addr else: return "<%s>" % m
d5ec32d4b1b8eff184ffdc1303c8475a386c395a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d5ec32d4b1b8eff184ffdc1303c8475a386c395a/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4914, 684, 3069, 12, 4793, 4672, 3536, 10257, 279, 7931, 434, 326, 2699, 6138, 2553, 635, 8372, 1725, 5340, 18, 225, 9363, 506, 7752, 358, 1640, 6967, 16590, 24532, 18, 2670, 4793, 848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4914, 684, 3069, 12, 4793, 4672, 3536, 10257, 279, 7931, 434, 326, 2699, 6138, 2553, 635, 8372, 1725, 5340, 18, 225, 9363, 506, 7752, 358, 1640, 6967, 16590, 24532, 18, 2670, 4793, 848, ...
public.write(self._public_private_link('toc', from_private=0)) private.write(self._public_private_link('toc', from_private=1))
where = 'toc-everything' public.write(self._public_private_link(where, from_private=0)) private.write(self._public_private_link(where, from_private=1))
def _write_project_toc(self, public, private): """ @return: An HTML page containing the table of contents page for the whole project. This page lists the classes, exceptions, functions, and variables defined by any module or package in the project. @rtype: C{string} """ # Header and name. str = self._header('Everythin...
21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 4406, 67, 1391, 12, 2890, 16, 1071, 16, 3238, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 4191, 326, 1014, 434, 2939, 1363, 364, 326, 7339, 1984, 18, 225, 1220, 1363, 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, 389, 2626, 67, 4406, 67, 1391, 12, 2890, 16, 1071, 16, 3238, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 4191, 326, 1014, 434, 2939, 1363, 364, 326, 7339, 1984, 18, 225, 1220, 1363, 6...
report_sxw.report_sxw('report.hr.timesheet.invoice.account.analytic.account.cost_ledger', 'account.analytic.account', 'addons/hr_timesheet_invoice/report/cost_ledger.rml',parser=account_analytic_cost_ledger)
def _account_sum_debit(self, account_id, date1, date2): self.cr.execute("SELECT sum(amount) FROM account_analytic_line WHERE account_id=%d AND date>=%s AND date<=%s AND amount>0", (account_id, date1, date2)) return self.cr.fetchone()[0] or 0.0
def _lines(self, account_id, date1, date2): lineobj = self.pool.get('account.analytic.line') line_ids = lineobj.search(self.cr, self.uid, [('account_id','=',account_id), ('date','>=',date1), ('date','<=',date2)]) result = {} for line in lineobj.browse(self.cr, self.uid, line_ids): if line.general_account_id.id not in r...
72f3ca8aa3d8c0857889e5ed6e0fb08e8b43eb98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/72f3ca8aa3d8c0857889e5ed6e0fb08e8b43eb98/cost_ledger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3548, 12, 2890, 16, 2236, 67, 350, 16, 1509, 21, 16, 1509, 22, 4672, 980, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 304, 7834, 335, 18, 1369, 6134, 980, 67, 2232, 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, 389, 3548, 12, 2890, 16, 2236, 67, 350, 16, 1509, 21, 16, 1509, 22, 4672, 980, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 304, 7834, 335, 18, 1369, 6134, 980, 67, 2232, 273, ...
time.sleep(2) notdone = 1 while notdone: try: notdone = 0 except: pass time.sleep(0.1)
def _set_app(self): if self.app == None: self.app = self.__class__.AppClass(self.command) time.sleep(2) notdone = 1 while notdone: try: notdone = 0 except: pass time.sleep(0.1)
4b13cbf3e9089683f6d67d3615270789a70b7b47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/4b13cbf3e9089683f6d67d3615270789a70b7b47/xmmsaudioplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2910, 12, 2890, 4672, 309, 365, 18, 2910, 422, 599, 30, 365, 18, 2910, 273, 365, 16186, 1106, 25648, 3371, 797, 12, 2890, 18, 3076, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2910, 12, 2890, 4672, 309, 365, 18, 2910, 422, 599, 30, 365, 18, 2910, 273, 365, 16186, 1106, 25648, 3371, 797, 12, 2890, 18, 3076, 13, 225, 2, -100, -100, -100, -100, ...
print """TEST-UNEXPECTED-FAIL | %s | test failed, see log %s.log:
print """TEST-UNEXPECTED-FAIL | %s | test failed, see following log:
def runTests(xpcshell, testdirs=[], xrePath=None, testFile=None, manifest=None, interactive=False, keepGoing=False): """Run the tests in |testdirs| using the |xpcshell| executable. |xrePath|, if provided, is the path to the XRE to use. |testFile|, if provided, indicates a single test to run. |manifeest|, if provided, i...
22edf124e17b47e4a025c26b75179dd43cb9ceba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/22edf124e17b47e4a025c26b75179dd43cb9ceba/runxpcshelltests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 14650, 12, 92, 2436, 10304, 16, 1842, 8291, 22850, 6487, 619, 266, 743, 33, 7036, 16, 1842, 812, 33, 7036, 16, 5643, 33, 7036, 16, 12625, 33, 8381, 16, 3455, 5741, 310, 33, 8381,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14650, 12, 92, 2436, 10304, 16, 1842, 8291, 22850, 6487, 619, 266, 743, 33, 7036, 16, 1842, 812, 33, 7036, 16, 5643, 33, 7036, 16, 12625, 33, 8381, 16, 3455, 5741, 310, 33, 8381,...
monkeypatch(cls, 'test_' + k, k)
monkeypatch(mcs, 'test_' + k, k)
def __init__(cls, name, bases, classdict): if 'table' in classdict: monkeypatch(cls, 'test_insert', 'insert') for k in ['not_nullable', 'unique']: if k + 's' in classdict: monkeypatch(cls, 'test_' + k, k)
e26115b12b8916821fc089470a71b177e9807d0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/e26115b12b8916821fc089470a71b177e9807d0e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 6429, 16, 508, 16, 8337, 16, 667, 1576, 4672, 309, 296, 2121, 11, 316, 667, 1576, 30, 6921, 856, 2272, 12, 6429, 16, 296, 3813, 67, 6387, 2187, 296, 6387, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 6429, 16, 508, 16, 8337, 16, 667, 1576, 4672, 309, 296, 2121, 11, 316, 667, 1576, 30, 6921, 856, 2272, 12, 6429, 16, 296, 3813, 67, 6387, 2187, 296, 6387, 6134, ...
def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port.
class Redirector: def __init__(self, serial, socket): self.serial = serial self.socket = socket
def writer(): """loop forever and copy console->serial""" global connection try: while 1: s.write(connection.recv(1024)) except socket.error, msg: print msg
d1bc025a5ffd45b7cb45bdc2b2b0210119acfd93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/d1bc025a5ffd45b7cb45bdc2b2b0210119acfd93/tcp_serial_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2633, 13332, 3536, 6498, 21238, 471, 1610, 2983, 2122, 8818, 8395, 2552, 1459, 775, 30, 1323, 404, 30, 272, 18, 2626, 12, 4071, 18, 18334, 12, 2163, 3247, 3719, 1335, 2987, 18, 1636, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2633, 13332, 3536, 6498, 21238, 471, 1610, 2983, 2122, 8818, 8395, 2552, 1459, 775, 30, 1323, 404, 30, 272, 18, 2626, 12, 4071, 18, 18334, 12, 2163, 3247, 3719, 1335, 2987, 18, 1636, 16,...
security.declareProtected(permissions.ModifyPortalContent,
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
def edit(self, instance, name, value): if self.allow(name): instance[name] = value
67576cc5acaaf506c58ee3fea91da40c0a6516a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/67576cc5acaaf506c58ee3fea91da40c0a6516a2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 791, 16, 508, 16, 460, 4672, 309, 365, 18, 5965, 12, 529, 4672, 791, 63, 529, 65, 273, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3874, 12, 2890, 16, 791, 16, 508, 16, 460, 4672, 309, 365, 18, 5965, 12, 529, 4672, 791, 63, 529, 65, 273, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...