bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def getDemoVariants(self): if not self.hasDemoDir: return False demoVariants = [] demoPath = os.path.join(self.path, "demo") for root, dirs, files in filetool.walk(demoPath, topdown=True): for name in dirs: if root == demoPath and name[0] != ".": demoVariants.append(name) return demoVariants | def getDemoVariants(self): if not self.hasDemoDir: return False demos = [] demoPath = os.path.join(self.path, "demo") for root, dirs, files in filetool.walk(demoPath, topdown=True): for name in dirs: if root == demoPath and name[0] != ".": demoVariants.append(name) return demoVariants | 447,500 |
def getDemoVariants(self): if not self.hasDemoDir: return False demoVariants = [] demoPath = os.path.join(self.path, "demo") for root, dirs, files in filetool.walk(demoPath, topdown=True): for name in dirs: if root == demoPath and name[0] != ".": demoVariants.append(name) return demoVariants | def getDemoVariants(self): if not self.hasDemoDir: return False demoVariants = [] demoPath = os.path.join(self.path, "demo") for root, dirs, files in filetool.walk(demoPath, topdown=True): for name in dirs: if root == demoPath and name[0] != ".": demoVariants.append(name) return demoVariants | 447,501 |
def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: rcode, output, errout = runGenerator(self.path, target, macro) except Exception, e: msg = "Error running generator: " + str(e) console.wite("") console.error(e) demoBuildStatus["buildError"] = msg return demoBuildStatus #som... | 447,502 |
def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | 447,503 |
def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | 447,504 |
def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | 447,505 |
def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = m... | 447,506 |
def buildShallowDeps(): # Notes: # load time = before class = require # runtime = after class = use | def buildShallowDeps(): # Notes: # load time = before class = require # runtime = after class = use | 447,507 |
def internalLink(url): # wiki links are all-lowercase url = url.lower() # manual url if url.find(ns12)>-1: url = url[url.find(ns12)+len(ns12):] if currentInput.endswith("index.txt"): url = "pages/" + url # wiki url else: if url.startswith(".:"): url = url[2:] if url.startswith("."): url = url[1:] if url.startswith(":")... | def internalLink(url): # wiki links are all-lowercase url = url.lower() # manual url if url.find(ns12)>-1: url = url[url.find(ns12)+len(ns12):] if currentInput.endswith("index.txt"): url = "pages/" + url # wiki url else: if url.startswith(".:"): url = url[2:] if url.startswith("."): url = url[1:] if (url.startswith(":"... | 447,508 |
def absolutizeUrl(url): # generator_config_articles#packages_key -> pages/tool/generator_config_article#packages_key # force all-lowercase url = url.lower() if url.find('#'): # strip fragment id fragment = url[url.find('#'):] base = url[:url.find('#')] else: fragment = "" base = url for knownbase in fileset: if kn... | def absolutizeUrl(url, withext=False): # generator_config_articles#packages_key -> pages/tool/generator_config_article#packages_key # force all-lowercase url = url.lower() if url.find('#'): # strip fragment id fragment = url[url.find('#'):] base = url[:url.find('#')] else: fragment = "" base = url for knownbase in... | 447,509 |
def absolutizeUrl(url): # generator_config_articles#packages_key -> pages/tool/generator_config_article#packages_key # force all-lowercase url = url.lower() if url.find('#'): # strip fragment id fragment = url[url.find('#'):] base = url[:url.find('#')] else: fragment = "" base = url for knownbase in fileset: if kn... | def absolutizeUrl(url): # generator_config_articles#packages_key -> pages/tool/generator_config_article#packages_key # force all-lowercase url = url.lower() if url.find('#'): # strip fragment id fragment = url[url.find('#'):] base = url[:url.find('#')] else: fragment = "" base = url for knownbase in fileset: if kn... | 447,510 |
def convertToRst_I(s,l,t): import random # split text and url i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # remove trailing artifacts url = re.sub(r'\?.*$', '', url) # Handle url if url.startswith("http://"): pass # handle document:1.2: elif url.find(ns12)>... | def convertToRst_I(s,l,t): import random # split text and url i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # remove trailing artifacts url = re.sub(r'\?.*$', '', url) # Handle url if url.startswith("http://"): pass # handle document:1.2: elif url.find(ns12)>... | 447,511 |
def main(path): assert(os.path.isdir(path)) global dirroot dirroot = path for root,dirs,files in os.walk(path): for file in (f for f in files if f.endswith(".txt")): transform(os.path.join(root,file)) | def main(path): assert(os.path.isdir(path)) global dirroot dirroot = path for root,dirs,files in os.walk(path): for file in (f for f in files if f.endswith(".txt")): transform(os.path.join(root,file)) | 447,512 |
def copyResource(res, library): sourcepath = os.path.join(library._resourcePath, res) targetpath = approot + "/resource/" + res filetool.directory(os.path.dirname(targetpath)) shutil.copy(sourcepath, targetpath) return | def copyResource(res, library): sourcepath = os.path.join(library._resourcePath, res) targetpath = approot + "/resource/" + res filetool.directory(os.path.dirname(targetpath)) shutil.copy(sourcepath, targetpath) return | 447,513 |
def reportResults(self, aut, start_date, log_file): from simulationLogParser import SimulationLogParser if (self.sim): self.log("SIMULATION: Getting report data for " + aut) return else: self.log("Getting report data for " + aut) try: import json except ImportError, e: try: import simplejson as json except ImportErro... | def reportResults(self, aut, start_date, log_file): from simulationLogParser import SimulationLogParser if (self.sim): self.log("SIMULATION: Getting report data for " + aut) return else: self.log("Getting report data for " + aut) try: import json except ImportError, e: try: import simplejson as json except ImportErro... | 447,514 |
def reportResults(self, aut, start_date, log_file): from simulationLogParser import SimulationLogParser if (self.sim): self.log("SIMULATION: Getting report data for " + aut) return else: self.log("Getting report data for " + aut) try: import json except ImportError, e: try: import simplejson as json except ImportErro... | def reportResults(self, aut, start_date, log_file): from simulationLogParser import SimulationLogParser if (self.sim): self.log("SIMULATION: Getting report data for " + aut) return else: self.log("Getting report data for " + aut) try: import json except ImportError, e: try: import simplejson as json except ImportErro... | 447,515 |
def reportResults(self, aut, start_date, log_file): from simulationLogParser import SimulationLogParser if (self.sim): self.log("SIMULATION: Getting report data for " + aut) return else: self.log("Getting report data for " + aut) try: import json except ImportError, e: try: import simplejson as json except ImportErro... | def reportResults(self, aut, start_date, log_file): from simulationLogParser import SimulationLogParser if (self.sim): self.log("SIMULATION: Getting report data for " + aut) return else: self.log("Getting report data for " + aut) try: import json except ImportError, e: try: import simplejson as json except ImportErro... | 447,516 |
def reportResults(self, aut, start_date, log_file): from simulationLogParser import SimulationLogParser if (self.sim): self.log("SIMULATION: Getting report data for " + aut) return else: self.log("Getting report data for " + aut) try: import json except ImportError, e: try: import simplejson as json except ImportErro... | def reportResults(self, aut, start_date, log_file): from simulationLogParser import SimulationLogParser if (self.sim): self.log("SIMULATION: Getting report data for " + aut) return else: self.log("Getting report data for " + aut) try: import json except ImportError, e: try: import simplejson as json except ImportErro... | 447,517 |
def editConfigJson(self, configFilePath=None, newConfig=None): import demjson if not configFilePath or not newConfig: raise Exception("Missing parameter for editJobConfig!") self.log("Editing config file " + configFilePath) configFile = codecs.open(configFilePath, 'r', 'utf-8') configJson = configFile.read() configFi... | def editConfigJson(self, configFilePath=None, newConfig=None): import demjson if not configFilePath or not newConfig: raise Exception("Missing parameter for editJobConfig!") self.log("Editing config file " + configFilePath) configFile = codecs.open(configFilePath, 'r', 'utf-8') configJson = configFile.read() configFi... | 447,518 |
def unzipToDir(self, file, dir): import zipfile try: if not os.path.isdir(dir): os.mkdir(dir) except Exception, e: self.logError(e, "Creating directory " + dir) zfobj = zipfile.ZipFile(file) # The first entry in the zip file's name list is the top qooxdoo directory topDirName = zfobj.namelist()[0] topDir = os.path.jo... | def unzipToDir(self, file, dir): import zipfile try: if not os.path.isdir(dir): os.mkdir(dir) except Exception, e: self.logError(e, "Creating directory " + dir) zfobj = zipfile.ZipFile(file) # The first entry in the zip file's name list is the top qooxdoo directory topDirName = zfobj.namelist()[0] topDir = os.path.jo... | 447,519 |
def unzipToDir(self, file, dir): import zipfile try: if not os.path.isdir(dir): os.mkdir(dir) except Exception, e: self.logError(e, "Creating directory " + dir) zfobj = zipfile.ZipFile(file) # The first entry in the zip file's name list is the top qooxdoo directory topDirName = zfobj.namelist()[0] topDir = os.path.jo... | def unzipToDir(self, file, dir): import zipfile try: if not os.path.isdir(dir): os.mkdir(dir) except Exception, e: self.logError(e, "Creating directory " + dir) zfobj = zipfile.ZipFile(file) # The first entry in the zip file's name list is the top qooxdoo directory topDirName = zfobj.namelist()[0] topDir = os.path.jo... | 447,520 |
def combine(self, combined, files, horizontal): self._console.indent() montage_cmd = "montage -geometry +0+0 -gravity NorthWest -tile %s -background None %s %s" if horizontal: orientation = "x1" else: orientation = "1x" | def combine(self, combined, files, horizontal): self._console.indent() montage_cmd = "montage -geometry +0+0 -gravity NorthWest -tile %s -background None %s %s" if horizontal: orientation = "x1" else: orientation = "1x" | 447,521 |
def reduceAssembled(self, assembled, node): # try to deduce a qooxdoo class from <assembled> assembledId = '' if assembled in self._classesObj: assembledId = assembled elif "." in assembled: parts = assembled.split(".") p = gen_namespaces found = [] for part in parts: if part in p: found.append(part) p = p[part] else: ... | def reduceAssembled(self, assembled, node): # try to deduce a qooxdoo class from <assembled> assembledId = '' if assembled in self._classesObj: assembledId = assembled elif "." in assembled: parts = assembled.split(".") p = gen_namespaces found = [] for part in parts: if part in p: found.append(part) p = p[part] else: ... | 447,522 |
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants): | def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants): | 447,523 |
def classVariants(self, generate=True): | def classVariants(self, generate=True): | 447,524 |
def classVariants(self, generate=True): | def classVariants(self, generate=True): | 447,525 |
def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._... | def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._... | 447,526 |
def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._... | def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._... | 447,527 |
def handleStatics(item, classNode): for key, value in mapNodeToMap(item).items(): keyvalue = value.parent value = value.getFirstChild() commentAttributes = comment.parseNode(keyvalue) # handle @signature if value.type != "function": for docItem in commentAttributes: if docItem["category"] == "signature": value = comp... | def handleStatics(item, classNode): for key, value in mapNodeToMap(item).items(): keyvalue = value.parent value = value.getFirstChild() commentAttributes = comment.parseNode(keyvalue) # handle @signature if value.type != "function": for docItem in commentAttributes: if docItem["category"] == "signature": value = comp... | 447,528 |
def handleConstantDefinition(item, classNode): if (item.type == "assignment"): # This is a "normal" constant definition leftItem = item.getFirstListChild("left") name = leftItem.children[len(leftItem.children) - 1].get("name") valueNode = item.getChild("right") elif (item.type == "keyvalue"): # This is a constant defin... | def handleConstantDefinition(item, classNode): if (item.type == "assignment"): # This is a "normal" constant definition leftItem = item.getFirstListChild("left") name = leftItem.children[len(leftItem.children) - 1].get("name") valueNode = item.getChild("right") elif (item.type == "keyvalue"): # This is a constant defin... | 447,529 |
def depsToProviderFormat(classDepsIter, depsLogConf): data = {} # Class deps for (packageId, classId, depId, loadOrRun) in classDepsIter: if classId not in data: data[classId] = {} data[classId]["load"] = [] data[classId]["run"] = [] | def depsToProviderFormat(classDepsIter, depsLogConf): data = {} # Class deps for (packageId, classId, depId, loadOrRun) in classDepsIter: if classId not in data: data[classId] = {} data[classId]["load"] = [] data[classId]["run"] = [] | 447,530 |
def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except Exception, e: console.error(e.message) if not "info" in manifest: console.warn("Manifest file %s has n... | def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except Exception, e: console.error(str(e)) if not "info" in manifest: console.warn("Manifest file %s has no '... | 447,531 |
def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = { "svnRevision" : self.getSvnRevision() } if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = msg return demoBuildStatus console... | def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = { "svnRevision" : self.getSvnRevision() } if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = msg return demoBuildStatus console... | 447,532 |
def internalLink(url): url = url[url.find(ns12)+len(ns12):] url = "pages/" + url url = url.replace(":", "/") return url | def internalLink(url): if url.find(ns12)>-1: url = url[url.find(ns12)+len(ns12):] else: if url.startswith("."): url = url[1:] url = "http://qooxdoo.org/" + url if currentInput.endswith("index.txt"): url = "pages/" + url url = url.replace(":", "/") return url | 447,533 |
def convertToRst_A(s,l,t): i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # Handle url if url.startswith("http://"): return '`%s <%s>`_' % (text,url) # handle document:1.2: elif url.find(ns12)>-1: url = internalLink(url) # handle generator_config_articles#log_... | def convertToRst_A(s,l,t): i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # Handle url if url.startswith("http://"): return '`%s <%s>`_' % (text,url) # handle document:1.2: else: url = internalLink(url) # handle generator_config_articles#log_key else: #raise P... | 447,534 |
def convertToRst_A(s,l,t): i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # Handle url if url.startswith("http://"): return '`%s <%s>`_' % (text,url) # handle document:1.2: elif url.find(ns12)>-1: url = internalLink(url) # handle generator_config_articles#log_... | def convertToRst_A(s,l,t): i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # Handle url if url.startswith("http://"): return '`%s <%s>`_' % (text,url) # handle document:1.2: elif url.find(ns12)>-1: url = internalLink(url) # handle generator_config_articles#log_... | 447,535 |
def _handleCode(script, generator): approot = context.jobconf.get("provider/app-root", "./provider") filetool.directory(approot + "/code") for clazz in script.classesObj: # register library (for _handleResources) if clazz.library['namespace'] not in libraries: libraries[clazz.library['namespace']] = clazz.library if... | def _handleCode(script, generator): approot = context.jobconf.get("provider/app-root", "./provider") filetool.directory(approot + "/code") for clazz in script.classesObj: # register library (for _handleResources) if clazz.library.namespace not in libraries: libraries[clazz.library.namespace] = clazz.library if passe... | 447,536 |
def _handleCode(script, generator): approot = context.jobconf.get("provider/app-root", "./provider") filetool.directory(approot + "/code") for clazz in script.classesObj: # register library (for _handleResources) if clazz.library['namespace'] not in libraries: libraries[clazz.library['namespace']] = clazz.library if... | def _handleCode(script, generator): approot = context.jobconf.get("provider/app-root", "./provider") filetool.directory(approot + "/code") for clazz in script.classesObj: # register library (for _handleResources) if clazz.library['namespace'] not in libraries: libraries[clazz.library['namespace']] = clazz.library if... | 447,537 |
def copyResource(res, library): sourcepath = os.path.join(library['path'], library['resource'], res) targetpath = approot + "/resource/" + res filetool.directory(os.path.dirname(targetpath)) shutil.copy(sourcepath, targetpath) return | def copyResource(res, library): sourcepath = os.path.join(library._resourcePath, res) targetpath = approot + "/resource/" + res filetool.directory(os.path.dirname(targetpath)) shutil.copy(sourcepath, targetpath) return | 447,538 |
def lookupUsedByDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): classObj = ClassIdToObject[classId] classDeps = classObj.dependencies(variants) for dep in classDeps["load"]: yield (packageId, dep.name, classId, 'load') # the packageId is somewhat bogus here for de... | def lookupUsedByDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): classObj = ClassIdToObject[classId] classDeps = classObj.dependencies(variants) for dep in classDeps["load"]: if dep.name not in ignored_names: yield (packageId, classId, dep.name, 'load') # the packa... | 447,539 |
def lookupUsedByDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): classObj = ClassIdToObject[classId] classDeps = classObj.dependencies(variants) for dep in classDeps["load"]: yield (packageId, dep.name, classId, 'load') # the packageId is somewhat bogus here for de... | def lookupUsedByDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): classObj = ClassIdToObject[classId] classDeps = classObj.dependencies(variants) for dep in classDeps["load"]: yield (packageId, dep.name, classId, 'load') # the packageId is somewhat bogus here for de... | 447,540 |
def lookupUsingDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): classObj = ClassIdToObject[classId] classDeps = classObj.dependencies(variants) if classDeps["load"]: for dep in classDeps["load"]: yield (packageId, classId, dep.name, 'load') if classDeps["run"]: for ... | def lookupUsingDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): classObj = ClassIdToObject[classId] classDeps = classObj.dependencies(variants) ignored_names = [x.name for x in classDeps["ignore"]] for dep in classDeps["load"]: if dep.name not in ignored_names: yiel... | 447,541 |
def lookupUsingDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): classObj = ClassIdToObject[classId] classDeps = classObj.dependencies(variants) if classDeps["load"]: for dep in classDeps["load"]: yield (packageId, classId, dep.name, 'load') if classDeps["run"]: for ... | def lookupUsingDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): classObj = ClassIdToObject[classId] classDeps = classObj.dependencies(variants) if classDeps["load"]: for dep in classDeps["load"]: yield (packageId, classId, dep.name, 'load') for dep in classDeps["run... | 447,542 |
def __str__(self): return "(%s, %r, %d, %d)" % (self.name, self.value, self.spos, self.len) | def __str__(self): return "(%s, %r, %d, %d)" % (self.name, self.value, self.spos, self.len) | 447,543 |
def scanRepository(self): console.info("Scanning %s" %self.dir) console.indent() demoDir = "%sdemo%s" %(os.sep,os.sep) manifestPaths = [] for root, dirs, files in os.walk(self.dir, topdown=True): for dir in dirs: #if dir == "Bugs": # dirs.remove("Bugs") # continue path = os.path.join(root,dir) manifestPath = os.path... | def scanRepository(self): console.info("Scanning %s" %self.dir) console.indent() demoDir = "%sdemo%s" %(os.sep,os.sep) manifestPaths = [] for root, dirs, files in os.walk(self.dir, topdown=True): for dir in dirs: #if dir == "Bugs": # dirs.remove("Bugs") # continue path = os.path.join(root,dir) manifestPath = os.path... | 447,544 |
def buildAllDemos(self, demoVersion="build", demoBrowser=None): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") demoData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": librar... | def buildAllDemos(self, demoVersion="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") demoData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "c... | 447,545 |
def buildAllDemos(self, demoVersion="build", demoBrowser=None): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") demoData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": librar... | def buildAllDemos(self, demoVersion="build", demoBrowser=None): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") demoData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": librar... | 447,546 |
def buildAllDemos(self, demoVersion="build", demoBrowser=None): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") demoData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": librar... | def buildAllDemos(self, demoVersion="build", demoBrowser=None): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") demoData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": librar... | 447,547 |
def runGeneratorForAll(self, job, subPath=None, cwd=False): console.indent() for libraryName, library in self.libraries.iteritems(): for versionName, libraryVersion in library.iteritems(): console.info("Running job %s on %s %s..." %(job, libraryName, versionName)) ret, out, err = libraryVersion.runGenerator(job, subPat... | def runGeneratorForAll(self, job, subPath=None, cwd=False): console.indent() for libraryName, library in self.libraries.iteritems(): for versionName, libraryVersion in library.iteritems(): console.info("Running job %s on %s %s..." %(job, libraryName, versionName)) ret, out, err = libraryVersion.runGenerator(job, subPat... | 447,548 |
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"]["namespace"... | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, local=False): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"... | 447,549 |
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"]["namespace"... | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"]["namespace"... | 447,550 |
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"]["namespace"... | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"]["namespace"... | 447,551 |
def main(): (options,args) = getComputedConf() config = None if options.configfile: config = getDataFromJsonFile(options.configfile) repository = Repository(options.workdir, config) if options.joblist: jobs = options.joblist.split(",") for job in jobs: if job[:6] == "demos-": if options.demobrowser: if not os.path.i... | def main(): (options,args) = getComputedConf() config = None if options.configfile: config = getDataFromJsonFile(options.configfile) repository = Repository(options.workdir, config) if options.joblist: jobs = options.joblist.split(",") for job in jobs: if job[:6] == "demos-": if options.demobrowser: if not os.path.i... | 447,552 |
def checkPatts(res, hints): for hint in hints: if hint.regex.search(res.id): hint.seen = True # mark asset hint as fullfilled by a resource return True return False | def checkPatts(res, hints): for hint in hints: if hint.regex.search(res.id): hint.seen = True # mark asset hint as fullfilled by a resource return True return False | 447,553 |
def read(filePath, encoding="utf_8"): try: ref = codecs.open(filePath, encoding=encoding, mode="r") content = ref.read() ref.close() return textutil.any2Unix(unicode(content)) except IOError, (errno, strerror): #print " * I/O error(%s): %s (%s)" % (errno, strerror, filePath) raise except ValueError: #print " * Inv... | def read(filePath, encoding="utf_8"): try: ref = codecs.open(filePath, encoding=encoding, mode="r") try: content = ref.read() except UnicodeDecodeError, e: rowCol = getRowCol(e.object, e.start) e.reason = e.reason + "\nFile %s Line %s Column %s" %(str(filePath), str(rowCol[0]), str(rowCol[1]) ) raise e finally: ref.clo... | 447,554 |
def mapCompileConfig(oldConf): newConf = ExtMap({}) if 'file' in oldConf: newConf.set("paths/file", oldConf['file']) if 'root' in oldConf: newConf.set("paths/app-root", oldConf['root']) if 'locales' in oldConf: newConf.set("code/locales", oldConf['locales']) if 'gzip' in oldConf: newConf.set("path/gzip", oldConf['gzip'... | def mapCompileConfig(oldConf): newConf = ExtMap({}) if 'file' in oldConf: newConf.set("paths/file", oldConf['file']) if 'root' in oldConf: newConf.set("paths/app-root", oldConf['root']) if 'locales' in oldConf: newConf.set("code/locales", oldConf['locales']) if 'gzip' in oldConf: newConf.set("path/gzip", oldConf['gzip'... | 447,555 |
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | 447,556 |
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | defdemoManifest = version.getDemoManifest(variant.name) buildAllDemos(self,demoManifest = version.getDemoManifest(variant.name) buildTarget="build",demoManifest = version.getDemoManifest(variant.name) demoBrowser=None,demoManifest = version.getDemoManifest(variant.name) copyDemos=False):demoManifest = version.getDemoMa... | 447,557 |
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | 447,558 |
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | 447,559 |
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ... | 447,560 |
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, qxVersion, local=False): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest... | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, qxVersion): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"][... | 447,561 |
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, qxVersion, local=False): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest... | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, qxVersion, local=False): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest... | 447,562 |
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, qxVersion, local=False): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest... | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, qxVersion, local=False): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest... | 447,563 |
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, qxVersion, local=False): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest... | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser, qxVersion, local=False): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest... | 447,564 |
def getDemoData(self, library, version, variant, qxVersion): demoDict = { "name": variant + "." + qxVersion + ".html", "nr": variant.capitalize(), "title": library + " " + version + " " + variant, "tags" : [ library, "qxVersion_" + qxVersion ] } | def getDemoData(self, library, version, variant, qxVersion): demoDict = { "name" : variant + ".html", "nr": variant.capitalize(), "title": library + " " + version + " " + variant, "tags" : [ library, "qxVersion_" + qxVersion ] } | 447,565 |
def _getSourceTree(self, cacheId): tradeSpaceForSpeed = False | def _getSourceTree(self, cacheId): tradeSpaceForSpeed = False | 447,566 |
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to make builds slower, at least on some platforms!? | def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to make builds slower, at least on some platforms!? | 447,567 |
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to make builds slower, at least on some platforms!? | def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to make builds slower, at least on some platforms!? | 447,568 |
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to make builds slower, at least on some platforms!? | def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to make builds slower, at least on some platforms!? | 447,569 |
def classVariants(self, generate=True): | def classVariants(self, generate=True): | 447,570 |
def classVariants(self, generate=True): | def classVariants(self, generate=True): | 447,571 |
def classVariants(self, generate=True): | def classVariants(self, generate=True): | 447,572 |
def projectClassVariantsToCurrent(classVariants, variantSet): res = {} for key in variantSet: if key in classVariants: res[key] = variantSet[key] return res | def projectClassVariantsToCurrent(classVariants, variantSet): res = {} for key in variantSet: if key in classVariants: res[key] = variantSet[key] return res | 447,573 |
def getSimulationConfig(self, autName, configKey, browserConf): self.log.info("Getting configuration for %s on %s" %(autName,browserConf["browserId"])) #currentAppConf = self.configuration["testRun"][configKey][autName] currentAppConf = self.getConfigSetting("testRun/%s/%s" %(configKey,autName)) simConf = { "javaBin" :... | def getSimulationConfig(self, autName, configKey, browserConf): self.log.info("Getting configuration for %s on %s" %(autName,browserConf["browserId"])) #currentAppConf = self.configuration["testRun"][configKey][autName] currentAppConf = self.getConfigSetting("testRun/%s/%s" %(configKey,autName)) simConf = { "javaBin" :... | 447,574 |
def getQooxdooVersion(): versionFile = os.path.join(os.path.dirname(__file__), "../../../../version.txt") # TODO: get rid of hard-coded path version = codecs.open(versionFile,"r", "utf-8").read() version = version.strip() return version | def getQooxdooVersion(): versionFile = os.path.join(os.path.dirname(__file__), "../../../../version.txt") # TODO: get rid of hard-coded path version = codecs.open(versionFile,"r", "utf-8").read() version = version.strip() return version | 447,575 |
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants): | def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants): | 447,576 |
def getTransitiveDepsR(dependencyItem, variants, totalDeps): | def getTransitiveDepsR(dependencyItem, variants, totalDeps): | 447,577 |
def getTransitiveDepsR(dependencyItem, variants, totalDeps): | def getTransitiveDepsR(dependencyItem, variants, totalDeps): | 447,578 |
def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except RuntimeError, e: console.error(repr(e)) if not "info" in manifest: console.warn("Manifest file %s has ... | def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except RuntimeError, e: console.error(repr(e)) if not "info" in manifest: console.warn("Manifest file %s has ... | 447,579 |
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"]["namespace"... | def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser): #get some needed info from the demobrowser's manifest dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"]["namespace"... | 447,580 |
def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except Exception, e: console.error(str(e)) if not "info" in manifest: console.warn("Manifest file %s has no '... | def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except Exception, e: console.error(str(e)) if not "info" in manifest: console.warn("Manifest file %s has no '... | 447,581 |
def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except Exception, e: console.error(str(e)) if not "info" in manifest: console.warn("Manifest file %s has no '... | def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except Exception, e: console.error(str(e)) if not "info" in manifest: console.warn("Manifest file %s has no '... | 447,582 |
def getDemoData(self, library, version, variant): demoDict = { "name": version + "-" + variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library][version].getManifest()["info"]["qooxdoo-versions"] for ver in qooxdooVers... | def getDemoData(self, library, version, variant): demoDict = { "name": version + "-" + variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant, "manifest" : self.libraries[library][version].getManifest() } qooxdooVersions = self.libraries[library][version].get... | 447,583 |
def isValid(self, libName, type, version, qxVersions): isValidLib = self.isValidLibrary(libName) isValidType = self.isValidType(libName, type) isValidVersion = self.isValidVersion(libName, version) isValidQxVersion = self.isValidQxVersion(libName, qxVersions) #print "library %s type %s version %s qxVersion %s" %(repr(i... | defisValid(self,libName,type,version,qxVersions):isValidLib=self.isValidLibrary(libName)isValidType=self.isValidType(libName,type)isValidVersion=self.isValidVersion(libName,version)isValidQxVersion=self.isValidQxVersion(libName,qxVersions)#print"library%stype%sversion%sqxVersion%s"%(repr(isValidLib),repr(isValidType),r... | 447,584 |
def dependencies(self, variantSet): | def dependencies(self, variantSet): | 447,585 |
def dependencies(self, variantSet): | def dependencies(self, variantSet): | 447,586 |
def buildShallowDeps(): | def buildShallowDeps(): | 447,587 |
def buildShallowDeps(): | def buildShallowDeps(): | 447,588 |
def buildShallowDeps(): | def buildShallowDeps(): | 447,589 |
def followCallDeps(self, node, fileId, depClassName, inDefer): if (depClassName and depClassName in self._classesObj # we have a class id #and depClassName != fileId #and self.context['jobconf'].get("dependencies/follow-static-initializers", True) and ( node.hasParentContext("keyvalue/value/call/operand") # it's a me... | def followCallDeps(self, node, fileId, depClassName, inDefer): if (depClassName and depClassName in self._classesObj # we have a class id #and depClassName != fileId #and self.context['jobconf'].get("dependencies/follow-static-initializers", True) and ( node.hasParentContext("keyvalue/value/call/operand") # it's a me... | 447,590 |
def findClassForFeature(self, featureId, variants): | def findClassForFeature(self, featureId, variants): | 447,591 |
def mapCompileConfig(oldConf): newConf = ExtMap({}) if 'file' in oldConf: newConf.set("paths/file", oldConf['file']) if 'root' in oldConf: newConf.set("paths/app-root", oldConf['root']) if 'locales' in oldConf: newConf.set("code/locales", oldConf['locales']) if 'gzip' in oldConf: newConf.set("path/gzip", oldConf['gzip'... | def mapCompileConfig(oldConf): newConf = ExtMap({}) if 'file' in oldConf: newConf.set("paths/file", oldConf['file']) if 'root' in oldConf: newConf.set("paths/app-root", oldConf['root']) if 'locales' in oldConf: newConf.set("code/locales", oldConf['locales']) if 'gzip' in oldConf: newConf.set("path/gzip", oldConf['gzip'... | 447,592 |
def mapCompileConfig(oldConf): newConf = ExtMap({}) if 'file' in oldConf: newConf.set("paths/file", oldConf['file']) if 'root' in oldConf: newConf.set("paths/app-root", oldConf['root']) if 'locales' in oldConf: newConf.set("code/locales", oldConf['locales']) if 'gzip' in oldConf: newConf.set("path/gzip", oldConf['gzip'... | def mapCompileConfig(oldConf): newConf = ExtMap({}) if 'file' in oldConf: newConf.set("paths/file", oldConf['file']) if 'root' in oldConf: newConf.set("paths/app-root", oldConf['root']) if 'locales' in oldConf: newConf.set("code/locales", oldConf['locales']) if 'gzip' in oldConf: newConf.set("path/gzip", oldConf['gzip'... | 447,593 |
def mapCompileConfig(oldConf): newConf = ExtMap({}) if 'file' in oldConf: newConf.set("paths/file", oldConf['file']) if 'root' in oldConf: newConf.set("paths/app-root", oldConf['root']) if 'locales' in oldConf: newConf.set("code/locales", oldConf['locales']) if 'gzip' in oldConf: newConf.set("path/gzip", oldConf['gzip'... | def mapCompileConfig(oldConf): newConf = ExtMap({}) if 'file' in oldConf: newConf.set("paths/file", oldConf['file']) if 'root' in oldConf: newConf.set("paths/app-root", oldConf['root']) if 'locales' in oldConf: newConf.set("code/locales", oldConf['locales']) if 'gzip' in oldConf: newConf.set("path/gzip", oldConf['gzip'... | 447,594 |
def reap_processes(wait=False): # reap the current processes (wait==False: if they are finished) #print "-- entering reap_processes with len: %d" % len(processes) reaped = False counter = 0 while True: for pos, pid in enumerate(processes.keys()): if not wait and pid.poll() == None: # None = process hasn't terminated ... | def reap_processes(wait=False): # reap the current processes (wait==False: if they are finished) #print "-- entering reap_processes with len: %d" % len(processes) reaped = False counter = 0 while True: for pos, pid in enumerate(processes.keys()): if not wait and pid.poll() == None: # None = process hasn't terminated ... | 447,595 |
def compileClass(classId, pos): contA[pos] = (self.getCompiled(classId, variants, optimize, format)) | def compileClass(classId, pos): contA[pos] = (self.getCompiled(classId, variants, optimize, format)) | 447,596 |
def __init__(self, repoDir, config=None): self.dir = os.path.abspath(repoDir) self.filter = config manifests = self.scanRepository() self.libraries = self.getLibraries(manifests) | def __init__(self, repoDir, config=None): self.dir = os.path.abspath(repoDir) self.validator = LibraryValidator(config) manifests = self.scanRepository() self.libraries = self.getLibraries(manifests) | 447,597 |
def getLibraries(self, manifests): libraries = {} for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except RuntimeError, e: console.error(repr(e)) if not "info" in manifest: console.warn("Manifest file %s has no 'info' section, skipping the library." %manifestPath) continue libraryName ... | def getLibraries(self, manifests): libraries = {} for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except RuntimeError, e: console.error(repr(e)) if not "info" in manifest: console.warn("Manifest file %s has no 'info' section, skipping the library." %manifestPath) continue libraryName ... | 447,598 |
def getLibraries(self, manifests): libraries = {} for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except RuntimeError, e: console.error(repr(e)) if not "info" in manifest: console.warn("Manifest file %s has no 'info' section, skipping the library." %manifestPath) continue libraryName ... | def getLibraries(self, manifests): libraries = {} for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except RuntimeError, e: console.error(repr(e)) if not "info" in manifest: console.warn("Manifest file %s has no 'info' section, skipping the library." %manifestPath) continue libraryName ... | 447,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.