rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
texturePattern = re.compile("TEXTURE\s+(.*)") litTexturePattern = re.compile("TEXTURE_LIT\s+(.*)") foundTexture = 0
v7TexturePattern = re.compile("([^\s]*)\s+// Texture") v8TexturePattern = re.compile("TEXTURE\s+(.*)") v8LitTexturePattern = re.compile("TEXTURE_LIT\s+(.*)") textureFound = 0
def handleObject(dirpath, filename, libraryFileHandle, libraryPlaceholderFileHandle, objects, authors): objectSourcePath = os.path.join(dirpath, filename) parts = dirpath.split("/", 2) print "Handling object: " + objectSourcePath # Create an instance of the SceneryObject class sceneryObject = classes.SceneryObject(parts[2], filename) # Set up paths and copy files if not copySupportFiles(dirpath, parts): return # Handle the info.txt file if not handleInfoFile(dirpath, parts, ".obj", sceneryObject, authors): return # Copy the object file shutil.copyfile(objectSourcePath, os.path.join(classes.Configuration.osxFolder, parts[2], filename)) # Open the object file = open(objectSourcePath, "rU") objectFileContents = file.readlines() file.close() # Define the regex patterns: texturePattern = re.compile("TEXTURE\s+(.*)") litTexturePattern = re.compile("TEXTURE_LIT\s+(.*)") foundTexture = 0 for line in objectFileContents: result = texturePattern.match(line) if result: textureFile = os.path.join(dirpath, result.group(1)) if (result.group(1) == ""): print " WARNING: Object specifies a blank texture - valid but may not be as intended" elif os.path.isfile(textureFile): shutil.copyfile(textureFile, os.path.join(classes.Configuration.osxFolder, parts[2], result.group(1))) else: print " ERROR: Cannot find texture - object excluded (" + textureFile + ")" return result = litTexturePattern.match(line) if result: textureFile = os.path.join(dirpath, result.group(1)) if os.path.isfile(textureFile): shutil.copyfile(textureFile, os.path.join(classes.Configuration.osxFolder, parts[2], result.group(1))) else: print " ERROR: Cannot find LIT texture - object excluded (" + textureFile + ")" return # Object is valid, append it to the list objects.append(sceneryObject) # Write to the library.txt file for virtualPath in sceneryObject.virtualPaths: libraryFileHandle.write("EXPORT opensceneryx/" + virtualPath + " " + sceneryObject.getFilePath() + "\n") libraryPlaceholderFileHandle.write("EXPORT_BACKUP opensceneryx/" + virtualPath + " opensceneryx/placeholder.obj\n")
5d85d733c345934088eebd21200220a1ee2d66fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5176/5d85d733c345934088eebd21200220a1ee2d66fa/functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 921, 12, 1214, 803, 16, 1544, 16, 5313, 812, 3259, 16, 5313, 14038, 812, 3259, 16, 2184, 16, 14494, 4672, 733, 1830, 743, 273, 1140, 18, 803, 18, 5701, 12, 1214, 803, 16, 1544, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 921, 12, 1214, 803, 16, 1544, 16, 5313, 812, 3259, 16, 5313, 14038, 812, 3259, 16, 2184, 16, 14494, 4672, 733, 1830, 743, 273, 1140, 18, 803, 18, 5701, 12, 1214, 803, 16, 1544, ...
result += compress(child) result += ","
result += compress(child) + ","
def var(node): result = "var " for child in node: result += compress(child) result += "," result = result[:-1] return result
73f921aff45498686725bce81103a5e41f678a1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/73f921aff45498686725bce81103a5e41f678a1c/Compressor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 569, 12, 2159, 4672, 563, 273, 315, 1401, 315, 364, 1151, 316, 756, 30, 563, 1011, 8099, 12, 3624, 13, 397, 5753, 563, 273, 563, 10531, 17, 21, 65, 225, 327, 563, 282, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 569, 12, 2159, 4672, 563, 273, 315, 1401, 315, 364, 1151, 316, 756, 30, 563, 1011, 8099, 12, 3624, 13, 397, 5753, 563, 273, 563, 10531, 17, 21, 65, 225, 327, 563, 282, 2, -100, -100,...
self.widgets["variantHBox"].set_sensitive(not is_untimed_game)
self.widgets["variantFrame"].set_sensitive(not is_untimed_game)
def onUntimedCheckToggled (self, check): is_untimed_game = check.get_active() self.widgets["timeControlConfigVBox"].set_sensitive(not is_untimed_game) # on FICS, untimed games can't be rated and can't be a chess variant self.widgets["variantHBox"].set_sensitive(not is_untimed_game) self.widgets["ratedGameCheck"].set_sensitive(not is_untimed_game) self.__updateYourRatingHBox()
d29f291e2b68981e77b9413248abc5f4e586b518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/d29f291e2b68981e77b9413248abc5f4e586b518/ICLounge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 57, 496, 381, 329, 1564, 56, 23972, 1259, 261, 2890, 16, 866, 4672, 353, 67, 318, 20905, 67, 13957, 273, 866, 18, 588, 67, 3535, 1435, 365, 18, 18148, 9614, 957, 3367, 809, 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, 603, 57, 496, 381, 329, 1564, 56, 23972, 1259, 261, 2890, 16, 866, 4672, 353, 67, 318, 20905, 67, 13957, 273, 866, 18, 588, 67, 3535, 1435, 365, 18, 18148, 9614, 957, 3367, 809, 58, ...
return self.statusbar.prompt(q).lower().startswith('y')
try: reply = self.statusbar.prompt(q) except ValueError: return False return reply.lower() in ('y', 'yes')
def confirm(self, q): """Ask for yes or no and return boolean""" return self.statusbar.prompt(q).lower().startswith('y')
83b5a3d5fb6f715f6d398cea0d7d0436a242186d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6932/83b5a3d5fb6f715f6d398cea0d7d0436a242186d/urwid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 2890, 16, 1043, 4672, 3536, 23663, 364, 12465, 578, 1158, 471, 327, 1250, 8395, 327, 365, 18, 2327, 3215, 18, 13325, 12, 85, 2934, 8167, 7675, 17514, 1918, 2668, 93, 6134, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 2890, 16, 1043, 4672, 3536, 23663, 364, 12465, 578, 1158, 471, 327, 1250, 8395, 327, 365, 18, 2327, 3215, 18, 13325, 12, 85, 2934, 8167, 7675, 17514, 1918, 2668, 93, 6134, 2, ...
self.sts = -1
def __init__(self, cmd, capturestderr=0, bufsize=-1): """The parameter 'cmd' is the shell command to execute in a sub-process. The 'capturestderr' flag, if true, specifies that the object should capture standard error output of the child process. The default is false. If the 'bufsize' parameter is specified, it specifies the size of the I/O buffers to/from the child process.""" if type(cmd) == type(''): cmd = ['/bin/sh', '-c', cmd] p2cread, p2cwrite = os.pipe() c2pread, c2pwrite = os.pipe() if capturestderr: errout, errin = os.pipe() self.pid = os.fork() if self.pid == 0: # Child os.close(0) os.close(1) if os.dup(p2cread) <> 0: sys.stderr.write('popen2: bad read dup\n') if os.dup(c2pwrite) <> 1: sys.stderr.write('popen2: bad write dup\n') if capturestderr: os.close(2) if os.dup(errin) <> 2: pass for i in range(3, MAXFD): try: os.close(i) except: pass try: os.execvp(cmd[0], cmd) finally: os._exit(1) # Shouldn't come here, I guess os._exit(1) os.close(p2cread) self.tochild = os.fdopen(p2cwrite, 'w', bufsize) os.close(c2pwrite) self.fromchild = os.fdopen(c2pread, 'r', bufsize) if capturestderr: os.close(errin) self.childerr = os.fdopen(errout, 'r', bufsize) else: self.childerr = None self.sts = -1 # Child not completed yet _active.append(self)
1848b6e465ce811cf66719c2d3c4e6b4a0d5c4d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1848b6e465ce811cf66719c2d3c4e6b4a0d5c4d1/popen2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1797, 16, 7477, 11241, 33, 20, 16, 1681, 1467, 29711, 21, 4672, 3536, 1986, 1569, 296, 4172, 11, 353, 326, 5972, 1296, 358, 1836, 316, 279, 720, 17, 2567...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1797, 16, 7477, 11241, 33, 20, 16, 1681, 1467, 29711, 21, 4672, 3536, 1986, 1569, 296, 4172, 11, 353, 326, 5972, 1296, 358, 1836, 316, 279, 720, 17, 2567...
return set(refs)
return refs
def bodyprereferences(self): offsets = 0 refs = [] for child in self: refs.extend(_setmovepointer(child.prereferences(), offsets)) ioffsets = child.offsets() if ioffsets is None: refs.append(None) break offsets += ioffsets return set(refs)
71e0598bb7dc6d9b90f66161eeb283e8ddccc073 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/71e0598bb7dc6d9b90f66161eeb283e8ddccc073/esotope-bfc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1417, 683, 822, 2980, 12, 2890, 4672, 8738, 273, 374, 9047, 273, 5378, 364, 1151, 316, 365, 30, 9047, 18, 14313, 24899, 542, 8501, 10437, 12, 3624, 18, 683, 822, 2980, 9334, 8738, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1417, 683, 822, 2980, 12, 2890, 4672, 8738, 273, 374, 9047, 273, 5378, 364, 1151, 316, 365, 30, 9047, 18, 14313, 24899, 542, 8501, 10437, 12, 3624, 18, 683, 822, 2980, 9334, 8738, 3719, ...
cr.execute("CREATE INDEX %s_%s_index ON %s (%s)" % (self._table, k, self._table, k))
cr.execute("CREATE INDEX \"%s_%s_index\" ON \"%s\" (\"%s\")" % (self._table, k, self._table, k))
def _auto_init(self, cr): logger = netsvc.Logger() create = False self._field_create(cr) if not hasattr(self, "_auto") or self._auto: cr.execute("SELECT relname FROM pg_class WHERE relkind in ('r','v') AND relname='%s'" % self._table) if not cr.rowcount: cr.execute("CREATE TABLE %s(id SERIAL NOT NULL, perm_id INTEGER, PRIMARY KEY(id)) WITH OIDS" % self._table) create = True cr.commit() if self._log_access: logs = { 'create_uid': 'INTEGER REFERENCES res_users ON DELETE SET NULL', 'create_date': 'TIMESTAMP', 'write_uid': 'INTEGER REFERENCES res_users ON DELETE SET NULL', 'write_date': 'TIMESTAMP' } for k in logs: cr.execute( """ SELECT c.relname FROM pg_class c, pg_attribute a WHERE c.relname='%s' AND a.attname='%s' AND c.oid=a.attrelid """ % (self._table, k)) if not cr.rowcount: cr.execute("ALTER TABLE %s ADD COLUMN %s %s" % (self._table, k, logs[k])) cr.commit()
be2ceb24bde4a569bfb092c4888d20f47c553384 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/be2ceb24bde4a569bfb092c4888d20f47c553384/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6079, 67, 2738, 12, 2890, 16, 4422, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 752, 273, 1083, 365, 6315, 1518, 67, 2640, 12, 3353, 13, 309, 486, 3859, 12, 2890, 16, 4192, 6079...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6079, 67, 2738, 12, 2890, 16, 4422, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 752, 273, 1083, 365, 6315, 1518, 67, 2640, 12, 3353, 13, 309, 486, 3859, 12, 2890, 16, 4192, 6079...
"""Return the accessor method for getting data out of this field"""
"""Return the accessor method for getting data out of this field"""
def getAccessor(self, instance): """Return the accessor method for getting data out of this field""" if self.accessor: return getattr(instance, self.accessor, None) return None
6c49241026527d58ec33dad69b98fdf197a65ae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/6c49241026527d58ec33dad69b98fdf197a65ae4/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 8235, 12, 2890, 16, 791, 4672, 3536, 990, 326, 9789, 707, 364, 8742, 501, 596, 434, 333, 652, 8395, 309, 365, 18, 3860, 280, 30, 327, 3869, 12, 1336, 16, 365, 18, 3860, 280, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 8235, 12, 2890, 16, 791, 4672, 3536, 990, 326, 9789, 707, 364, 8742, 501, 596, 434, 333, 652, 8395, 309, 365, 18, 3860, 280, 30, 327, 3869, 12, 1336, 16, 365, 18, 3860, 280, 16,...
syslog.syslog(syslog.LOG_INFO, "Writing core files and reports to %s" %
syslog.syslog("Writing core files and reports to %s" %
def get_info_from_core(path): """ Reads a core file and extracts a dictionary with useful core information. Right now, the only information extracted is the full executable name. @param path: Path to core file. """ # Here we are getting the executable full path in a very inelegant way :( # Since the 'right' solution for it is to make a library to get information # from core dump files, properly written, I'll leave this as it is for now. full_exe_path = commands.getoutput('strings %s | grep "_="' % path).strip("_=") if full_exe_path.startswith("./"): pwd = commands.getoutput('strings %s | grep "^PWD="' % path).strip("PWD=") full_exe_path = os.path.join(pwd, full_exe_path.strip("./")) return {'core_file': path, 'full_exe_path': full_exe_path}
8aaf1e11b64e538289f5ac1747ac33e65e105cdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/8aaf1e11b64e538289f5ac1747ac33e65e105cdf/crash_handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1376, 67, 2080, 67, 3644, 12, 803, 4672, 3536, 29185, 279, 2922, 585, 471, 16469, 279, 3880, 598, 5301, 2922, 1779, 18, 13009, 2037, 16, 326, 1338, 1779, 9438, 353, 326, 1983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1376, 67, 2080, 67, 3644, 12, 803, 4672, 3536, 29185, 279, 2922, 585, 471, 16469, 279, 3880, 598, 5301, 2922, 1779, 18, 13009, 2037, 16, 326, 1338, 1779, 9438, 353, 326, 1983, ...
return False
return self._resolve_type_from_ctype_all_namespaces(typeval, pointer_stripped)
def _resolve_type_from_ctype(self, typeval): assert typeval.ctype is not None pointer_stripped = typeval.ctype.replace('*', '') try: matches = self.split_ctype_namespaces(pointer_stripped) except ValueError, e: return False target_giname = None for namespace, name in matches: target = namespace.get(name) if not target: target = namespace.get_by_ctype(pointer_stripped) if target: typeval.target_giname = '%s.%s' % (namespace.name, target.name) return True return False
2bba09d8304039551c841a9d7d75cbde45e3e804 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/2bba09d8304039551c841a9d7d75cbde45e3e804/transformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 723, 67, 2080, 67, 12387, 12, 2890, 16, 618, 1125, 4672, 1815, 618, 1125, 18, 12387, 353, 486, 599, 4407, 67, 6406, 1845, 273, 618, 1125, 18, 12387, 18, 2079, 2668, 14,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 723, 67, 2080, 67, 12387, 12, 2890, 16, 618, 1125, 4672, 1815, 618, 1125, 18, 12387, 353, 486, 599, 4407, 67, 6406, 1845, 273, 618, 1125, 18, 12387, 18, 2079, 2668, 14,...
print "MAKING WEB"
def get_web(self): try: return self._web except AttributeError: print "MAKING WEB" self._web = ManagedWebView.alloc().init(self.html, None, self.nowReadyToDisplay, lambda x:self.onURLLoad(unicode(x)), self.displaySizeHint, self.baseURL) return self._web
00b3773885ca82ac83ac8a75d986de2eb94ff882 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/00b3773885ca82ac83ac8a75d986de2eb94ff882/HTMLDisplay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4875, 12, 2890, 4672, 775, 30, 327, 365, 6315, 4875, 1335, 6394, 30, 365, 6315, 4875, 273, 10024, 4079, 1767, 18, 9853, 7675, 2738, 12, 2890, 18, 2620, 16, 599, 16, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4875, 12, 2890, 4672, 775, 30, 327, 365, 6315, 4875, 1335, 6394, 30, 365, 6315, 4875, 273, 10024, 4079, 1767, 18, 9853, 7675, 2738, 12, 2890, 18, 2620, 16, 599, 16, 365, 18, ...
try: parser.ParseFile(file) except: import traceback traceback.print_exc() import sys sys.stderr.write("filename: '%s'" % file)
parser.ParseFile(file)
def parse(adder, file, baseURI): import xml.parsers.expat parser = xml.parsers.expat.ParserCreate(namespace_separator=ns_separator) parser.SetBase(baseURI) parser.returns_unicode = 1 LookForRDFHandler(parser, adder, None) try: parser.ParseFile(file) except: import traceback traceback.print_exc() import sys sys.stderr.write("filename: '%s'" % file) file.close()
a40858eba855c298192666fe364989162893c88c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/a40858eba855c298192666fe364989162893c88c/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 361, 765, 16, 585, 16, 1026, 3098, 4672, 1930, 2025, 18, 11104, 18, 2749, 270, 225, 2082, 273, 2025, 18, 11104, 18, 2749, 270, 18, 2678, 1684, 12, 4937, 67, 11287, 33, 2387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 361, 765, 16, 585, 16, 1026, 3098, 4672, 1930, 2025, 18, 11104, 18, 2749, 270, 225, 2082, 273, 2025, 18, 11104, 18, 2749, 270, 18, 2678, 1684, 12, 4937, 67, 11287, 33, 2387, ...
>>> if var_doc.overrides.value.descr == var_doc.value.descr:
>>> if (func_doc.docstring in (None, UNKNOWN) and >>> var_doc.overrides.value.docstring not in (None, UNKNOWN)):
def arg_name_to_html(self, func_doc, arg_name): """ A helper function used to format an argument name, for use in the argument description list under a routine's details entry. This just wraps strong & code tags around the arg name; and if the arg name is associated with a type, then adds it parenthetically after the name. """ s = '<strong class="pname"><code>%s</code></strong>' % arg_name if arg_name in func_doc.arg_types: typ = func_doc.arg_types[arg_name] typ_html = self.docstring_to_html(typ, func_doc, 10) s += " (<code>%s</code>)" % typ_html return s
811bb2c6883982486aa79836046961cc5ad5a6ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/811bb2c6883982486aa79836046961cc5ad5a6ce/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1501, 67, 529, 67, 869, 67, 2620, 12, 2890, 16, 1326, 67, 2434, 16, 1501, 67, 529, 4672, 3536, 432, 4222, 445, 1399, 358, 740, 392, 1237, 508, 16, 364, 999, 316, 326, 1237, 2477, 666...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1501, 67, 529, 67, 869, 67, 2620, 12, 2890, 16, 1326, 67, 2434, 16, 1501, 67, 529, 4672, 3536, 432, 4222, 445, 1399, 358, 740, 392, 1237, 508, 16, 364, 999, 316, 326, 1237, 2477, 666...
self.debug_trace("Tag_sint16")
def Tag_sint16(self): self.debug_trace("Tag_sint16") if ( self.getTag( 'sint16' ) ): self.pack_string = 'h' return 1 return 0
ecf78c969222f7513a2f516b0355728295fb546a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/ecf78c969222f7513a2f516b0355728295fb546a/pxlasm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4034, 67, 87, 474, 2313, 12, 2890, 4672, 309, 261, 365, 18, 588, 1805, 12, 296, 87, 474, 2313, 11, 262, 262, 30, 365, 18, 2920, 67, 1080, 273, 296, 76, 11, 327, 404, 327, 374, 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, 4034, 67, 87, 474, 2313, 12, 2890, 4672, 309, 261, 365, 18, 588, 1805, 12, 296, 87, 474, 2313, 11, 262, 262, 30, 365, 18, 2920, 67, 1080, 273, 296, 76, 11, 327, 404, 327, 374, 2, ...
raise KeyError, 'name (=%s) already taken.'%name
return self.__worksheets[name]
def create_new_worksheet(self, name='untitled', passcode=''): if name in self.__worksheets.keys(): raise KeyError, 'name (=%s) already taken.'%name name = str(name) passcode = str(passcode) wids = self.worksheet_ids() id = 0 while id in wids: id += 1
ebe5f9519583ea7fd02e7d51e9abb803e35515f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ebe5f9519583ea7fd02e7d51e9abb803e35515f2/notebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2704, 67, 1252, 8118, 12, 2890, 16, 508, 2218, 10032, 305, 1259, 2187, 1342, 710, 2218, 11, 4672, 309, 508, 316, 365, 16186, 18597, 10245, 18, 2452, 13332, 327, 365, 16186, 1859...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2704, 67, 1252, 8118, 12, 2890, 16, 508, 2218, 10032, 305, 1259, 2187, 1342, 710, 2218, 11, 4672, 309, 508, 316, 365, 16186, 18597, 10245, 18, 2452, 13332, 327, 365, 16186, 1859...
self.pdbg("parse_size new buffer = %s" % self.buffer)
if Opt.ParseDBG: self.pdbg("parse_size new buffer = %s" % self.buffer)
def parse_size(self): """check the given size of the plugin.""" self.parse_dbg_indent += " " match = re_size_fun.match(self.buffer) if match: p = match.span(0)[1] self.buffer = self.buffer[p:] self.pdbg("parse_size new buffer = %s" % self.buffer) bang = match.group(1) # means "is not this size" wanted_size = int(match.group(2)) plugin_name = match.group(3) expr = "[SIZE %s%d %s]" % (bang, wanted_size, plugin_name) self.pdbg("parse_size, expr=%s" % expr) expanded = self.expand_filename(plugin_name) if len(expanded) == 1: expr = "[SIZE %s%d %s]" % (bang, wanted_size, expanded[0]) elif expanded == []: self.pdbg("parse_size [SIZE] \"%s\" not active" % match.group(3)) self.parse_dbg_indent = self.parse_dbg_indent[:-2] return(False, expr) # file does not exist if self.datadir == None: # this case is reached when doing fromfile checks, # which do not have access to the actual plugin, so we # always assume the test is merely for file existence, # to err on the side of caution self.parse_dbg_indent = self.parse_dbg_indent[:-2] return(True, expr) for xp in expanded: plugin = C.cname(xp) plugin_t = C.truename(plugin) actual_size = os.path.getsize(self.datadir.find_path(plugin)) bool = (actual_size == wanted_size) if bang == "!": bool = not bool self.pdbg("parse_size [SIZE] returning: (%s, %s)" % (bool, expr)) self.parse_dbg_indent = self.parse_dbg_indent[:-2] if bool: self.parse_dbg_indent = self.parse_dbg_indent[:-2] return(True, "[SIZE %s%d %s]" % (bang, wanted_size, plugin_t)) self.parse_dbg_indent = self.parse_dbg_indent[:-2] return(False, expr) self.parse_dbg_indent = self.parse_dbg_indent[:-2] self.parse_error(_["Invalid [SIZE] function"]) return(None, None)
0c9007da0c07e550781c18146d5a05ade578dced /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/0c9007da0c07e550781c18146d5a05ade578dced/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1467, 12, 2890, 4672, 3536, 1893, 326, 864, 963, 434, 326, 1909, 12123, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 845, 273, 283, 67, 1467, 67, 12125, 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, 1109, 67, 1467, 12, 2890, 4672, 3536, 1893, 326, 864, 963, 434, 326, 1909, 12123, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 845, 273, 283, 67, 1467, 67, 12125, 18, ...
Package.stauscode!=STATUS['Removed'].statuscodeid), order_by=(Package.name,))
Package.statuscode!=STATUS['Removed'].statuscodeid), order_by=(Package.name,)).execute()
def name(self, collctn): '''Return a page with information on a particular Collection
86d5ac30ace46e95754afd0bfd5ec934334d42d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9953/86d5ac30ace46e95754afd0bfd5ec934334d42d2/collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 12, 2890, 16, 4508, 299, 82, 4672, 9163, 990, 279, 1363, 598, 1779, 603, 279, 6826, 2200, 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, 508, 12, 2890, 16, 4508, 299, 82, 4672, 9163, 990, 279, 1363, 598, 1779, 603, 279, 6826, 2200, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if port.consumer_slot is not None:
if port.consumer_slot is not None and self.demultiplexer.slot:
def add(self, port): with self._lock: if not IAudioPort.providedBy(port): raise TypeError("expected object implementing IAudioPort, got %s" % port.__class__.__name__) if port.mixer is not self.mixer: raise ValueError("expected port with Mixer %r, got %r" % (self.mixer, port.mixer)) if weakref.ref(port) in self.ports: return if port.consumer_slot is not None: self.mixer.connect_slots(self.demultiplexer.slot, port.consumer_slot) if port.producer_slot is not None: self.mixer.connect_slots(port.producer_slot, self.multiplexer.slot) for other in (wr() for wr in self.ports): if other is None: continue if other.producer_slot is not None and port.consumer_slot is not None: self.mixer.connect_slots(other.producer_slot, port.consumer_slot) if port.producer_slot is not None and other.consumer_slot is not None: self.mixer.connect_slots(port.producer_slot, other.consumer_slot) # This hack is required because a weakly referenced object keeps a # strong reference to weak references of itself and thus to any # callbacks registered in those weak references. To be more # precise, we don't want the port to have a strong reference to # ourselves. -Luci self.ports.add(weakref.ref(port, partial(self._remove_port, weakref.ref(self))))
40baffe9374741ac6dbdeb2f93e240de9d5c540b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/40baffe9374741ac6dbdeb2f93e240de9d5c540b/audio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 1756, 4672, 598, 365, 6315, 739, 30, 309, 486, 467, 12719, 2617, 18, 29206, 858, 12, 655, 4672, 1002, 3580, 2932, 3825, 733, 19981, 467, 12719, 2617, 16, 2363, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 1756, 4672, 598, 365, 6315, 739, 30, 309, 486, 467, 12719, 2617, 18, 29206, 858, 12, 655, 4672, 1002, 3580, 2932, 3825, 733, 19981, 467, 12719, 2617, 16, 2363, 738, ...
self.cartoon[0].show()
self.get_drawing(self.current_image).hide()
def AnimRun(self): self.cartoon=self.root_anim.item_list if len(self.cartoon)==0: print "Mmm... Need to make shots before run anim !!" self.running=False svg_restore("gcompris.svg") return self.cartoon[0].show() self.current_image=0 self.timeout=gobject.timeout_add(1000/self.anim_speed, self.run_anim)
b1c14c9a59e62e367ea62c3c74cab73788521d4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/b1c14c9a59e62e367ea62c3c74cab73788521d4b/anim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1922, 381, 1997, 12, 2890, 4672, 365, 18, 11848, 83, 265, 33, 2890, 18, 3085, 67, 304, 381, 18, 1726, 67, 1098, 309, 562, 12, 2890, 18, 11848, 83, 265, 13, 631, 20, 30, 1172, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1922, 381, 1997, 12, 2890, 4672, 365, 18, 11848, 83, 265, 33, 2890, 18, 3085, 67, 304, 381, 18, 1726, 67, 1098, 309, 562, 12, 2890, 18, 11848, 83, 265, 13, 631, 20, 30, 1172, 315, ...
sender = (opts['from'] or ui.config('email', 'from') or
sender = (opts.get('from') or ui.config('email', 'from') or
def getbundlemsgs(bundle): subj = (opts['subject'] or prompt('Subject:', default='A bundle for your repository'))
e48386cad337fc8ad23ccd992fc19ce1b45e1870 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/e48386cad337fc8ad23ccd992fc19ce1b45e1870/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 9991, 27439, 12, 9991, 4672, 15333, 273, 261, 4952, 3292, 7857, 3546, 578, 6866, 2668, 6638, 30, 2187, 805, 2218, 37, 3440, 364, 3433, 3352, 26112, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 9991, 27439, 12, 9991, 4672, 15333, 273, 261, 4952, 3292, 7857, 3546, 578, 6866, 2668, 6638, 30, 2187, 805, 2218, 37, 3440, 364, 3433, 3352, 26112, 2, -100, -100, -100, -100, -100, ...
print >>sys.stderr, '%s: %s' % (error.__class__.__name__, error) try: print >>sys.stderr, """ The specified output encoding (%s) cannot handle all of the output.""" % error.encoding except AttributeError: print >>sys.stderr, """ The specified output encoding cannot handle all of the output.""" print """\ Try setting "--output-encoding-error-handler" to * "xmlcharrefreplace" (for HTML & XML output);"""
sys.stderr.write( '%s: %s\n' '\n' 'The specified output encoding (%s) cannot\n' 'handle all of the output.\n' 'Try setting "--output-encoding-error-handler" to\n' '\n' '* "xmlcharrefreplace" (for HTML & XML output);\n' % (error.__class__.__name__, error, self.settings.output_encoding))
def report_UnicodeError(self, error): print >>sys.stderr, '%s: %s' % (error.__class__.__name__, error)
62e101f6df76f35725a0321e3df18320c24fdae3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/62e101f6df76f35725a0321e3df18320c24fdae3/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 67, 16532, 668, 12, 2890, 16, 555, 4672, 1172, 1671, 9499, 18, 11241, 16, 1995, 87, 30, 738, 87, 11, 738, 261, 1636, 16186, 1106, 972, 16186, 529, 972, 16, 555, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2605, 67, 16532, 668, 12, 2890, 16, 555, 4672, 1172, 1671, 9499, 18, 11241, 16, 1995, 87, 30, 738, 87, 11, 738, 261, 1636, 16186, 1106, 972, 16186, 529, 972, 16, 555, 13, 2, -100, -1...
k, w = x.split(None, 1)
k, w = x.split(u'\t', 1)
def debug(*what): print >> sys.stderr, u'[DEBUG]: ', u' '.join(map(unicode, what))
8386e1ce5111bb1721836b509311d1be728e9762 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5124/8386e1ce5111bb1721836b509311d1be728e9762/make-phrases.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 30857, 23770, 4672, 1172, 1671, 2589, 18, 11241, 16, 582, 11, 63, 9394, 14542, 2265, 582, 11, 2418, 5701, 12, 1458, 12, 9124, 16, 4121, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 30857, 23770, 4672, 1172, 1671, 2589, 18, 11241, 16, 582, 11, 63, 9394, 14542, 2265, 582, 11, 2418, 5701, 12, 1458, 12, 9124, 16, 4121, 3719, 225, 2, -100, -100, -100, -100, -100, ...
Edual = [] F = f.factor() if len(F) == 1: V = sage.modules.free_module.FreeModule( self.base_ring(), self.nrows()) m = F[0][1] if dual: return [(V,m==1)], [(V,m==1)] else: return [(V,m==1)] F.sort() for g, m in f.factor(): if is_diagonalizable: B = g(self) else: B = g(self) ** m E.append((B.kernel(), m==1)) if dual: Edual.append((B.transpose().kernel(), m==1))
return [(V,m==1)], [(V,m==1)] else: return [(V,m==1)] F.sort() for g, m in f.factor(): if is_diagonalizable: B = g(self) else: B = g(self) ** m E.append((B.kernel(), m==1))
def decomposition(self, is_diagonalizable=False, dual=False): """ Returns the decomposition of the free module on which this matrix acts from the right, along with whether this matrix acts irreducibly on each factor. The factors are guaranteed to be sorted in the same way as the corresponding factors of the characteristic polynomial. Let A be the matrix acting from the on the vector space V of column vectors. Assume that A is square. This function computes maximal subspaces W_1, ..., W_n corresponding to Galois conjugacy classes of eigenvalues of A. More precisely, let f(X) be the characteristic polynomial of A. This function computes the subspace $W_i = ker(g_(A)^n)$, where g_i(X) is an irreducible factor of f(X) and g_i(X) exactly divides f(X). If the optional parameter is_diagonalizable is True, then we let W_i = ker(g(A)), since then we know that ker(g(A)) = $ker(g(A)^n)$.
02d53b0592cc4acfb96bdf79debba1ab9872c797 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/02d53b0592cc4acfb96bdf79debba1ab9872c797/matrix_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26288, 12, 2890, 16, 353, 67, 30130, 6934, 33, 8381, 16, 24557, 33, 8381, 4672, 3536, 2860, 326, 26288, 434, 326, 4843, 1605, 603, 1492, 333, 3148, 22668, 628, 326, 2145, 16, 7563, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26288, 12, 2890, 16, 353, 67, 30130, 6934, 33, 8381, 16, 24557, 33, 8381, 4672, 3536, 2860, 326, 26288, 434, 326, 4843, 1605, 603, 1492, 333, 3148, 22668, 628, 326, 2145, 16, 7563, 598, ...
siteString = ','.join([ "'"+x+"'" for x in siteList ])
siteString = ','.join( [ "'" + x + "'" for x in siteList ] )
def getSiteMaskLogging(self,siteList): """ Get the site mask logging history for the list if site names """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 5796, 7735, 12, 2890, 16, 4256, 682, 4672, 3536, 968, 326, 2834, 3066, 2907, 4927, 364, 326, 666, 309, 2834, 1257, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 5796, 7735, 12, 2890, 16, 4256, 682, 4672, 3536, 968, 326, 2834, 3066, 2907, 4927, 364, 326, 666, 309, 2834, 1257, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
n1 = child.getElementsByTagName(tagname) nodeList = nodeList + n1._data
if hasattr(child, 'getElementsByTagName'): n1 = child.getElementsByTagName(tagname) nodeList = nodeList + n1._data
def getElementsByTagName(self, tagname): """ Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree. Parameter: tagname The name of the tag to match (* = all tags). Return Value: A new NodeList object containing all the matched Elements. """ nodeList = [] for child in self.objectValues(): if (child.getNodeType()==ELEMENT_NODE and \ child.getTagName()==tagname or tagname== '*'): nodeList.append(child) n1 = child.getElementsByTagName(tagname) nodeList = nodeList + n1._data return NodeList(nodeList)
2ea6d7f12e15dc9783b94f10419ebfd0ba8ac8f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2ea6d7f12e15dc9783b94f10419ebfd0ba8ac8f4/ZDOM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11034, 12, 2890, 16, 25586, 4672, 3536, 2860, 279, 16781, 434, 777, 326, 17219, 598, 279, 864, 1047, 508, 316, 326, 1353, 316, 1492, 2898, 4102, 506, 9919, 316, 279, 29030, 15940, 434, 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, 11034, 12, 2890, 16, 25586, 4672, 3536, 2860, 279, 16781, 434, 777, 326, 17219, 598, 279, 864, 1047, 508, 316, 326, 1353, 316, 1492, 2898, 4102, 506, 9919, 316, 279, 29030, 15940, 434, 3...
if req.args.has_key('description') or req.args.has_key('reporter'):
if 'field_description' in req.args or 'field_reporter' in req.args:
def _do_save(self, req, db, ticket): if 'TICKET_CHGPROP' in req.perm: # TICKET_CHGPROP gives permission to edit the ticket if not req.args.get('summary'): raise TracError('Tickets must contain summary.')
daeaacb4a8d7e14bcd4491b18a83e37c26c94ecb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/daeaacb4a8d7e14bcd4491b18a83e37c26c94ecb/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 5688, 12, 2890, 16, 1111, 16, 1319, 16, 9322, 4672, 309, 296, 56, 16656, 1584, 67, 1792, 43, 15811, 11, 316, 1111, 18, 12160, 30, 468, 399, 16656, 1584, 67, 1792, 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, 389, 2896, 67, 5688, 12, 2890, 16, 1111, 16, 1319, 16, 9322, 4672, 309, 296, 56, 16656, 1584, 67, 1792, 43, 15811, 11, 316, 1111, 18, 12160, 30, 468, 399, 16656, 1584, 67, 1792, 43, ...
def exUserCancel(): self.logger.critical(_('\n\nExiting on user cancel')) if unlock(): return 200 return 1 def exIOError(e): if e.errno == 32: self.logger.critical(_('\n\nExiting on Broken Pipe')) else: self.logger.critical(_('\n\n%s') % str(e)) if unlock(): return 200 return 1 def exPluginExit(e): '''Called when a plugin raises PluginYumExit. Log the plugin's exit message if one was supplied. ''' exitmsg = str(e) if exitmsg: self.logger.warn('\n\n%s', exitmsg) if unlock(): return 200 return 1 def exFatal(e): self.logger.critical('\n\n%s', to_unicode(e.value)) if unlock(): return 200 return 1 def unlock(): try: self.closeRpmDB() self.doUnlock() except Errors.LockError, e: return 200 return 0
def exUserCancel(): self.logger.critical(_('\n\nExiting on user cancel')) if unlock(): return 200 return 1
91382336f96fc77a9b60f7508c6b056e98b70555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/91382336f96fc77a9b60f7508c6b056e98b70555/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 431, 1299, 6691, 13332, 365, 18, 4901, 18, 28000, 24899, 2668, 64, 82, 64, 82, 6767, 310, 603, 729, 3755, 26112, 309, 7186, 13332, 327, 4044, 327, 404, 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, 431, 1299, 6691, 13332, 365, 18, 4901, 18, 28000, 24899, 2668, 64, 82, 64, 82, 6767, 310, 603, 729, 3755, 26112, 309, 7186, 13332, 327, 4044, 327, 404, 2, -100, -100, -100, -100, -100, ...
if field.flags & self.Required:
if flags & self.Required:
def match(self, context, imperfect, domain, encodedDomain): if encodedDomain == context.encodedDomain: return 2 if not imperfect: return 0
5a8bd231f596fa01d75d6ac9602fa7521b797293 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/5a8bd231f596fa01d75d6ac9602fa7521b797293/OWContexts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 12, 2890, 16, 819, 16, 709, 19825, 386, 16, 2461, 16, 3749, 3748, 4672, 309, 3749, 3748, 422, 819, 18, 10787, 3748, 30, 327, 576, 309, 486, 709, 19825, 386, 30, 327, 374, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 12, 2890, 16, 819, 16, 709, 19825, 386, 16, 2461, 16, 3749, 3748, 4672, 309, 3749, 3748, 422, 819, 18, 10787, 3748, 30, 327, 576, 309, 486, 709, 19825, 386, 30, 327, 374, 2, -10...
MakeInstaller(PPGAME+"-"+VERSION+".exe", PPGAME+" "+VERSION, PPGAME+" "+VERSION,
MakeInstaller(PPGAME+"-"+VERSION+".exe", PPGAME, PPGAME+" "+VERSION,
def MakeInstaller(file,fullname,smdirectory,uninstallkey,installdir,ppgame): if (older(file, ALLTARGETS)): print "Building "+fullname+" installer. This can take up to an hour." if (COMPRESSOR != "lzma"): print("Note: you are using zlib, which is faster, but lzma gives better compression.") if (os.path.exists(file)): os.remove(file) if (os.path.exists("nsis-output.exe")): os.remove("nsis-output.exe") def0 = '/DCOMPRESSOR="' + COMPRESSOR + '" ' def1 = '/DFULLNAME="' + fullname + '" ' def2 = '/DSMDIRECTORY="' + smdirectory + '" ' def3 = '/DUNINSTALLKEY="' + uninstallkey + '" ' def4 = '/DINSTALLDIR="' + installdir + '" ' def5 = '' if (ppgame): def5 = '/DPPGAME="' + ppgame + '" ' oscmd("thirdparty/win-nsis/makensis.exe /V2 "+def0+def1+def2+def3+def4+def5+" makepanda/panda.nsi") os.rename("nsis-output.exe", file)
3db9e70ff8fc246ca9d70291414eab7a4485d205 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/3db9e70ff8fc246ca9d70291414eab7a4485d205/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 12, 768, 16, 21885, 16, 87, 1264, 1292, 16, 28872, 856, 16, 5425, 1214, 16, 84, 8365, 339, 4672, 309, 261, 1498, 12, 768, 16, 8061, 16374, 55, 3719, 30, 1172, 315, 16713, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 12, 768, 16, 21885, 16, 87, 1264, 1292, 16, 28872, 856, 16, 5425, 1214, 16, 84, 8365, 339, 4672, 309, 261, 1498, 12, 768, 16, 8061, 16374, 55, 3719, 30, 1172, 315, 16713, ...
print "%3d " %(index), what.formats[output] % values result.append(values)
print "%3d " %(index), what.formats[output] % tuple(printedvalues) result.append(tuple(printedvalues))
def GenericRange(what, range_end = datetime.date.today(), range_begin = None, output = "text"): factor = 3600 # Convert number of seconds to number of hours if (not range_begin or range_begin == None): range_begin = range_end + datetime.timedelta(days=-1) if (not range_end or range_end == None): range_end = range_begin + datetime.timedelta(days=+1) timediff = range_end - range_begin if (output != "None") : if (what.title != "") : print what.title % ( DateToString(range_begin,False), DateToString(range_end,False) ) if (what.headline != "") : print what.headline % ( DateToString(range_begin,False), DateToString(range_end,False) ) print what.lines[output] print " ", what.formats[output] % what.headers print what.lines[output] # First get the previous' range-length's information totalwall = 0 totaljobs = 0 oldValues = {} result = [] start = range_begin - timediff end = range_end - timediff lines = what.GetData(start,end) for i in range (0,len(lines)): val = lines[i].split('\t') offset = 0 site = val[0] if what.headers[0] == "VO": # "site" is really "VO": hack to harmonize Panda output if site != "unknown": site = string.lower(site) if site == "atlas": site = "usatlas" key = site vo = "" num_header = what.num_header; offset = num_header - 1; if (len(val)==4) : # Nasty hack to harmonize Panda output if what.headers[1] == "VO": if vo != "unknown": vo = string.lower(val[1]) if vo == "atlas": vo = "usatlas" else: vo = val[1] key = site + " " + vo elif (num_header == 2) : vo = val[1] key = site + " " + vo njobs= string.atoi( val[offset+1] ) wall = string.atof( val[offset+2] ) / factor totalwall = totalwall + wall totaljobs = totaljobs + njobs if (oldValues.has_key(key)): oldValues[key][0] += njobs oldValues[key][1] += wall else: oldValues[key] = [njobs,wall,site,vo] oldValues["total"] = (totaljobs, totalwall, "total","") # Then getting the current information and print it totalwall = 0 totaljobs = 0 start = range_begin end = range_end lines = what.GetData(start,end) num_header = 1; index = 0 printValues = {} for i in range (0,len(lines)): val = lines[i].split('\t') site = val[0] if what.headers[0] == "VO": # "site" is really "VO": hack to harmonize Panda output if site != "unknown": site = string.lower(site) if site == "atlas": site = "usatlas" key = site offset = 0 num_header = what.num_header; offset = num_header - 1; if (len(val)==4) : # Nasty hack to harmonize Panda output if what.headers[1] == "VO": if vo != "unknown": vo = string.lower(val[1]) if vo == "atlas": vo = "usatlas" else: vo = val[1] key = site + " " + vo elif (num_header == 2) : vo = val[1] key = site + " " + vo (oldnjobs,oldwall) = (0,0) if oldValues.has_key(key): (oldnjobs,oldwall,s,v) = oldValues[key] del oldValues[key] njobs= string.atoi( val[offset+1] ) wall = string.atof( val[offset+2] ) / factor totalwall = totalwall + wall totaljobs = totaljobs + njobs if printValues.has_key(key): printValues[key][0] += njobs printValues[key][1] += wall else: printValues[key] = [njobs,wall,oldnjobs,oldwall,site,vo] for key,(oldnjobs,oldwall,site,vo) in oldValues.iteritems(): if (key != "total") : printValues[key] = (0,0,oldnjobs,oldwall,site,vo) if (what.defaultSort): sortedValues = sortedDictValues(printValues) else: sortedValues = sortedDictValuesFunc(printValues,what.Sorting) for key,(njobs,wall,oldnjobs,oldwall,site,vo) in sortedValues: index = index + 1; if (num_header == 2) : values = (site,vo,niceNum(njobs), niceNum(wall), niceNum(njobs-oldnjobs),niceNum(wall-oldwall)) else: values = (site,niceNum(njobs), niceNum(wall), niceNum(njobs-oldnjobs),niceNum(wall-oldwall)) if (output != "None") : print "%3d " %(index), what.formats[output] % values result.append(values) (oldnjobs,oldwall,s,v) = oldValues["total"] if (output != "None") : print what.lines[output] if (num_header == 2) : print " ", what.formats[output] % \ (what.col1, what.col2, niceNum(totaljobs), niceNum(totalwall), niceNum(totaljobs-oldnjobs), niceNum(totalwall-oldwall)) else: print " ", what.formats[output] % \ (what.col1, niceNum(totaljobs), niceNum(totalwall), niceNum(totaljobs-oldnjobs), niceNum(totalwall-oldwall)) print what.lines[output] return result
840d5408521dcd3fd349c48313ce276b0ab91bb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/840d5408521dcd3fd349c48313ce276b0ab91bb4/PSACCTReport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7928, 2655, 12, 23770, 16, 1048, 67, 409, 273, 3314, 18, 712, 18, 30064, 9334, 1048, 67, 10086, 273, 599, 16, 876, 273, 315, 955, 6, 4672, 5578, 273, 12396, 225, 468, 4037, 1300, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7928, 2655, 12, 23770, 16, 1048, 67, 409, 273, 3314, 18, 712, 18, 30064, 9334, 1048, 67, 10086, 273, 599, 16, 876, 273, 315, 955, 6, 4672, 5578, 273, 12396, 225, 468, 4037, 1300, 434, ...
for sd in ('include', 'include/pcap', ''):
for sd in ('include/pcap', 'include', ''):
def _pcap_config(self, dirs=[ None ]): cfg = {} if not dirs[0]: dirs = [ '/usr', sys.prefix ] + glob.glob('/opt/libpcap*') + \ glob.glob('../libpcap*') + glob.glob('../wpdpack*') for d in dirs: for sd in ('include', 'include/pcap', ''): incdirs = [ os.path.join(d, sd) ] if os.path.exists(os.path.join(d, sd, 'pcap.h')): cfg['include_dirs'] = [ os.path.join(d, sd) ] cfg['include_dirs'] += ["pcs/bpf"] for sd in ('lib64', 'lib', ''): for lib in (('pcap', 'libpcap.a'), ('pcap', 'libpcap.dylib'), ('wpcap', 'wpcap.lib')): if os.path.exists(os.path.join(d, sd, lib[1])): cfg['library_dirs'] = [ os.path.join(d, sd) ] cfg['libraries'] = [ lib[0] ] if lib[0] == 'wpcap': cfg['libraries'].append('iphlpapi') cfg['extra_compile_args'] = \ [ '-DWIN32', '-DWPCAP' ] print 'found', cfg self._write_config_h(cfg) return cfg raise "couldn't find pcap build or installation directory"
40b950042e9800986fe564668ef353604730646f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5910/40b950042e9800986fe564668ef353604730646f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2436, 438, 67, 1425, 12, 2890, 16, 7717, 22850, 599, 308, 4672, 2776, 273, 2618, 309, 486, 7717, 63, 20, 14542, 7717, 273, 306, 1173, 13640, 2187, 2589, 18, 3239, 308, 397, 4715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2436, 438, 67, 1425, 12, 2890, 16, 7717, 22850, 599, 308, 4672, 2776, 273, 2618, 309, 486, 7717, 63, 20, 14542, 7717, 273, 306, 1173, 13640, 2187, 2589, 18, 3239, 308, 397, 4715, ...
log.error("",exc_info=True)
log.debugWarning("",exc_info=True)
def _getOffsetsFromNVDAObject(self,obj): while obj and obj!=self.obj: try: docHandle,ID=self.obj.getIdentifierFromNVDAObject(obj) start,end=VBufClient_getBufferOffsetsFromFieldIdentifier(self.obj.VBufHandle,docHandle,ID) return start,end except: log.error("",exc_info=True) obj=obj.parent
66b227a0ebf6f14d68eebb6dd302b8b476aea425 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/66b227a0ebf6f14d68eebb6dd302b8b476aea425/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 13830, 1265, 11679, 9793, 921, 12, 2890, 16, 2603, 4672, 1323, 1081, 471, 1081, 5, 33, 2890, 18, 2603, 30, 775, 30, 997, 3259, 16, 734, 33, 2890, 18, 2603, 18, 588, 3004, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 13830, 1265, 11679, 9793, 921, 12, 2890, 16, 2603, 4672, 1323, 1081, 471, 1081, 5, 33, 2890, 18, 2603, 30, 775, 30, 997, 3259, 16, 734, 33, 2890, 18, 2603, 18, 588, 3004, 1...
self.get_replies(workflow_actions).next() return True
if self.get_replies(workflow_actions): self.get_replies(workflow_actions).next() return True
def has_replies(self, workflow_actions=False): """Returns true if there are replies. """ try: self.get_replies(workflow_actions).next() return True except StopIteration: return None
b09d42e5053290eba1dd04f3e4ab5f84af6c2091 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12197/b09d42e5053290eba1dd04f3e4ab5f84af6c2091/comments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 266, 5259, 12, 2890, 16, 6095, 67, 4905, 33, 8381, 4672, 3536, 1356, 638, 309, 1915, 854, 22009, 18, 3536, 775, 30, 309, 365, 18, 588, 67, 266, 5259, 12, 13815, 67, 4905, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 266, 5259, 12, 2890, 16, 6095, 67, 4905, 33, 8381, 4672, 3536, 1356, 638, 309, 1915, 854, 22009, 18, 3536, 775, 30, 309, 365, 18, 588, 67, 266, 5259, 12, 13815, 67, 4905, 46...
"""operator.mul(%s)"""
def _repeat(self, node, results): """operator.mul(%s)""" return self._handle_rename(node, results, "mul")
8a9bd94c15c0cef83f794ebf9993ac545096e00a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/8a9bd94c15c0cef83f794ebf9993ac545096e00a/fix_operator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9374, 12, 2890, 16, 756, 16, 1686, 4672, 327, 365, 6315, 4110, 67, 18539, 12, 2159, 16, 1686, 16, 315, 16411, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9374, 12, 2890, 16, 756, 16, 1686, 4672, 327, 365, 6315, 4110, 67, 18539, 12, 2159, 16, 1686, 16, 315, 16411, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
def getATime(self, fileId, current=None): """ Return the atime of the file. :Parameters: fileId : string A string uniquely identifying a file on this Monitor. current An ICE context, this parameter is required to be present in an ICE interface method. :return: atime :rtype: float """ try: pathString = self._getPathString(fileId) except Exception, e: log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
c12bc7fb04f687c05f37bb5a6eba2577b9556cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/c12bc7fb04f687c05f37bb5a6eba2577b9556cda/MonitorServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 789, 494, 12, 2890, 16, 21223, 16, 783, 33, 7036, 4672, 3536, 2000, 326, 622, 494, 434, 326, 585, 18, 225, 294, 2402, 30, 21223, 294, 533, 432, 533, 30059, 29134, 279, 585, 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, 336, 789, 494, 12, 2890, 16, 21223, 16, 783, 33, 7036, 4672, 3536, 2000, 326, 622, 494, 434, 326, 585, 18, 225, 294, 2402, 30, 21223, 294, 533, 432, 533, 30059, 29134, 279, 585, 603, ...
print("Candidates: %s" % revlist[good:bad])
print('Candidates: %s' % revlist[good:bad])
def main(): usage = ('%prog [options] [-- chromium-options]\n' 'Perform binary search on the snapshot builds.') parser = optparse.OptionParser(usage=usage) # Strangely, the default help output doesn't include the choice list. choices = ['mac', 'xp', 'linux', 'linux-64'] parser.add_option('-a', '--archive', choices = choices, help = 'The buildbot archive to bisect [%s].' % '|'.join(choices)) parser.add_option('-b', '--bad', type = 'int', help = 'The bad revision to bisect to.') parser.add_option('-g', '--good', type = 'int', help = 'The last known good revision to bisect from.') parser.add_option('-p', '--profile', '--user-data-dir', type = 'str', help = 'Profile to use; this will not reset every run. ' + 'Defaults to a clean profile.') (opts, args) = parser.parse_args() if opts.archive is None: parser.print_help() return 1 if opts.bad and opts.good and (opts.good > opts.bad): print ('The good revision (%d) must precede the bad revision (%d).\n' % (opts.good, opts.bad)) parser.print_help() return 1 SetArchiveVars(opts.archive) # Pick a starting point, try to get HEAD for this. if opts.bad: bad_rev = opts.bad else: bad_rev = 0 try: # Location of the latest build revision number BUILD_LATEST_URL = "%s/LATEST" % (BUILD_BASE_URL) nh = urllib.urlopen(BUILD_LATEST_URL) latest = int(nh.read()) nh.close() bad_rev = raw_input("Bad revision [HEAD:%d]: " % latest) if (bad_rev == ""): bad_rev = latest bad_rev = int(bad_rev) except Exception, e: print("Could not determine latest revision. This could be bad...") bad_rev = int(raw_input("Bad revision: ")) # Find out when we were good. if opts.good: good_rev = opts.good else: good_rev = 0 try: good_rev = int(raw_input("Last known good [0]: ")) except Exception, e: pass # Get a list of revisions to bisect across. revlist = GetRevList(good_rev, bad_rev) if len(revlist) < 2: # Don't have enough builds to bisect print "We don't have enough builds to bisect. revlist: %s" % revlist sys.exit(1) # If we don't have a |good_rev|, set it to be the first revision possible. if good_rev == 0: good_rev = revlist[0] # These are indexes of |revlist|. good = 0 bad = len(revlist) - 1 last_known_good_rev = revlist[good] # Binary search time! while good < bad: candidates = revlist[good:bad] num_poss = len(candidates) if num_poss > 10: print("%d candidates. %d tries left." % (num_poss, round(math.log(num_poss, 2)))) else: print("Candidates: %s" % revlist[good:bad]) # Cut the problem in half... test = int((bad - good) / 2) + good test_rev = revlist[test] # Let the user give this rev a spin (in her own profile, if she wants). profile = opts.profile if not profile: profile = 'profile' # In a temp dir. TryRevision(test_rev, profile, args) if AskIsGoodBuild(test_rev): last_known_good_rev = revlist[good] good = test + 1 else: bad = test # We're done. Let the user know the results in an official manner. print("You are probably looking for build %d." % revlist[bad]) print("CHANGELOG URL:") print(CHANGELOG_URL % (last_known_good_rev, revlist[bad])) print("Built at revision:") print(BUILD_VIEWVC_URL % revlist[bad])
02d09ff36aee01d534a3b286ed0ea9934b6b02d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/02d09ff36aee01d534a3b286ed0ea9934b6b02d7/build-bisect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4084, 273, 7707, 9, 14654, 306, 2116, 65, 306, 413, 8123, 5077, 17, 2116, 13944, 82, 11, 296, 4990, 3112, 1623, 603, 326, 4439, 10736, 1093, 13, 2082, 273, 2153, 2670, 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, 2774, 13332, 4084, 273, 7707, 9, 14654, 306, 2116, 65, 306, 413, 8123, 5077, 17, 2116, 13944, 82, 11, 296, 4990, 3112, 1623, 603, 326, 4439, 10736, 1093, 13, 2082, 273, 2153, 2670, 18, ...
nodes_sorted=list()
def to_fast_pickable(f): """ to_fast_pickable(f) converts a polynomial a builtin Python value, which is fast pickable and compact. It is converted to a list of conversions of nodes. The nodes are sorted, that n occurs before n.else_branch(), n.then_branch() Nodes are only listed, if they are not constant (except for the root node, which might also become constant). A node is converted in this way: 0 -> 0 1 -> 1 if_then_else(v,t,e) -> (v, index of then branch +2, index of else branch +2) The shift of +2 is for the constant values implicitly contained in the list. >>> from polybori.PyPolyBoRi import Ring, Variable >>> r=Ring(1000) >>> x=Variable >>> to_fast_pickable(Polynomial(1)) [1] >>> to_fast_pickable(Polynomial(0)) [0] >>> to_fast_pickable(x(0)) [(0, 1, 0)] >>> to_fast_pickable(x(1)) [(1, 1, 0)] >>> to_fast_pickable(x(0)+1) [(0, 1, 1)] >>> to_fast_pickable(x(0)*x(1)) [(0, 3, 0), (1, 1, 0)] >>> to_fast_pickable(x(0)*x(1)+x(1)) [(0, 3, 3), (1, 1, 0)] >>> to_fast_pickable(x(0)*x(1)+x(2)) [(0, 3, 4), (1, 1, 0), (2, 1, 0)] """ f=f.set() r=f.ring() one=r.one().navigation() zero=r.zero().navigation() f_nav=f.navigation() if f_nav==one: return [1] if f_nav==zero: return [0] nodes=set() nodes_sorted=list() def find_navs(nav): if not nav in nodes and not nav.constant(): nodes.add(nav) nodes_sorted.append(nav) find_navs(nav.then_branch()) find_navs(nav.else_branch()) find_navs(f_nav) nodes2i={one:1,zero:0} for (i,n) in enumerate(nodes_sorted): nodes2i[n]=i+2 for i in xrange(len(nodes_sorted)): n=nodes_sorted[i] t=nodes2i[n.then_branch()] e=nodes2i[n.else_branch()] nodes_sorted[i]=(n.value(),t,e) return nodes_sorted
2b12d2e9d1897135291c559f8ef33ba03cfff61b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2046/2b12d2e9d1897135291c559f8ef33ba03cfff61b/parallel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 8076, 67, 11503, 429, 12, 74, 4672, 3536, 358, 67, 8076, 67, 11503, 429, 12, 74, 13, 7759, 279, 16991, 279, 15273, 6600, 460, 16, 1492, 353, 4797, 6002, 429, 471, 6739, 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, 358, 67, 8076, 67, 11503, 429, 12, 74, 4672, 3536, 358, 67, 8076, 67, 11503, 429, 12, 74, 13, 7759, 279, 16991, 279, 15273, 6600, 460, 16, 1492, 353, 4797, 6002, 429, 471, 6739, 18, ...
_debug(1, "<- Refcount++ on object", objid)
log.debug("<- Refcount++ on object", objid)
def _incref_proxied_object(self, objid): if objid in self._proxied_objects: self._proxied_objects[objid][1] += 1 else: _debug(1, "<- Refcount++ on object", objid) self.request("INCREF", objid, timeout = 0)
a2ef02ba6b2343fafef3eba89f609780397810ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/a2ef02ba6b2343fafef3eba89f609780397810ea/ipc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9523, 1734, 67, 20314, 2092, 67, 1612, 12, 2890, 16, 1081, 350, 4672, 309, 1081, 350, 316, 365, 6315, 20314, 2092, 67, 6911, 30, 365, 6315, 20314, 2092, 67, 6911, 63, 2603, 350, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9523, 1734, 67, 20314, 2092, 67, 1612, 12, 2890, 16, 1081, 350, 4672, 309, 1081, 350, 316, 365, 6315, 20314, 2092, 67, 6911, 30, 365, 6315, 20314, 2092, 67, 6911, 63, 2603, 350, 6...
if (older('built/lib/pandac/PandaModules.pyz',xpaths("built/etc/",ALLIN,""))): ALLTARGETS.append('built/lib/pandac/PandaModules.pyz')
if (older(PREFIX+'/lib/pandac/PandaModules.pyz',xpaths(PREFIX+"/etc/",ALLIN,""))): ALLTARGETS.append(PREFIX+'/lib/pandac/PandaModules.pyz')
if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1125, 422, 296, 2124, 12904, 11, 4672, 2195, 273, 2195, 397, 6619, 318, 536, 315, 397, 498, 397, 1548, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1125, 422, 296, 2124, 12904, 11, 4672, 2195, 273, 2195, 397, 6619, 318, 536, 315, 397, 498, 397, 1548, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
"verbose": 2,
"verbose": 3,
def run(self): withAuthentication = True self.rootpath = os.path.join(gettempdir(), "wsgidav-test") if not os.path.exists(self.rootpath): os.mkdir(self.rootpath) provider = FilesystemProvider(self.rootpath) config = DEFAULT_CONFIG.copy() config.update({ "provider_mapping": {"/": provider}, "user_mapping": {}, "host": "localhost", "port": 8080, "enable_loggers": [], "propsmanager": None, # None: no property manager "locksmanager": True, # True: use lock_manager.LockManager "domaincontroller": None, # None: domain_controller.WsgiDAVDomainController(user_mapping) "verbose": 2, })
475a6594a2429e3cda24457304ad8826d7628bbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/475a6594a2429e3cda24457304ad8826d7628bbe/test_scripted.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 598, 6492, 273, 1053, 365, 18, 3085, 803, 273, 1140, 18, 803, 18, 5701, 12, 588, 5814, 1214, 9334, 315, 91, 1055, 350, 842, 17, 3813, 7923, 309, 486, 1140, 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, 1086, 12, 2890, 4672, 598, 6492, 273, 1053, 365, 18, 3085, 803, 273, 1140, 18, 803, 18, 5701, 12, 588, 5814, 1214, 9334, 315, 91, 1055, 350, 842, 17, 3813, 7923, 309, 486, 1140, 18, ...
com, args = self.cb.registry.commands.browser.value().split(' ', 1)
args = self.cb.registry.commands.browser.value().split(' ', 1) com = args.pop(0)
def new_browser(self, url): if not url: url = 'http://www.google.com/' com, args = self.cb.registry.commands.browser.value().split(' ', 1) pid = os.fork() if not pid: os.execvp(com, ['PIDA'] + [args] + [url]) #child = self.add_terminal(PidaBrowser, 'internet', False) #child.gourl(url) #child.run_command(command, args, **kw) #if self.detach_window: # self.detach_window.present() #return child
7852a0eedd9aadf814fa49a3c38daa686b65632a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/7852a0eedd9aadf814fa49a3c38daa686b65632a/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 11213, 12, 2890, 16, 880, 4672, 309, 486, 880, 30, 880, 273, 296, 2505, 2207, 5591, 18, 9536, 18, 832, 2473, 833, 273, 365, 18, 7358, 18, 9893, 18, 7847, 18, 11213, 18, 1132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 11213, 12, 2890, 16, 880, 4672, 309, 486, 880, 30, 880, 273, 296, 2505, 2207, 5591, 18, 9536, 18, 832, 2473, 833, 273, 365, 18, 7358, 18, 9893, 18, 7847, 18, 11213, 18, 1132...
"""
"""Runs all tests.
def runTests(self): """
913138f4b477abae0bb4f00eabb8ba246643483a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/913138f4b477abae0bb4f00eabb8ba246643483a/testutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 14650, 12, 2890, 4672, 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, 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, 1086, 14650, 12, 2890, 4672, 3536, 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, ...
self.__disc = ZZ(str(self.pari_nf()[2]))
self.__disc = QQ(str(self.pari_nf()[2]))
def discriminant(self, v=None): """ Returns the discriminant of the ring of integers of the number field, or if v is specified, the determinant of the trace pairing on the elements of the list v.
e8944814f2a38409db7c4d248bd8298bc0fca45a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e8944814f2a38409db7c4d248bd8298bc0fca45a/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29649, 20030, 12, 2890, 16, 331, 33, 7036, 4672, 3536, 2860, 326, 29649, 20030, 434, 326, 9221, 434, 12321, 434, 326, 1300, 652, 16, 578, 309, 331, 353, 1269, 16, 326, 6328, 970, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29649, 20030, 12, 2890, 16, 331, 33, 7036, 4672, 3536, 2860, 326, 29649, 20030, 434, 326, 9221, 434, 12321, 434, 326, 1300, 652, 16, 578, 309, 331, 353, 1269, 16, 326, 6328, 970, 434, ...
"""__init__(self, string, Logger=None)
""" name is a string logger is a Logger
def __init__(self, name, logger=None): """__init__(self, string, Logger=None) Create a new instance of the Notifier class with a given name and an optional Logger class for piping output to. If no logger specified, use the global default""" self.__name = name
afdad6c1379fc3dcd172905941a22b1342b95518 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/afdad6c1379fc3dcd172905941a22b1342b95518/Notifier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1194, 33, 7036, 4672, 3536, 508, 353, 279, 533, 1194, 353, 279, 4242, 225, 1788, 279, 394, 791, 434, 326, 2288, 1251, 667, 598, 279, 864, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1194, 33, 7036, 4672, 3536, 508, 353, 279, 533, 1194, 353, 279, 4242, 225, 1788, 279, 394, 791, 434, 326, 2288, 1251, 667, 598, 279, 864, 508, ...
pManager.manager.DebugStr('pNetwork '+ __version__ +': Unhandled error in thread HandlePing(): Type: '+str(eType)+', value: '+str(eValue)) pManager.manager.DebugStr('pNetwork '+ __version__ +': Traceback:\n'+str(tb))
pManager.manager.DebugStr('pNetwork '+ __version__ +': Unhandled error in thread HandlePing(): Type: '+str(eType)+', value: '+str(eValue), 2) pManager.manager.DebugStr('pNetwork '+ __version__ +': Traceback:\n'+str(tb), 2)
def HandlePing(self, sPing): """Handle incoming Ping
75d1942defe5d17f180f5e72fbdbaacc8c12e3b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/75d1942defe5d17f180f5e72fbdbaacc8c12e3b2/cNetManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 17223, 12, 2890, 16, 272, 17223, 4672, 3536, 3259, 6935, 18214, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 17223, 12, 2890, 16, 272, 17223, 4672, 3536, 3259, 6935, 18214, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
compn.getPropNames(name)))
compn.getPropNames(name), ownerPropEdit))
def addProp(self, name, propWrap): compn = self.inspector.selCmp self.nameValues.insert(len(self.nameValues), PropNameValue(self, self.panelNames, self.panelValues, compn, compn, name, propWrap, len(self.nameValues), 0, compn.getPropEditor(name), compn.getPropOptions(name), compn.getPropNames(name)))
746f53548fb8bb54a235b1bfa31a4bdb769818e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/746f53548fb8bb54a235b1bfa31a4bdb769818e8/Inspector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 4658, 12, 2890, 16, 508, 16, 2270, 2964, 4672, 1161, 82, 273, 365, 18, 12009, 280, 18, 1786, 31832, 365, 18, 529, 1972, 18, 6387, 12, 1897, 12, 2890, 18, 529, 1972, 3631, 10484, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 4658, 12, 2890, 16, 508, 16, 2270, 2964, 4672, 1161, 82, 273, 365, 18, 12009, 280, 18, 1786, 31832, 365, 18, 529, 1972, 18, 6387, 12, 1897, 12, 2890, 18, 529, 1972, 3631, 10484, ...
return ['<return>']
return ['<return block>']
def source_lines(graph, block, operindex=None, offset=None, long=False, \ show_lines_of_code=SHOW_DEFAULT_LINES_OF_CODE): if block is not None: if block is graph.returnblock: return ['<return>'] try: source = graph.source except AttributeError: return ['no source!'] else: graph_lines = source.split("\n") if offset is not None: linestart = offset2lineno(graph.func.func_code, offset) linerange = (linestart, linestart) here = None else: if block is None or not block.operations: return [] def toline(operindex): return offset2lineno(graph.func.func_code, block.operations[operindex].offset) if operindex is None: linerange = (toline(0), toline(-1)) if not long: return ['?'] here = None else: operline = toline(operindex) if long: linerange = (toline(0), toline(-1)) here = operline else: linerange = (operline, operline) here = None lines = ["Happened at file %s line %d" % (graph.filename, here or linerange[0]), ""] for n in range(max(0, linerange[0]-show_lines_of_code), \ min(linerange[1]+1+show_lines_of_code, len(graph_lines)+graph.startline)): if n == here: prefix = '==> ' else: prefix = ' ' lines.append(prefix + graph_lines[n-graph.startline]) lines.append("") return lines
99a4051e1b079a1346a68ac8caa3ace508faecb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/99a4051e1b079a1346a68ac8caa3ace508faecb3/error.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1084, 67, 3548, 12, 4660, 16, 1203, 16, 2255, 1615, 33, 7036, 16, 1384, 33, 7036, 16, 1525, 33, 8381, 16, 521, 2405, 67, 3548, 67, 792, 67, 710, 33, 16677, 67, 5280, 67, 5997, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1084, 67, 3548, 12, 4660, 16, 1203, 16, 2255, 1615, 33, 7036, 16, 1384, 33, 7036, 16, 1525, 33, 8381, 16, 521, 2405, 67, 3548, 67, 792, 67, 710, 33, 16677, 67, 5280, 67, 5997, 55, ...
A WSGI middleware that adds a ``paste.config`` key to the request environment, as well as registering the configuration temporarily (for the length of the request) with ``paste.config.CONFIG`` (or any other ``DispatchingConfig`` object).
A WSGI middleware that adds a ``paste.config`` key (by default) to the request environment, as well as registering the configuration temporarily (for the length of the request) with ``paste.config.CONFIG`` (or any other ``DispatchingConfig`` object).
def current_conf(self): return self._current_obj()
3dce4d3e67304771d15fd2546d5065960b453cf9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2097/3dce4d3e67304771d15fd2546d5065960b453cf9/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 783, 67, 3923, 12, 2890, 4672, 327, 365, 6315, 2972, 67, 2603, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 783, 67, 3923, 12, 2890, 4672, 327, 365, 6315, 2972, 67, 2603, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
exp_folder = os.path.join(dist_folder, folder) os.mkdir(exp_folder) src_folder = os.path.join(exp_folder, folder + '-src') print 'Exporting sources to ' + src_folder call([svn_binary, 'export', '--non-interactive', '.', src_folder] )
print 'Exporting sources to ' + dist_src_folder call([svn_binary, 'export', '--non-interactive', '.', dist_src_folder] )
def svn_export(folder): """Exports sources to distribution folder.""" exp_folder = os.path.join(dist_folder, folder) os.mkdir(exp_folder) src_folder = os.path.join(exp_folder, folder + '-src') print 'Exporting sources to ' + src_folder call([svn_binary, 'export', '--non-interactive', '.', src_folder] )
8a5e115c2a8a618bb79ad36fa446073c26931473 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5344/8a5e115c2a8a618bb79ad36fa446073c26931473/create_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5893, 82, 67, 6530, 12, 5609, 4672, 3536, 15352, 5550, 358, 7006, 3009, 12123, 225, 1172, 296, 6144, 310, 5550, 358, 296, 397, 2411, 67, 4816, 67, 5609, 745, 3816, 31505, 67, 8578, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5893, 82, 67, 6530, 12, 5609, 4672, 3536, 15352, 5550, 358, 7006, 3009, 12123, 225, 1172, 296, 6144, 310, 5550, 358, 296, 397, 2411, 67, 4816, 67, 5609, 745, 3816, 31505, 67, 8578, 16, ...
for the particular linker being used).""" pass def link_shared_lib (self, objects, output_libname, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None): """Link a bunch of stuff together to create a shared library file. Has the same effect as 'link_static_lib()' except that the filename inferred from 'output_libname' will most likely be different, and the type of file generated will almost certainly be different."""
for the particular linker being used)."""
def link_static_lib (self, objects, output_libname, output_dir=None): """Link a bunch of stuff together to create a static library file. The "bunch of stuff" consists of the list of object files supplied as 'objects', the extra object files supplied to 'add_link_object()' and/or 'set_link_objects()', the libraries supplied to 'add_library()' and/or 'set_libraries()', and the libraries supplied as 'libraries' (if any).
6f928a0da711b577c960fab9a40156a59e50efa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6f928a0da711b577c960fab9a40156a59e50efa3/ccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 3845, 67, 2941, 261, 2890, 16, 2184, 16, 876, 67, 2941, 529, 16, 876, 67, 1214, 33, 7036, 4672, 3536, 2098, 279, 25606, 434, 10769, 9475, 358, 752, 279, 760, 5313, 585, 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, 1692, 67, 3845, 67, 2941, 261, 2890, 16, 2184, 16, 876, 67, 2941, 529, 16, 876, 67, 1214, 33, 7036, 4672, 3536, 2098, 279, 25606, 434, 10769, 9475, 358, 752, 279, 760, 5313, 585, 18, ...
self._two_local_commits()
self._three_local_commits()
def test_commit_with_message_git_commit_range(self): self._two_local_commits()
fbcceb60701599ef325be8ac785ae03dd884e41b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/fbcceb60701599ef325be8ac785ae03dd884e41b/scm_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7371, 67, 1918, 67, 2150, 67, 6845, 67, 7371, 67, 3676, 12, 2890, 4672, 365, 6315, 15415, 67, 3729, 67, 27000, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7371, 67, 1918, 67, 2150, 67, 6845, 67, 7371, 67, 3676, 12, 2890, 4672, 365, 6315, 15415, 67, 3729, 67, 27000, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if "we should be faster":
import multiarray import OpenGL.GL import OpenGL.GLU import OpenGL.GLUT import OpenGL.GLE import sip import Numeric import numeric_version import _numpy import umath import Precision import ArrayPrinter import LinearAlgebra import lapack_lite import MLab import RandomArray import ranlib import idlelib.Delegator import Image import FixTk import _imaging import ImagePalette import array import ImageOps import PngImagePlugin import ImageFile import ic import icglue import Carbon import _Res import Carbon.File import _File import macostools import MacOS if "we should be faster, at the cost of not being as reliable":
def __import__(*args, **kws): arg = args[0] print >>sys.stderr, "about to import " + arg # helps determine which module had the problem return _old_import(*args, **kws)
b128a3e33d34c4973ef3c73f191ef346245b4c5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/b128a3e33d34c4973ef3c73f191ef346245b4c5e/all_mac_imports.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5666, 972, 30857, 1968, 16, 2826, 79, 4749, 4672, 1501, 273, 833, 63, 20, 65, 1172, 1671, 9499, 18, 11241, 16, 315, 21071, 358, 1930, 315, 397, 1501, 468, 21814, 4199, 1492, 1605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5666, 972, 30857, 1968, 16, 2826, 79, 4749, 4672, 1501, 273, 833, 63, 20, 65, 1172, 1671, 9499, 18, 11241, 16, 315, 21071, 358, 1930, 315, 397, 1501, 468, 21814, 4199, 1492, 1605, ...
groups[gid]['cn'] = name groups[gid]['objectClass'] = [
group['cn'] = name group['objectClass'] = [
def save_group(self, gid): """ Save one group in the LDAP backend. If updating, the entry will be dropped prior of insertion. """
a99fa36c9c57f1ef71f9ac0df9bc184bbcc4d91b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/a99fa36c9c57f1ef71f9ac0df9bc184bbcc4d91b/ldap_backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1655, 12, 2890, 16, 11399, 4672, 3536, 7074, 1245, 1041, 316, 326, 11916, 4221, 18, 971, 9702, 16, 326, 1241, 903, 506, 14611, 6432, 434, 12626, 18, 3536, 2, 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, 1923, 67, 1655, 12, 2890, 16, 11399, 4672, 3536, 7074, 1245, 1041, 316, 326, 11916, 4221, 18, 971, 9702, 16, 326, 1241, 903, 506, 14611, 6432, 434, 12626, 18, 3536, 2, -100, -100, -100, ...
Search \Sage librrary source code for lines containing \code{string}.
Search \Sage library source code for lines containing \code{string}.
def search_src(string, extra1='', extra2='', extra3='', extra4='', extra5='', interact=True): r""" Search \Sage librrary source code for lines containing \code{string}. The search is not case sensitive. INPUT: -- string: a string to find in the \Sage source code. -- extra1, ..., extra5: additional strings to require. NOTE: The extraN parameters are present only because search_src(string, *extras, interact=None) is not parsed correctly by Python 2.6; see http://bugs.python.org/issue1909. EXAMPLES: sage: print search_src(" fetch(", "def", interact=False) # random # long matrix/matrix0.pyx: cdef fetch(self, key): matrix/matrix0.pxd: cdef fetch(self, key) sage: print search_src(" fetch(", "def", interact=False) # random # long matrix/matrix0.pyx: cdef fetch(self, key): matrix/matrix0.pxd: cdef fetch(self, key) sage: print search_src(" fetch(", "def", "pyx", interact=False) # random # long matrix/matrix0.pyx: cdef fetch(self, key): """ cmd = 'sage -grep "%s"' % string for extra in [ extra1, extra2, extra3, extra4, extra5 ]: if not extra: continue cmd += '| grep "%s"' % extra r = os.popen(cmd).read() if not interact: return r from sage.server.support import EMBEDDED_MODE if EMBEDDED_MODE: # I.e., running from the notebook print format_search_as_html('Source Code', r, string + extra) else: from sage.misc.all import pager pager()(r)
31b20f086dbf2566d85148a258dec4a98a1588b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/31b20f086dbf2566d85148a258dec4a98a1588b1/sagedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4816, 12, 1080, 16, 2870, 21, 2218, 2187, 2870, 22, 2218, 2187, 2870, 23, 2218, 2187, 2870, 24, 2218, 2187, 2870, 25, 2218, 2187, 16592, 33, 5510, 4672, 436, 8395, 5167, 521, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4816, 12, 1080, 16, 2870, 21, 2218, 2187, 2870, 22, 2218, 2187, 2870, 23, 2218, 2187, 2870, 24, 2218, 2187, 2870, 25, 2218, 2187, 16592, 33, 5510, 4672, 436, 8395, 5167, 521, ...
if self.config.dbsslenable: url = url + "?ssl_ca=%s&ssl_key=%s&ssl_cert=%s" % (self.config.dbsslca, self.config.dbsslkey, self.config.dbsslcert)
if self.config.dbdriver == 'mysql': url += '?charset=utf8&use_unicode=0' if self.config.dbsslenable: url = url + "&ssl_ca=%s&ssl_key=%s&ssl_cert=%s" % (self.config.dbsslca, self.config.dbsslkey, self.config.dbsslcert)
def makeConnectionPath(self): """ Build and return the db connection path according to the plugin configuration
8d0d1d7fec499fa035fc13f0eaf8c4c88936b443 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/8d0d1d7fec499fa035fc13f0eaf8c4c88936b443/database_helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1952, 743, 12, 2890, 4672, 3536, 3998, 471, 327, 326, 1319, 1459, 589, 4888, 358, 326, 1909, 1664, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1221, 1952, 743, 12, 2890, 4672, 3536, 3998, 471, 327, 326, 1319, 1459, 589, 4888, 358, 326, 1909, 1664, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print self.stru2.getChemicalFormula() print print self.stru3.getChemicalFormula() print
""
def test_species(self): print self.stru2.getChemicalFormula() print print self.stru3.getChemicalFormula() print
fe7338448185779af9dd12b7fdfefba85d585734 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/578/fe7338448185779af9dd12b7fdfefba85d585734/TestStructure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22657, 12, 2890, 4672, 225, 1172, 365, 18, 701, 89, 22, 18, 588, 20200, 1706, 14972, 1435, 1172, 1172, 365, 18, 701, 89, 23, 18, 588, 20200, 1706, 14972, 1435, 1172, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22657, 12, 2890, 4672, 225, 1172, 365, 18, 701, 89, 22, 18, 588, 20200, 1706, 14972, 1435, 1172, 1172, 365, 18, 701, 89, 23, 18, 588, 20200, 1706, 14972, 1435, 1172, 2, -100,...
Fixture.__init__(self)
AspyFixture.__init__(self)
def __init__(self): Fixture.__init__(self) self.title = "HardErrorControllerFixture"
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, 4672, 432, 30884, 26392, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2649, 273, 315, 29601, 668, 2933, 26392, 6, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 432, 30884, 26392, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2649, 273, 315, 29601, 668, 2933, 26392, 6, 225, 2, -100, -100, -100, -100, -100, -100, -100,...
log.info("mock.py version %s starting..." % __VERSION__)
def main(): # defaults config_opts = {} setup_default_config_opts(config_opts) # cli option parsing (options, args) = command_parse() # config path -- can be overridden on cmdline config_path=MOCKCONFDIR if options.configdir: config_path = options.configdir # basic config for logging until config files are read logging.config.fileConfig(os.path.join(config_path, config_opts["log_config_file"])) # check args if len(args) < 1: log.error("No srpm or command specified - nothing to do") sys.exit(50) # Read in the config files: default, and then user specified for cfg in ( os.path.join(config_path, 'defaults.cfg'), '%s/%s.cfg' % (config_path, options.chroot)): if os.path.exists(cfg): execfile(cfg) else: log.error("Could not find required config file: %s" % cfg) sys.exit(1) # reconfigure logging in case config file was overridden logging.config.fileConfig(os.path.join(config_path, config_opts["log_config_file"])) # cmdline options override config options set_config_opts_per_cmdline(config_opts, options) warn_obsolete_config_options(config_opts) try: # do whatever we're here to do # uidManager saves current real uid/gid which are unpriviledged (callers) # due to suid helper, our current effective uid is 0 log.info("mock.py version %s starting..." % __VERSION__) chroot = mock.backend.Root(config_opts, mock.uid.uidManager(os.getuid(), os.getgid())) os.umask(002) if config_opts['clean']: chroot.clean() if args[0] == 'init': chroot.init() elif args[0] == 'clean': if chroot.state() != "clean": chroot.clean() elif args[0] == 'chroot': chroot.init() chroot._mountall() try: cmd = ' '.join(args[1:]) output = chroot.doChroot(cmd, env="PS1='mock-chroot> '", interactive=1, raiseExc=0) finally: chroot._umountall() elif args[0] == 'shell': chroot.init() chroot._mountall() try: output = chroot.doChroot("/bin/bash", env="PS1='mock-chroot> '", interactive=1, raiseExc=0) finally: chroot._umountall() elif args[0] == 'installdeps': if len(args) > 1: srpms = args[1:] else: log.critical("No package specified to rebuild command.") sys.exit(50) for hdr in mock.util.yieldSrpmHeaders(srpms): pass chroot.init() chroot.installSrpmDeps(*srpms) elif args[0] == 'rebuild': srpms = args[1:] if len(srpms) < 1: log.critical("No package specified to rebuild command.") sys.exit(50) # check that everything is kosher. Raises exception on error for hdr in mock.util.yieldSrpmHeaders(srpms): pass for srpm in srpms: if config_opts['clean'] and chroot.state() != "clean": chroot.clean() chroot.init() chroot.build(srpm, timeout=config_opts['rpmbuild_timeout']) log.info("Results and/or logs in: %s" % chroot.resultdir) else: log.error("Unknown command specified: %s" % args[0]) except (mock.exception.Error), e: log.error(str(e)) except (Exception,), e: logging.exception(e) logging.shutdown()
1a3a7cc2f2a5638f90bee304cfe28e92126fa2a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/1a3a7cc2f2a5638f90bee304cfe28e92126fa2a4/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 3467, 642, 67, 4952, 273, 2618, 3875, 67, 1886, 67, 1425, 67, 4952, 12, 1425, 67, 4952, 13, 225, 468, 4942, 1456, 5811, 261, 2116, 16, 833, 13, 273, 1296, 67, 2670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 3467, 642, 67, 4952, 273, 2618, 3875, 67, 1886, 67, 1425, 67, 4952, 12, 1425, 67, 4952, 13, 225, 468, 4942, 1456, 5811, 261, 2116, 16, 833, 13, 273, 1296, 67, 2670, ...
self.sizer.AddSpacer(2)
def _init_ui(self): self.title = wx.StaticText(self, -1, _("Image"), style=wx.ALIGN_CENTER) self.subtitle = wx.StaticText(self, -1, _("Image"), style=wx.ALIGN_CENTER) self.image_viewer = wx.StaticBitmap(self, -1, size=(70, 70))
47febb45edce5483b68db9c0d9e0e9a439300947 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/47febb45edce5483b68db9c0d9e0e9a439300947/dicom_preview_panel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 4881, 12, 2890, 4672, 365, 18, 2649, 273, 7075, 18, 5788, 1528, 12, 2890, 16, 300, 21, 16, 389, 2932, 2040, 6, 3631, 2154, 33, 27226, 18, 26439, 67, 19835, 13, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 4881, 12, 2890, 4672, 365, 18, 2649, 273, 7075, 18, 5788, 1528, 12, 2890, 16, 300, 21, 16, 389, 2932, 2040, 6, 3631, 2154, 33, 27226, 18, 26439, 67, 19835, 13, 365, 18...
print 'sql (%s) fails (%s)' % (self.sql, e)
print 'SHOW GLOBAL STATUS fails (%s)' % e
def get_my_cols(db_user, db_password, db_host, db_name): names = [] try: connect = MySQLdb.connect(host=db_host, user=db_user, passwd=db_password, db=db_name) cursor = connect.cursor() cursor.execute('SHOW GLOBAL STATUS') for row in cursor.fetchall(): if len(row) == 2: try: v = float(row[1]) names.append(row[0]) except ValueError, e: pass connect.close() return names except MySQLdb.Error, e: print 'sql (%s) fails (%s)' % (self.sql, e) return []
e2fb4be038b8431b25fe058f7ba2876d1b48c4a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3908/e2fb4be038b8431b25fe058f7ba2876d1b48c4a7/mstat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4811, 67, 6842, 12, 1966, 67, 1355, 16, 1319, 67, 3664, 16, 1319, 67, 2564, 16, 1319, 67, 529, 4672, 1257, 273, 5378, 775, 30, 3077, 273, 13485, 1966, 18, 3612, 12, 2564, 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, 336, 67, 4811, 67, 6842, 12, 1966, 67, 1355, 16, 1319, 67, 3664, 16, 1319, 67, 2564, 16, 1319, 67, 529, 4672, 1257, 273, 5378, 775, 30, 3077, 273, 13485, 1966, 18, 3612, 12, 2564, 33...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 77) else quickfix.CharField.__init__(self, 77, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 28244, 13, 469, 9549, 904, 18, 2156, 974, 16186, 2738, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 28244, 13, 469, 9549, 904, 18, 2156, 974, 16186, 2738, 972, ...
if len(seld.dRules[sId]) > 0:
if len(self.dRules[sId]) > 0:
def GetRecommendations(self, sId): """Return a list with recommendations.
a09004da0fe27ca976dcf450d446023851d4baeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/a09004da0fe27ca976dcf450d446023851d4baeb/pRecommendationInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 17786, 409, 1012, 12, 2890, 16, 25816, 4672, 3536, 990, 279, 666, 598, 22867, 1012, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 17786, 409, 1012, 12, 2890, 16, 25816, 4672, 3536, 990, 279, 666, 598, 22867, 1012, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
res = self.__executeOperation(src_url,'getFileSize') if not res['OK']: return S_ERROR(res['Message'])
res = self.__executeOperation( src_url, 'getFileSize' ) if not res['OK']: return S_ERROR( res['Message'] )
def __getFile(self,src_url,dest_file): if not os.path.exists(os.path.dirname(dest_file)): os.makedirs(os.path.dirname(dest_file)) if os.path.exists(dest_file): gLogger.debug("SRM2Storage.__getFile: Local file already exists %s. Removing..." % dest_file) os.remove(dest_file) srctype = self.defaulttype src_spacetokendesc = self.spaceToken dsttype = 0 dest_spacetokendesc = '' dest_url = 'file:%s' % dest_file res = self.__executeOperation(src_url,'getFileSize') if not res['OK']: return S_ERROR(res['Message']) remoteSize = res['Value'] timeout = int(remoteSize/self.MIN_BANDWIDTH * 4 + 300) nbstreams = 1 gLogger.info("SRM2Storage.__getFile: Using %d streams" % nbstreams) gLogger.info("SRM2Storage.__getFile: Executing transfer of %s to %s" % (src_url, dest_url)) res = pythonCall((timeout+10),self.__lcg_cp_wrapper,src_url,dest_url,srctype,dsttype,nbstreams,timeout,src_spacetokendesc,dest_spacetokendesc) if not res['OK']: return res res = res['Value'] if not res['OK']: return res errCode,errStr = res['Value'] if errCode == 0: gLogger.debug('SRM2Storage.__getFile: Got a file from storage.') localSize = getSize(dest_file) if localSize == remoteSize: gLogger.debug("SRM2Storage.__getFile: Post transfer check successful.") return S_OK(localSize) errorMessage = "SRM2Storage.__getFile: Source and destination file sizes do not match." gLogger.error(errorMessage,src_url) else: errorMessage = "SRM2Storage.__getFile: Failed to get file from storage." if errCode > 0: errStr = "%s %s" % (errStr,os.strerror(errCode)) gLogger.error(errorMessage,errStr) if os.path.exists(dest_file): gLogger.debug("SRM2Storage.getFile: Removing local file %s." % dest_file) os.remove(dest_file) return S_ERROR(errorMessage)
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 29925, 12, 2890, 16, 4816, 67, 718, 16, 10488, 67, 768, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 12287, 12, 10488, 67, 768, 3719, 30, 1140, 18, 81, 9477, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29925, 12, 2890, 16, 4816, 67, 718, 16, 10488, 67, 768, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 12287, 12, 10488, 67, 768, 3719, 30, 1140, 18, 81, 9477, ...
modules = prog.program_modules.all().order_by('seq')
modules = prog.program_modules.filter(module_type='student_reg').order_by('seq')
def studentRegDecision(request, tl, one, two, module, extra, prog): """ The page that is shown once the user saves their student reg, giving them the option of printing a confirmation """ curUser = ESPUser(request.user) context = {} context['one'] = one context['two'] = two modules = prog.program_modules.all().order_by('seq') completedAll = True for module in modules: completed = program_handler_checks[module.check_call](curUser, prog) if not completed and module.required: completedAll = False if program_handler_finish.has_key(module.main_call): context = program_handler_finish[module.main_call](curUser, prog, context) if completedAll: bit, created = UserBit.objects.get_or_create(user=request.user, verb=GetNode("V/Flags/Public"), qsc=GetNode("/".join(prog.anchor.tree_encode()) + "/Confirmation")) receipt = 'program/receipts/'+str(prog.id)+'_custom_receipt.html' return render_to_response(receipt, request, (prog, tl), context)
d1312861ab6ddb1191b718548d9c661537b45cd9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/d1312861ab6ddb1191b718548d9c661537b45cd9/program.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18110, 1617, 15861, 12, 2293, 16, 8332, 16, 1245, 16, 2795, 16, 1605, 16, 2870, 16, 11243, 4672, 3536, 1021, 1363, 716, 353, 12188, 3647, 326, 729, 14649, 3675, 18110, 960, 16, 21057, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18110, 1617, 15861, 12, 2293, 16, 8332, 16, 1245, 16, 2795, 16, 1605, 16, 2870, 16, 11243, 4672, 3536, 1021, 1363, 716, 353, 12188, 3647, 326, 729, 14649, 3675, 18110, 960, 16, 21057, 21...
print "Distribution.get_command_obj(): " \ "creating '%s' command object" % command
if DEBUG: print "Distribution.get_command_obj(): " \ "creating '%s' command object" % command
def get_command_obj (self, command, create=1): """Return the command object for 'command'. Normally this object is cached on a previous call to 'get_command_obj()'; if no comand object for 'command' is in the cache, then we either create and return it (if 'create' is true) or return None. """ cmd_obj = self.command_obj.get(command) if not cmd_obj and create: print "Distribution.get_command_obj(): " \ "creating '%s' command object" % command
6f70fdef014f1bda41dd34d1f0df3e698606f2ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6f70fdef014f1bda41dd34d1f0df3e698606f2ed/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3076, 67, 2603, 261, 2890, 16, 1296, 16, 752, 33, 21, 4672, 3536, 990, 326, 1296, 733, 364, 296, 3076, 10332, 225, 24773, 1230, 333, 733, 353, 3472, 603, 279, 2416, 745, 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, 336, 67, 3076, 67, 2603, 261, 2890, 16, 1296, 16, 752, 33, 21, 4672, 3536, 990, 326, 1296, 733, 364, 296, 3076, 10332, 225, 24773, 1230, 333, 733, 353, 3472, 603, 279, 2416, 745, 358, ...
'domain': "[('id','in', ["+','.join(map(str,data['new_ids']))+"])]",
'domain': "[('id','in', ["+','.join(map(str,new_move_ids))+"])]",
def _open_lines(self, cr, uid, data, context):
68ef0311d331ce9bad291c8b7d26aff6012b2fd5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/68ef0311d331ce9bad291c8b7d26aff6012b2fd5/cci_switched_debit_credit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 67, 3548, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 3190, 67, 3548, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def __load_modules(self):
def _load_modules(self):
def __load_modules(self): load_kvm_modules(module_dir=self.srcdir, extra_modules=self.extra_modules)
7f086351a5671c6cab0b425e56b647c8c4418ab1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/7f086351a5671c6cab0b425e56b647c8c4418ab1/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 6400, 12, 2890, 4672, 1262, 67, 79, 3489, 67, 6400, 12, 2978, 67, 1214, 33, 2890, 18, 4816, 1214, 16, 2870, 67, 6400, 33, 2890, 18, 7763, 67, 6400, 13, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 6400, 12, 2890, 4672, 1262, 67, 79, 3489, 67, 6400, 12, 2978, 67, 1214, 33, 2890, 18, 4816, 1214, 16, 2870, 67, 6400, 33, 2890, 18, 7763, 67, 6400, 13, 2, -100, -100, ...
return '&%s;' % childstr
symbol = tree.childNodes[0].data if SYMBOL_TO_HTML.has_key(symbol): return '&%s;' % SYMBOL_TO_HTML[symbol] else: return '[??]'
def _dom_to_html_helper(self, tree, container, indent, seclevel): """ Helper function for L{_dom_to_html}, that does the real work of converting a DOM tree for an epytext string to HTML. @param tree: The DOM tree for an epytext string. @type tree: L{xml.dom.minidom.Element} @param container: The container in which to look up objects by name (e.g., for link directives). @type container: Python module @param indent: The number of characters indentation that should be used for HTML tags. @type indent: C{int} @param seclevel: The current section level. @type seclevel: int """ # This takes care of converting > to &gt;, etc.: if isinstance(tree, xml.dom.minidom.Text): return tree.toxml()
e774c5f7c6207c0428a7f4727e92f31e02e4871b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/e774c5f7c6207c0428a7f4727e92f31e02e4871b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 869, 67, 2620, 67, 4759, 12, 2890, 16, 2151, 16, 1478, 16, 3504, 16, 1428, 2815, 4672, 3536, 9705, 445, 364, 511, 95, 67, 9859, 67, 869, 67, 2620, 5779, 716, 1552, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 869, 67, 2620, 67, 4759, 12, 2890, 16, 2151, 16, 1478, 16, 3504, 16, 1428, 2815, 4672, 3536, 9705, 445, 364, 511, 95, 67, 9859, 67, 869, 67, 2620, 5779, 716, 1552, 326...
global _debug _debug = 1
DEBUG = True
def main(argv): """ Here we parse the flags (short, long) and we instantiate the classes. """ path_to_tx = None extra_opts = [] try: opts, args = getopt.getopt(argv, "vhd", ["version", "help", "debug", "path_to_tx="]) except getopt.GetoptError: usage() sys.exit(2) for opt, arg in opts: if opt in ("-v", "--version"): print "Transifex Client Version 0.1" sys.exit() elif opt in ("-h", "--help"): usage() sys.exit() elif opt in ("-d", "--debug"): global _debug _debug = 1 elif opt in ("--path_to_tx"): path_to_tx = arg # If no commands provided show the usage and exit if len(args) == 0: usage() sys.exit(2) cmd = args[0] print "Command : %s" % cmd try: if cmd == 'get_source_file': _cmd_get_source_file(args[1:], path_to_tx) elif cmd == 'init': _cmd_init(args[1:], path_to_tx) elif cmd == 'push': _cmd_push(args[1:], path_to_tx) elif cmd == 'pull': _cmd_pull(args[1:], path_to_tx) elif cmd == 'send_source_file': _cmd_send_source_file(args[1:], path_to_tx) elif cmd == 'set_source_file': _cmd_set_source_file(args[1:], path_to_tx) elif cmd == 'set_translation': _cmd_set_translation(args[1:], path_to_tx) elif cmd == 'status': _cmd_status(args[1:], path_to_tx) else: print "tx: '%s' is not a tx-command. See 'tx --help'." % cmd sys.exit(2) except: if _debug == 1: raise sys.exit()
99231ec95554f6ebc8c1ff24d6e5ac1fd77f7d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11326/99231ec95554f6ebc8c1ff24d6e5ac1fd77f7d10/client2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 3536, 13743, 732, 1109, 326, 2943, 261, 6620, 16, 1525, 13, 471, 732, 10275, 326, 3318, 18, 3536, 589, 67, 869, 67, 978, 273, 599, 2870, 67, 4952, 273, 5378, 775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 3536, 13743, 732, 1109, 326, 2943, 261, 6620, 16, 1525, 13, 471, 732, 10275, 326, 3318, 18, 3536, 589, 67, 869, 67, 978, 273, 599, 2870, 67, 4952, 273, 5378, 775...
elif dims[i] == 'level':
elif dims[i] == 'level' or dims[i] == 'levels':
def print_var_read(self,var): """Write single variable block to stream for reading netCDF data."""
39906ceef653d8c6170b21f1acadbe64cdbb572d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2666/39906ceef653d8c6170b21f1acadbe64cdbb572d/generate_ncvars.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1401, 67, 896, 12, 2890, 16, 1401, 4672, 3536, 3067, 2202, 2190, 1203, 358, 1407, 364, 6453, 2901, 39, 4577, 501, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1401, 67, 896, 12, 2890, 16, 1401, 4672, 3536, 3067, 2202, 2190, 1203, 358, 1407, 364, 6453, 2901, 39, 4577, 501, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for patch in patchset.patch_set.order('filename'):
patches = patchset.patch_set.order('filename') _reorder_patches_by_filename(patches) for patch in patches:
def _get_affected_files(issue): """Helper to return a list of affected files from the latest patchset. Args: issue: Issue instance. Returns: 2-tuple containing a list of affected files, and the diff contents if it is less than 100 lines (otherwise the second item is an empty string). """ files = [] modified_count = 0 diff = '' patchsets = list(issue.patchset_set.order('created')) if len(patchsets): patchset = patchsets[-1] for patch in patchset.patch_set.order('filename'): file_str = '' if patch.status: file_str += patch.status + ' ' file_str += patch.filename files.append(file_str) modified_count += patch.num_lines if modified_count and modified_count < 100: diff = patchset.data return files, diff
a820c10b50b1b7338530f863377cd254281dc488 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/a820c10b50b1b7338530f863377cd254281dc488/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 20119, 67, 2354, 12, 13882, 4672, 3536, 2276, 358, 327, 279, 666, 434, 9844, 1390, 628, 326, 4891, 4729, 542, 18, 225, 6634, 30, 5672, 30, 11820, 791, 18, 225, 2860, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 20119, 67, 2354, 12, 13882, 4672, 3536, 2276, 358, 327, 279, 666, 434, 9844, 1390, 628, 326, 4891, 4729, 542, 18, 225, 6634, 30, 5672, 30, 11820, 791, 18, 225, 2860, 30, ...
gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), False, False, 0xFFFFFF)
gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), False, False, 0x7FFF)
def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return
0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 7291, 16, 833, 273, 5378, 4672, 309, 365, 18, 6528, 6738, 471, 486, 365, 18, 1893, 6738, 12, 14872, 16, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 2264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 12, 2890, 16, 7291, 16, 833, 273, 5378, 4672, 309, 365, 18, 6528, 6738, 471, 486, 365, 18, 1893, 6738, 12, 14872, 16, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 2264...
return [entry for entry in all_entries if entry.title.text and re.match(title,entry.title.text)]
try: return [entry for entry in all_entries if entry.title.text and re.match(title,entry.title.text)] except re.error, err: LOG.error('Regular expression error: ' + str(err) + '!') LOG.debug('regex provided: ' + title) return []
def get_entries(self, uri, title=None, converter=None): """Get a list of entries from a feed uri. Keyword arguments: uri: URI to get the feed from. title: String to use when looking for entries to return. Will be compared to entry.title.text, using regular expressions if self.use_regex. (Default None for all entries from feed) converter: Converter to use on the feed. If specified, will be passed into the GetFeed method. If None (default), GetFeed will be called without the converter argument being passed in. Returns: List of entries. """ uri = set_max_results(uri, self.max_results) try: if converter: feed = self.GetFeed(uri, converter=converter) else: feed = self.GetFeed(uri) except gdata.service.RequestError, err: LOG.error('Failed to get entries: ' + str(err)) return [] all_entries = feed.entry if feed.GetNextLink(): if self.cap_results: LOG.warning('Leaving data that matches query on server.' + ' Increase max_results or set cap_results to False.') else: while feed and feed.GetNextLink(): feed = self.GetNext(feed) if feed: all_entries.extend(feed.entry) if not title: return all_entries if self.use_regex: return [entry for entry in all_entries if entry.title.text and re.match(title,entry.title.text)] else: return [entry for entry in all_entries if title == entry.title.text]
20784002658f5f294603750b4d9e066b4e7c133d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/20784002658f5f294603750b4d9e066b4e7c133d/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8219, 12, 2890, 16, 2003, 16, 2077, 33, 7036, 16, 6027, 33, 7036, 4672, 3536, 967, 279, 666, 434, 3222, 628, 279, 4746, 2003, 18, 225, 18317, 1775, 30, 2003, 30, 3699, 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, 336, 67, 8219, 12, 2890, 16, 2003, 16, 2077, 33, 7036, 16, 6027, 33, 7036, 4672, 3536, 967, 279, 666, 434, 3222, 628, 279, 4746, 2003, 18, 225, 18317, 1775, 30, 2003, 30, 3699, 358, ...
self.left_boat.tb.set_text("turnleft 90\nforward 10")
self.left_boat.tb.set_text("forward 100")
def display_sea_area(self): # Some constant to define the sea area # The sea area is defined in the global self.sea_area step_x = (self.sea_area[2]-self.sea_area[0])/20 step_y = (self.sea_area[3]-self.sea_area[1])/10
4207120a2f0aef7ad38ebe5159360a72adcf3364 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/4207120a2f0aef7ad38ebe5159360a72adcf3364/searace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 307, 69, 67, 5036, 12, 2890, 4672, 468, 10548, 5381, 358, 4426, 326, 695, 69, 5091, 468, 1021, 695, 69, 5091, 353, 2553, 316, 326, 2552, 365, 18, 307, 69, 67, 5036, 2235, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 307, 69, 67, 5036, 12, 2890, 4672, 468, 10548, 5381, 358, 4426, 326, 695, 69, 5091, 468, 1021, 695, 69, 5091, 353, 2553, 316, 326, 2552, 365, 18, 307, 69, 67, 5036, 2235, 6...
print code[label]
def execute(self): theProfile = Profile() #(addr_space, symtab, types) = load_and_identify_image(self.op, self.opts) thefile = FileAddressSpace(self.opts.filename) flat = PCOW(thefile)
e53496d7950b7052631b07471f2680dea8042738 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4260/e53496d7950b7052631b07471f2680dea8042738/newmicrodo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 326, 4029, 273, 11357, 1435, 468, 12, 4793, 67, 2981, 16, 1393, 1010, 378, 16, 1953, 13, 273, 1262, 67, 464, 67, 31079, 67, 2730, 12, 2890, 18, 556, 16, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 326, 4029, 273, 11357, 1435, 468, 12, 4793, 67, 2981, 16, 1393, 1010, 378, 16, 1953, 13, 273, 1262, 67, 464, 67, 31079, 67, 2730, 12, 2890, 18, 556, 16, 365, 18...
filter_src=src_path+'extentions/filter/'
filter_src=src_path+'extensions/filter/'
def generate_locales(): print 'LOCALES BUILD' files=get_files('po','po') if len(files): for file in files: lang=file.split('.')[0] po_file=os.path.join('po',file) mo_file=os.path.join('src','share','locales',lang,'LC_MESSAGES','sk1.mo') if not os.path.lexists(os.path.join('src','share','locales',lang,'LC_MESSAGES')): os.makedirs(os.path.join('src','share','locales',lang,'LC_MESSAGES')) print po_file, '==>',mo_file os.system('msgfmt -o '+mo_file+' '+po_file)
6b91f31c59e36c11dc38a3113f73ac69decc3592 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/6b91f31c59e36c11dc38a3113f73ac69decc3592/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 22638, 13332, 1172, 296, 1502, 3587, 11386, 30054, 11, 1390, 33, 588, 67, 2354, 2668, 1631, 17023, 1631, 6134, 309, 562, 12, 2354, 4672, 364, 585, 316, 1390, 30, 3303, 33, 768,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 22638, 13332, 1172, 296, 1502, 3587, 11386, 30054, 11, 1390, 33, 588, 67, 2354, 2668, 1631, 17023, 1631, 6134, 309, 562, 12, 2354, 4672, 364, 585, 316, 1390, 30, 3303, 33, 768,...
dict = {}
def readmodule(module, path=[], inpackage=0): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module.''' i = string.rfind(module, '.') if i >= 0: # Dotted module name package = string.strip(module[:i]) submodule = string.strip(module[i+1:]) parent = readmodule(package, path, inpackage) child = readmodule(submodule, parent['__path__'], 1) return child if _modules.has_key(module): # we've seen this module before... return _modules[module] if module in sys.builtin_module_names: # this is a built-in module dict = {} _modules[module] = dict return dict # search the path for the module f = None if inpackage: try: f, file, (suff, mode, type) = \ imp.find_module(module, path) except ImportError: f = None if f is None: fullpath = list(path) + sys.path f, file, (suff, mode, type) = imp.find_module(module, fullpath) if type == imp.PKG_DIRECTORY: dict = {'__path__': [file]} _modules[module] = dict # XXX Should we recursively look for submodules? return dict if type != imp.PY_SOURCE: # not Python source, can't do anything with this module f.close() dict = {} _modules[module] = dict return dict dict = {} _modules[module] = dict imports = [] classstack = [] # stack of (class, indent) pairs src = f.read() f.close() # To avoid having to stop the regexp at each newline, instead # when we need a line number we simply string.count the number of # newlines in the string since the last time we did this; i.e., # lineno = lineno + \ # string.count(src, '\n', last_lineno_pos, here) # last_lineno_pos = here countnl = string.count lineno, last_lineno_pos = 1, 0 i = 0 while 1: m = _getnext(src, i) if not m: break start, i = m.span() if m.start("Method") >= 0: # found a method definition or function thisindent = _indent(m.group("MethodIndent")) # close all classes indented at least as much while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] if classstack: # and we know the class it belongs to meth_name = m.group("MethodName") lineno = lineno + \ countnl(src, '\n', last_lineno_pos, start) last_lineno_pos = start cur_class = classstack[-1][0] cur_class._addmethod(meth_name, lineno) elif m.start("String") >= 0: pass elif m.start("Class") >= 0: # we found a class definition thisindent = _indent(m.group("ClassIndent")) # close all classes indented at least as much while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] lineno = lineno + \ countnl(src, '\n', last_lineno_pos, start) last_lineno_pos = start class_name = m.group("ClassName") inherit = m.group("ClassSupers") if inherit: # the class inherits from other classes inherit = string.strip(inherit[1:-1]) names = [] for n in string.splitfields(inherit, ','): n = string.strip(n) if dict.has_key(n): # we know this super class n = dict[n] else: c = string.splitfields(n, '.') if len(c) > 1: # super class # is of the # form module.class: # look in # module for class m = c[-2] c = c[-1] if _modules.has_key(m): d = _modules[m] if d.has_key(c): n = d[c] names.append(n) inherit = names # remember this class cur_class = Class(module, class_name, inherit, file, lineno) dict[class_name] = cur_class classstack.append((cur_class, thisindent)) elif m.start("Import") >= 0: # import module for n in string.split(m.group("ImportList"), ','): n = string.strip(n) try: # recursively read the imported module d = readmodule(n, path, inpackage) except: print 'module', n, 'not found' elif m.start("ImportFrom") >= 0: # from module import stuff mod = m.group("ImportFromPath") names = string.split(m.group("ImportFromList"), ',') try: # recursively read the imported module d = readmodule(mod, path, inpackage) except: print 'module', mod, 'not found' continue # add any classes that were defined in the # imported module to our name space if they # were mentioned in the list for n in names: n = string.strip(n) if d.has_key(n): dict[n] = d[n] elif n == '*': # only add a name if not # already there (to mimic what # Python does internally) # also don't add names that # start with _ for n in d.keys(): if n[0] != '_' and \ not dict.has_key(n): dict[n] = d[n] else: assert 0, "regexp _getnext found something unexpected" return dict
462dfce99b90ce796273c74b0427879994cb346c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/462dfce99b90ce796273c74b0427879994cb346c/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 20, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 20, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803...
decompEntities = self._getReadings(readingStr, fromReading, **options)
decompEntities = self._getReadings(searchStr, **options) fromReading = options.get('reading', self._dictInstance.READING)
def getTonalEntities(plainEntity): """Gets all tonal forms for a given plain entity.""" tonalEntities = [] tones = self._readingFactory.getTones( fromReading, **options) for tone in tones: try: tonalEntities.append(self._readingFactory.getTonalEntity( plainEntity, tone, fromReading, **options)) except exception.InvalidEntityError: pass return tonalEntities
7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3181, 9528, 8108, 12, 7446, 1943, 4672, 3536, 3002, 777, 268, 9528, 10138, 364, 279, 864, 7351, 1522, 12123, 268, 9528, 8108, 273, 5378, 268, 5322, 273, 365, 6315, 21803, 1733, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3181, 9528, 8108, 12, 7446, 1943, 4672, 3536, 3002, 777, 268, 9528, 10138, 364, 279, 864, 7351, 1522, 12123, 268, 9528, 8108, 273, 5378, 268, 5322, 273, 365, 6315, 21803, 1733, 18, 588, ...
self.__last_built_time = time.time()
self._last_built_time = time.time()
def call_build(self): """ This method is really simple in this implementation, but it can be overridden with more complicated things in subclasses. The purpose is to setup some state before and/or after build. """ self.build() self.__last_built_time = time.time()
aa3b18e82742affe9ba8127a374045a33610b039 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4663/aa3b18e82742affe9ba8127a374045a33610b039/make.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 3510, 12, 2890, 4672, 3536, 1220, 707, 353, 8654, 4143, 316, 333, 4471, 16, 1496, 518, 848, 506, 11000, 598, 1898, 31312, 9198, 316, 15320, 18, 1021, 13115, 353, 358, 3875, 2690...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 3510, 12, 2890, 4672, 3536, 1220, 707, 353, 8654, 4143, 316, 333, 4471, 16, 1496, 518, 848, 506, 11000, 598, 1898, 31312, 9198, 316, 15320, 18, 1021, 13115, 353, 358, 3875, 2690...
self.add_option("-i", "--index", type="int", dest="index",
self.add_option("-i", "--index", type="int", dest="index", default=None,
def __init__(self, *args, **kwargs): SurfaceOptionParser.__init__(self, *args, **kwargs) self.add_option("--shp", help="SHP", dest="shpfile") self.add_option("-i", "--index", type="int", dest="index", help="get surface at INDEX") self.add_option("--size", help="Size in format pictures WxH", dest="shpsize") self.add_option("--tiles", help="What tiles to use, a list of indexes in the form n,n,...,n", dest="tiles") self.add_option("-n", action="store_true", default=False, dest="size", help="get number of pictures")
d0df967262cdf61148f58cab63abeeb972e0947c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6099/d0df967262cdf61148f58cab63abeeb972e0947c/eastwood.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 24354, 1895, 2678, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 1289, 67, 3482, 2932, 413, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 24354, 1895, 2678, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 1289, 67, 3482, 2932, 413, 67...
for i in self.values[23]: self.jack_lsp_listSave.insertItem(-1,QtGui.QListWidgetItem(i))
def __runJackLSP__(self,button=None): self.ports=[] failed=0 (stdin,stdout,stderr)=os.popen3(['jack_lsp'],'t') ports=stdout.readlines() stdin.close() stdout.close() stderr.close() self.jack_lsp_liststore.clear() if ports!=[]: for i in ports: self.ports.append(i.replace('\n',"")) self.jack_lsp_liststore.setEnabled(True) else: failed=1 self.ports.append(prefStrings['JackLspS1']) self.ports.append(prefStrings['JackLspS2']) self.jack_lsp_liststore.setEnabled(False) self.jack_lsp_listSave.setEnabled(False) self.values[23]=[] for i in self.values[23]: self.jack_lsp_listSave.insertItem(-1,QtGui.QListWidgetItem(i)) for i in self.ports: self.jack_lsp_liststore.insertItem(-1,QtGui.QListWidgetItem(i))
0cd36436725f308f58048f9d6ae02d94cfbfad8c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9403/0cd36436725f308f58048f9d6ae02d94cfbfad8c/rmdPrefsWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2681, 46, 484, 3045, 52, 972, 12, 2890, 16, 5391, 33, 7036, 4672, 365, 18, 4363, 33, 8526, 2535, 33, 20, 261, 21772, 16, 10283, 16, 11241, 13, 33, 538, 18, 84, 3190, 23, 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, 1001, 2681, 46, 484, 3045, 52, 972, 12, 2890, 16, 5391, 33, 7036, 4672, 365, 18, 4363, 33, 8526, 2535, 33, 20, 261, 21772, 16, 10283, 16, 11241, 13, 33, 538, 18, 84, 3190, 23, 12, ...
self._Run(['reset', '--hard', 'HEAD'], redirect_stdout=False)
self._Run(['reset', '--hard', 'HEAD'])
def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy.
9ee5d919647ed29a24b35149e866c885fd04b9bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/9ee5d919647ed29a24b35149e866c885fd04b9bd/gclient_scm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 702, 16, 833, 16, 585, 67, 1098, 4672, 3536, 9361, 5071, 358, 1089, 578, 17270, 715, 13926, 326, 5960, 1610, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 702, 16, 833, 16, 585, 67, 1098, 4672, 3536, 9361, 5071, 358, 1089, 578, 17270, 715, 13926, 326, 5960, 1610, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""Not sure what this does."""
"""Unmark all messages marked for deletion."""
def rset(self): """Not sure what this does.""" return self._shortcmd('RSET')
9ab099e2c90dbc39a7d05e44b31eb93c120769d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/9ab099e2c90dbc39a7d05e44b31eb93c120769d0/poplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 542, 12, 2890, 4672, 3536, 984, 3355, 777, 2743, 9350, 364, 10899, 12123, 327, 365, 6315, 6620, 4172, 2668, 54, 4043, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 436, 542, 12, 2890, 4672, 3536, 984, 3355, 777, 2743, 9350, 364, 10899, 12123, 327, 365, 6315, 6620, 4172, 2668, 54, 4043, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
write_message('generated ' + marc_name)
write_message('generated %s' % (marc_name,))
def process_single(tarball, sdir = CFG_TMPDIR, xtract_text = False, \ upload_plots = False, force = False, squash = "", \ yes_i_know = False, refno_url = "", \ clean = False): """ Processes one tarball end-to-end. @param: tarball (string): the absolute location of the tarball we wish to process @param: sdir (string): where we should put all the intermediate files for the processing. if you're uploading, this directory should be one of the ones specified in CFG_BIBUPLOAD_FFT_ALLOWED_LOCAL_PATHS, else the upload won't work @param: xtract_text (boolean): true iff you want to run pdftotext on the pdf versions of the tarfiles. this programme assumes that the pdfs are named the same as the tarballs but with a .pdf extension. @param: upload_plots (boolean): true iff you want to bibupload the plots extracted by this process @param: force (boolean): force creation of new xml file @param: squash: write MARCXML output into a specified 'squash' file instead of single files. @param: yes_i_know: if True, no user interaction if upload_plots is True @param: refno_url: URL to the invenio-instance to query for refno. @param: clean: if True, everything except the original tarball, plots and context- files will be removed @return: marc_name(string): path to generated marcxml file """ sub_dir, refno = get_defaults(tarball, sdir, refno_url) if not squash: marc_name = os.path.join(sub_dir, refno + '.xml') if (force or not os.path.exists(marc_name)): marc_fd = open(marc_name, 'w') marc_fd.write('<?xml version="1.0" encoding="UTF-8"?>\n<collection>\n') marc_fd.close() else: marc_name = squash if xtract_text: extract_text(tarball) try: extracted_files_list, image_list, tex_files = untar(tarball, sub_dir) except Timeout: write_message('Timeout during tarball extraction on ' + tarball) return if tex_files == [] or tex_files == None: write_message(os.path.split(tarball)[-1] + ' is not a tarball') run_shell_command('rm -r %s', (sub_dir,)) return converted_image_list = convert_images(image_list) write_message('converted %d of %d images found for %s' % (len(converted_image_list), \ len(image_list), \ os.path.basename(tarball))) extracted_image_data = [] for tex_file in tex_files: # Extract images, captions and labels partly_extracted_image_data = extract_captions(tex_file, sub_dir, \ converted_image_list) if partly_extracted_image_data != []: cleaned_image_data = prepare_image_data(partly_extracted_image_data, \ tex_file, converted_image_list) # Using prev. extracted info, get contexts for each image found extracted_image_data.extend((extract_context(tex_file, cleaned_image_data))) if extracted_image_data == []: write_message('No plots detected in ' + refno) else: if refno_url == "": refno = None create_contextfiles(extracted_image_data) marc_xml = create_MARC(extracted_image_data, tarball, refno) if marc_name != None: marc_fd = open(marc_name, 'a') marc_fd.write('%s\n</collection>\n' % (marc_xml,)) marc_fd.close() if not squash: write_message('generated ' + marc_name) if upload_plots: upload_to_site(marc_name, yes_i_know) if clean: clean_up(extracted_files_list, image_list + converted_image_list) write_message('work complete on ' + os.path.split(tarball)[-1]) return marc_name
db29de596d58d21210981cce23fa69ad25ba56a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/db29de596d58d21210981cce23fa69ad25ba56a2/plotextractor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 7526, 12, 88, 23846, 16, 272, 1214, 273, 7577, 67, 28259, 4537, 16, 619, 1575, 67, 955, 273, 1083, 16, 521, 3617, 67, 13214, 273, 1083, 16, 2944, 273, 1083, 16, 17715, 961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 7526, 12, 88, 23846, 16, 272, 1214, 273, 7577, 67, 28259, 4537, 16, 619, 1575, 67, 955, 273, 1083, 16, 521, 3617, 67, 13214, 273, 1083, 16, 2944, 273, 1083, 16, 17715, 961, ...
def test_module(self):
TE_MSG = "can't set attributes of built-in/extension type 'str'" def test_dunder_module(self):
def test_module(self): self.assertEqual(str.__module__, '__builtin__') class Foo: pass self.assertEqual(Foo.__module__, __name__) self.assertEqual(str(Foo), '%s.Foo' % __name__) self.assert_(repr(Foo).startswith('<class %s.Foo ' % __name__)) foo = Foo() self.assert_(str(foo).startswith('<%s.Foo instance ' % __name__))
d5735d456e427562418f8ede887aa6a26aa28163 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/d5735d456e427562418f8ede887aa6a26aa28163/test_types_jy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 25156, 67, 11210, 273, 315, 4169, 1404, 444, 1677, 434, 6650, 17, 267, 19, 6447, 618, 296, 701, 4970, 225, 1652, 1842, 67, 72, 9341, 67, 2978, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 25156, 67, 11210, 273, 315, 4169, 1404, 444, 1677, 434, 6650, 17, 267, 19, 6447, 618, 296, 701, 4970, 225, 1652, 1842, 67, 72, 9341, 67, 2978, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 701, ...
newobj = _animate.new_GIFAnimationCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown
this = _animate.new_GIFAnimationCtrl(*args, **kwargs) try: self.this.append(this) except: self.this = this
def __init__(self, *args, **kwargs): """ __init__(self, Window parent, int id=-1, String filename=EmptyString, Point pos=DefaultPosition, Size size=DefaultSize, long style=wxAN_FIT_ANIMATION|wxNO_BORDER, String name=AnimationControlNameStr) -> GIFAnimationCtrl """ newobj = _animate.new_GIFAnimationCtrl(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setOORInfo(self)
97025b9bc4f0f31eaaa081a99a191e1105973470 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/97025b9bc4f0f31eaaa081a99a191e1105973470/animate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1001, 2738, 972, 12, 2890, 16, 6076, 982, 16, 509, 612, 29711, 21, 16, 514, 1544, 33, 1921, 780, 16, 4686, 949, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1001, 2738, 972, 12, 2890, 16, 6076, 982, 16, 509, 612, 29711, 21, 16, 514, 1544, 33, 1921, 780, 16, 4686, 949, ...
transName = long(transName)
transName = long( transName )
def _getTransformationID(self,transName,connection=False): """ Method returns ID of transformation with the name=<name> """ try: transName = long(transName) cmd = "SELECT TransformationID from Transformations WHERE TransformationID=%d;" % transName except: if type(transName) not in StringTypes: return S_ERROR("Transformation should ID or name") cmd = "SELECT TransformationID from Transformations WHERE TransformationName='%s';" % transName res = self._query(cmd,connection) if not res['OK']: gLogger.error("Failed to obtain transformation ID for transformation","%s:%s" % (transName,res['Message'])) return res elif not res['Value']: gLogger.verbose("Transformation %s does not exist" % (transName)) return S_ERROR("Transformation does not exist") return S_OK(res['Value'][0][0])
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 15292, 734, 12, 2890, 16, 2338, 461, 16, 4071, 33, 8381, 4672, 3536, 2985, 1135, 1599, 434, 8620, 598, 326, 508, 27127, 529, 34, 3536, 775, 30, 906, 461, 273, 1525, 12, 906, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 15292, 734, 12, 2890, 16, 2338, 461, 16, 4071, 33, 8381, 4672, 3536, 2985, 1135, 1599, 434, 8620, 598, 326, 508, 27127, 529, 34, 3536, 775, 30, 906, 461, 273, 1525, 12, 906, ...
elif activity == EVENT:
elif activity & EVENT:
def update_label(self): activity = self.child_window.activity if activity == HILIT: text = "<span foreground='yellow'>%s</span>" % self.child_window.title elif activity == TEXT: text = "<span foreground='red'>%s</span>" % self.child_window.title elif activity == EVENT: text = "<span foreground='blue'>%s</span>" % self.child_window.title else: text = "<span>%s</span>" % self.child_window.title self.label.set_markup(text)
064f89564208481ad9ed46f8479b5eeef2f2b65b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/064f89564208481ad9ed46f8479b5eeef2f2b65b/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1925, 12, 2890, 4672, 5728, 273, 365, 18, 3624, 67, 5668, 18, 9653, 225, 309, 5728, 422, 670, 2627, 1285, 30, 977, 273, 3532, 3969, 16231, 2218, 19227, 11, 9822, 87, 1757, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1925, 12, 2890, 4672, 5728, 273, 365, 18, 3624, 67, 5668, 18, 9653, 225, 309, 5728, 422, 670, 2627, 1285, 30, 977, 273, 3532, 3969, 16231, 2218, 19227, 11, 9822, 87, 1757, 39...
str += ' <dd>'+epytext.to_html(fdescr, para=1)+'</dd>\n' str += ' <dt></dt><dd>\n'
str += '\n'+epytext.to_html(fdescr, para=1)+'\n' str += '<dl><dt></dt><dd>\n'
def _func_details(self, functions, cls, heading='Function Details'): """Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</table>'
29127a15ecd548178da747376d81226f0a835ef6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/29127a15ecd548178da747376d81226f0a835ef6/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 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, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6...
def GetNumInvalidValues(self, func):
def GetNumInvalidValues(self):
def GetNumInvalidValues(self, func): """Overridden from Argument.""" return 2
85c6d6739a81098c35cb35c3430f038ed4f5ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/85c6d6739a81098c35cb35c3430f038ed4f5ddab/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2578, 1941, 1972, 12, 2890, 4672, 3536, 22042, 2794, 628, 5067, 12123, 327, 576, 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, 968, 2578, 1941, 1972, 12, 2890, 4672, 3536, 22042, 2794, 628, 5067, 12123, 327, 576, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
sage: sqrt(2) in X False
sage: sqrt(2) in X True
def __contains__(self, x): """ Return true if self contains x.
22d1c6f5636272f56acf66dde11b1adc06b493c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/22d1c6f5636272f56acf66dde11b1adc06b493c9/set.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12298, 972, 12, 2890, 16, 619, 4672, 3536, 2000, 638, 309, 365, 1914, 619, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12298, 972, 12, 2890, 16, 619, 4672, 3536, 2000, 638, 309, 365, 1914, 619, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
"""Dict wrapper for convenient acces of values through attributes."""
"""Dict wrapper for convenient access of values through attributes."""
def writeArray(self, array): self.beginElement("array") for value in array: self.writeValue(value) self.endElement("array")
16ef39eac00a8e7427e308005cddbc7d29a1e9f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/16ef39eac00a8e7427e308005cddbc7d29a1e9f5/plistlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1076, 12, 2890, 16, 526, 4672, 365, 18, 10086, 1046, 2932, 1126, 7923, 364, 460, 316, 526, 30, 365, 18, 2626, 620, 12, 1132, 13, 365, 18, 409, 1046, 2932, 1126, 7923, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1076, 12, 2890, 16, 526, 4672, 365, 18, 10086, 1046, 2932, 1126, 7923, 364, 460, 316, 526, 30, 365, 18, 2626, 620, 12, 1132, 13, 365, 18, 409, 1046, 2932, 1126, 7923, 2, -100, ...
dump.read(1)
assert dump.read(1) == '\n'
def parse_prop(line): type,length = line[:-1].split(' ') assert type=='K' name = dump.read(int(length)) dump.read(1) line = dump.readline() type,length = line[:-1].split(' ') assert type=='V' value = dump.read(int(length)) dump.read(1) return name,value
b4dd165821a1ebbfd83574cb6848eb993e1b5dca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/b4dd165821a1ebbfd83574cb6848eb993e1b5dca/svndump.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 5986, 12, 1369, 4672, 618, 16, 2469, 273, 980, 10531, 17, 21, 8009, 4939, 2668, 8624, 1815, 618, 18920, 47, 11, 508, 273, 4657, 18, 896, 12, 474, 12, 2469, 3719, 1815, 4657, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 5986, 12, 1369, 4672, 618, 16, 2469, 273, 980, 10531, 17, 21, 8009, 4939, 2668, 8624, 1815, 618, 18920, 47, 11, 508, 273, 4657, 18, 896, 12, 474, 12, 2469, 3719, 1815, 4657, ...
filename = u'%s - Trailer %d' % (mirodetails[u'moviename'], index)
filename = sanitiseFileName(u'%s - Trailer %d' % (mirodetails[u'moviename'], index))
def updateMiroVideo(self, program): '''Update the information in a Miro/MythVideo record return nothing ''' global localhostname, graphicsDirectories
f132146d19febfbd3e15736f0f51f9e3d1f72607 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/f132146d19febfbd3e15736f0f51f9e3d1f72607/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 49, 11373, 10083, 12, 2890, 16, 5402, 4672, 9163, 1891, 326, 1779, 316, 279, 490, 11373, 19, 12062, 451, 10083, 1409, 327, 5083, 9163, 2552, 1191, 10358, 16, 17313, 13071, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 49, 11373, 10083, 12, 2890, 16, 5402, 4672, 9163, 1891, 326, 1779, 316, 279, 490, 11373, 19, 12062, 451, 10083, 1409, 327, 5083, 9163, 2552, 1191, 10358, 16, 17313, 13071, 2, -100, ...
TypeError: Brun's constant only available up to 41 bits
NotImplementedError: Brun's constant only available up to 41 bits
def _mpfr_(self, R): """ EXAMPLES: sage: RealField(53)(brun) Traceback (most recent call last): ... TypeError: Brun's constant only available up to 41 bits sage: RealField(41)(brun) 1.90216058310 """ if R.precision() <= self.__bits: return R(self.__value) raise TypeError, "Brun's constant only available up to %s bits"%self.__bits
2a839b3d50866729418f3c87713bc3adb8f65bac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2a839b3d50866729418f3c87713bc3adb8f65bac/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1291, 4840, 67, 12, 2890, 16, 534, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 15987, 974, 12, 8643, 21433, 70, 2681, 13, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1291, 4840, 67, 12, 2890, 16, 534, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 15987, 974, 12, 8643, 21433, 70, 2681, 13, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, ...
induces an empty subgraph. Uses Cliquer.
induces an empty subgraph. Uses Cliquer [NisOst2003]_.
def independent_set(self): """ Returns a maximal independent set, which is a set of vertices which induces an empty subgraph. Uses Cliquer. NOTES: - Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph. EXAMPLES:: sage: C=graphs.PetersenGraph() sage: C.independent_set() [0, 3, 6, 7]
9e5b138b9189031c2c258c6596d3a3b7fdafb7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9e5b138b9189031c2c258c6596d3a3b7fdafb7d0/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14807, 67, 542, 12, 2890, 4672, 3536, 2860, 279, 943, 2840, 14807, 444, 16, 1492, 353, 279, 444, 434, 6928, 1492, 1547, 89, 764, 392, 1008, 21469, 18, 14854, 14391, 25734, 306, 50, 291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14807, 67, 542, 12, 2890, 4672, 3536, 2860, 279, 943, 2840, 14807, 444, 16, 1492, 353, 279, 444, 434, 6928, 1492, 1547, 89, 764, 392, 1008, 21469, 18, 14854, 14391, 25734, 306, 50, 291, ...
lv, lf, pv, pf = bb.providers.findBestProvider(preferred, cooker.configuration.data, cooker.status, cooker.build_cache_fail)
lv, lf, pv, pf = Providers.findBestProvider(preferred, cooker.configuration.data, cooker.status, cooker.build_cache_fail)
def which( self, params ): """Computes the providers for a given providee""" item = params[0]
b7b4747e707bea6f9dee836e6b04b0f9ff9fedab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/b7b4747e707bea6f9dee836e6b04b0f9ff9fedab/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1492, 12, 365, 16, 859, 262, 30, 3536, 10743, 326, 9165, 364, 279, 864, 5615, 73, 8395, 761, 273, 859, 63, 20, 65, 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, 1492, 12, 365, 16, 859, 262, 30, 3536, 10743, 326, 9165, 364, 279, 864, 5615, 73, 8395, 761, 273, 859, 63, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.startTagHandler.default = self.processAnythingElse
self.startTagHandler.default = self.startTagOther
def __init__(self, parser, tree): Phase.__init__(self, parser, tree)
ada0ac37dde0996bf794a42d6e0bceb3097dbbd7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9368/ada0ac37dde0996bf794a42d6e0bceb3097dbbd7/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 4672, 19459, 16186, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 4672, 19459, 16186, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sys.exit(1)
if __name__ != "__main__": sys.exit(1)
def _SetupEnvironmentVariableAny(Name, RequiredFiles, Attempt): Value = os.environ.get(Name) if Value: for File in RequiredFiles: if SearchPath(File, Value): return if Value: NewValue = Attempt + os.path.pathsep + Value else: NewValue = Attempt for File in RequiredFiles: if SearchPath(File, NewValue): os.environ[Name] = NewValue if Value: print(Name + "=" + NewValue + os.pathsep + _FormatEnvironmentVariable(Name)) else: print(Name + "=" + NewValue) return print("ERROR: " + _FormatEnvironmentVariable(Name) + " does not have any of " + " ".join(RequiredFiles)) sys.exit(1)
e5dd2e590d47712e5f74eb2b94a7ba475d779485 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/e5dd2e590d47712e5f74eb2b94a7ba475d779485/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7365, 5494, 3092, 2961, 12, 461, 16, 10647, 2697, 16, 12864, 4672, 1445, 273, 1140, 18, 28684, 18, 588, 12, 461, 13, 309, 1445, 30, 364, 1387, 316, 10647, 2697, 30, 309, 5167, 743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7365, 5494, 3092, 2961, 12, 461, 16, 10647, 2697, 16, 12864, 4672, 1445, 273, 1140, 18, 28684, 18, 588, 12, 461, 13, 309, 1445, 30, 364, 1387, 316, 10647, 2697, 30, 309, 5167, 743...
h[n] = True
h.append(n)
def warn(msg): self.ui.warn(_("%s, line %s: %s\n") % (fn, count, msg))
ad764463845d829f6853631904d2d7ea878fc7f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/ad764463845d829f6853631904d2d7ea878fc7f4/localrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1894, 12, 3576, 4672, 365, 18, 4881, 18, 8935, 24899, 27188, 87, 16, 980, 738, 87, 30, 738, 87, 64, 82, 7923, 738, 261, 4293, 16, 1056, 16, 1234, 3719, 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, 1894, 12, 3576, 4672, 365, 18, 4881, 18, 8935, 24899, 27188, 87, 16, 980, 738, 87, 30, 738, 87, 64, 82, 7923, 738, 261, 4293, 16, 1056, 16, 1234, 3719, 2, -100, -100, -100, -100, -10...