bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,100
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,101
def _variantsFromTree(self, node): classvariants = set([]) # mostly taken from ecmascript.transform.optimizer.variantoptimizer variants = treeutil.findVariablePrefix(node, "qx.core.Variant") for variant in variants: if not variant.hasParentContext("call/operand"): continue variantMethod = treeutil.selectNode(variant, "...
def _variantsFromTree(self, node): classvariants = set([]) # mostly taken from ecmascript.transform.optimizer.variantoptimizer variants = treeutil.findVariablePrefix(node, "qx.core.Variant") for variant in variants: if not variant.hasParentContext("call/operand"): continue variantMethod = treeutil.selectNode(variant, "...
447,102
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,103
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,104
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
447,105
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
447,106
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
447,107
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
447,108
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
447,109
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,110
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,111
def getTransitiveDeps(self, depsItem, variants, checkSet=None):
def getTransitiveDeps(self, depsItem, variants, checkSet=None):
447,112
def getTransitiveDepsR1(dependencyItem, variants, totalDeps):
def getTransitiveDepsR1(dependencyItem, variants, totalDeps):
447,113
def getTransitiveDepsR1(dependencyItem, variants, totalDeps):
def getTransitiveDepsR1(dependencyItem, variants, totalDeps):
447,114
def collectResources(libs, assetFilter, ): filteredResources = [] combinedImages = {} skippatt = re.compile(r'\.(meta|py)$', re.I) for lib in libs: libObj = [x for x in script.libraries if x.namespace == lib["namespace"]][0] resList = [] filteredResources.append((libObj, resList)) resourceList = self._res...
def collectResources(libs, assetFilter, ): filteredResources = [] combinedImages = {} skippatt = re.compile(r'\.(meta|py)$', re.I) for lib in libs: libObj = [x for x in script.libraries if x.namespace == lib["namespace"]][0] resList = [] filteredResources.append((libObj, resList)) resourceList = self._res...
447,115
def incorporateCombinedImages(filteredResources, combinedImages): # make a long list of all resources allresources = [] for libObj, resList in filteredResources: allresources.extend(resList) # check for usable comb.images for combId, combObj in combinedImages.items(): if self._resourceHandler.embedsInList(combObj, allr...
def incorporateCombinedImages(filteredResources, combinedImages): # make a long list of all resources allresources = [] for libObj, resList in filteredResources: allresources.extend(resList) # check for usable comb.images for combId, combObj in combinedImages.items(): if self._resourceHandler.embedsInList(combObj, allr...
447,116
def incorporateCombinedImages1(filteredResources, combinedImages): # make a long list of all resources allresources = [] for libObj, resList in filteredResources: allresources.extend(resList) # check for usable comb.images for combId, combObj in combinedImages.items(): #if self._resourceHandler.embedsInList(combObj, al...
def incorporateCombinedImages1(filteredResources, combinedImages): # make a long list of all resources allresources = [] for libObj, resList in filteredResources: allresources.extend(resList) # check for usable comb.images for combId, combObj in combinedImages.items(): #if self._resourceHandler.embedsInList(combObj, al...
447,117
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,118
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...
defand self.context['jobconf'].get("dependencies/follow-static-initializers", False) followCallDeps(self,and self.context['jobconf'].get("dependencies/follow-static-initializers", False) node,and self.context['jobconf'].get("dependencies/follow-static-initializers", False) fileId,and self.context['jobconf'].get("depend...
447,119
def getLoadDeps(clsDepsObj): result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']): for dep in clsDepsObj.dependencyIterator(): if dep.isLoadDep: if dep in clsDepsObj.data['optional']: pass elif dep in clsDepsObj.data['require']: console.warn("%s: #require(%s) is ...
def getLoadDeps(clsDepsObj): result = set(clsDepsObj.data['require']) ignores = map(attrgetter("name"), clsDepsObj.data['ignore']) optionals = map(attrgetter("name"), clsDepsObj.data['optional']) requires = map(attrgetter("name"), clsDepsObj.data['require']) uses = map(attrgetter("name"), clsDepsObj.data['us...
447,120
def getLoadDeps(clsDepsObj): result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']): for dep in clsDepsObj.dependencyIterator(): if dep.isLoadDep: if dep in clsDepsObj.data['optional']: pass elif dep in clsDepsObj.data['require']: console.warn("%s: #require(%s) is ...
def getLoadDeps(clsDepsObj): result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']): for dep in clsDepsObj.dependencyIterator(): if dep.isLoadDep: if dep.name in optionals: pass elif dep in clsDepsObj.data['require']: console.warn("%s: #require(%s) is auto-detected...
447,121
def getLoadDeps(clsDepsObj): result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']): for dep in clsDepsObj.dependencyIterator(): if dep.isLoadDep: if dep in clsDepsObj.data['optional']: pass elif dep in clsDepsObj.data['require']: console.warn("%s: #require(%s) is ...
def getLoadDeps(clsDepsObj): result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']): for dep in clsDepsObj.dependencyIterator(): if dep.isLoadDep: if dep in clsDepsObj.data['optional']: pass elif dep.name in requires: console.warn("%s: #require(%s) is auto-detected...
447,122
def getRunDeps(clsDepsObj, loadDeps=[]): result = set(clsDepsObj.data ['use']) if not "auto-use" in (x.name for x in clsDepsObj.data ['ignore']): for dep in clsDepsObj.dependencyIterator (): if self.id == 'gui.Application': #import pydb; pydb.debugger() pass if not dep.isLoadDep: if dep in clsDepsObj.data ['optional']:...
def getRunDeps(clsDepsObj): result = set(clsDepsObj.data ['use']) if not "auto-use" in (x.name for x in clsDepsObj.data ['ignore']): for dep in clsDepsObj.dependencyIterator (): if self.id == 'gui.Application': #import pydb; pydb.debugger() pass if not dep.isLoadDep: if dep in clsDepsObj.data ['optional']: pass elif de...
447,123
def getRunDeps(clsDepsObj, loadDeps=[]): result = set(clsDepsObj.data ['use']) if not "auto-use" in (x.name for x in clsDepsObj.data ['ignore']): for dep in clsDepsObj.dependencyIterator (): if self.id == 'gui.Application': #import pydb; pydb.debugger() pass if not dep.isLoadDep: if dep in clsDepsObj.data ['optional']:...
def getRunDeps(clsDepsObj, loadDeps=[]): result = set(clsDepsObj.data ['use']) if not "auto-use" in (x.name for x in clsDepsObj.data ['ignore']): for dep in clsDepsObj.dependencyIterator (): if self.id == 'gui.Application': #import pydb; pydb.debugger() pass if not dep.isLoadDep: if dep in clsDepsObj.data ['optional']:...
447,124
def CreateNewDemoJson(): source = "" build = "" scategories = {} bcategories = {} fJSON = "./config.demo.new.json" # Pre-processing JSON = open(fJSON,"w") JSON.write('// This file is dynamically created by the generator!\n') JSON.write('{\n') # top-level includes default_json = 'tool' + '/' + 'default.json' assert os...
def CreateNewDemoJson(): source = "" build = "" scategories = {} bcategories = {} fJSON = "./config.demo.new.json" # Pre-processing JSON = open(fJSON,"w") JSON.write('// This file is dynamically created by the generator!\n') JSON.write('{\n') # top-level includes default_json = 'tool' + '/' + 'default.json' assert os...
447,125
def __init__(self, repoDir, config=None): self.dir = os.path.abspath(repoDir) self.validator = LibraryValidator(config) self.data = [] self.issues = {} if not self.hasExplicitIncludes(): manifests = self.scanRepository() else: try: manifests = self.getExplicitManifests() if len(manifests) == 0: manifests = self.scanRe...
def __init__(self, repoDir, config=None): self.dir = os.path.abspath(repoDir) self.validator = LibraryValidator(config) self.data = [] self.issues = {} if not self.hasExplicitIncludes(): manifests = self.scanRepository() else: try: manifests = self.getExplicitManifests() if len(manifests) == 0: manifests = self.scanRe...
447,126
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") console.indent() for libraryName, library in self.libraries.iteritems(): library.buildAllDemos(buildTarget, demoBrowser, c...
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") console.indent() for libraryName, library in self.children.iteritems(): library.buildAllDemos(buildTarget, demoBrowser, co...
447,127
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,128
def lintCheckAll(self): for libraryName, library in self.libraries.iteritems(): for versionName, libraryVersion in library.children.iteritems(): console.info("Lint results for %s %s:" %(libraryName, versionName)) result = libraryVersion.getLintResult() logLintResult(result)
def lintCheckAll(self): for libraryName, library in self.children.iteritems(): for versionName, libraryVersion in library.children.iteritems(): console.info("Lint results for %s %s:" %(libraryName, versionName)) result = libraryVersion.getLintResult() logLintResult(result)
447,129
def runGeneratorForAll(self, job, cwd=False): console.indent() for libraryName, library in self.libraries.iteritems(): for versionName, libraryVersion in library.children.iteritems(): console.info("Running job %s on %s %s..." %(job, libraryName, versionName)) ret, out, err = runGenerator(libraryVersion.path, job, cwd) ...
def runGeneratorForAll(self, job, cwd=False): console.indent() for libraryName, library in self.children.iteritems(): for versionName, libraryVersion in library.children.iteritems(): console.info("Running job %s on %s %s..." %(job, libraryName, versionName)) ret, out, err = runGenerator(libraryVersion.path, job, cwd) c...
447,130
def runGeneratorForAll(self, job, cwd=False): console.indent() for libraryName, library in self.libraries.iteritems(): for versionName, libraryVersion in library.children.iteritems(): console.info("Running job %s on %s %s..." %(job, libraryName, versionName)) ret, out, err = runGenerator(libraryVersion.path, job, cwd) ...
def runGeneratorForAll(self, job, cwd=False): console.indent() for libraryName, library in self.libraries.iteritems(): for versionName, libraryVersion in library.children.iteritems(): console.info("Running job %s on %s %s..." %(job, libraryName, versionName)) ret, out, err = runGenerator(libraryVersion.path, job, cwd) ...
447,131
def __init__(self, name, path, repository): self.name = name self.path = path self.parent = repository self.children = {} self.issues = [] self.readme = self._getReadme() self.data = { "classname": name, "children" : [], "readme" : self.readme } self.parent.data.append(self.data)
def __init__(self, name, path, repository): self.name = name self.path = path self.parent = repository self.children = {} self.issues = [] self.readme = self._getReadme() self.data = { "classname": name, "children" : [], "readme" : self.readme }
447,132
def __init__(self, name, path, library): self.name = name self.path = path self.parent = library self.manifest = self._getManifest() self.issues = [] self.readme = self._getReadme() self.data = { "classname" : self.name, "tests" : [], "manifest" : self.manifest, "readme" : self.readme } self.parent.data["children"].ap...
def __init__(self, name, path, library): self.name = name self.path = path self.parent = library self.manifest = self._getManifest() self.issues = [] self.readme = self._getReadme() self.data = { "classname" : self.name, "tests" : [], "manifest" : self.manifest, "readme" : self.readme } self._checkStructure() self.ch...
447,133
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): qxVersions = self.manifest["info"]["qooxdoo-versions"] for variantName, variant in self.children.iteritems(): # build version: link demo against each compatible qooxdoo version if buildTarget == "build": #get the compatible qooxdoo version...
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): qxVersions = self.manifest["info"]["qooxdoo-versions"] for variantName, variant in self.children.iteritems(): # build version: link demo against each compatible qooxdoo version if buildTarget == "build": #get the compatible qooxdoo version...
447,134
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): qxVersions = self.manifest["info"]["qooxdoo-versions"] for variantName, variant in self.children.iteritems(): # build version: link demo against each compatible qooxdoo version if buildTarget == "build": #get the compatible qooxdoo version...
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): qxVersions = self.manifest["info"]["qooxdoo-versions"] for variantName, variant in self.children.iteritems(): # build version: link demo against each compatible qooxdoo version if buildTarget == "build": #get the compatible qooxdoo version...
447,135
def build(self, target="build", macro=None): console.info("Generating %s version of demo variant %s for library %s version %s..." %(target, self.name, self.parent.parent.name, self.parent.name) ) try: rcode, output, errout = runGenerator(self.path, target, macro) except Exception, e: self.issues.append( {target : str(...
def build(self, target="build", macro=None): try: rcode, output, errout = runGenerator(self.path, target, macro) except Exception, e: self.issues.append( {target : str(e)} ) msg = "Error running generator: " + str(e) console.write("") console.error(e) return if rcode > 0: console.error(errout) console.info(output) if ...
447,136
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,137
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
447,138
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
447,139
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
447,140
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
447,141
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = json.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = json.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
447,142
def reportResults(self, aut, start_date, log_file, ignore=[]): 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...
def reportResults(self, aut, start_date, log_file, ignore=None): 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 exce...
447,143
def __init__(self, library, versionDir = None): if not (library and versionDir): raise RuntimeError, "Both the library and this version's directory must be defined!" self.library = library self.dir = versionDir self.versionPath = os.path.join(self.library.repository.dir, self.library.dir, self.dir) try: self.manifest ...
def __init__(self, library, versionDir = None): if not (library and versionDir): raise RuntimeError, "Both the library and this version's directory must be defined!" self.library = library self.dir = versionDir self.path = os.path.join(self.library.repository.dir, self.library.dir, self.dir) try: self.manifest = self....
447,144
def checkStructure(self): if os.path.isdir(os.path.join(self.versionPath, "source")): self.hasSourceDir = True if os.path.isdir(os.path.join(self.versionPath, "demo")): self.hasDemoDir = True self.demoVariants = self.getDemoVariants() if os.path.isfile(os.path.join(self.versionPath, "README")): self.hasReadmeFile = T...
def checkStructure(self): if os.path.isdir(os.path.join(self.path, "source")): self.hasSourceDir = True if os.path.isdir(os.path.join(self.versionPath, "demo")): self.hasDemoDir = True self.demoVariants = self.getDemoVariants() if os.path.isfile(os.path.join(self.versionPath, "README")): self.hasReadmeFile = True if...
447,145
def checkStructure(self): if os.path.isdir(os.path.join(self.versionPath, "source")): self.hasSourceDir = True if os.path.isdir(os.path.join(self.versionPath, "demo")): self.hasDemoDir = True self.demoVariants = self.getDemoVariants() if os.path.isfile(os.path.join(self.versionPath, "README")): self.hasReadmeFile = T...
def checkStructure(self): if os.path.isdir(os.path.join(self.versionPath, "source")): self.hasSourceDir = True if os.path.isdir(os.path.join(self.path, "demo")): self.hasDemoDir = True self.demoVariants = self.getDemoVariants() if os.path.isfile(os.path.join(self.versionPath, "README")): self.hasReadmeFile = True if...
447,146
def checkStructure(self): if os.path.isdir(os.path.join(self.versionPath, "source")): self.hasSourceDir = True if os.path.isdir(os.path.join(self.versionPath, "demo")): self.hasDemoDir = True self.demoVariants = self.getDemoVariants() if os.path.isfile(os.path.join(self.versionPath, "README")): self.hasReadmeFile = T...
def checkStructure(self): if os.path.isdir(os.path.join(self.versionPath, "source")): self.hasSourceDir = True if os.path.isdir(os.path.join(self.versionPath, "demo")): self.hasDemoDir = True self.demoVariants = self.getDemoVariants() if os.path.isfile(os.path.join(self.path, "README")): self.hasReadmeFile = True if...
447,147
def checkStructure(self): if os.path.isdir(os.path.join(self.versionPath, "source")): self.hasSourceDir = True if os.path.isdir(os.path.join(self.versionPath, "demo")): self.hasDemoDir = True self.demoVariants = self.getDemoVariants() if os.path.isfile(os.path.join(self.versionPath, "README")): self.hasReadmeFile = T...
def checkStructure(self): if os.path.isdir(os.path.join(self.versionPath, "source")): self.hasSourceDir = True if os.path.isdir(os.path.join(self.versionPath, "demo")): self.hasDemoDir = True self.demoVariants = self.getDemoVariants() if os.path.isfile(os.path.join(self.versionPath, "README")): self.hasReadmeFile = T...
447,148
def getManifest(self): try: return self.manifest except AttributeError: pass manifestPath = os.path.join(self.versionPath, "Manifest.json") try: manifestFile = open(manifestPath) except: raise RuntimeError, "Manifest file %s not found" %manifestPath manifest = json.load(manifestFile) return manifest
def getManifest(self): try: return self.manifest except AttributeError: pass manifestPath = os.path.join(self.path, "Manifest.json") try: manifestFile = open(manifestPath) except: raise RuntimeError, "Manifest file %s not found" %manifestPath manifest = json.load(manifestFile) return manifest
447,149
def getDemoManifest(self, demoVariant = "default"): manifestPath = os.path.join(self.versionPath, "demo", demoVariant, "Manifest.json") try: manifestFile = open(manifestPath) except: raise RuntimeError, "Manifest file %s not found" %manifestPath manifest = json.load(manifestFile) return manifest
def getDemoManifest(self, demoVariant = "default"): manifestPath = os.path.join(self.path, "demo", demoVariant, "Manifest.json") try: manifestFile = open(manifestPath) except: raise RuntimeError, "Manifest file %s not found" %manifestPath manifest = json.load(manifestFile) return manifest
447,150
def __init__(self,workdir,mailto = None): self.workdir = workdir self.mailto = mailto self.outputfile = None
def __init__(self,workdir,mailto = None): self.workdir = workdir self.mailto = mailto self.outputfile = None
447,151
def getSvnRevision(self): try: return self.svnRevision except: pass cmd = "svnversion %s" %self.versionPath rcode, output, errout = shell.execute_piped(cmd) if rcode > 0: raise RuntimeError, "Error while retrieving SVN version: " + errout svnRevision = output.rstrip('\n') return svnRevision
def getSvnRevision(self): try: return self.svnRevision except: pass cmd = "svnversion %s" %self.path rcode, output, errout = shell.execute_piped(cmd) if rcode > 0: raise RuntimeError, "Error while retrieving SVN version: " + errout svnRevision = output.rstrip('\n') return svnRevision
447,152
def getDemoVariants(self): if not self.hasDemoDir: return False demoVariants = [] demoPath = os.path.join(self.versionPath, "demo") for root, dirs, files in os.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 os.walk(demoPath, topdown=True): for name in dirs: if root == demoPath and name[0] != ".": demoVariants.append(name) return demoVariants
447,153
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) if category == "translation" and not os.path.isdir(catPath): continue # find...
447,154
def listJobTriggers(): return { "api" : { "type" : "JClassDepJob" }, "collect-environment-info" : { "type" : "JSimpleJob" },
def listJobTriggers(): return { "api" : { "type" : "JClassDepJob" }, "collect-environment-info" : { "type" : "JSimpleJob" },
447,155
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = json.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = json.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
447,156
def __init__(self, id, path, library, context, container): #__slots__ = ('id', 'path', 'size', 'encoding', 'library', 'context', 'source', 'scopes', 'translations') global console, cache, DefaultIgnoredNamesDynamic super(Class, self).__init__(path) self.id = id # qooxdoo name of class, classId self.libr...
def __init__(self, id, path, library, context, container): #__slots__ = ('id', 'path', 'size', 'encoding', 'library', 'context', 'source', 'scopes', 'translations') global console, cache, DefaultIgnoredNamesDynamic super(Class, self).__init__(path) self.id = id # qooxdoo name of class, classId self.libr...
447,157
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,158
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,159
def getScript(node, fileId, __memo=[None,None]): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # sam...
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh...
447,160
def getScript(node, fileId, __memo=[None,None]): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # sam...
def getScript(node, fileId, __memo=[None,None]): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # sam...
447,161
def getScript(node, fileId, __memo=[None,None]): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # sam...
def getScript(node, fileId, __memo=[None,None]): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # sam...
447,162
def getScript(node, fileId, __memo=[None,None]): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # sam...
def getScript(node, fileId, __memo=[None,None]): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # sam...
447,163
def compileClassesXX(self, classes, variants, optimize, format): content = "" length = len(classes) for pos, classId in enumerate(classes): self._console.progress(pos, length) content += self.getCompiled(classId, variants, optimize, format) return content
def compileClassesXX(self, classes, variants, optimize, format): content = "" length = len(classes) for pos, classId in enumerate(classes): self._console.progress(pos + 1, length) content += self.getCompiled(classId, variants, optimize, format) return content
447,164
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...
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,165
def main(): c = {} if len(sys.argv)>1: c['js_target'] = sys.argv[1] source = "" build = "" scategories = {} bcategories = {} JSON = open(fJSON,"w") JSON.write('// This file is dynamically created by the generator!\n') JSON.write('{\n') # check top-level includes jsontmplf = os.path.join('tool','tl-tmpl.json') if os....
def main(): c = {} if len(sys.argv)>1: c['js_target'] = sys.argv[1] source = "" build = "" scategories = {} bcategories = {} JSON = open(fJSON,"w") JSON.write('// This file is dynamically created by the generator!\n') JSON.write('{\n') # check top-level includes jsontmplf = os.path.join('tool','tl-tmpl.json') if os....
447,166
def loadTemplate(bootCode): # try custom loader templates loaderFile = compConf.get("paths/loader-template", None) if not loaderFile: # use default templates if version=="build": #loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") # TODO: test-wise using generic template ...
def loadTemplate(bootCode): # try custom loader templates loaderFile = compConf.get("paths/loader-template", None) if not loaderFile: # use default templates if version=="build": #loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") # TODO: test-wise using generic template ...
447,167
def loadTemplate(bootCode): # try custom loader templates loaderFile = compConf.get("paths/loader-template", None) if not loaderFile: # use default templates if version=="build": #loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") # TODO: test-wise using generic template ...
def loadTemplate(bootCode): # try custom loader templates loaderFile = compConf.get("paths/loader-template", None) if not loaderFile: # use default templates if version=="build": #loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") # TODO: test-wise using generic template ...
447,168
def loadTemplate(bootCode): # try custom loader templates loaderFile = compConf.get("paths/loader-template", None) if not loaderFile: # use default templates if version=="build": #loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") # TODO: test-wise using generic template ...
def loadTemplate(bootCode): # try custom loader templates loaderFile = compConf.get("paths/loader-template", None) if not loaderFile: # use default templates if version=="build": #loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") # TODO: test-wise using generic template ...
447,169
def loadTemplate(bootCode): # try custom loader templates loaderFile = compConf.get("paths/loader-template", None) if not loaderFile: # use default templates if version=="build": #loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") # TODO: test-wise using generic template ...
def loadTemplate(bootCode): # try custom loader templates loaderFile = compConf.get("paths/loader-template", None) if not loaderFile: # use default templates if version=="build": #loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-build.tmpl.js") # TODO: test-wise using generic template ...
447,170
def processVariantSelect(callNode, variantMap): if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning", "Expecting exactly two arguments for qx.core.Variant.select. Ignoring this occurrence.", params) return False # Get the variant key from the select...
def processVariantSelect(callNode, variantMap): if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning", "Expecting exactly two arguments for qx.core.Variant.select. Ignoring this occurrence.", params) return False # Get the variant key from the select...
447,171
def buildShallowDeps():
def buildShallowDeps():
447,172
def dependencies1(self, variantSet):
def dependencies1(self, variantSet):
447,173
def dependencies(self, variants):
def dependencies(self, variants):
447,174
def pofile(fpath, **kwargs): """ Convenience function that parse the po/pot file *fpath* and return a POFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the po/pot file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext (optional, default...
def pofile(fpath, **kwargs): """ Convenience function that parse the po/pot file *fpath* and return a POFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the po/pot file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext (optional, default...
447,175
def pofile(fpath, **kwargs): """ Convenience function that parse the po/pot file *fpath* and return a POFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the po/pot file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext (optional, default...
def pofile(fpath, **kwargs): """ Convenience function that parse the po/pot file *fpath* and return a POFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the po/pot file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext (optional, default...
447,176
def mofile(fpath, **kwargs): """ Convenience function that parse the mo file *fpath* and return a MOFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the mo file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext to generate the po file th...
def mofile(fpath, **kwargs): """ Convenience function that parse the mo file *fpath* and return a MOFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the mo file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext to generate the po file th...
447,177
def mofile(fpath, **kwargs): """ Convenience function that parse the mo file *fpath* and return a MOFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the mo file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext to generate the po file th...
def mofile(fpath, **kwargs): """ Convenience function that parse the mo file *fpath* and return a MOFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the mo file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext to generate the po file th...
447,178
def escape(st): """ Escape special chars and return the given string *st*. **Examples**: >>> escape('\\t and \\n and \\r and " and \\\\') '\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\' """ #st = st.replace('\\', r'\\') st = st.replace('\t', r'\t') st = st.replace('\r', r'\r') st = st.replace('\n', r'\n') #st = st...
def escape(st): """ Escape special chars and return the given string *st*. **Examples**: >>> escape('\\t and \\n and \\r and " and \\\\') '\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\' """ #st = st.replace('\\', r'\\') st = st.replace('\t', r'\t') st = st.replace('\r', r'\r') st = st.replace('\n', r'\n') #st = st...
447,179
def unescape(st): """ Unescape special chars and return the given string *st*. **Examples**: >>> unescape('\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\') '\\t and \\n and \\r and " and \\\\' """ #st = st.replace(r'\"', '"') st = st.replace(r'\n', '\n') st = st.replace(r'\r', '\r') st = st.replace(r'\t', '\t') #st...
def unescape(st): """ Unescape special chars and return the given string *st*. **Examples**: >>> unescape('\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\') '\\t and \\n and \\r and " and \\\\' """ #st = st.replace(r'\"', '"') st = st.replace(r'\n', '\n') st = st.replace(r'\r', '\r') st = st.replace(r'\t', '\t') #st...
447,180
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
def __init__(self, *args, **kwargs): """ Constructor.
447,181
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
447,182
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
447,183
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
447,184
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
447,185
def __str__(self): """String representation of the file.""" ret = [] entries = [self.metadata_as_entry()] + \ [e for e in self if not e.obsolete] for entry in entries: ret.append(entry.__str__(self.wrapwidth)) for entry in self.obsolete_entries(): ret.append(entry.__str__(self.wrapwidth)) return '\n'.join(ret)
def __str__(self): """ String representation of the file. """ ret = [] entries = [self.metadata_as_entry()] + \ [e for e in self if not e.obsolete] for entry in entries: ret.append(entry.__str__(self.wrapwidth)) for entry in self.obsolete_entries(): ret.append(entry.__str__(self.wrapwidth)) return '\n'.join(ret)
447,186
def to_binary(self): """Return the mofile binary representation.""" import struct import array output = '' offsets = [] ids = strs = '' entries = self.translated_entries() # the keys are sorted in the .mo file def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: ...
def to_binary(self): """ Return the mofile binary representation. """ import array import struct import array output = '' offsets = [] ids = strs = '' entries = self.translated_entries() # the keys are sorted in the .mo file def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: r...
447,187
def to_binary(self): """Return the mofile binary representation.""" import struct import array output = '' offsets = [] ids = strs = '' entries = self.translated_entries() # the keys are sorted in the .mo file def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: ...
def to_binary(self): """Return the mofile binary representation.""" import struct import types offsets = [] ids = strs = '' entries = self.translated_entries() # the keys are sorted in the .mo file def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0 ent...
447,188
def to_binary(self): """Return the mofile binary representation.""" import struct import array output = '' offsets = [] ids = strs = '' entries = self.translated_entries() # the keys are sorted in the .mo file def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: ...
def to_binary(self): """Return the mofile binary representation.""" import struct import array output = '' offsets = [] entries = self.translated_entries() # the keys are sorted in the .mo file def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0 entries...
447,189
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
defcmp(_self,other):if_self.msgid>other.msgid:return1elif_self.msgid<other.msgid:return-1else:return0
447,190
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
447,191
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
447,192
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
447,193
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
447,194
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
447,195
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
447,196
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
447,197
def __str__(self, wrapwidth=78): """ Common string representation of the POEntry and MOEntry objects. """ if self.obsolete: delflag = '#~ ' else: delflag = '' # write the msgid ret = [] ret += self._str_field("msgid", delflag, "", self.msgid) # write the msgid_plural if any if self.msgid_plural: ret += self._str_field(...
def __str__(self, wrapwidth=78): """ Common string representation of the POEntry and MOEntry objects. """ if self.obsolete: delflag = '#~ ' else: delflag = '' # write the msgid ret += self._str_field("msgid", delflag, "", self.msgid) # write the msgid_plural if any if self.msgid_plural: ret += self._str_field("msgid_pl...
447,198
def __init__(self, fpath, enc=default_encoding): """ Constructor.
def __init__(self, fpath, *args, **kwargs): """ Constructor.
447,199