bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def buildAllDemos(self, demoVersion="build", demoBrowser=False): demoData = [] for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[versionName] if not version....
def buildAllDemos(self, demoVersion="build", demoBrowser=False): demoData = [] for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[versionName] if not version....
447,000
def buildAllDemos(self, demoVersion="build", demoBrowser=False): demoData = [] for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[versionName] if not version....
def buildAllDemos(self, demoVersion="build", demoBrowser=False): demoData = [] for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[versionName] if not version....
447,001
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion="build", demobrowserDir=None): if not demobrowserDir: demobrowserDir = os.path.join(self.dir, "demobrowser") console.info("Copying HTML file to demobrowser directory %s" %demobrowserDir) sourceFilePath = os.path.join(demobrowserDir,"source", "dem...
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion, demoBrowser): dbManifest = getDataFromJsonFile(os.path.join(demoBrowser, "Manifest.json")) dbResourcePath = dbManifest["provides"]["resource"] dbNamespace = dbManifest["provides"]["namespace"] sourceFilePath = os.path.join(demoBrowser, dbRe...
447,002
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion="build", demobrowserDir=None): if not demobrowserDir: demobrowserDir = os.path.join(self.dir, "demobrowser") console.info("Copying HTML file to demobrowser directory %s" %demobrowserDir) sourceFilePath = os.path.join(demobrowserDir,"source", "dem...
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion="build", demobrowserDir=None): if not demobrowserDir: demobrowserDir = os.path.join(self.dir, "demobrowser") console.info("Copying HTML file to demobrowser directory %s" %demobrowserDir) sourceFilePath = os.path.join(demobrowserDir,"source", "dem...
447,003
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion="build", demobrowserDir=None): if not demobrowserDir: demobrowserDir = os.path.join(self.dir, "demobrowser") console.info("Copying HTML file to demobrowser directory %s" %demobrowserDir) sourceFilePath = os.path.join(demobrowserDir,"source", "dem...
def copyHtmlFile(self, libraryName, versionName, variantName, demoVersion="build", demobrowserDir=None): if not demobrowserDir: demobrowserDir = os.path.join(self.dir, "demobrowser") console.info("Copying HTML file to demobrowser directory %s" %demobrowserDir) sourceFilePath = os.path.join(demobrowserDir,"source", "dem...
447,004
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....
def__init__(self,library,versionDir=None):ifnot(libraryandversionDir):raiseRuntimeError,"Boththelibraryandthisversion'sdirectorymustbedefined!"self.library=libraryself.dir=versionDirself.path=os.path.join(self.library.repository.dir,self.library.dir,self.dir)try:self.manifest=self.getManifest()exceptException:raiseRunt...
447,005
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
def getManifest(self): try: return self.manifest except AttributeError: pass manifestPath = os.path.join(self.path, "Manifest.json") return getDataFromJsonFile(manifestPath)
447,006
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
def getDemoManifest(self, demoVariant = "default"): manifestPath = os.path.join(self.path, "demo", demoVariant, "Manifest.json") return getDataFromJsonFile(manifestPath)
447,007
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 cmd = "python " + os.path.join(self.path, "demo", demoVariant, "generate.py") + " " + demoVersion console.info("Building %s versio...
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 cmd = "python " + os.path.join(self.path, "demo", demoVariant, "generate.py") + " " + demoVersion console.info("Building %s versio...
447,008
def main(args): repository = Repository(args[0]) if args[1][:6] == "demos-": repository.buildAllDemos(args[1][6:], True)
def getDataFromJsonFile(path): try: jsonFile = codecs.open(path, "r", "UTF-8") except: raise RuntimeError, "File %s not found" %jsonFile try: return json.load(jsonFile) except Exception, e: raise RuntimeError, "Couldn't parse JSON from file %s" %jsonFile def getComputedConf(): parser = optparse.OptionParser() parse...
447,009
def main(args): repository = Repository(args[0]) if args[1][:6] == "demos-": repository.buildAllDemos(args[1][6:], True)
def main(args): repository = Repository(args[0]) if args[1][:6] == "demos-": repository.buildAllDemos(args[1][6:], True)
447,010
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,011
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,012
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,013
def mergeTranslationMaps(transMaps): # translationMaps is a pair (po-data, cldr-data) per package: # translationMaps = [({'C':{},..},{'C':{},..}), (.,.), ..] # this function merges all [0] elements into a common dict, and # all [1] elements: # return = ({'C':{},..}, {'C':{},..}) poData = {} cldrData = {}
def mergeTranslationMaps(transMaps): # translationMaps is a pair (po-data, cldr-data) per package: # translationMaps = [({'C':{},..},{'C':{},..}), (.,.), ..] # this function merges all [0] elements into a common dict, and # all [1] elements: # return = ({'C':{},..}, {'C':{},..}) poData = {} cldrData = {}
447,014
def addResourceToPackage(script, classToResourceMap, assetId, resvalue): classesUsing = set(()) for clazz, assetSet in classToResourceMap.items(): for assetRex in assetSet: if assetRex.match(assetId): classesUsing.add(clazz) break for package in script.packages: if classesUsing.intersection(set(package.classes)): packa...
def addResourceToPackages(script, classToResourceMap, assetId, resval): def assetRexMatchItem(assetRex, item): if isinstance(item, types.StringTypes): return assetRex.match(item) else: for embId in item.embeds: if assetRex.match(embId): return True return False if isinstance(resval, NameSpace): resvalue = resval...
447,015
def addResourceToPackage(script, classToResourceMap, assetId, resvalue): classesUsing = set(()) for clazz, assetSet in classToResourceMap.items(): for assetRex in assetSet: if assetRex.match(assetId): classesUsing.add(clazz) break for package in script.packages: if classesUsing.intersection(set(package.classes)): packa...
def addResourceToPackage(script, classToResourceMap, assetId, resvalue): classesUsing = set(()) for clazz, assetSet in classToResourceMap.items(): for assetRex in assetSet: if assetRexMatchItem(assetRex, checkval): classesUsing.add(clazz) break for package in script.packages: if classesUsing.intersection(set(package.cl...
447,016
def serialize(filteredResources, resdata): for resId, resval in filteredResources.items(): # build up resdata if isinstance(resval, ImgInfoFmt): resvalue = resval.flatten() else: # handle other resources resvalue = resval resdata[resId] = resvalue addResourceToPackage(script, classToResourceMap, resId, resvalue) # re...
def serialize(filteredResources, combinedImages, resdata): for resId, resval in filteredResources.items(): # build up resdata if isinstance(resval, ImgInfoFmt): resvalue = resval.flatten() else: # handle other resources resvalue = resval resdata[resId] = resvalue addResourceToPackage(script, classToResourceMap, resId,...
447,017
def serialize(filteredResources, resdata): for resId, resval in filteredResources.items(): # build up resdata if isinstance(resval, ImgInfoFmt): resvalue = resval.flatten() else: # handle other resources resvalue = resval resdata[resId] = resvalue addResourceToPackage(script, classToResourceMap, resId, resvalue) # re...
def serialize(filteredResources, resdata): for resId, resval in filteredResources.items(): # build up resdata if isinstance(resval, ImgInfoFmt): resvalue = resval.flatten() else: # handle other resources resvalue = resval resdata[resId] = resvalue addResourceToPackages(script, classToResourceMap, resId, resvalue) f...
447,018
def addCombinedImage(combinedResource, combinedId, combinedObj): '''this does basically what processCombinedImg does, but with no side effects''' # Read the .meta file # it doesn't seem worth to apply caching here meta_fname = os.path.splitext(combinedResource)[0]+'.meta' meta_content = filetool.read(meta_fname) imgD...
def addCombinedImage(combinedResource, combinedId, combinedObj): '''this does basically what processCombinedImg does, but with no side effects''' # Read the .meta file # it doesn't seem worth to apply caching here meta_fname = os.path.splitext(combinedResource)[0]+'.meta' meta_content = filetool.read(meta_fname) imgD...
447,019
def addCombinedImage(combinedResource, combinedId, combinedObj): '''this does basically what processCombinedImg does, but with no side effects''' # Read the .meta file # it doesn't seem worth to apply caching here meta_fname = os.path.splitext(combinedResource)[0]+'.meta' meta_content = filetool.read(meta_fname) imgD...
def addCombinedImage(combinedResource, combinedId, combinedObj): '''this does basically what processCombinedImg does, but with no side effects''' # Read the .meta file # it doesn't seem worth to apply caching here meta_fname = os.path.splitext(combinedResource)[0]+'.meta' meta_content = filetool.read(meta_fname) imgD...
447,020
def convertToRst_A(s,l,t): try: url,text=t[0].split("|") except ValueError: #raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) print >> sys.stderr, ("invalid URL link reference: " + t[0]) return '<%s>' %t[0] return '`%s <%s>`_' % (text,url)
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() if url.startswith("http://"): return '`%s <%s>`_' % (text,url) elif url.find(ns12)>-1: url = internalLink(url) else: #raise ParseFatalException(s,l,"invalid URL link reference: " + t[...
447,021
def convertToRst_A(s,l,t): try: url,text=t[0].split("|") except ValueError: #raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) print >> sys.stderr, ("invalid URL link reference: " + t[0]) return '<%s>' %t[0] return '`%s <%s>`_' % (text,url)
def convertToRst_A(s,l,t): try: url,text=t[0].split("|") except ValueError: #raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) pass if text: return ':doc:`%s <%s>`' % (text,url) else: return ':doc:`%s`' % url def convertToRst_I(s,l,t): import random i = t[0].find("|") if i>-1: url = t[0][:i] text=...
447,022
def convertToRst_A(s,l,t): try: url,text=t[0].split("|") except ValueError: #raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) print >> sys.stderr, ("invalid URL link reference: " + t[0]) return '<%s>' %t[0] return '`%s <%s>`_' % (text,url)
defboldItalic = QuotedString("***").setParseAction(convertToRst("**","**")) convertToRst_A(s,l,t):boldItalic = QuotedString("***").setParseAction(convertToRst("**","**")) try:boldItalic = QuotedString("***").setParseAction(convertToRst("**","**")) url,text=t[0].split("|")boldItalic = QuotedString("***").setParseAction(...
447,023
def convertToRst_A(s,l,t): try: url,text=t[0].split("|") except ValueError: #raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) print >> sys.stderr, ("invalid URL link reference: " + t[0]) return '<%s>' %t[0] return '`%s <%s>`_' % (text,url)
def convertToRst_A(s,l,t): try: url,text=t[0].split("|") except ValueError: #raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) print >> sys.stderr, ("invalid URL link reference: " + t[0]) return '<%s>' %t[0] return '`%s <%s>`_' % (text,url)
447,024
def transform(path): wikiInput = codecs.open(path, "r", "utf-8").read() rstString = wikiMarkup.transformString(wikiInput) if len(rstString)>0: codecs.open(txtEnd.sub(".rst", path), "w", "utf-8").write(rstString)
def transform(path): wikiInput = codecs.open(path, "rU", "utf-8").read() rstString = wikiMarkup.transformString(wikiInput) if len(rstString)>0: codecs.open(txtEnd.sub(".rst", path), "w", "utf-8").write(rstString)
447,025
def main(path): assert(os.isdir(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)) 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,026
def main(path): assert(os.isdir(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.isdir(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,027
def main(path): assert(os.isdir(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.isdir(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,028
def addResourceInfoToPackages(script): for package in script.packages: package_resources = [] # TODO: the next is a hack, since package.classes are still id's package_classes = [x for x in script.classesObj if x.id in package.classes] for clazz in package_classes: package_resources.extend(clazz.resources) package.dat...
def addResourceInfoToPackages(script): for package in script.packages: package_resources = [] # TODO: the next is a hack, since package.classes are still id's package_classes = [x for x in script.classesObj if x.id in package.classes] for clazz in package_classes: package_resources.extend(clazz.resources) package.dat...
447,029
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,030
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
447,031
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
447,032
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,033
def getMethodDepsR(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,034
def getMethodDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getMethodDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
447,035
def getMethodDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getMethodDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
447,036
def getMethodDeps1(self, depsItem, variants): def getMethodDepsR(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 = getMet...
def getForeignDeps1(self, depsItem, variants): 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 = getM...
447,037
def getMethodDepsR(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 = getMethodDepsR(deps, variants) mydeps.update(downstr...
def getMethodDepsR(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(downst...
447,038
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...
def runSimulation(self): self._console.info("Running Simulation...") classPathSeparator = ":" if util.getPlatformInfo()[0] == "Windows": classPathSeparator = ";" javaClassPath += classPathSeparator.join(configClassPath) rhinoClass = self._job.get("simulate/rhino-class", "org.mozilla.javascript.tools.shell.Main") ru...
447,039
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...
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,040
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") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ...
447,041
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,042
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...
defstatus = {"buildError" : None} buildAllDemos(self,status = {"buildError" : None} demoVersion="build",status = {"buildError" : None} demoBrowser=None,status = {"buildError" : None} copyDemos=False):status = {"buildError" : None} ifstatus = {"buildError" : None} demoBrowser:status = {"buildError" : None} demoBrowserst...
447,043
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,044
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,045
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,046
#def findClassForMethod1(self, clazzId, methodId, variants):
#def findClassForMethod1(self, clazzId, methodId, variants):
447,047
def getTransitiveDepsR(dependencyItem, variants, totalDeps):
def getTransitiveDepsR(dependencyItem, variants, totalDeps):
447,048
def processExplicitCludes(result): # Explicit include/exclude if len(includeNoDeps) > 0 or len(excludeNoDeps) > 0: self._console.info("Processing explicitely configured includes/excludes...") for entry in includeNoDeps: if not entry in result: result.append(entry)
def processExplicitCludes(result): # Explicit include/exclude if len(includeNoDeps) > 0 or len(excludeNoDeps) > 0: self._console.info("Processing explicitely configured includes/excludes...") for entry in includeNoDeps: if not entry in result: result.append(entry)
447,049
def sortClassesRecurser(classId, available, variants, result, path): if classId in result: return
def sortClassesRecurser(classId, available, variants, result, path): if classId in result: return
447,050
def getPackageData(package): data = {} data["resources"] = package.resources data = json.dumpsCode(data) data += ';\n' return data
def getPackageData(package): data = {} data["resources"] = package.resources data = json.dumpsCode(data) data += ';\n' return data
447,051
def getPackageData(package): data = {} data["resources"] = package.resources data = json.dumpsCode(data) data += ';\n' return data
def getPackageData(package): data = {} data["resources"] = package.resources data = json.dumpsCode(data) data += ';\n' return data
447,052
def conversionParseAction(s,l,t): return opening + t[0] + closing
def conversionParseAction(s,l,t): return opening + t[0] + closing
447,053
def createPackageDoc(text, packageName, docTree = None): if not docTree: docTree = tree.Node("doctree") package = getPackageNode(docTree, packageName) commentAttributes = comment.parseText(text) # Read all description, param and return attributes for attrib in commentAttributes: # Add description if attrib["category"...
def createPackageDoc(text, packageName, docTree = None): if not docTree: docTree = tree.Node("doctree") package = getPackageNode(docTree, packageName) commentAttributes = comment.parseText(text) # Read all description, param and return attributes for attrib in commentAttributes: # Add description if attrib["category"...
447,054
def postWorkItemList(docTree, classNode, listName, overridable): """Does the post work for a list of properties or methods.""" # Sort the list sortByName(classNode, listName) # Post work all items listNode = classNode.getChild(listName, False) if listNode: for itemNode in listNode.children: name = itemNode.get("name"...
def postWorkItemList(docTree, classNode, listName, overridable): """Does the post work for a list of properties or methods.""" # Sort the list sortByName(classNode, listName) # Post work all items listNode = classNode.getChild(listName, False) if listNode: for itemNode in listNode.children: name = itemNode.get("name"...
447,055
def packagesOfFiles(fileUri, packages): npackages = [] file = os.path.basename(fileUri) if self._job.get("packages/loader-with-boot", True): totalLen = len(packages) else: totalLen = len(packages) + 1 for packageId, packageFileName in enumerate(self.packagesFileNames(file, totalLen, classPackagesOnly=True)): npackages....
def packagesOfFiles(fileUri, packages): npackages = [] file = os.path.basename(fileUri) if self._job.get("packages/loader-with-boot", True): totalLen = len(packages) else: totalLen = len(packages) + 1 for packageId, packageFileName in enumerate(self.packagesFileNames(file, totalLen, classPackagesOnly=True)): npackages....
447,056
def generateI18NParts(self, script, globalCodes): # TODO: This largely duplicates writeI18NFiles() !
defgenerateI18NParts(self,script,globalCodes):#TODO:ThislargelyduplicateswriteI18NFiles()!
447,057
def generateI18NParts(self, script, globalCodes): # TODO: This largely duplicates writeI18NFiles() !
def generateI18NParts(self, script, globalCodes): # TODO: This largely duplicates writeI18NFiles() !
447,058
def incorporateCombinedImages(filteredResources, combinedImages): for combId, combImg in combinedImages.items(): # combImg.embeds = {resId : ImgFmt} filteredResourceIds = filteredResources.keys() for embId in requiredEmbeds(combImg, filteredResourceIds): # patch simle image info lib = filteredResources[embId].lib ...
def incorporateCombinedImages(filteredResources, combinedImages): for combId, combImg in combinedImages.items(): # combImg.embeds = {resId : ImgFmt} filteredResourceIds = filteredResources.keys() for embId in requiredEmbeds(combImg, filteredResourceIds): # patch simle image info lib = filteredResources[embId].lib ...
447,059
def writePackage(self, content, filePath, script): if script.scriptCompress: filetool.gzip(filePath, content) else: filetool.save(filePath, content)
def writePackage(self, content, filePath, script): if script.scriptCompress: filetool.gzip(filePath, content) else: filetool.save(filePath, content)
447,060
def writeI18NFiles(self, globalCodes, script):
def writeI18NFiles(self, globalCodes, script):
447,061
def writeI18NFiles(self, globalCodes, script):
def writeI18NFiles(self, globalCodes, script):
447,062
def addError(node, msg, syntaxItem): # print ">>> %s" % msg errorNode = tree.Node("error") errorNode.set("msg", msg) (line, column) = getLineAndColumnFromSyntaxItem(syntaxItem) if line: errorNode.set("line", line) if column: errorNode.set("column", column) node.addListChild("errors", errorNode) node.set("hasError",...
def addError(node, msg, syntaxItem): # print ">>> %s" % msg errorNode = tree.Node("error") errorNode.set("msg", msg) (line, column) = getLineAndColumnFromSyntaxItem(syntaxItem) if line: errorNode.set("line", line) if column: errorNode.set("column", column) node.addListChild("errors", errorNode) node.set("hasError",...
447,063
def handleClassDefinition(docTree, item, variant): params = item.getChild("params") className = params.children[0].get("value") if len(params.children) > 1: classMap = params.children[1] else: classMap = {} commentAttributes = comment.parseNode(item) classNode = getClassNode(docTree, className, commentAttributes) if...
def handleClassDefinition(docTree, item, variant): params = item.getChild("params") className = params.children[0].get("value") if len(params.children) > 1: classMap = params.children[1] else: classMap = {} commentAttributes = comment.parseNode(item) classNode = getClassNode(docTree, className, commentAttributes) if...
447,064
def getIncludes(includeCfg): #includeCfg = self._job.get("include", [])
def getIncludes(includeCfg): #includeCfg = self._job.get("include", [])
447,065
def runLint(self, classes): if not self._job.get('lint-check', False): return
def runLint(self, classes): if not self._job.get('lint-check', False): return
447,066
def runLint(self, classes): if not self._job.get('lint-check', False): return
def runLint(self, classes): if not self._job.get('lint-check', False): return
447,067
def _splitIncludeExcludeList(self, data): intelli = [] explicit = []
def_splitIncludeExcludeList(self,data):intelli=[]explicit=[]
447,068
def analyzeClassTree(variantSet):
def analyzeClassTree(variantSet):
447,069
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
447,070
def getMeta(self, metatype=""):
def getMeta(self, metatype=""):
447,071
def getOptionals(self, includeWithDeps): result = []
def getOptionals(self, includeWithDeps): result = []
447,072
def optimizeConstruct(node, superClass, methodName, classDefNodes): patchCount = 0 # Need to run through all the nodes, to skip embedded qx.*.define(), # which will be treated separately # Handle Node # skip embedded qx.*.define() if node in classDefNodes: return 0 elif node.type == "variable" and node.hasParentCon...
def optimizeConstruct(node, superClass, methodName, classDefNodes): patchCount = 0# Need to run through all the nodes, to skip embedded qx.*.define(), # which will be treated separately# Handle Node# skip embedded qx.*.define() if node in classDefNodes: return 0elif node.type == "variable" and node.hasParentContext("ca...
447,073
def getTranslation(self, fileId, variants): fileEntry = self._classes[fileId] filePath = fileEntry["path"]
def getTranslation(self, fileId, variants): fileEntry = self._classes[fileId] filePath = fileEntry["path"]
447,074
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
447,075
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
447,076
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
447,077
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
def _addTranslationBlock(self, method, data, node, var): entry = { "method" : method, "line" : node.get("line"), "column" : node.get("column") }
447,078
def _concatOperation(self, node): result = ""
def _concatOperation(self, node): result = ""
447,079
def runLogDependencies(self, script):
def runLogDependencies(self, script):
447,080
def lookupDeps(packages, depstype="using"):
def lookupDeps(packages, depstype="using"):
447,081
def lookupDeps(packages, depstype="using"):
def lookupDeps(packages, depstype="using"):
447,082
def logDeps(depsLogConf, type):
def logDeps(depsLogConf, type):
447,083
def logDeps(depsLogConf, type):
def logDeps(depsLogConf, type):
447,084
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...
defself.scopes = None __init__(self,self.scopes = None id,self.scopes = None path,self.scopes = None library,self.scopes = None context,self.scopes = None container):self.scopes = None #__slots__self.scopes = None self.scopes = None self.scopes = None self.scopes = None self....
447,085
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,086
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) if classInfo: return classInfo, modTime else: return {}, None
447,087
def _getSourceTree(self, cacheId, tradeSpaceForSpeed):
def _getSourceTree(self, cacheId, tradeSpaceForSpeed):
447,088
def _getSourceTree(self, cacheId, tradeSpaceForSpeed):
def _getSourceTree(self, cacheId, tradeSpaceForSpeed):
447,089
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
447,090
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
447,091
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
447,092
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
447,093
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
447,094
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
447,095
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized
447,096
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,097
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,098
def classVariants(self, generate=True):
def classVariants(self, generate=True):
447,099