bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def copyResource(res): filetool.directory(approot+"/resource/"+os.path.dirname(res)) shutil.copy("source/resource/"+res, approot+"/resource/"+res) return
def copyResource(res): filetool.directory(approot+"/resource/"+os.path.dirname(res)) shutil.copy("source/resource/"+res, approot+"/resource/"+res) return
446,800
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, a dictionary containing library/directory names as keys and a list of library version names/subdirectories can be provided, e....
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, a dictionary containing library/directory names as keys and a list of library version names/subdirectories can be provided, e....
446,801
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, a dictionary containing library/directory names as keys and a list of library version names/subdirectories can be provided, e....
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, a dictionary containing library/directory names as keys and a list of library version names/subdirectories can be provided, e....
446,802
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...
446,803
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) continue # only process selected librar...
446,804
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...
446,805
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...
446,806
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...
446,807
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 proc...
446,808
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...
446,809
def __init__(self, repository = None, libraryDir = None, libraryVersions = [] ): if not (libraryDir and repository): raise RuntimeError, "Repository and library directory must be defined!" self.repository = repository self.dir = libraryDir self.path = os.path.join(self.repository.dir, self.dir) self.versions = self.get...
def __init__(self, repository = None, libraryDir = None, restrictions = None): if not (libraryDir and repository): raise RuntimeError, "Repository and library directory must be defined!" self.repository = repository self.dir = libraryDir self.path = os.path.join(self.repository.dir, self.dir) self.versions = self.getVe...
446,810
def __init__(self, repository = None, libraryDir = None, libraryVersions = [] ): if not (libraryDir and repository): raise RuntimeError, "Repository and library directory must be defined!" self.repository = repository self.dir = libraryDir self.path = os.path.join(self.repository.dir, self.dir) self.versions = self.get...
def __init__(self, repository = None, libraryDir = None, libraryVersions = [] ): if not (libraryDir and repository): raise RuntimeError, "Repository and library directory must be defined!" self.repository = repository self.dir = libraryDir self.path = os.path.join(self.repository.dir, self.dir) self.versions = self.get...
446,811
def getVersions(self, libraryVersions): versions = {} libraryPath = os.path.join(self.repository.dir, self.dir) for root, dirs, files in os.walk(libraryPath, topdown=True): for name in dirs[:]: console.indent() # only check direct subfolders of the library, ignore .svn etc. if root != libraryPath or name[0] == ".": dir...
def getVersions(self, libraryVersions): versions = {} libraryPath = os.path.join(self.repository.dir, self.dir) for root, dirs, files in os.walk(libraryPath, topdown=True): for name in dirs[:]: console.indent() # only check direct subfolders of the library, ignore .svn etc. if root != libraryPath or name[0] == ".": dir...
446,812
def main(): (options,args) = getComputedConf() config = None if options.configfile: configFile = codecs.open(options.configfile, 'r', 'utf-8') configJson = statusFile.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: 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 ...
446,813
def followCallDeps(self, node, fileId, className): if (className and className in self._classesObj and # we have a class id className != fileId and self.context['jobconf'].get("dependencies/follow-static-initializers", False) and #node.hasParentContext("call/operand") # it's a method call node.hasParentContext("...
def followCallDeps(self, node, fileId, className): if (className and className in self._classesObj and # we have a class id className != fileId and self.context['jobconf'].get("dependencies/follow-static-initializers", False) and #node.hasParentContext("call/operand") # it's a method call node.hasParentContext("...
446,814
def followCallDeps(self, node, fileId, className): if (className and className in self._classesObj and # we have a class id className != fileId and self.context['jobconf'].get("dependencies/follow-static-initializers", False) and #node.hasParentContext("call/operand") # it's a method call node.hasParentContext("...
deffollowCallDeps(self,node,fileId,className):if(classNameandclassNameinself._classesObjand#wehaveaclassidclassName!=fileIdandself.context['jobconf'].get("dependencies/follow-static-initializers",False)and#node.hasParentContext("call/operand")#it'samethodcallnode.hasParentContext("keyvalue/value/call/operand")#it'samet...
446,815
def main(): global options parser = optparse.OptionParser(option_class=ExtendAction) usage_str = '''%prog [options] job,...
def main(): global options parser = optparse.OptionParser(option_class=ExtendAction) usage_str = '''%prog [options] job,...
446,816
def getRevision(self, contrib): # returns: (updatedFromInternet?, currentRevision) rev_url = "http://qooxdoo-contrib.svn.sourceforge.net/viewvc/qooxdoo-contrib/trunk/qooxdoo-contrib/%s/" % contrib data = urllib.urlopen(rev_url) for line in data: match = re.compile("\/viewvc\/qooxdoo-contrib\?view\=rev\&revision\=([...
def getRevision(self, contrib): # returns: (updatedFromInternet?, currentRevision) rev_url = "http://qooxdoo-contrib.svn.sourceforge.net/viewvc/qooxdoo-contrib/trunk/qooxdoo-contrib/%s/" % contrib data = urllib.urlopen(rev_url) for line in data: match = self.revisionpatt.search(line) if match: return match.group(1)
446,817
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants, recurse=True):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants, recurse=True):
446,818
def getTransitiveDeps(self, depsItem, variants):
def getTransitiveDeps(self, depsItem, variants):
446,819
def getTransitiveDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,820
def getTransitiveDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,821
def getTransitiveDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(dependencyItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,822
def dependencies1(self, variants):
def dependencies1(self, variants):
446,823
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 in clsDepsObj.data['require']: console.warn("%s: #require(%s) is ...
446,824
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 not dep.isLoadDep: if dep in clsDepsObj.data ['optional']: pass elif dep in loadDeps: pass elif dep in clsDepsObj.data ['use']...
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 not dep.isLoadDep: if dep in clsDepsObj.data ['optional']: pass elif dep.name in map(attrgetter("name"),loadDeps): pass elif d...
446,825
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 not dep.isLoadDep: if dep in clsDepsObj.data ['optional']: pass elif dep in loadDeps: pass elif dep in clsDepsObj.data ['use']...
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 not dep.isLoadDep: if dep in clsDepsObj.data ['optional']: pass elif dep in loadDeps: pass elif dep in clsDepsObj.data ['use']...
446,826
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 not dep.isLoadDep: if dep in clsDepsObj.data ['optional']: pass elif dep in loadDeps: pass elif dep in clsDepsObj.data ['use']...
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 not dep.isLoadDep: if dep in clsDepsObj.data ['optional']: pass elif dep in loadDeps: pass elif dep in clsDepsObj.data ['use']...
446,827
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,828
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,829
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,830
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,831
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,832
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
def getTransitiveDepsR(depsItem, variants, totalDeps): # We don't add the in-param to the global result classId = dependencyItem.name methodId= dependencyItem.attribute
446,833
def processValueNode(node): # this is actually better than the checks from followCallDeps() # TODO: recursive deps: every call that is not inFunction!? inFunction = True if node.type == "function" else False nodedeps = getNodeDeps (node, inFunction) return nodedeps
def processValueNode(valuenode): # this is actually better than the checks from followCallDeps() # TODO: recursive deps: every call that is not inFunction!? inFunction = True if node.type == "function" else False nodedeps = getNodeDeps (node, inFunction) return nodedeps
446,834
def __init__(self, name, attribute, requestor, line=-1, isLoadDep=False): self.name = name # "qx.Class" [dependency to (class)] assert isinstance(name, types.StringTypes) self.attribute = attribute # "define" [dependency to (attribute)] self.requestor = requestor # "gui.Application" [the o...
def __init__(self, name, attribute, requestor, line=-1, isLoadDep=False): self.name = name # "qx.Class" [dependency to (class)] assert isinstance(name, types.StringTypes) self.attribute = attribute # "define" [dependency to (attribute)] self.requestor = requestor # "gui.Application" [the o...
446,835
def getAttributeDeps(self, attrib): # attrib="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] if attribId in data: res = data[attribId] else: for submap in ('statics', 'memb...
def getAttributeDeps(self, attrib): # attrib="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] if attribId in data: res = data[attribId] else: for submap in ('statics', 'memb...
446,836
def getAttributeDeps(self, attrib): # attrib="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] if attribId in data: res = data[attribId] else: for submap in ('statics', 'memb...
def getAttributeDeps(self, attrib): # attrib="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 ('statics', ...
446,837
def buildAllDemos(self, selectedVariant=None): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: versio...
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
446,838
def buildAllDemos(self, selectedVariant=None): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: versio...
def buildAllDemos(self, selectedVariant=None): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: versio...
446,839
def buildAllDemos(self, selectedVariant=None): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: versio...
defbuildAllDemos(self,selectedVariant=None):demoData=[]ifself.config:if"demobrowser"inself.config:demoBrowser=TrueforlibraryNameinself.libraries:library=self.libraries[libraryName]libraryData={"classname":libraryName,"tests":[]}validDemo=FalseforversionNameinlibrary.versions:version=library.versions[versionName]ifnotve...
446,840
# this duplicates codef from Locale.getTranslation
# this duplicates codef from Locale.getTranslation
446,841
def mapResourcesToClasses(self, libs, classes): # Resource list resources = [] for libObj in libs: resources.extend(libObj.getResources()) # weightedness of same res id through order of script.libraries # remove unwanted files exclpatt = re.compile("\.(?:meta|py)$", re.I) for res in resources[:]: if exclpatt.search(re...
def mapResourcesToClasses(self, libs, classes): # Resource list resources = [] for libObj in libs: resources.extend(libObj.getResources()) # weightedness of same res id through order of script.libraries # remove unwanted files exclpatt = re.compile("\.(?:meta|py)$", re.I) for res in resources[:]: if exclpatt.search(re...
446,842
def mapResourcesToClasses(self, libs, classes): # Resource list resources = [] for libObj in libs: resources.extend(libObj.getResources()) # weightedness of same res id through order of script.libraries # remove unwanted files exclpatt = re.compile("\.(?:meta|py)$", re.I) for res in resources[:]: if exclpatt.search(re...
def mapResourcesToClasses(self, libs, classes): # Resource list resources = [] for libObj in libs: resources.extend(libObj.getResources()) # weightedness of same res id through order of script.libraries # remove unwanted files exclpatt = re.compile("\.(?:meta|py)$", re.I) for res in resources[:]: if exclpatt.search(re...
446,843
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"
446,844
def getCombinedDeps(self, fileId, variants, buildType="", stripSelfReferences=True, projectClassNames=True):
def getCombinedDeps(self, fileId, variants, buildType="", stripSelfReferences=True, projectClassNames=True):
446,845
def _copyResources(self, srcPath, targPath): # targPath *has* to be directory -- there is now way of telling a # non-existing target file from a non-existing target directory :-) generator = self #generator._console.debug("_copyResource: %s => %s" % (srcPath, targPath)) copier = robocopy.PyRobocopier(generator._consol...
def _copyResources(self, srcPath, targPath): # targPath *has* to be directory -- there is now way of telling a # non-existing target file from a non-existing target directory :-) generator = self #generator._console.debug("_copyResource: %s => %s" % (srcPath, targPath)) copier = robocopy.PyRobocopier(generator._consol...
446,846
def _copyResources(self, srcPath, targPath): # targPath *has* to be directory -- there is now way of telling a # non-existing target file from a non-existing target directory :-) generator = self #generator._console.debug("_copyResource: %s => %s" % (srcPath, targPath)) #copier = copytool.CopyTool(generator._console) ...
def _copyResources(self, srcPath, targPath): # targPath *has* to be directory -- there is now way of telling a # non-existing target file from a non-existing target directory :-) generator = self #generator._console.debug("_copyResource: %s => %s" % (srcPath, targPath)) #copier = copytool.CopyTool(generator._console) ...
446,847
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, a dictionary containing library/directory names as keys and a list of library version names/subdirectories can be provided, e....
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, a dictionary containing library/directory names as keys and a list of library version names/subdirectories can be provided, e....
446,848
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, a dictionary containing library/directory names as keys and a list of library version names/subdirectories can be provided, e....
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, a dictionary containing library/directory names as keys and a list of library version names/subdirectories can be provided, e....
446,849
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
def buildAllDemos(self, demoVersion="build", demoBrowser=False): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in librar...
446,850
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
def buildAllDemos(self): 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.hasDemoDir: continue demoVariants = ver...
446,851
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
446,852
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
446,853
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
def buildAllDemos(self): demoData = [] if self.config: if "demobrowser" in self.config: demoBrowser = True for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "tests": [] } validDemo = False for versionName in library.versions: version = library.versions[v...
446,854
def copyHtmlFile(self, libraryName, versionName, variantName, 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", "demo", "template.html") ...
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...
446,855
def copyHtmlFile(self, libraryName, versionName, variantName, 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", "demo", "template.html") ...
def copyHtmlFile(self, libraryName, versionName, variantName, 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", "demo", "template.html") ...
446,856
def copyHtmlFile(self, libraryName, versionName, variantName, 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", "demo", "template.html") ...
def copyHtmlFile(self, libraryName, versionName, variantName, 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", "demo", "template.html") ...
446,857
def copyHtmlFile(self, libraryName, versionName, variantName, 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", "demo", "template.html") ...
defcopyHtmlFile(self,libraryName,versionName,variantName,demobrowserDir=None):ifnotdemobrowserDir:demobrowserDir=os.path.join(self.dir,"demobrowser")console.info("CopyingHTMLfiletodemobrowserdirectory%s"%demobrowserDir)sourceFilePath=os.path.join(demobrowserDir,"source","demo","template.html")sourceFile=codecs.open(sou...
446,858
def copyHtmlFile(self, libraryName, versionName, variantName, 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", "demo", "template.html") ...
def copyHtmlFile(self, libraryName, versionName, variantName, 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", "demo", "template.html") ...
446,859
def getDemoData(self, library, version, variant): demoDict = { "name": version + "-" + variant + ".html", "nr": variant.capitalize(), "tags": [ library #TODO: get more tags ], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library].versions[version].getManifest()["info"]["qooxdoo-v...
def getDemoData(self, library, version, variant): demoDict = { "name": version + "-" + variant + ".html", "nr": variant.capitalize(), "tags": [ library #TODO: get more tags ], "title": library + " " + version + " " + variant } qooxdooVersions = self.libraries[library].versions[version].getManifest()["info"]["qooxdoo-v...
446,860
def buildDemo(self, demoVariant = "default"): 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") + " build" console.info("Building demo variant %s for library %s version %s...
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") + " build" console.info("Building demo variant %s fo...
446,861
def buildDemo(self, demoVariant = "default"): 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") + " build" console.info("Building demo variant %s for library %s version %s...
def buildDemo(self, demoVariant = "default"): 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 version of demo variant %s fo...
446,862
def buildDemo(self, demoVariant = "default"): 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") + " build" console.info("Building demo variant %s for library %s version %s...
def buildDemo(self, demoVariant = "default"): 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") + " build" console.info("Building demo variant %s for library %s version %s...
446,863
def getPackageData(package): data = {} data["resources"] = package.data.resources data = json.dumpsCode(data) data += ';\n' return data
def getPackageData(package): data = {} data["resources"] = package.data.resources data["translations"] = package.data.translations data["locales"] = package.data.locales data = json.dumpsCode(data) data += ';\n' return data
446,864
def buildShallowDeps():
def buildShallowDeps():
446,865
def attemptSplitIdentifier(context, assembled): # try qooxdoo classes first className, classAttribute = self._splitQxClass(assembled) if className: return className, classAttribute
def attemptSplitIdentifier(context, assembled): # try qooxdoo classes first className, classAttribute = self._splitQxClass(assembled) if className: return className, classAttribute
446,866
def attemptSplitIdentifier(context, assembled): # try qooxdoo classes first className, classAttribute = self._splitQxClass(assembled) if className: return className, classAttribute
def attemptSplitIdentifier(context, assembled): # try qooxdoo classes first className, classAttribute = self._splitQxClass(assembled) if className: return className, classAttribute
446,867
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...
446,868
def progress(self, pos, length): if self._levels[self._level] > self._levels["info"]: return
def progress(self, pos, length): if self._levels[self._level] > self._levels["info"]: return
446,869
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
446,870
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
446,871
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
446,872
def getMethodDepsR(classId, methodId, variants, deps): console.debug("%s#%s dependencies:" % (classId, methodId)) console.indent()
def getMethodDepsR(classId, methodId, variants, deps): console.debug("%s#%s dependencies:" % (classId, methodId)) console.indent()
446,873
def getMethodDepsR(classId, methodId, variants, deps): console.debug("%s#%s dependencies:" % (classId, methodId)) console.indent()
def getMethodDepsR(classId, methodId, variants, deps): console.debug("%s#%s dependencies:" % (classId, methodId)) console.indent()
446,874
def getMethodDepsR(classId, methodId, variants, deps): console.debug("%s#%s dependencies:" % (classId, methodId)) console.indent()
def getMethodDepsR(classId, methodId, variants, deps): console.debug("%s#%s dependencies:" % (classId, methodId)) console.indent()
446,875
def getMethodDepsR(classId, methodId, variants, deps): console.debug("%s#%s dependencies:" % (classId, methodId)) console.indent()
def getMethodDepsR(classId, methodId, variants, deps): console.debug("%s#%s dependencies:" % (classId, methodId)) console.indent()
446,876
def listJobTriggers(): return { "api" : { "type" : "JClassDepJob" }, "collect-environment-info" : { "type" : "JSimpleJob" },
def listJobTriggers(): return { "api" : { "type" : "JClassDepJob" }, "collect-environment-info" : { "type" : "JSimpleJob" },
446,877
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 = json.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s" % (variantSetNum+1, len(variantSets)))
446,878
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)))
446,879
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)))
446,880
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)))
446,881
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)))
446,882
def depsToJsonFile(classDepsIter, depsLogConf): data = {} for (packageId, classId, depId, loadOrRun) in classDepsIter: if classId not in data: data[classId] = {} data[classId]["load"] = [] data[classId]["run"] = []
def depsToJsonFile(classDepsIter, depsLogConf): data = {} for (packageId, classId, depId, loadOrRun) in classDepsIter: if classId not in data: data[classId] = {} data[classId]["load"] = [] data[classId]["run"] = []
446,883
def depsToFlareFile(classDepsIter, depsLogConf): data = {} for (packageId, classId, depId, loadOrRun) in classDepsIter: if classId not in data: data[classId] = {} data[classId]['name'] = classId data[classId]["size"] = 1000 data[classId]["imports"] = []
def depsToFlareFile(classDepsIter, depsLogConf): data = {} for (packageId, classId, depId, loadOrRun) in classDepsIter: if classId not in data: data[classId] = {} data[classId]['name'] = classId data[classId]["size"] = 1000 data[classId]["imports"] = []
446,884
def getClippedImagesDict(imageSpec): "create a dict with the clipped image file path as key, and an ImgInfoFmt object as value" imgDict = {} inputStruct = imageSpec['input'] for group in inputStruct: prefixSpec = group.get('prefix') prefix, altprefix = extractFromPrefixSpec(prefixSpec) if prefix: prefix = self._config....
def getClippedImagesDict(imageSpec): "create a dict with the clipped image file path as key, and an ImgInfoFmt object as value" imgDict = {} inputStruct = imageSpec['input'] for group in inputStruct: prefixSpec = group.get('prefix') prefix, altprefix = extractFromPrefixSpec(prefixSpec) if prefix: prefix = self._config....
446,885
def runDashlet(self, script):
def runDashlet(self, script):
446,886
def getTransitiveDepsR1(dependencyItem, variants, totalDeps):
def getTransitiveDepsR1(dependencyItem, variants, totalDeps):
446,887
def getTransitiveDepsR(dependencyItem, variants, totalDeps):
def getTransitiveDepsR(dependencyItem, variants, totalDeps):
446,888
def lookupUsedByDeps(packages, ):
def lookupUsedByDeps(packages, ):
446,889
def lookupUsedByDeps(packages, ):
def lookupUsedByDeps(packages, ):
446,890
def packagesOfFilesX(fileUri, packages): # returns list of lists, each containing destination file name of the corresp. package # npackages = [['script/gui-0.js'], ['script/gui-1.js'],...] file = os.path.basename(fileUri) loader_with_boot = self._job.get("packages/loader-with-boot", True) for packageId, package in enum...
def packagesOfFilesX(fileUri, packages): # returns list of lists, each containing destination file name of the corresp. package # npackages = [['script/gui-0.js'], ['script/gui-1.js'],...] file = os.path.basename(fileUri) loader_with_boot = self._job.get("packages/loader-with-boot", True) for packageId, package in enum...
446,891
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 ...
446,892
def writeI18NFiles(self, globalCodes, script):
def writeI18NFiles(self, globalCodes, script):
446,893
def writeI18NFiles(self, globalCodes, script):
def writeI18NFiles(self, globalCodes, script):
446,894
def writeI18NFiles(self, globalCodes, script):
def writeI18NFiles(self, globalCodes, script):
446,895
def writeI18NFiles(self, globalCodes, script):
def writeI18NFiles(self, globalCodes, script):
446,896
def __init__(self, rootNode, filename=""): self.root = rootNode self.filename = filename self.scopes = self._buildScopes() self._computeVariableUses()
def __init__(self, rootNode, filename=""): self.root = rootNode self.filename = filename scopes = self._buildScopes() self.scopes = scopes[0] self.scopetuples = scopes[1] self._computeVariableUses()
446,897
def _buildScopes(self): scopes = {} self.globalScope = Scope(self.root, self) scopes[self.root] = self.globalScope
def _buildScopes(self): scopes = {} self.globalScope = Scope(self.root, self) scopes[self.root] = self.globalScope
446,898
def _buildScopes(self): scopes = {} self.globalScope = Scope(self.root, self) scopes[self.root] = self.globalScope
def _buildScopes(self): scopes = {} self.globalScope = Scope(self.root, self) scopes[self.root] = self.globalScope
446,899