bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def buildDemo(self, demoVariant = "default", demoVersion = "build"): if not self.hasDemoDir: console.error("Library %s version %s has no demo folder!" %(self.library.dir, self.dir)) return console.info("Building %s version of demo variant %s for library %s version %s" %(demoVersion,demoVariant, self.libraryName, self....
def buildDemo(self, demoVariant = "default", demoVersion = "build"): if not self.hasDemoDir: console.error("Library %s version %s has no demo folder!" %(self.library.dir, self.dir)) return console.info("Generating %s version of demo variant %s for library %s version %s" %(demoVersion,demoVariant, self.libraryName, sel...
447,600
def __init__(self): pass
def __init__(self): pass
447,601
def __copyDirToDir(self, sourceDir, targetDir): sourceDirName = os.path.basename(sourceDir) if sourceDirName in self.__exclude: return targetPath = os.path.join(targetDir, sourceDirName) if not os.path.isdir(targetPath): if self.__create: os.makedirs(targetPath) else: raise IOError(2, "No such directory: '%s'" %targetP...
def __copyDirToDir(self, sourceDir, targetDir): sourceDirName = os.path.basename(sourceDir) if sourceDirName in self.__exclude: return targetPath = os.path.join(targetDir, sourceDirName) if not os.path.isdir(targetPath): if self.__create: os.makedirs(targetPath) else: raise IOError(2, "No such directory: '%s'" %targetP...
447,602
def __copyDirToDir(self, sourceDir, targetDir): sourceDirName = os.path.basename(sourceDir) if sourceDirName in self.__exclude: return targetPath = os.path.join(targetDir, sourceDirName) if not os.path.isdir(targetPath): if self.__create: os.makedirs(targetPath) else: raise IOError(2, "No such directory: '%s'" %targetP...
def __copyDirToDir(self, sourceDir, targetDir): sourceDirName = os.path.basename(sourceDir) if sourceDirName in self.__exclude: return targetPath = os.path.join(targetDir, sourceDirName) if not os.path.isdir(targetPath): if self.__create: os.makedirs(targetPath) else: raise IOError(2, "No such directory: '%s'" %targetP...
447,603
def __copyDirToDir(self, sourceDir, targetDir): sourceDirName = os.path.basename(sourceDir) if sourceDirName in self.__exclude: return targetPath = os.path.join(targetDir, sourceDirName) if not os.path.isdir(targetPath): if self.__create: os.makedirs(targetPath) else: raise IOError(2, "No such directory: '%s'" %targetP...
def __copyDirToDir(self, sourceDir, targetDir): sourceDirName = os.path.basename(sourceDir) if sourceDirName in self.__exclude: return targetPath = os.path.join(targetDir, sourceDirName) if not os.path.isdir(targetPath): if self.__create: os.makedirs(targetPath) else: raise IOError(2, "No such directory: '%s'" %targetP...
447,604
def verifyParts(self, partsMap, script): self._console.info("Verifying Parts...") self._console.indent() for part in partsMap.values(): self._console.info("Verifying: %s" % part.name) self._console.indent() # get set of current classes in this part classSet = set() classList = [] classPackage = [] for packageIdx, packa...
def verifyParts(self, partsMap, script): self._console.info("Verifying Parts...") self._console.indent() for part in partsMap.values(): self._console.info("Verifying: %s" % part.name) self._console.indent() # get set of current classes in this part classSet = set() classList = [] classPackage = [] for packageIdx, packa...
447,605
def verifyParts(self, partsMap, script): self._console.info("Verifying Parts...") self._console.indent() for part in partsMap.values(): self._console.info("Verifying: %s" % part.name) self._console.indent() # get set of current classes in this part classSet = set() classList = [] classPackage = [] for packageIdx, packa...
def verifyParts(self, partsMap, script): self._console.info("Verifying Parts...") self._console.indent() for part in partsMap.values(): self._console.info("Verifying: %s" % part.name) self._console.indent() # get set of current classes in this part classSet = set() classList = [] classPackage = [] for packageIdx, packa...
447,606
def verifyParts(self, partsMap, script): self._console.info("Verifying Parts...") self._console.indent() for part in partsMap.values(): self._console.info("Verifying: %s" % part.name) self._console.indent() # get set of current classes in this part classSet = set() classList = [] classPackage = [] for packageIdx, packa...
def verifyParts(self, partsMap, script): self._console.info("Verifying Parts...") self._console.indent() for part in partsMap.values(): self._console.info("Verifying: %s" % part.name) self._console.indent() # get set of current classes in this part classSet = set() classList = [] classPackage = [] for packageIdx, packa...
447,607
def isCommonAndGreaterPackage(searchId, package): # the same package is not "greater" if package.id == searchId: return False # the next takes advantage of the fact that the package id encodes # the parts a package is used by. if another package id has the # same bits turned on, it is in the same packages. this is only...
def isCommonAndGreaterPackage(searchId, package): # the same package is not "greater" if package.id == searchId: return False # the next takes advantage of the fact that the package id encodes # the parts a package is used by. if another package id has the # same bits turned on, it is in the same packages. this is only...
447,608
def cmpFunc (x, y): if x.part_count != y.part_count: return cmp(x.part_count, y.part_count) else: if x in y.packageDeps: # y needs x, so x is "larger" (must be earlier) return 1 elif y in x.packageDeps: # other way round return -1 else: return 0
def cmpFunc (x, y): if x.part_count != y.part_count: return cmp(x.part_count, y.part_count) else: if x not in y.packageDeps and y not in x.packageDeps: return 0 if x in y.packageDeps and y not in x.packageDeps: # y needs x, so x is "larger" (must be earlier) return 1 elif y in x.packageDeps: # other way round return -...
447,609
def cmpFunc (x, y): if x.part_count != y.part_count: return cmp(x.part_count, y.part_count) else: if x in y.packageDeps: # y needs x, so x is "larger" (must be earlier) return 1 elif y in x.packageDeps: # other way round return -1 else: return 0
def cmpFunc (x, y): if x.part_count != y.part_count: return cmp(x.part_count, y.part_count) else: if x in y.packageDeps: # y needs x, so x is "larger" (must be earlier) return 1 elif y in x.packageDeps and x not in y.packageDeps: # other way round return -1 else: return 0
447,610
def getTransitiveDepsR(dependencyItem, variants, totalDeps):
def getTransitiveDepsR(dependencyItem, variants, totalDeps):
447,611
def parsePart(part, tokens=[]): global parseUniqueId global parseLine global parseColumn #tokens = [] element = "" for line in R_NEWLINE.split(part): if line == "\n": tokens.append({ "type" : "eol", "source" : "", "detail" : "", "line" : parseLine, "column" : parseColumn, "id" : parseUniqueId }) parseColumn = 1 parse...
def parsePart(part, tokens=[]): global parseUniqueId global parseLine global parseColumn #tokens = [] element = "" for line in R_NEWLINE.split(part): if line == "\n": tokens.append({ "type" : "eol", "source" : "", "detail" : "", "line" : parseLine, "column" : parseColumn, "id" : parseUniqueId }) parseColumn = 1 parse...
447,612
def parseStream(content, uniqueId=""): return parseStream2(content, uniqueId)
def parseStream(content, uniqueId=""): return parseStream2(content, uniqueId)
447,613
def restLineIsEmpty(scanner): try: toks = scanner.peek(2) except StopIteration: return True # TODO: this is a hack if (toks[0].name == 'nl' or (toks[0].name == 'white' and toks[1].name == 'nl')): return True else: return False
def restLineIsEmpty(scanner): try: toks = scanner.peek(2) except StopIteration: return True # TODO: this is a hack if (toks[0].name == 'nl' or (toks[0].name == 'white' and toks[1].name == 'nl')): return True else: return False
447,614
def _getClassCache(self): cache = self.context["cache"] classInfo, modTime = cache.read(self.cacheId, self.path) if classInfo: return classInfo, modTime else: return {}, None
def _getClassCache(self): cache = self.context["cache"] classInfo, modTime = cache.read(self.cacheId, self.path, memory=True) if classInfo: return classInfo, modTime else: return {}, None
447,615
def _writeClassCache(self, data): cache = self.context["cache"] cache.write(self.cacheId, data)
def _writeClassCache(self, data): cache = self.context["cache"] cache.write(self.cacheId, data)
447,616
def sortClassesTopological(self, includeWithDeps, variants): # create graph object gr = graph.digraph()
def sortClassesTopological(self, includeWithDeps, variants): # create graph object gr = graph.digraph()
447,617
def isSelectedVersion(self, libraryName, libraryVersion): if not "libraries" in self.filter: return True if "*" in self.filter["libraries"]: libraryFilter = self.filter["*"] else: libraryFilter = self.filter["libraries"][libraryName] if not "versions" in libraryFilter: return True wantedVersions = libraryFilter["vers...
def isSelectedVersion(self, libraryName, libraryVersion): if not "libraries" in self.filter: return True if "*" in self.filter["libraries"]: libraryFilter = self.filter["libraries"]["*"] else: libraryFilter = self.filter["libraries"][libraryName] if not "versions" in libraryFilter: return True wantedVersions = librar...
447,618
def getFilteredClassList(classes, includePatt_, excludePatt_): # Although lint-check doesn't work with dependencies, we allow # '=' in class pattern for convenience; stripp those now intelli, explicit = self._splitIncludeExcludeList(includePatt_) includePatt = intelli + explicit intelli, explicit = self._splitIncludeEx...
def getFilteredClassList(classes, includePatt_, excludePatt_): # Although lint-check doesn't work with dependencies, we allow # '=' in class pattern for convenience; stripp those now intelli, explicit = self._splitIncludeExcludeList(includePatt_) includePatt = intelli + explicit intelli, explicit = self._splitIncludeEx...
447,619
def getFilteredClassList(classes, includePatt_, excludePatt_): # Although lint-check doesn't work with dependencies, we allow # '=' in class pattern for convenience; stripp those now intelli, explicit = self._splitIncludeExcludeList(includePatt_) includePatt = intelli + explicit intelli, explicit = self._splitIncludeEx...
defself._console.debug("Checking %s" % classId) getFilteredClassList(classes,self._console.debug("Checking %s" % classId) includePatt_,self._console.debug("Checking %s" % classId) excludePatt_):self._console.debug("Checking %s" % classId) #self._console.debug("Checking %s" % classId) Althoughself._console.debug("Checki...
447,620
def handleFunction(funcItem, name, commentAttributes, classNode, reportMissingDesc=True): node = tree.Node("method") node.set("name", name) if funcItem.type != "function": printDocError(funcItem, "'funcItem' is no function") return node # Read the parameters params = funcItem.getChild("params", False) if params and ...
def handleFunction(funcItem, name, commentAttributes, classNode, reportMissingDesc=True, checkReturn=False): node = tree.Node("method") node.set("name", name) if funcItem.type != "function": printDocError(funcItem, "'funcItem' is no function") return node # Read the parameters params = funcItem.getChild("params", Fa...
447,621
def storeData(self, path): if not os.path.isdir(path): os.makedirs(path) path = os.path.join(path, "demodata.json") storeDemoData(self.data, path)
def storeData(self, path): if not os.path.isdir(path): os.makedirs(path) path = os.path.join(path, "demodata.json") storeDemoData(self.data, path)
447,622
def _checkUnitTests(self): try: classPath = self.manifest["provides"]["class"] namespace = self.manifest["provides"]["namespace"] fullClassPath = os.path.join(self.path, classPath, namespace) testPath = os.path.join(fullClassPath, "test") if os.path.isdir(testPath): testPathContents = os.listdir(testPath) for entry in ...
def _checkUnitTests(self): try: classPath = self.manifest["provides"]["class"] namespace = self.manifest["provides"]["namespace"] fullClassPath = os.path.join(self.path, classPath, namespace) testPath = os.path.join(fullClassPath, "test") if os.path.isdir(testPath): testPathContents = os.listdir(testPath) for entry in ...
447,623
def main(): (options,args) = getComputedConf() config = None if options.configfile: config = getDataFromJsonFile(options.configfile) repository = Repository(options.workdir, config) if options.demobrowser: if not os.path.isabs(options.demobrowser): options.demobrowser = os.path.abspath(options.demobrowser) if optio...
def main(): (options,args) = getComputedConf() config = None if options.configfile: config = getDataFromJsonFile(options.configfile) repository = Repository(options.workdir, config) if options.demobrowser: if not os.path.isabs(options.demobrowser): options.demobrowser = os.path.abspath(opt...
447,624
def main(): (options,args) = getComputedConf() config = None if options.configfile: config = getDataFromJsonFile(options.configfile) repository = Repository(options.workdir, config) if options.demobrowser: if not os.path.isabs(options.demobrowser): options.demobrowser = os.path.abspath(options.demobrowser) if optio...
defmain():(options,args)=getComputedConf()config=Noneifoptions.configfile:config=getDataFromJsonFile(options.configfile)repository=Repository(options.workdir,config)ifoptions.demobrowser:ifnotos.path.isabs(options.demobrowser):options.demobrowser=os.path.abspath(options.demobrowser)ifoptions.joblist:jobs=options.joblis...
447,625
def main(): (options,args) = getComputedConf() config = None if options.configfile: config = getDataFromJsonFile(options.configfile) repository = Repository(options.workdir, config) if options.demobrowser: if not os.path.isabs(options.demobrowser): options.demobrowser = os.path.abspath(options.demobrowser) if optio...
def main(): (options,args) = getComputedConf() config = None if options.configfile: config = getDataFromJsonFile(options.configfile) repository = Repository(options.workdir, config) if options.demobrowser: if not os.path.isabs(options.demobrowser): options.demobrowser = os.path.abspath(options.demobrowser) if optio...
447,626
def writePackages(self, packages, script):
def writePackages(self, packages, script):
447,627
def _getClassCache(self): cache = self.context["cache"] classInfo, _ = cache.read(self.cacheId, self.path) if classInfo: return classInfo else: return {}
def _getClassCache(self): cache = self.context["cache"] classInfo, modTime = cache.read(self.cacheId, self.path) if classInfo: return classInfo else: return {}
447,628
def _getClassCache(self): cache = self.context["cache"] classInfo, _ = cache.read(self.cacheId, self.path) if classInfo: return classInfo else: return {}
def _getClassCache(self): cache = self.context["cache"] classInfo, _ = cache.read(self.cacheId, self.path) if classInfo: return classInfo, modTime else: return {}
447,629
def _getClassCache(self): cache = self.context["cache"] classInfo, _ = cache.read(self.cacheId, self.path) if classInfo: return classInfo else: return {}
def _getClassCache(self): cache = self.context["cache"] classInfo, _ = cache.read(self.cacheId, self.path) if classInfo: return classInfo else: return {}
447,630
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,631
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,632
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,633
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,634
def __copyFileToDir(self, sourceFile, targetDir): self.__console.debug("Copying file %s to directory %s." %(sourceFile, targetDir)) sourceFileName = os.path.basename(sourceFile) if sourceFileName in self.__exclude: return if not os.path.isdir(targetDir): if self.__create: self.__console.debug("Creating directory %s." ...
def __copyFileToDir(self, sourceFile, targetDir): self.__console.debug("Copying file %s to directory %s." %(sourceFile, targetDir)) sourceFileName = os.path.basename(sourceFile) if sourceFileName in self.__exclude: return if not os.path.isdir(targetDir): if self.__create: self.__console.debug("Creating directory %s." ...
447,635
def __copyFileToDir(self, sourceFile, targetDir): self.__console.debug("Copying file %s to directory %s." %(sourceFile, targetDir)) sourceFileName = os.path.basename(sourceFile) if sourceFileName in self.__exclude: return if not os.path.isdir(targetDir): if self.__create: self.__console.debug("Creating directory %s." ...
def __copyFileToDir(self, sourceFile, targetDir): self.__console.debug("Copying file %s to directory %s." %(sourceFile, targetDir)) sourceFileName = os.path.basename(sourceFile) if sourceFileName in self.__exclude: return if not os.path.isdir(targetDir): if self.__create: self.__console.debug("Creating directory %s." ...
447,636
def getVersions(self, restrictions): versions = {} libraryPath = os.path.join(self.repository.dir, self.dir) for root, dirs, files in os.walk(libraryPath, topdown=True): for name in dirs[:]: console.indent() # only check direct subfolders of the library, ignore .svn etc. if root != libraryPath or name[0] == ".": dirs.r...
def getVersions(self, restrictions): versions = {} libraryPath = os.path.join(self.repository.dir, self.dir) for root, dirs, files in os.walk(libraryPath, topdown=True): for name in dirs[:]: console.indent() # only check direct subfolders of the library, ignore .svn etc. if name[0] == ".": dirs.remove(name) console.out...
447,637
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
447,638
def getMethodDeps(self, classId, methodNameFQ, variants): # find the dependencies of a specific method # get the classId class, find the node of methodNameFQ, and extract its # dependencies (can only be runtime deps, since all inFunction) # return the deps
def getMethodDeps(self, classId, methodNameFQ, variants): # find the dependencies of a specific method # get the classId class, find the node of methodNameFQ, and extract its # dependencies (can only be runtime deps, since all inFunction) # return the deps
447,639
def getMethodDeps1(self, depsItem, variants):
def getMethodDeps1(self, depsItem, variants):
447,640
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,641
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,642
def slice(self, source, dest_prefix, border, trim_width):
def slice(self, source, dest_prefix, border, trim_width):
447,643
def slice(self, source, dest_prefix, border, trim_width):
def slice(self, source, dest_prefix, border, trim_width):
447,644
def storeApi(self, include, apiPath): self._console.info("Generating API data...") self._console.indent()
def storeApi(self, include, apiPath): self._console.info("Generating API data...") self._console.indent()
447,645
def getScript(node, fileId, ): ## TODO: checking the root nodes is a fix, as they sometimes differ (prob. caching) #rootNode = findRoot(node) ##if _memo1_[0] == fileId: # replace with '_memo1_[0] == rootNode', to make it more robust, but slightly less performant #if _memo1_[0] == rootNode: # #print "-- re-using scop...
def getScript(node, fileId, ): ## TODO: checking the root nodes is a fix, as they sometimes differ (prob. caching) #rootNode = findRoot(node) ##if _memo1_[0] == fileId: # replace with '_memo1_[0] == rootNode', to make it more robust, but slightly less performant #if _memo1_[0] == rootNode: # #print "-- re-using scop...
447,646
def getScript(node, fileId, ): ## TODO: checking the root nodes is a fix, as they sometimes differ (prob. caching) #rootNode = findRoot(node) ##if _memo1_[0] == fileId: # replace with '_memo1_[0] == rootNode', to make it more robust, but slightly less performant #if _memo1_[0] == rootNode: # #print "-- re-using scop...
def getScript(node, fileId, ): ## TODO: checking the root nodes is a fix, as they sometimes differ (prob. caching) #rootNode = findRoot(node) ##if _memo1_[0] == fileId: # replace with '_memo1_[0] == rootNode', to make it more robust, but slightly less performant #if _memo1_[0] == rootNode: # #print "-- re-using scop...
447,647
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,648
def lookupUsedByDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): for otherClassId in package.classes: otherClassDeps = self._depLoader.getDeps(otherClassId, variants) if classId in (x.name for x in otherClassDeps["load"]): yield (packageId, classId, otherClassId, 'l...
def lookupUsedByDeps(packages): for packageId, package in enumerate(packages): for classId in sorted(package.classes): for otherClassId in package.classes: otherClassDeps = self._depLoader.getDeps(otherClassId, variants) if classId in (x.name for x in otherClassDeps["load"]): yield (packageId, classId, otherClassId, 'l...
447,649
def depsToDotFile(depsLogConf, gr):
def depsToDotFile(depsLogConf, gr):
447,650
def getNodeAttribs(classId, useCompiledSize=False, optimize=[]): # return color according to size attribs = [] color = fontsize = None sizes = { # (big-threshold, medium-threshold) 'compiled' : (8000, 2000), 'source' : (20000, 5000) } if useCompiledSize: fsize = self._treeCompiler.getCompiledSize(classId, varian...
def getNodeAttribs(classId, useCompiledSize=False, optimize=[]): # return color according to size attribs = [] color = fontsize = None sizes = { # (big-threshold, medium-threshold) 'compiled' : (8000, 2000), 'source' : (20000, 5000) } if useCompiledSize: fsize = self._treeCompiler.getCompiledSize(classId, varian...
447,651
def createPrinterGraph(gr, depsLogConf): # create a helper graph for output format, mode = getFormatMode(depsLogConf) searchRoot = depsLogConf.get('dot/root') # get the root node for the spanning tree searchRadius = depsLogConf.get('dot/radius', None) if searchRadius: filter = graph.filters.radius(searchRadius) e...
def createPrinterGraph(gr, depsLogConf): # create a helper graph for output format, mode = getFormatMode(depsLogConf) searchRoot = depsLogConf.get('dot/root') # get the root node for the spanning tree searchRadius = depsLogConf.get('dot/radius', None) if searchRadius: filter = graph.filters.radius(searchRadius) e...
447,652
def graphAddEdges(classDepsIter, gr, pLoadOrRun):
def graphAddEdges(classDepsIter, gr, pLoadOrRun):
447,653
def graphAddNodes(gr, clsList): for cid in clsList: fsize = self._classes[cid]['size'] if fsize > 20000: color = "red" elif fsize > 5000: color = "green" else: color = "blue" gr.add_node(cid, attrs=[("color", color)]) return
def graphAddNodes(gr, clsList): for cid in clsList: fsize = self._classes[cid]['size'] if fsize > 20000: color = "red" elif fsize > 5000: color = "green" else: color = "blue" else: color = "blue" gr.add_node(cid, attrs=[("color", color)]) return
447,654
def usedByDeps(depsLogConf): for packageId, package in enumerate(packages): self._console.info("Package %s" % packageId) self._console.indent()
def usedByDeps(depsLogConf): for packageId, package in enumerate(packages): self._console.info("Package %s" % packageId) self._console.indent()
447,655
def usedByDeps(depsLogConf): for packageId, package in enumerate(packages): self._console.info("Package %s" % packageId) self._console.indent()
def usedByDeps(depsLogConf): for packageId, package in enumerate(packages): self._console.info("Package %s" % packageId) self._console.indent()
447,656
def usedByDeps(depsLogConf): for packageId, package in enumerate(packages): self._console.info("Package %s" % packageId) self._console.indent()
def usedByDeps(depsLogConf): for packageId, package in enumerate(packages): self._console.info("Package %s" % packageId) self._console.indent()
447,657
def usingDeps(depsLogConf):
def usingDeps(depsLogConf):
447,658
def usingDeps(depsLogConf):
def usingDeps(depsLogConf):
447,659
def usingDeps(depsLogConf):
def usingDeps(depsLogConf):
447,660
def usingDeps(depsLogConf):
def usingDeps(depsLogConf):
447,661
def usingDeps(depsLogConf):
def usingDeps(depsLogConf):
447,662
def usingDeps(depsLogConf):
def usingDeps(depsLogConf):
447,663
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,664
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,665
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,666
def analyzeClassTree(variantSet):
def analyzeClassTree(variantSet):
447,667
def analyzeClassTree(variantSet):
def analyzeClassTree(variantSet):
447,668
def runSimulation(self): self._console.info("Running Simulation...") javaClassPath = self._job.get("simulate/java-classpath", False) if javaClassPath: javaClassPath = "-cp %s" %javaClassPath rhinoClass = self._job.get("simulate/rhino-class", False) runnerScript = self._job.get("simulate/simulator-script") cmd = "ja...
def runSimulation(self): self._console.info("Running Simulation...") classPathSeparator = ":" if util.getPlatformInfo()[0] == "Windows": classPathSeparator = ";" javaClassPath = "-cp " configClassPath = self._job.get("simulate/java-classpath", False) if configClassPath: javaClassPath += configClassPath qxSeleniumPat...
447,669
def followCallDeps(self, node, fileId, className): if (className and className in self._classesObj # we have a class id and className != fileId #and self.context['jobconf'].get("dependencies/follow-static-initializers", False) and ( node.hasParentContext("keyvalue/value/call/operand") # it's a method call as map valu...
def followCallDeps(self, node, fileId, className): if (className and className in self._classesObj # we have a class id and className != fileId #and self.context['jobconf'].get("dependencies/follow-static-initializers", False) and ( node.hasParentContext("keyvalue/value/call/operand") # it's a method call as map valu...
447,670
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
447,671
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
447,672
def getLeadingId(idStr): leadingId = idStr dotIdx = idStr.find('.') if dotIdx > -1: leadingId = idStr[:dotIdx] return leadingId
def getLeadingId(idStr): leadingId = idStr dotIdx = idStr.find('.') if dotIdx > -1: leadingId = idStr[:dotIdx] return leadingId
447,673
def getForeignDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
447,674
def getForeignDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getForeignDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
447,675
def getForeignDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getForeignDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
447,676
def getForeignDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getForeignDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
447,677
def getForeignDepsR(depsItem, variants, totalDeps): for depsItem in deps_rt: dclassid = depsItem.name dclassobj= self._classesObj[dclassid] ddeps = dclassobj.dependencies() methoddeps = lookup_methoddeps(depsItem.attribute, ddeps) for deps in methoddeps: downstream = getForeignDepsR(deps, variants) mydeps.update(downs...
def getForeignDepsR(depsItem, variants, totalDeps): for depsItem in deps_rt: dclassid = depsItem.name dclassobj= self._classesObj[dclassid] ddeps = dclassobj.dependencies() methoddeps = lookup_methoddeps(depsItem.attribute, ddeps) for deps in methoddeps: downstream = getForeignDepsR(deps, variants) mydeps.update(downs...
447,678
def buildShallowDeps(variants):
def buildShallowDeps(variants):
447,679
def buildShallowDeps(variants):
def buildShallowDeps(variants):
447,680
def buildShallowDeps(variants):
def buildShallowDeps(variants):
447,681
def getNodeDeps(node): ltime = rtime = [] # distinction is in the depsItems that populate this array self._analyzeClassDepsNode(node, ltime, rtime, True, variants) # we force inFunction, to not track recursive deps return ltime
def getNodeDeps(node): ltime = rtime = [] # distinction is in the depsItems that populate this array self._analyzeClassDepsNode(node, ltime, rtime, True, variants) # we force inFunction, to not track recursive deps return ltime
447,682
def getOptionals(self, includeWithDeps): result = []
def getOptionals(self, includeWithDeps): result = []
447,683
def __init__(self, name, attribute, requestor, line=-1, inFunction=False): self.name = name # "qx.Class" [dependency to(class)] assert isinstance(name, types.StringTypes) self.attribute = attribute # "define" [dependency to(attribute)] self.requestor = requestor # "gui.Application" [the one depending on ...
def __init__(self, name, attribute, requestor, line=-1, inFunction=False): self.name = name # "qx.Class" [dependency to(class)] assert isinstance(name, types.StringTypes) self.attribute = attribute # "define" [dependency to(attribute)] self.requestor = requestor # "gui.Application" [the one depending on ...
447,684
def getHash(buffer): hashCode = sha_construct(buffer).hexdigest() return hashCode
def getHash(buffer): hashCode = sha_construct(buffer).hexdigest() return hashCode
447,685
def getHash(buffer): hashCode = sha_construct(buffer).hexdigest() return hashCode
def getHash(buffer): hashCode = sha_construct(buffer).hexdigest() return hashCode
447,686
def MakeTestSuite(): # This is apparently needed on some systems to make sure that the tests # work even if a previous version is already installed. if 'google' in sys.modules: del sys.modules['google'] generate_proto("../src/google/protobuf/unittest.proto") generate_proto("../src/google/protobuf/unittest_custom_optio...
def MakeTestSuite(): # This is apparently needed on some systems to make sure that the tests # work even if a previous version is already installed. if 'google' in sys.modules: del sys.modules['google'] generate_proto("../src/google/protobuf/unittest.proto") generate_proto("../src/google/protobuf/unittest_custom_optio...
447,687
def MakeTestSuite(): # This is apparently needed on some systems to make sure that the tests # work even if a previous version is already installed. if 'google' in sys.modules: del sys.modules['google'] generate_proto("../src/google/protobuf/unittest.proto") generate_proto("../src/google/protobuf/unittest_custom_optio...
def MakeTestSuite(): # This is apparently needed on some systems to make sure that the tests # work even if a previous version is already installed. if 'google' in sys.modules: del sys.modules['google'] generate_proto("../src/google/protobuf/unittest.proto") generate_proto("../src/google/protobuf/unittest_custom_optio...
447,688
def _MergeField(tokenizer, message): """Merges a single protocol message field into a message. Args: tokenizer: A tokenizer to parse the field name and values. message: A protocol message to record the data. Raises: ParseError: In case of ASCII parsing problems. """ message_descriptor = message.DESCRIPTOR if tokenize...
def _MergeField(tokenizer, message): """Merges a single protocol message field into a message. Args: tokenizer: A tokenizer to parse the field name and values. message: A protocol message to record the data. Raises: ParseError: In case of ASCII parsing problems. """ message_descriptor = message.DESCRIPTOR if tokenize...
447,689
def loadPlugins(self, callback=None): """ Load the candidate plugins that have been identified through a previous call to locatePlugins. For each plugin candidate look for its category, load it and store it in the appropriate slot of the ``category_mapping``.
def loadPlugins(self, callback=None): """ Load the candidate plugins that have been identified through a previous call to locatePlugins. For each plugin candidate look for its category, load it and store it in the appropriate slot of the ``category_mapping``.
447,690
def getPluginByName(self,name,category="Default"): """ Get the plugin correspoding to a given category and name """ if self.category_mapping.has_key(category): for item in self.category_mapping[category]: if item.name == name: return item return None
def getPluginByName(self,name,category="Default"): """ Get the plugin correspoding to a given category and name """ if category in self.category_mapping: for item in self.category_mapping[category]: if item.name == name: return item return None
447,691
def deactivatePluginByName(self,name,category="Default"): """ Desactivate a plugin corresponding to a given category + name. """ if self.category_mapping.has_key(category): plugin_to_deactivate = None for item in self.category_mapping[category]: if item.name == name: plugin_to_deactivate = item.plugin_object break if p...
def deactivatePluginByName(self,name,category="Default"): """ Desactivate a plugin corresponding to a given category + name. """ if category in self.category_mapping: plugin_to_deactivate = None for item in self.category_mapping[category]: if item.name == name: plugin_to_deactivate = item.plugin_object break if plugin_...
447,692
def __init__(self, plugin_name, plugin_path): """ Set the namle and path of the plugin as well as the default values for other usefull variables. """ PluginInfo.__init__(self, plugin_name, plugin_path) # version number is now required to be a StrictVersion object self.version = StrictVersion("0.0")
def __init__(self, plugin_name, plugin_path): """ Set the name and path of the plugin as well as the default values for other usefull variables. """ PluginInfo.__init__(self, plugin_name, plugin_path) # version number is now required to be a StrictVersion object self.version = StrictVersion("0.0")
447,693
def setVersion(self, vstring): self.version = StrictVersion(vstring)
def setVersion(self, vstring): self.version = StrictVersion(vstring)
447,694
def setVersion(self, vstring): self.version = StrictVersion(vstring)
def setVersion(self, vstring): self.version = StrictVersion(vstring)
447,695
def __init__(self, decorated_manager=None, categories_filter={"Default":IPlugin}, directories_list=None, plugin_info_ext="yapsy-plugin"): """ Create the plugin manager and record the ConfigParser instance that will be used afterwards. The ``config_change_trigger`` argument can be used to set a specific method to call ...
def__init__(self,decorated_manager=None,categories_filter={"Default":IPlugin},directories_list=None,plugin_info_ext="yapsy-plugin"):"""CreatethepluginmanagerandrecordtheConfigParserinstancethatwillbeusedafterwards.The``config_change_trigger``argumentcanbeusedtosetaspecificmethodtocallwhentheconfigurationisaltered.Thisw...
447,696
def __init__(self, decorated_manager=None, categories_filter={"Default":IPlugin}, directories_list=None, plugin_info_ext="yapsy-plugin"): """ Create the plugin manager and record the ConfigParser instance that will be used afterwards. The ``config_change_trigger`` argument can be used to set a specific method to call ...
def __init__(self, decorated_manager=None, categories_filter={"Default":IPlugin}, directories_list=None, plugin_info_ext="yapsy-plugin"): """ Create the plugin manager and record the ConfigParser instance that will be used afterwards. The ``config_change_trigger`` argument can be used to set a specific method to call ...
447,697
def _prepareVersionMapping(self): """ Create a mapping that will make it possible to easily provide the latest version of each plugin. """ self.latest_mapping = {} for categ in self._component.categories_interfaces.keys(): self.latest_mapping[categ] = []
def _prepareAttic(self): """ Create a mapping that will make it possible to easily provide the latest version of each plugin. """ self.latest_mapping = {} for categ in self._component.categories_interfaces.keys(): self.latest_mapping[categ] = []
447,698
def _prepareVersionMapping(self): """ Create a mapping that will make it possible to easily provide the latest version of each plugin. """ self.latest_mapping = {} for categ in self._component.categories_interfaces.keys(): self.latest_mapping[categ] = []
def _prepareVersionMapping(self): """ Create and correctly initialize the storage where the wrong version of the plugins will be stored. """ self.latest_mapping = {} for categ in self._component.categories_interfaces.keys(): self.latest_mapping[categ] = []
447,699