bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def getTransitiveDepsR(dependencyItem, variants, totalDeps): classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(dependencyItem, variants, totalDeps): classId = dependencyItem.name methodId= dependencyItem.attribute
447,300
def getTransitiveDepsR(dependencyItem, variants, totalDeps): classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(dependencyItem, variants, totalDeps): classId = dependencyItem.name methodId= dependencyItem.attribute
447,301
def getAttributeDeps(self, attrib): # attrib="ignore", "qx.Class#define" res = None data = self.data # top level if attrib.find('#')== -1: res = data[attrib] # class map else: classId, attribId = attrib.split('#', 1) data = data['classes'][classId].data if attribId in data: res = data[attribId] else: for submap in ('...
def getAttributeDeps(self, attrib): # attrib="ignore", "qx.Class#define" res = [] data = self.data # top level if attrib.find('#')== -1: res = data[attrib] # class map else: classId, attribId = attrib.split('#', 1) data = data['classes'][classId].data if attribId in data: res = data[attribId] else: for submap in ('st...
447,302
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
447,303
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
447,304
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
447,305
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
defcheckMatch(res,hint):ifhint.regex.search(res.id):hint.seen=Truehint.clazz.resources.add(res)
447,306
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
447,307
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
447,308
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
def checkMatch(res, hint): if hint.regex.search(res.id): hint.seen = True hint.clazz.resources.add(res)
447,309
def depsToConsole(classDepsIter, type): oPackageId = '' self._console.indent() self._console.indent() relstring = "Uses" if type == "using" else "Used by" depsMap = collectDispersedDependencies(classDepsIter)
def depsToConsole(classDepsIter, type): oPackageId = '' self._console.indent() self._console.indent() relstring = "Uses" if type == "using" else "Used by" depsMap = collectDispersedDependencies(classDepsIter)
447,310
def depsToConsole(classDepsIter, type): oPackageId = '' self._console.indent() self._console.indent() relstring = "Uses" if type == "using" else "Used by" depsMap = collectDispersedDependencies(classDepsIter)
def depsToConsole(classDepsIter, type): oPackageId = '' self._console.indent() self._console.indent() relstring = "Uses" if type == "using" else "Used by" depsMap = collectDispersedDependencies(classDepsIter)
447,311
def _getPartDeps(self, script, smartExclude): parts = script.parts variants = script.variants classList= script.classes
def _getPartDeps(self, script, smartExclude): parts = script.parts variants = script.variants classList= script.classes
447,312
def getPotFile(self, content, variants={}): pot = self.createPoFile() strings = self.getPackageStrings(content, variants)
def getPotFile(self, content, variants={}): pot = self.createPoFile() strings = self.getPackageStrings(content, variants)
447,313
def getPotFile(self, content, variants={}): pot = self.createPoFile() strings = self.getPackageStrings(content, variants)
def getPotFile(self, content, variants={}): pot = self.createPoFile() strings = self.getPackageStrings(content, variants)
447,314
def parseAction(s,l,t): global headLevel # insert intermediate heading? if headLevel > 0 and mylevel - headLevel > 1: # new header skips a level # insert intermediate headers to assure consistency prehead = "" for i in range(1, mylevel - headLevel): lchar = linechars["h"+str(headLevel+i)] prehead += "\nXXX\n" + 3 * lch...
def parseAction(s,l,t): global headLevel # insert intermediate heading? if headLevel > 0 and mylevel - headLevel > 1: # new header skips a level # insert intermediate headers to assure consistency prehead = "" for i in range(1, mylevel - headLevel): lchar = linechars["h"+str(headLevel+i)] prehead += "\nXXX\n" + 3 * lch...
447,315
def main(): parser = optparse.OptionParser( "usage: %prog [options]", option_class=ExtendAction ) migrator_options = optparse.OptionGroup(parser, "Migrator Options") migrator_options.add_option( "-m", "--from-makefile", dest="makefile", metavar="MAKEFILE", help="Makefile of the skeleton project to migrate (optional)"...
def main(): parser = optparse.OptionParser( "usage: %prog [options]", option_class=ExtendAction ) migrator_options = optparse.OptionGroup(parser, "Migrator Options") migrator_options.add_option( "-m", "--from-makefile", dest="makefile", metavar="MAKEFILE", help="Makefile of the skeleton project to migrate (optional)"...
447,316
def main(): parser = optparse.OptionParser( "usage: %prog [options]", option_class=ExtendAction ) migrator_options = optparse.OptionGroup(parser, "Migrator Options") migrator_options.add_option( "-m", "--from-makefile", dest="makefile", metavar="MAKEFILE", help="Makefile of the skeleton project to migrate (optional)"...
def main(): parser = optparse.OptionParser( "usage: %prog [options]", option_class=ExtendAction ) migrator_options = optparse.OptionGroup(parser, "Migrator Options") migrator_options.add_option( "-m", "--from-makefile", dest="makefile", metavar="MAKEFILE", help="Makefile of the skeleton project to migrate (optional)"...
447,317
def checkDeferNode(assembled, node): deferNode = None if assembled == "qx.Class.define" or assembled == "qx.Bootstrap.define" or assembled == "qx.List.define": if node.hasParentContext("call/operand"): deferNode = treeutil.selectNode(node, "../../params/2/keyvalue[@key='defer']/value/function/body/block") return deferN...
def checkDeferNode(assembled, node): deferNode = None if assembled == "qx.Class.define" or assembled == "qx.Bootstrap.define" or assembled == "qx.List.define": if node.hasParentContext("call/operand"): deferNode = treeutil.selectNode(node, "../../params/2/keyvalue[@key='defer']/value/function/body/block") return deferN...
447,318
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
447,319
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
447,320
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
447,321
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
447,322
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
447,323
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
447,324
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
def splitClassAttribute(assembledId, assembled): if assembledId == assembled: # just a class id clazzId = assembledId attribute = u'' else: clazzId = assembledId attribute = assembled[ len(assembledId) +1 :] # a.b.c.d = a.b.c + '.' + d return clazzId, attribute
447,325
def copyJsFiles(destdir): # copy js source file to script dir try: os.makedirs(destdir) except OSError: pass while True: file = (yield) if file == None: break clazz = "demobrowser.demo.%s.%s" % demoCategoryFromFile(file) shutil.copyfile('source/class/%s.js' % clazz.replace('.','/'), "%s/%s.src.js" % (destdir,clazz)) y...
def copyJsFiles(destdir): # copy js source file to script dir if not os.path.exists(destdir): os.makedirs(destdir) while True: file = (yield) if file == None: break clazz = "demobrowser.demo.%s.%s" % demoCategoryFromFile(file) shutil.copyfile('source/class/%s.js' % clazz.replace('.','/'), "%s/%s.src.js" % (destdir,cla...
447,326
def createDemoData(destdir): dist = os.path.join(destdir, demoDataFn) # +".1") #TODO: remove +".1" for production res = [] ocategory = "" while True: (htmlFilePath, category, demo) = (yield) if htmlFilePath == None: break # init new category if category != ocategory: ocategory = category resCategory = {} res.append(...
def createDemoData(destdir): dist = os.path.join(destdir, demoDataFn) # +".1") #TODO: remove +".1" for production res = [] ocategory = "" while True: (htmlFilePath, category, demo) = (yield) if htmlFilePath == None: break # init new category if category != ocategory: ocategory = category resCategory = {} res.append(...
447,327
def _scanResourcePath(self, path): if not os.path.exists(path): raise ValueError("The given resource path does not exist: %s" % path)
def _scanResourcePath(self, path): if not os.path.exists(path): raise ValueError("The given resource path does not exist: %s" % path)
447,328
def addChild(self, childNode, index = None): if childNode: if childNode.hasParent(): childNode.parent.removeChild(childNode)
def addChild(self, childNode, index = None): if childNode: if childNode.hasParent(): childNode.parent.removeChild(childNode)
447,329
def removeChild(self, childNode): if self.hasChildren(): self.children.remove(childNode) childNode.parent = None if len(self.children) == 0: del self.children
def removeChild(self, childNode): if self.hasChildren(): self.children.remove(childNode) childNode.parent = None if len(self.children) == 0: del self.children
447,330
def convertToRst_I(s,l,t): import random # split text and url i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # Handle url if url.startswith("http://"): pass # handle document:1.2: elif url.find(ns12)>-1: url = internalLink(url) url = "/" + url # need to 'abs...
def convertToRst_I(s,l,t): import random # split text and url i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # Handle url if url.startswith("http://"): pass # handle document:1.2: elif url.find(ns12)>-1: url = internalLink(url) if url.startswith("path/"): u...
447,331
def convertToRst_I(s,l,t): import random # split text and url i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # Handle url if url.startswith("http://"): pass # handle document:1.2: elif url.find(ns12)>-1: url = internalLink(url) url = "/" + url # need to 'abs...
def convertToRst_I(s,l,t): import random # split text and url i = t[0].find("|") if i>-1: url = t[0][:i] text= t[0][i+1:] else: url = t[0] text= "" text = text.strip() # Handle url if url.startswith("http://"): pass # handle document:1.2: elif url.find(ns12)>-1: url = internalLink(url) url = "/" + url # need to 'abs...
447,332
def htmlBlock(s,l,t): import subprocess eout(" converting HTML with pandoc") # preprocess s = t[0] s = s.replace(" ", " ") p = subprocess.Popen(['pandoc', '--from=html', '--to=rst'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) ret = p.communicate(s)[0] # postprocess ret = ret.replace(os.linesep, "\n") if ret.e...
def htmlBlock(s,l,t): import subprocess eout(" converting HTML with pandoc") # preprocess s = t[0] s = s.replace(" ", " ") p = subprocess.Popen(['pandoc', '--from=html', '--to=rst'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) ret = p.communicate(s)[0] # postprocess ret = ret.replace(os.linesep, "\n") if ret.e...
447,333
def htmlBlock(s,l,t): import subprocess eout(" converting HTML with pandoc") # preprocess s = t[0] s = s.replace(" ", " ") p = subprocess.Popen(['pandoc', '--from=html', '--to=rst'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) ret = p.communicate(s)[0] # postprocess ret = ret.replace(os.linesep, "\n") if ret.e...
def htmlBlock(s,l,t): import subprocess eout(" converting HTML with pandoc") # preprocess s = t[0] s = s.replace(" ", " ") p = subprocess.Popen(['pandoc', '--from=html', '--to=rst'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) ret = p.communicate(s)[0] # postprocess ret = ret.replace(os.linesep, "\n") if ret.e...
447,334
def fixPng(): return
def fixPng(): return
447,335
def fixPng(): return
def fixPng(): return
447,336
def addId(self, node, inFunction, assembledId, assembled, runtime, loadtime, lineno, variants): if inFunction: target = runtime else: target = loadtime
def addId(self, inFunction, assembledId, runtime, loadtime, lineno): if inFunction: target = runtime else: target = loadtime
447,337
def addId(self, node, inFunction, assembledId, assembled, runtime, loadtime, lineno, variants): if inFunction: target = runtime else: target = loadtime
def addId(self, node, inFunction, assembledId, assembled, runtime, loadtime, lineno, variants): if inFunction: target = runtime else: target = loadtime
447,338
def followCallDeps(self, node, fileId, assembledId): if (assembledId and assembledId in self._classesObj and # we have a class id assembledId != fileId and self.context['jobconf'].get("dependencies/follow-static-initializers", False) and node.hasParentContext("call/operand") # it's a method call ): return True r...
def followCallDeps(self, node, fileId, assembledId): if (assembledId and assembledId in self._classesObj and # we have a class id assembledId != fileId and self.context['jobconf'].get("dependencies/follow-static-initializers", False) and node.hasParentContext("call/operand") # it's a method call ): return True r...
447,339
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
447,340
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
447,341
def getTranslationData(self, classList, variants, targetLocales): # Generate POT file to filter PO files self._console.debug("Compiling filter...") pot = self.getPotFile(classList, variants)
def getTranslationData(self, classList, variants, targetLocales): # Generate POT file to filter PO files self._console.debug("Compiling filter...") pot = self.getPotFile(classList, variants)
447,342
def getTagsFromJsFile(fname): fileH = open(fname,"rU") tags = [] for line in fileH: reg = re.compile('^#tag\((.*)\)'); match = reg.search(line); if match: if match.group(1): tags.append(match.group(1)); fileH.close() return tags
def getTagsFromJsFile(fname): fileH = open(fname,"rU") tags = set([]) for line in fileH: reg = re.compile('^#tag\((.*)\)'); match = reg.search(line); if match: if match.group(1): tags.append(match.group(1)); fileH.close() return tags
447,343
def getTagsFromJsFile(fname): fileH = open(fname,"rU") tags = [] for line in fileH: reg = re.compile('^#tag\((.*)\)'); match = reg.search(line); if match: if match.group(1): tags.append(match.group(1)); fileH.close() return tags
def getTagsFromJsFile(fname): fileH = open(fname,"rU") tags = [] for line in fileH: reg = re.compile('^#tag\((.*)\)'); match = reg.search(line); if match: if match.group(1): tags.append(match.group(1)); fileH.close() return tags
447,344
def getTagsFromJsFile(fname): fileH = open(fname,"rU") tags = [] for line in fileH: reg = re.compile('^#tag\((.*)\)'); match = reg.search(line); if match: if match.group(1): tags.append(match.group(1)); fileH.close() return tags
def getTagsFromJsFile(fname): fileH = open(fname,"rU") tags = [] for line in fileH: reg = re.compile('^#tag\((.*)\)'); match = reg.search(line); if match: if match.group(1): tags.add(match.group(1)); fileH.close() return tags
447,345
def main(dist, scan): res = "" structurize = False firstCategory = True for category in os.listdir(scan): if category in [".svn", ".DS_Store"]: continue ext = os.path.splitext(category)[1] if ext == ".html" or ext == ".js": continue if not firstCategory: res += "}," res += "{" res += "\"classname\":\""+category+"\"...
def main(dist, scan): res = "" structurize = False firstCategory = True for category in os.listdir(scan): if category in [".svn", ".DS_Store"]: continue ext = os.path.splitext(category)[1] if ext == ".html" or ext == ".js": continue if not firstCategory: res += "}," res += "{" res += "\"classname\":\""+category+"\"...
447,346
def runSimulation(self): self._console.info("Running Simulation...") javaBin = "java" javaClassPath = "-cp " configClassPath = self._job.get("simulate/java-classpath", []) qxSeleniumPath = self._job.get("simulate/qxselenium-path", False) if qxSeleniumPath: configClassPath.append(qxSeleniumPath) classPathSeparator = "...
def runSimulation(self): self._console.info("Running Simulation...") javaBin = "java" javaClassPath = "-cp " configClassPath = self._job.get("simulate/java-classpath", []) qxSeleniumPath = self._job.get("simulate/qxselenium-path", False) if qxSeleniumPath: configClassPath.append(qxSeleniumPath) classPathSeparator = "...
447,347
def __init__(self, repoDir, config=None): """Create a new repository instance by scanning a directory containing qooxdoo libraries. By default, all libraries found will be included. Optionally, specific libraries or versions thereof can be selected using a configuration dictionary - see config.demo.json in the contrib ...
def __init__(self, repoDir, config=None): """Create a new repository instance by scanning a directory containing qooxdoo libraries. By default, all libraries found will be included. Optionally, specific libraries or versions thereof can be selected using a configuration dictionary - see config.demo.json in the contrib ...
447,348
def getLibraries(self, processLibs): console.info("Processing repository in %s" %self.dir) libraries = {} for root, dirs, files in os.walk(self.dir, topdown=True): for name in dirs[:]: # ignore subdirectories and SVN cruft if root != self.dir or name[0] == ".": dirs.remove(name) console.outdent() continue # only proce...
def getLibraries(self, processLibs): console.info("Processing repository in %s" %self.dir) libraries = {} for root, dirs, files in os.walk(self.dir, topdown=True): for name in dirs[:]: # ignore subdirectories and SVN cruft if root != self.dir or name[0] == ".": dirs.remove(name) console.outdent() continue # only proce...
447,349
def getLibraries(self, processLibs): console.info("Processing repository in %s" %self.dir) libraries = {} for root, dirs, files in os.walk(self.dir, topdown=True): for name in dirs[:]: # ignore subdirectories and SVN cruft if root != self.dir or name[0] == ".": dirs.remove(name) console.outdent() continue # only proce...
def getLibraries(self, processLibs): console.info("Processing repository in %s" %self.dir) libraries = {} for root, dirs, files in os.walk(self.dir, topdown=True): for name in dirs[:]: # ignore subdirectories and SVN cruft if root != self.dir or name[0] == ".": dirs.remove(name) console.outdent() continue # only proce...
447,350
def getLibraries(self, processLibs): console.info("Processing repository in %s" %self.dir) libraries = {} for root, dirs, files in os.walk(self.dir, topdown=True): for name in dirs[:]: # ignore subdirectories and SVN cruft if root != self.dir or name[0] == ".": dirs.remove(name) console.outdent() continue # only proce...
def def isSelectedLibrary(self, libraryName): if not "libraries" in self.filter: return True wantedLibraries = self.filter["libraries"] if "*" in wantedLibraries or libraryName in wantedLibraries: return True else: return False def isSelectedVersion(self, libraryName, libraryVersion): if not "libraries" in self.filt...
447,351
def buildAllDemos(self, demoVersion="build", demoBrowser=None): 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.h...
def buildAllDemos(self, demoVersion="build", demoBrowser=None): demoData = [] for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library: version = library[versionName] if not version.hasDemoDir: continu...
447,352
def buildAllDemos(self, demoVersion="build", demoBrowser=None): 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.h...
def buildAllDemos(self, demoVersion="build", demoBrowser=None): 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.h...
447,353
def getDemoData(self, library, version, variant): demoDict = { "name": version + "-" + variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library].versions[version].getManifest()["info"]["qooxdoo-versions"] for ver in qo...
def getDemoData(self, library, version, variant): demoDict = { "name": version + "-" + variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library][version].getManifest()["info"]["qooxdoo-versions"] for ver in qooxdooVers...
447,354
def getDemoData(self, library, version, variant): demoDict = { "name": version + "-" + variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library].versions[version].getManifest()["info"]["qooxdoo-versions"] for ver in qo...
def getDemoData(self, library, version, variant): demoDict = { "name": version + "-" + variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library].versions[version].getManifest()["info"]["qooxdoo-versions"] for ver in qo...
447,355
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, versionName, libraryName, path): self.versionName = versionName self.libraryName = libraryName self.path = path self.hasDemoDir = False self.demoVariants = self.getDemoVariants() self.demoBuildStatus = {} # TODO self.hasTestDir = False self.hasReadmeFile = False self.hasGenerator = False self.checkS...
447,356
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): 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,357
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): 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,358
def getLintResult(self): try: return self.lintResult except AttributeError: pass from lintRunner import QxLint class LintOpts: def __init__(self,workdir,mailto = None): self.workdir = workdir self.mailto = mailto self.outputfile = None lintOpts = LintOpts(self.path) lint = QxLint(lintOpts) self.lintResult = lint.dat...
def getLintResult(self): if not self.hasGenerator: raise RuntimeError, "%s %s has no generate.py script!" %(self.libraryName, self.versionName) from lintRunner import QxLint class LintOpts: def __init__(self,workdir,mailto = None): self.workdir = workdir self.mailto = mailto self.outputfile = None lintOpts = LintOp...
447,359
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.library.dir, 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("Building %s version of demo variant %s for library %s version %s" %(demoVersion,demoVariant, self.libraryName, self....
447,360
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 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
447,361
def main(): (options,args) = getComputedConf() config = None if options.configfile: configFile = codecs.open(options.configfile, 'r', 'utf-8') configJson = configFile.read() config = json.loads(configJson) repository = Repository(options.workdir, config) if options.joblist: jobs = options.joblist.split(",") for job ...
def main(): (options,args) = getComputedConf() config = None if options.configfile: config = getDataFromJsonFile(options.configfile) repository = Repository(options.workdir, config) if options.joblist: jobs = options.joblist.split(",") for job in jobs: if job[:6] == "demos-": if options.demobrowser: if not os.path.i...
447,362
def __init__(self, name, path, library): self.name = name self.path = path self.parent = library self.manifest = self._getManifest() self.readme = self._getReadme() self.data = { "classname" : self.name, "tests" : [], "manifest" : self.manifest, "readme" : self.readme } self.parent.data["children"].append(self.data) ...
def __init__(self, name, path, library): self.name = name self.path = path self.parent = library self.manifest = self._getManifest() self.readme = self._getReadme() self.data = { "classname" : self.name, "tests" : [], "manifest" : self.manifest, "readme" : self.readme } self.parent.data["children"].append(self.data) ...
447,363
def getLintResult(self): if not self.hasGenerator: raise Exception("%s %s has no generate.py script!" %(self.parent.name, self.name)) from lintRunner import QxLint class LintOpts: def __init__(self,workdir,mailto = None): self.workdir = workdir self.mailto = mailto self.outputfile = None lintOpts = LintOpts(self.pat...
def getLintResult(self): if not self.hasGenerator: raise Exception("%s %s has no generate.py script!" %(self.parent.name, self.name)) from lintRunner import QxLint class LintOpts: def __init__(self,workdir,mailto = None): self.workdir = workdir self.mailto = mailto self.outputfile = None lintOpts = LintOpts(self.pat...
447,364
def __init__(self,workdir,mailto = None): self.workdir = workdir self.mailto = mailto self.outputfile = None
defself.ignoreErrors = ["Protected data field"] __init__(self,workdir,mailtoself.ignoreErrors = ["Protected data field"] =self.ignoreErrors = ["Protected data field"] None):self.ignoreErrors = ["Protected data field"] self.workdirself.ignoreErrors = ["Protected data field"] =self.ignoreErrors = ["Protected data fi...
447,365
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,366
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ...
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent()for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = ...
447,367
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ...
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ...
447,368
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ...
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ...
447,369
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ...
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData ...
447,370
def mapResourcesToClasses(self, libs, classes): ## # map a Resource obj against a set of resource id patterns def checkPatts(res, hints): for hint in hints: if hint.regex.search(res.id): hint.seen = True # mark asset hint as fullfilled by a resource return True return False
def mapResourcesToClasses(self, libs, classes): ## # map a Resource obj against a set of resource id patterns def checkPatts(res, hints): for hint in hints: if hint.regex.search(res.id): hint.seen = True # mark asset hint as fullfilled by a resource return True return False
447,371
def __init__(self, logFile, ignoreStrings=None): if not logFile: raise Exception("No log file specified!") if not(os.path.exists(logFile)): raise Exception("Specified log file does not exist!") self.log = open(logFile, "r") self.ignore = None if ignoreStrings: for string in ignoreStrings: try: reg = re.compile(strin...
def __init__(self, logFile, ignoreStrings=None): if not logFile: raise Exception("No log file specified!") if not(os.path.exists(logFile)): raise Exception("Specified log file does not exist!") self.log = open(logFile, "r") self.ignore = [] if ignoreStrings: for string in ignoreStrings: try: reg = re.compile(string)...
447,372
def getLogentryList(self, logEntries): logentryList = [] for entry in logEntries: ignore = False if self.ignore: for reg in self.ignore: found = reg.search(entry) if found: ignore = True continue if ignore: continue if 'level-' in entry or "testResult" in entry: entryDict = { "level" : "info", "message" : entry } if "...
def getLogentryList(self, logEntries): logentryList = [] for entry in logEntries: ignore = False if len(self.ignore) > 0: for reg in self.ignore: found = reg.search(entry) if found: ignore = True continue if ignore: continue if 'level-' in entry or "testResult" in entry: entryDict = { "level" : "info", "message" : ent...
447,373
def listJobTriggers(): return { "api" : { "type" : "JClassDepJob" }, "collect-environment-info" : { "type" : "JSimpleJob" },
def listJobTriggers(): return { "api" : { "type" : "JCompileJob", }, "collect-environment-info" : { "type" : "JSimpleJob" },
447,374
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = simplejson.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 = simplejson.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
447,375
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = simplejson.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 = simplejson.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
447,376
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = simplejson.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 = simplejson.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
447,377
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = simplejson.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 = simplejson.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
447,378
def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = simplejson.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 = simplejson.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
447,379
def runApiData(self, classList): apiPath = self._job.get("api/path") if not apiPath: return
def runApiData(self, classListProducer): apiPath = self._job.get("api/path") if not apiPath: return
447,380
def runApiData(self, classList): apiPath = self._job.get("api/path") if not apiPath: return
def runApiData(self, classList): apiPath = self._job.get("api/path") if not apiPath: return
447,381
def computeClassList(includeWithDeps, excludeWithDeps, includeNoDeps, excludeNoDeps, variants, verifyDeps=False, script=None): self._console.info("Resolving dependencies...") self._console.indent() classList = self._depLoader.getClassList(includeWithDeps, excludeWithDeps, includeNoDeps, excludeNoDeps, variants, verifyD...
def computeClassList(includeWithDeps, excludeWithDeps, includeNoDeps, excludeNoDeps, variants, verifyDeps=False, script=None): self._console.info("Resolving dependencies") self._console.indent() classList = self._depLoader.getClassList(includeWithDeps, excludeWithDeps, includeNoDeps, excludeNoDeps, variants, verifyDeps...
447,382
def depsToProviderFormat(classDepsIter, depsLogConf): data = {} # Class deps for (packageId, classId, depId, loadOrRun) in classDepsIter: if classId not in data: data[classId] = {} data[classId]["load"] = [] data[classId]["run"] = []
def depsToProviderFormat(classDepsIter, depsLogConf): data = {} # Class deps for (packageId, classId, depId, loadOrRun) in classDepsIter: if classId not in data: data[classId] = {} data[classId]["load"] = [] data[classId]["run"] = []
447,383
def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except Exception, e: console.error("Could not read manifest file %s" %manifestPath) console.indent() console.e...
def getLibraries(self, manifests): console.info("Checking manifests to find valid libraries...") libraries = {} console.indent() for manifestPath in manifests: try: manifest = getDataFromJsonFile(manifestPath) except Exception, e: console.error("Could not read manifest file %s" %manifestPath) console.indent() console.e...
447,384
def getDemoData(self, library, version, variant): demoDict = { "name": variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library][version].getManifest()["info"]["qooxdoo-versions"] for ver in qooxdooVersions: demoDict["...
def getDemoData(self, library, version, variant): demoDict = { "name": variant + ".html", "nr": variant.capitalize(), "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library][version].getManifest()["info"]["qooxdoo-versions"] for ver in qooxdooVersions: demoDict["tags"].append("qxVe...
447,385
def getDemoData(self, library, version, variant): demoDict = { "name": variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library][version].getManifest()["info"]["qooxdoo-versions"] for ver in qooxdooVersions: demoDict["...
def getDemoData(self, library, version, variant): demoDict = { "name": variant + ".html", "nr": variant.capitalize(), "tags": [library], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library][version].getManifest()["info"]["qooxdoo-versions"] for ver in qooxdooVersions: demoDict["...
447,386
def __init__(self, stream): super(Scanner, self).__init__(stream) self.next_start = 0
def __init__(self, stream): super(Scanner, self).__init__(stream) self.next_start = 0
447,387
def __init__(self, stream): super(Scanner, self).__init__(stream) self.next_start = 0
def __init__(self, stream): super(Scanner, self).__init__(stream) self.next_start = 0
447,388
def __init__(self, stream): super(Scanner, self).__init__(stream) self.next_start = 0
def __init__(self, stream): super(Scanner, self).__init__(stream) self.next_start = 0
447,389
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
447,390
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
447,391
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
447,392
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
447,393
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
def depsAvailWhereTarget (searchPackage, targetPackage): for depsPackage in searchPackage.packageDeps: if not isCommonAndGreaterPackage(targetPackage, depsPackage): #if not targetPackage.id & depsPackage.id == targetPackage.id: return False return True
447,394
def _getData(self): libName = self.parent.parent.name libVersion = self.parent.name demoDict = { "name" : self.name + ".html", "nr": self.name.capitalize(), "title": libName + " " + libVersion + " " + self.name, "tags" : [ libVersion ], "manifest" : self.manifest }
def _getData(self): libName = self.parent.parent.name libVersion = self.parent.name demoDict = { "name" : self.name, "nr": self.name.capitalize(), "title": libName + " " + libVersion + " " + self.name, "tags" : [ libVersion ], "manifest" : self.manifest }
447,395
def _getData(self): libName = self.parent.parent.name libVersion = self.parent.name demoDict = { "name" : self.name + ".html", "nr": self.name.capitalize(), "title": libName + " " + libVersion + " " + self.name, "tags" : [ libVersion ], "manifest" : self.manifest }
def _getData(self): libName = self.parent.parent.name libVersion = self.parent.name demoDict = { "name" : self.name + ".html", "nr": self.name.capitalize(), "title": libName + " " + libVersion + " " + self.name, "tags" : [ libName, libVersion ], "manifest" : self.manifest }
447,396
def passesOutputFilter(resId): # must match some include expressions if not filter(None, [x.search(resId) for x in inclregexps]): # [None, None, _sre.match, None, _sre.match, ...] return False # must not match any exclude expressions if filter(None, [x.search(resId) for x in exclregexps]): return False return True
def passesOutputFilter(resId): # must match some include expressions if not filter(None, [x.search(resId) for x in inclregexps]): # [None, None, _sre.match, None, _sre.match, ...] return False # must not match any exclude expressions if filter(None, [x.search(resId) for x in exclregexps]): return False return True
447,397
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,398
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,399