bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be appended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = "...
446,700
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,701
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,702
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,703
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,704
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,705
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,706
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,707
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,708
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,709
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,710
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
def _cif2str(self, _strFilename): """converts a cif dictionnary to a string according to the CIF syntax @param _strFilename: the name of the filename to be apppended in the header of the CIF file @type _strFilename: string @return : a sting that corresponds to the content of the CIF-file. @rtype: string """ sCifText = ...
446,711
def exists(self, sKey): """ Check if the key exists in the CIF and is non empty. @param sKey: CIF key @type sKey: string @param cif: CIF dictionnary @return: True if the key exists in the CIF dictionnary and is non empty @rtype: boolean """ bExists = False if self.has_key(sKey): if len(self[sKey]) >= 1: if self[sKey][0...
def exists(self, sKey): """ Check if the key exists in the CIF and is non empty. @param sKey: CIF key @type sKey: string @param cif: CIF dictionary @return: True if the key exists in the CIF dictionary and is non empty @rtype: boolean """ bExists = False if self.has_key(sKey): if len(self[sKey]) >= 1: if self[sKey][0] ...
446,712
def existsInLoop(self, sKey): """ Check if the key exists in the CIF dictionnary. @param sKey: CIF key @type sKey: string @param cif: CIF dictionnary @return: True if the key exists in the CIF dictionnary and is non empty @rtype: boolean """ if not self.exists("loop_"): return False bExists = False if not bExists: for ...
def existsInLoop(self, sKey): """ Check if the key exists in the CIF dictionary. @param sKey: CIF key @type sKey: string @param cif: CIF dictionnary @return: True if the key exists in the CIF dictionnary and is non empty @rtype: boolean """ if not self.exists("loop_"): return False bExists = False if not bExists: for i...
446,713
def existsInLoop(self, sKey): """ Check if the key exists in the CIF dictionnary. @param sKey: CIF key @type sKey: string @param cif: CIF dictionnary @return: True if the key exists in the CIF dictionnary and is non empty @rtype: boolean """ if not self.exists("loop_"): return False bExists = False if not bExists: for ...
def existsInLoop(self, sKey): """ Check if the key exists in the CIF dictionnary. @param sKey: CIF key @type sKey: string @param cif: CIF dictionary @return: True if the key exists in the CIF dictionary and is non empty @rtype: boolean """ if not self.exists("loop_"): return False bExists = False if not bExists: for i ...
446,714
def loadCHIPLOT(self, _strFilename): """Load the powder diffraction CHIPLOT file and returns the pd_CIF dictionnary in the object @param _strFilename: the name of the file to open @type _strFilename: string @return: the CIF object corresponding to the powder diffraction @rtype: dictionnary """ if not os.path.isfile(_s...
def loadCHIPLOT(self, _strFilename): """ Load the powder diffraction CHIPLOT file and returns the pd_CIF dictionary in the object @param _strFilename: the name of the file to open @type _strFilename: string @return: the CIF object corresponding to the powder diffraction @rtype: dictionnary """ if not os.path.isfile(_...
446,715
def loadCHIPLOT(self, _strFilename): """Load the powder diffraction CHIPLOT file and returns the pd_CIF dictionnary in the object @param _strFilename: the name of the file to open @type _strFilename: string @return: the CIF object corresponding to the powder diffraction @rtype: dictionnary """ if not os.path.isfile(_s...
def loadCHIPLOT(self, _strFilename): """Load the powder diffraction CHIPLOT file and returns the pd_CIF dictionnary in the object @param _strFilename: the name of the file to open @type _strFilename: string @return: the CIF object corresponding to the powder diffraction @rtype: dictionary """ if not os.path.isfile(_st...
446,716
def _readheader(self, infile): """ Parser based approach Gets all entries """
def _readheader(self, infile): """ Parser based approach Gets all entries """
446,717
def read(self, fname): """ Read in header into self.header and the data into self.data """ self.header = {} self.resetvals() infile = self._open(fname,"rb") self._readheader(infile) # Compute image size try: self.dim1 = int(self.header['Dim_1']) self.dim2 = int(self.header['Dim_2']) except: raise Exception("EDF file"...
def read(self, fname): """ Read in header into self.header and the data into self.data """ self.header = {} self.resetvals() infile = self._open(fname,"rb") self._readheader(infile) # Compute image size try: self.dim1 = int(self.header['Dim_1']) self.dim2 = int(self.header['Dim_2']) except: raise Exception("EDF file"...
446,718
def read(self, fname): """ Read in header into self.header and the data into self.data """ self.header = {} self.resetvals() infile = self._open(fname,"rb") self._readheader(infile) # Compute image size try: self.dim1 = int(self.header['Dim_1']) self.dim2 = int(self.header['Dim_2']) except: raise Exception("EDF file"...
def read(self, fname): """ Read in header into self.header and the data into self.data """ self.header = {} self.resetvals() infile = self._open(fname,"rb") self._readheader(infile) # Compute image size try: self.dim1 = int(self.header['Dim_1']) self.dim2 = int(self.header['Dim_2']) except: raise Exception("EDF file"...
446,719
def read(self, fname): """ Read in header into self.header and the data into self.data """ self.header = {} self.resetvals() infile = self._open(fname,"rb") self._readheader(infile) # Compute image size try: self.dim1 = int(self.header['Dim_1']) self.dim2 = int(self.header['Dim_2']) except: raise Exception("EDF file"...
def read(self, fname): """ Read in header into self.header and the data into self.data """ self.header = {} self.resetvals() infile = self._open(fname,"rb") self._readheader(infile) # Compute image size try: self.dim1 = int(self.header['Dim_1']) self.dim2 = int(self.header['Dim_2']) except: raise Exception("EDF file"...
446,720
def test_opens(self): min_date = "2010-01-01" self.campaign.stub_request("campaign_opens.json") opens = self.campaign.opens(min_date) self.assertEquals(len(opens.Results), 5) self.assertEquals(opens.Results[0].EmailAddress, "subs+6576576576@example.com") self.assertEquals(opens.Results[0].ListID, "512a3bc577a58fdf689c6...
def test_opens(self): min_date = "2010-01-01" self.campaign.stub_request("campaign_opens.json") opens = self.campaign.opens(min_date) self.assertEquals(len(opens.Results), 5) self.assertEquals(opens.Results[0].EmailAddress, "subs+6576576576@example.com") self.assertEquals(opens.Results[0].ListID, "512a3bc577a58fdf689c6...
446,721
def test_clicks(self): min_date = "2010-01-01" self.campaign.stub_request("campaign_clicks.json") clicks = self.campaign.clicks(min_date) self.assertEquals(len(clicks.Results), 3) self.assertEquals(clicks.Results[0].EmailAddress, "subs+6576576576@example.com") self.assertEquals(clicks.Results[0].URL, "http://video.goog...
def test_clicks(self): min_date = "2010-01-01" self.campaign.stub_request("campaign_clicks.json") clicks = self.campaign.clicks(min_date) self.assertEquals(len(clicks.Results), 3) self.assertEquals(clicks.Results[0].EmailAddress, "subs+6576576576@example.com") self.assertEquals(clicks.Results[0].URL, "http://video.goog...
446,722
def test_unsubscribes(self): min_date = "2010-01-01" self.campaign.stub_request("campaign_unsubscribes.json") unsubscribes = self.campaign.unsubscribes(min_date) self.assertEquals(len(unsubscribes.Results), 1) self.assertEquals(unsubscribes.Results[0].EmailAddress, "subs+6576576576@example.com") self.assertEquals(unsub...
def test_unsubscribes(self): min_date = "2010-01-01" self.campaign.stub_request("campaign_unsubscribes.json") unsubscribes = self.campaign.unsubscribes(min_date) self.assertEquals(len(unsubscribes.Results), 1) self.assertEquals(unsubscribes.Results[0].EmailAddress, "subs+6576576576@example.com") self.assertEquals(unsub...
446,723
def setUp(self): self.list_id = "98y2e98y289dh89h938389" self.segment = Segment(self.list_id)
def setUp(self): self.list_id = "98y2e98y289dh89h938389" self.segment = Segment(self.list_id)
446,724
def buildShallowDeps():
def buildShallowDeps():
446,725
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants, recurse=True):
def_analyzeClassDepsNode(self,node,loadtime,runtime,inFunction,variants,recurse=True):
446,726
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants, recurse=True):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants, recurse=True):
446,727
def dependencies(self, variants):
def dependencies(self, variants):
446,728
def getDeps(clsDepsObj): loaddeps = set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires = [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses = [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ign...
def getDeps(clsDepsObj): loaddeps= set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires= [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses= [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ignore'] if str(x...
446,729
def getDeps(clsDepsObj): loaddeps = set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires = [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses = [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ign...
def getDeps(clsDepsObj): loaddeps= set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires= [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses= [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ignore'] if str(x...
446,730
def getDeps(clsDepsObj): loaddeps = set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires = [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses = [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ign...
def getDeps(clsDepsObj): loaddeps = set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires = [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses= [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ignore'] ...
446,731
def getDeps(clsDepsObj): loaddeps = set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires = [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses = [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ign...
def getDeps(clsDepsObj): loaddeps= set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires= [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses= [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ignore'] if str(x...
446,732
def getDeps(clsDepsObj): loaddeps = set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires = [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses = [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ign...
def getDeps(clsDepsObj): loaddeps = set(clsDepsObj.data['require']) rundeps = set(clsDepsObj.data['use']) requires = [x.name for x in clsDepsObj.data['require'] if str(x.line)=="|hints|"] uses = [x.name for x in clsDepsObj.data['use'] if str(x.line)=="|hints|"] ignores = [x.name for x in clsDepsObj.data['ign...
446,733
def getNodeDeps(node, inFunction=True): ltime = rtime = [] # distinction is in the depsItems that populate this array self._analyzeClassDepsNode(node, ltime, rtime, inFunction, variants, recurse=False) return ltime
def getNodeDeps(node, inFunction=True): ltime = rtime = [] # distinction is in the depsItems that populate this array self._analyzeClassDepsNode(node, ltime, rtime, inFunction, variants, recurse=False) return ltime
446,734
def escape(st): """ Escape special chars and return the given string *st*. **Examples**: >>> escape('\\t and \\n and \\r and " and \\\\') '\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\' """ return st.replace('\\', r'\\')\ .replace('\t', r'\t')\ .replace('\r', r'\r')\ .replace('\n', r'\n')\ .replace('\"', r'\"')
def escape(st): """ Escape special chars and return the given string *st*. **Examples**: >>> escape('\\t and \\n and \\r and " and \\\\') '\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\' """ return st.replace('\t', r'\t')\ .replace('\r', r'\r')\ .replace('\n', r'\n')\ .replace('\"', r'\"')
446,735
def escape(st): """ Escape special chars and return the given string *st*. **Examples**: >>> escape('\\t and \\n and \\r and " and \\\\') '\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\' """ return st.replace('\\', r'\\')\ .replace('\t', r'\t')\ .replace('\r', r'\r')\ .replace('\n', r'\n')\ .replace('\"', r'\"')
def escape(st): """ Escape special chars and return the given string *st*. **Examples**: >>> escape('\\t and \\n and \\r and " and \\\\') '\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\' """ return st.replace('\\', r'\\')\ .replace('\t', r'\t')\ .replace('\r', r'\r')\ .replace('\n', r'\n')\
446,736
def unescape(st): """ Unescape special chars and return the given string *st*. **Examples**: >>> unescape('\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\') '\\t and \\n and \\r and " and \\\\' >>> unescape(r'\\n') '\\n' >>> unescape(r'\\\\n') '\\\\n' """ raw_strings = [ (r'\\n', r'\n', '\n'), (r'\\r', r'\r', '\r'),...
def unescape(st): """ Unescape special chars and return the given string *st*. **Examples**: >>> unescape('\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\') '\\t and \\n and \\r and " and \\\\' >>> unescape(r'\\n') '\\n' >>> unescape(r'\\\\n') '\\\\n' """ raw_strings = [ (r'\\n', r'\n', '\n'), (r'\\r', r'\r', '\r'),...
446,737
def followCallDeps(self, node, fileId, className): if (className and className in self._classesObj # we have a class id and className != fileId and self.context['jobconf'].get("dependencies/follow-static-initializers", False) and ( node.hasParentContext("keyvalue/value/call/operand") # it's a method call as map value...
def followCallDeps(self, node, fileId, className): if (className and className in self._classesObj # we have a class id and className != fileId and ( node.hasParentContext("keyvalue/value/call/operand") # it's a method call as map value or node.hasParentContext("keyvalue/value/instantiation/expression/call/operand")...
446,738
def replaceWithNamespace(imguri, liburi, libns): pre,libsfx,imgsfx = Path.getCommonPrefix(liburi, imguri) if imgsfx[0] == os.sep: imgsfx = imgsfx[1:] # strip leading '/' imgshorturi = os.path.join("${%s}" % libns, imgsfx) return imgshorturi
def replaceWithNamespace(imguri, liburi, libns): pre,libsfx,imgsfx = Path.getCommonPrefix(liburi, imguri) if imgsfx[0] == os.sep: imgsfx = imgsfx[1:] # strip leading '/' imgshorturi = os.path.join("${%s}" % libns, imgsfx) return imgshorturi
446,739
def extractAssetPart(libresuri, imguri): pre,libsfx,imgsfx = Path.getCommonPrefix(libresuri, imguri) # split libresuri from imguri if imgsfx[0] == os.sep: imgsfx = imgsfx[1:] # strip leading '/' return imgsfx # use the bare img suffix as its asset Id
def extractAssetPart(libresuri, imguri): pre,libsfx,imgsfx = Path.getCommonPrefix(libresuri, imguri) # split libresuri from imguri if imgsfx[0] == os.sep: imgsfx = imgsfx[1:] # strip leading '/' return imgsfx # use the bare img suffix as its asset Id
446,740
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) imgDict...
446,741
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...
446,742
def __init__(self, versionName, libraryName, path): self.versionName = versionName self.libraryName = libraryName self.path = path self.hasDemoDir = False self.demoVariants = self.getDemoVariants() self.demoBuildStatus = {} self.checkStructure()
def __init__(self, versionName, libraryName, path): self.versionName = versionName self.libraryName = libraryName self.path = path self.checkStructure() self.demoVariants = self.getDemoVariants() self.demoBuildStatus = {} self.checkStructure()
446,743
def __init__(self, versionName, libraryName, path): self.versionName = versionName self.libraryName = libraryName self.path = path self.hasDemoDir = False self.demoVariants = self.getDemoVariants() self.demoBuildStatus = {} self.checkStructure()
def __init__(self, versionName, libraryName, path): self.versionName = versionName self.libraryName = libraryName self.path = path self.hasDemoDir = False self.demoVariants = self.getDemoVariants() self.demoBuildStatus = {}
446,744
def runGenerator(self, job, subPath=None, cwd=False): if not self.hasGenerator: raise Exception("%s %s has no generate.py script!" %(self.libraryName, self.versionName)) path = self.path if subPath: path = os.path.join(path, subPath) startPath = os.getcwd() os.chdir(path) cmd = "python generate.py %s" %job rcode, outpu...
def runGenerator(self, job, subPath=None): if not self.hasGenerator: raise Exception("%s %s has no generate.py script!" %(self.libraryName, self.versionName)) path = self.path if subPath: path = os.path.join(path, subPath) startPath = os.getcwd() os.chdir(path) cmd = "python generate.py %s" %job rcode, output, errout =...
446,745
# this duplicates codef from Locale.getTranslation
# this duplicates codef from Locale.getTranslation
446,746
# this duplicates codef from Locale.getTranslation
# this duplicates codef from Locale.getTranslation
446,747
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) a...
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) a...
446,748
def isSkipFile(f): if [x for x in map(lambda x: re.search(x, f), ignoredFiles) if x!=None]: return True else: return False
def isSkipFile(f): if [x for x in map(lambda x: re.search(x, f), ignoredFiles) if x!=None]: return True else: return False
446,749
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,750
def processVariantSelect(callNode, variantMap): ''' processes qx.core.Variant.select blocks; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch. ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warni...
def processVariantSelect(callNode, variantMap): if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning", "Expecting exactly two arguments for qx.core.Variant.select. Ignoring this occurrence.", params) return False firstParam = params.getChildByPositio...
446,751
def processVariantSelect(callNode, variantMap): ''' processes qx.core.Variant.select blocks; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch. ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warni...
def processVariantSelect(callNode, variantMap): ''' processes qx.core.Variant.select blocks; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch. ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warni...
446,752
def processVariantSelect(callNode, variantMap): ''' processes qx.core.Variant.select blocks; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch. ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warni...
def processVariantSelect(callNode, variantMap): ''' processes qx.core.Variant.select blocks; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch. ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warni...
446,753
def processVariantSelect(callNode, variantMap): ''' processes qx.core.Variant.select blocks; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch. ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warni...
def processVariantSelect(callNode, variantMap): ''' processes qx.core.Variant.select blocks; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch. ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warni...
446,754
def processVariantIsSet(callNode, variantMap): ''' processes qx.core.Variant.isSet() calls; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning...
def processVariantIsSet(callNode, variantMap): ''' processes qx.core.Variant.isSet() calls; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning...
446,755
def processVariantIsSet(callNode, variantMap): ''' processes qx.core.Variant.isSet() calls; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning...
def processVariantIsSet(callNode, variantMap): ''' processes qx.core.Variant.isSet() calls; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning...
446,756
def processVariantIsSet(callNode, variantMap): ''' processes qx.core.Variant.isSet() calls; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning...
def processVariantIsSet(callNode, variantMap): ''' processes qx.core.Variant.isSet() calls; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning...
446,757
def processVariantIsSet(callNode, variantMap): ''' processes qx.core.Variant.isSet() calls; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning...
def processVariantIsSet(callNode, variantMap): ''' processes qx.core.Variant.isSet() calls; destructive! re-writes the AST tree passed in [callNode] by replacing choices with the suitable branch ''' if callNode.type != "call": return False params = callNode.getChild("params") if len(params.children) != 2: log("Warning...
446,758
def CreateNewDemoJson(): source = "" build = "" scategories = {} bcategories = {} fJSON = "./config.demo.new.json" # Pre-processing JSON = open(fJSON,"w") JSON.write('// This file is dynamically created by the generator!\n') JSON.write('{\n') # top-level includes default_json = os.path.join('tool', 'default.json') as...
def CreateNewDemoJson(): source = "" build = "" scategories = {} bcategories = {} fJSON = "./config.demo.new.json" # Pre-processing JSON = open(fJSON,"w") JSON.write('// This file is dynamically created by the generator!\n') JSON.write('{\n') # top-level includes default_json = 'tool' + '/' + 'default.json' assert os...
446,759
def getAssets(self, assetMacros=None):
def getAssets(self, assetMacros=None):
446,760
def getAssets(self, assetMacros=None):
def getAssets(self, assetMacros=None):
446,761
def expMacRec(rsc): if rsc.find('${')==-1: return [rsc] result = [] nres = rsc[:] mo = re.search(r'\$\{(.*?)\}',rsc) if mo: themekey = mo.group(1) if themekey in assetMacros: # create an array with all possibly variants for this replacement iresult = [] for val in assetMacros[themekey]: iresult.append(nres.replace('${'...
def expMacRec(rsc): if rsc.find('${')==-1: return [rsc] result = [] nres = rsc[:] mo = re.search(r'\$\{(.*?)\}',rsc) if mo: themekey = mo.group(1) if themekey in assetMacros: # create an array with all possibly variants for this replacement iresult = [] for val in assetMacros[themekey]: iresult.append(nres.replace('${'...
446,762
def packagesOfFiles(fileUri, packages): # returns list of lists, each containing destination file name of the corresp. part # npackages = [['script/gui-0.js'], ['script/gui-1.js'],...] npackages = [] file = os.path.basename(fileUri) if self._job.get("packages/loader-with-boot", True): totalLen = len(packages) else: tot...
def packagesOfFiles(fileUri, packages): # returns list of lists, each containing destination file name of the corresp. part # npackages = [['script/gui-0.js'], ['script/gui-1.js'],...] npackages = [] file = os.path.basename(fileUri) if self._job.get("packages/loader-with-boot", True): totalLen = len(packages) else: tot...
446,763
def packagesOfFiles(fileUri, packages): # returns list of lists, each containing destination file name of the corresp. part # npackages = [['script/gui-0.js'], ['script/gui-1.js'],...] npackages = [] file = os.path.basename(fileUri) if self._job.get("packages/loader-with-boot", True): totalLen = len(packages) else: tot...
def packagesOfFiles(fileUri, packages): # returns list of lists, each containing destination file name of the corresp. part # npackages = [['script/gui-0.js'], ['script/gui-1.js'],...] npackages = [] file = os.path.basename(fileUri) if self._job.get("packages/loader-with-boot", True): totalLen = len(packages) else: tot...
446,764
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,765
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,766
def incorporateCombinedImages(filteredResources, combinedImages): for combId, combImg in combinedImages.items(): # combImg.embeds = {resId : ImgFmt} filteredResourceIds = filteredResources.keys() for embId in requiredEmbeds(combImg, filteredResourceIds): # patch simle image info lib = filteredResources[embId].lib ...
def incorporateCombinedImages(filteredResources, combinedImages): for combId, combImg in combinedImages.items(): # combImg.embeds = {resId : ImgFmt} filteredResourceIds = filteredResources.keys() for embId in requiredEmbeds(combImg, filteredResourceIds): # patch simle image info lib = filteredResources[embId].lib ...
446,767
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) # find youngest file file, mtime = filetool.findYoungest(catPath) youngFiles...
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) # find youngest file file, mtime = filetool.findYoungest(catPath) youngFiles...
446,768
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,769
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,770
def buildSkeletonApps(self, buildConf): self.log("Building skeleton applications") if not os.path.isdir(buildConf["buildLogDir"]): self.log("Creating build log directory %s" %buildConf["buildLogDir"]) os.mkdir(buildConf["buildLogDir"]) for target in sorted(buildConf["targets"]): self.buildStatus[target] = { "BuildErr...
def buildSkeletonApps(self, buildConf): self.log("Building skeleton applications") if not os.path.isdir(buildConf["buildLogDir"]): self.log("Creating build log directory %s" %buildConf["buildLogDir"]) os.mkdir(buildConf["buildLogDir"]) for target in sorted(buildConf["targets"]): self.buildStatus[target] = { "BuildErr...
446,771
def buildSkeletonApps(self, buildConf): self.log("Building skeleton applications") if not os.path.isdir(buildConf["buildLogDir"]): self.log("Creating build log directory %s" %buildConf["buildLogDir"]) os.mkdir(buildConf["buildLogDir"]) for target in sorted(buildConf["targets"]): self.buildStatus[target] = { "BuildErr...
def buildSkeletonApps(self, buildConf): self.log("Building skeleton applications") if not os.path.isdir(buildConf["buildLogDir"]): self.log("Creating build log directory %s" %buildConf["buildLogDir"]) os.mkdir(buildConf["buildLogDir"]) for target in sorted(buildConf["targets"]): self.buildStatus[target] = { "BuildErr...
446,772
def documentApplyMethod(methodNode, prop): if itemHasAnyDocs(methodNode): return firstParam = selectNode(methodNode, "params/param[1]/@name") if firstParam is None: firstParam = "value" secondParam = selectNode(methodNode, "params/param[2]/@name") if secondParam is None: secondParam = "old" paramType = prop.get("che...
def documentApplyMethod(methodNode, prop): if itemHasAnyDocs(methodNode): return firstParam = selectNode(methodNode, "params/param[1]/@name") if firstParam is None: firstParam = "value" secondParam = selectNode(methodNode, "params/param[2]/@name") if secondParam is None: secondParam = "old" paramType = prop.get("che...
446,773
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
446,774
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
def _analyzeClassDepsNode(self, node, loadtime, runtime, inFunction, variants):
446,775
def buildShallowDeps(variants):
def buildShallowDeps(variants):
446,776
def analyzeNodeDeps(node, fileDeps):
def analyzeNodeDeps(node, fileDeps):
446,777
def analyzeNodeDeps(node, fileDeps):
def analyzeNodeDeps(node, fileDeps):
446,778
def analyzeNodeDeps(node, fileDeps):
def analyzeNodeDeps(node, fileDeps):
446,779
def analyzeClassMap(classMap): classMapObj = ClassMap() for tkey in classMap: if isinstance(classMap[tkey], types.DictType): classMapObj.data[tkey] = {} for key in classMap[tkey]: nodeDeps = getNodeDeps (classMap[tkey][key]) classMapObj.data[tkey][key] = nodeDeps elif isinstance(classMap[tkey], Node): nodeDeps = getN...
def analyzeClassMap(classMap): classMapObj = ClassMap() for tkey in classMap: if isinstance(classMap[tkey], types.DictType): classMapObj.data[tkey] = {} for key in classMap[tkey]: classMapObj.data[tkey][key] = processValueNode(classMap[tkey][key]) elif isinstance(classMap[tkey], Node): nodeDeps = getNodeDeps (classMa...
446,780
def analyzeClassMap(classMap): classMapObj = ClassMap() for tkey in classMap: if isinstance(classMap[tkey], types.DictType): classMapObj.data[tkey] = {} for key in classMap[tkey]: nodeDeps = getNodeDeps (classMap[tkey][key]) classMapObj.data[tkey][key] = nodeDeps elif isinstance(classMap[tkey], Node): nodeDeps = getN...
def analyzeClassMap(classMap): classMapObj = ClassMap() for tkey in classMap: if isinstance(classMap[tkey], types.DictType): classMapObj.data[tkey] = {} for key in classMap[tkey]: nodeDeps = getNodeDeps (classMap[tkey][key]) classMapObj.data[tkey][key] = nodeDeps elif isinstance(classMap[tkey], Node): nodeDeps = getN...
446,781
def getNodeDeps(node): # make sure we don't dive into class maps, which is handled upstream if treeutil.isQxDefine(node)[0]: return [] ltime = rtime = [] # distinction is in the depsItems that populate this array self._analyzeClassDepsNode(node, ltime, rtime, True, variants) # we force inFunction, to not track recursi...
def getNodeDeps(node): # make sure we don't dive into class maps, which is handled upstream if treeutil.isQxDefine(node)[0]: return [] ltime = rtime = [] # distinction is in the depsItems that populate this array self._analyzeClassDepsNode(node, ltime, rtime, True, variants) # we force inFunction, to not track recursi...
446,782
def getNodeDeps(node): # make sure we don't dive into class maps, which is handled upstream if treeutil.isQxDefine(node)[0]: return [] ltime = rtime = [] # distinction is in the depsItems that populate this array self._analyzeClassDepsNode(node, ltime, rtime, True, variants) # we force inFunction, to not track recursi...
def getNodeDeps(node): # make sure we don't dive into class maps, which is handled upstream if treeutil.isQxDefine(node)[0]: return [] ltime = rtime = [] # distinction is in the depsItems that populate this array self._analyzeClassDepsNode(node, ltime, rtime, inFunction, variants, recurse=False) # we force inFunction,...
446,783
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" argv.extend((javaBin, javaClassPath)) configClassPath = self._job.get("simulate/java-classpath", []) qxSeleniumPath = self._job.get("simulate/qxselenium-path", False) if qxSeleniumPath: configClassPath.append(q...
446,784
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 = "...
446,785
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 = "...
defrunSimulation(self):self._console.info("RunningSimulation...")javaBin="java"javaClassPath="-cp"configClassPath=self._job.get("simulate/java-classpath",[])qxSeleniumPath=self._job.get("simulate/qxselenium-path",False)ifqxSeleniumPath:configClassPath.append(qxSeleniumPath)classPathSeparator=":"ifutil.getPlatformInfo()...
446,786
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 = "...
446,787
def _resolveExtends(self, jobNames): for jobName in jobNames: job = self.getJob(jobName) if not job: raise RuntimeError, "No such job: \"%s\"" % jobname else: job.resolveExtend(cfg=self) return jobNames # return list unchanged
def _resolveExtends(self, jobNames): for jobName in jobNames: job = self.getJob(jobName) if not job: raise RuntimeError, "No such job: \"%s\"" % jobName else: job.resolveExtend(cfg=self) return jobNames # return list unchanged
446,788
def selectNode(node, path): """ Selects a node using a XPath like path expresseion. This function returns None if no matching node was found. Warning: This function usys a depth first search without backtracking!! ".." navigates to the parent node "nodeName" navigates to the first child node of type nodeN...
def selectNode(node, path): """ Selects a node using a XPath like path expression. This function returns None if no matching node was found. Warning: This function usys a depth first search without backtracking!! ".." navigates to the parent node "nodeName" navigates to the first child node of type nodeNa...
446,789
def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._...
def transitiveDepsAreFresh(depsStruct, cacheModTime): if cacheModTime is None: # TODO: this can currently only occur with a Cache.memcache result return False for dep in depsStruct["load"]: if dep.requestor != self.id: # this was included through a recursive traversal if dep.name in self._classesObj: classObj = self._...
446,790
def generateResourceInfoCode(self, script, settings, libs, format=False):
def generateResourceInfoCode(self, script, settings, libs, format=False):
446,791
def sortClassesRecurser(classId, available, variants, result, path): if classId in result: return
def sortClassesRecurser(classId, available, variants, result, path): if classId in result: return
446,792
def packageUrisToJS1(packages, version, namespace=None): # Translate URI data to JavaScript # using Package objects
def packageUrisToJS1(packages, version, namespace=None): # Translate URI data to JavaScript # using Package objects
446,793
def generateBootScript(globalCodes, script, bootPackage="", compileType="build"):
def generateBootScript(globalCodes, script, bootPackage="", compileType="build"):
446,794
def packagesOfFiles(fileUri, packages): npackages = [] file = os.path.basename(fileUri) if self._job.get("packages/loader-with-boot", True): totalLen = len(packages) else: totalLen = len(packages) + 1 for packageId, packageFileName in enumerate(self.packagesFileNames(file, totalLen, classPackagesOnly=True)): npackages....
def packagesOfFiles(fileUri, packages): npackages = [] file = os.path.basename(fileUri) if self._job.get("packages/loader-with-boot", True): totalLen = len(packages) else: totalLen = len(packages) + 1 for packageId, packageFileName in enumerate(self.packagesFileNames(file, totalLen, classPackagesOnly=True)): npackages....
446,795
def mergeTranslationMaps(transMaps): poData = {} cldrData = {}
def mergeTranslationMaps(transMaps): poData = {} cldrData = {}
446,796
def generateI18NParts(self, script, globalCodes):
def generateI18NParts(self, script, globalCodes):
446,797
def generateI18NParts(self, script, globalCodes):
def generateI18NParts(self, script, globalCodes):
446,798
def createResourceInfo(res, resval): resinfo = [ { "target": "resource", "data": { res : resval }} ] filetool.save(approot+"/data/resource/" + res + ".json", json.dumpsCode(resinfo)) return
def createResourceInfo(res, resval): resinfo = [ { "target": "resource", "data": { res : resval }} ] filetool.save(approot+"/data/resource/" + res + ".json", json.dumpsCode(resinfo)) return
446,799