bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def join(self, data, me, grid, cap): # processor geometry nprocx = cap['nprocx'] nprocy = cap['nprocy'] nprocz = cap['nprocz']
def join(self, data, me, grid, cap): # processor geometry nprocx = cap['nprocx'] nprocy = cap['nprocy'] nprocz = cap['nprocz']
30,300
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
30,301
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
30,302
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
30,303
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
30,304
def init(self, parent): if self.inventory.Solver == "cgrad": Regional.set_cg_defaults() else if self.inventory.Solver == "multigrid": Regional.set_mg_defaults() else if self.inventory.Solver == "multigrid-el": Regional.set_mg_el_defaults()
def init(self, parent): if self.inventory.Solver == "cgrad": Regional.set_cg_defaults() elif self.inventory.Solver == "multigrid": Regional.set_mg_defaults() else if self.inventory.Solver == "multigrid-el": Regional.set_mg_el_defaults()
30,305
def init(self, parent): if self.inventory.Solver == "cgrad": Regional.set_cg_defaults() else if self.inventory.Solver == "multigrid": Regional.set_mg_defaults() else if self.inventory.Solver == "multigrid-el": Regional.set_mg_el_defaults()
def init(self, parent): if self.inventory.Solver == "cgrad": Regional.set_cg_defaults() else if self.inventory.Solver == "multigrid": Regional.set_mg_defaults() elif self.inventory.Solver == "multigrid-el": Regional.set_mg_el_defaults()
30,306
def output(self, *args, **kwds):
def output(self, *args, **kwds):
30,307
def citcom2vtk(t): print "Timestep:",t benchmarkstr = "" #Assign create_bottom and create_surface to bottom and surface #to make them valid in methods namespace bottom = create_bottom surface = create_surface ordered_points = [] #reset Sequences for points ordered_temperature = [] ordered_velocity = [] ordered_visc =...
def citcom2vtk(t): print "Timestep:",t benchmarkstr = "" #Assign create_bottom and create_surface to bottom and surface #to make them valid in methods namespace bottom = create_bottom surface = create_surface ordered_points = [] #reset Sequences for points ordered_temperature = [] ordered_velocity = [] ordered_visc =...
30,308
def citcoms_hdf2vtk(): global counter #Call initialize to get and set input params initialize() d1 = datetime.now() print "Converting Hdf to Vtk" print "Initial:",initial, "Timesteps:",timesteps print "NX:",el_nx_redu, "NY:",el_ny_redu, "NZ:", el_nz_redu print "Create Bottom: ",create_bottom, " Create Surface: ", crea...
defcitcoms_hdf2vtk():globalcounter#Callinitializetogetandsetinputparamsinitialize()d1=datetime.now()print"ConvertingHdftoVtk"print"Initial:",initial,"Timesteps:",timestepsprint"NX:",el_nx_redu,"NY:",el_ny_redu,"NZ:",el_nz_reduprint"CreateBottom:",create_bottom,"CreateSurface:",create_surfaceprint"CreateTopography:",cre...
30,309
def setProperties(self, stream): from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory, stream) return
def setProperties(self, stream): from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory, stream) return
30,310
def finalize(self): from CitcomSLib import output_finalize output_finalize(self.all_variables) return
def finalize(self): from CitcomSLib import output_finalize output_finalize(self.all_variables) return
30,311
def finalize(self): from CitcomSLib import output_finalize output_finalize(self.all_variables) return
def finalize(self): from CitcomSLib import output_finalize output_finalize(self.all_variables) return
30,312
def __init__(self, grid): # data storage self.saved = range(grid['nox'] * grid['noy']) return
def __init__(self, grid): # data storage self.saved = [''] * (grid['nox'] * grid['noy']) return
30,313
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
def readData(self, crdfilename, surffilename, grid, cap): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
30,314
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
30,315
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
30,316
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
30,317
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
30,318
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
30,319
def createII(self): import Inlet self.II = Inlet.VTInlet(self.interior, self.sink["Intr"], self.all_variables) return
def createII(self): import Inlet self.II = Inlet.TInlet(self.interior, self.sink["Intr"], self.all_variables) return
30,320
def exchangeSignal(self, signal): newsgnl = self.module.exchangeSignal(signal, self.communicator.handle(), self.srcComm[0].handle(), self.srcComm[0].size - 1) return newsgnl
def exchangeSignal(self, signal): newsgnl = self.module.exchangeSignal(signal, self.communicator.handle(), self.srcComm[0].handle(), self.srcComm[0].size - 1) return newsgnl
30,321
def launch(self,application):
def launch(self,application):
30,322
def advance(self,dt): self._loopInfo.log( "%s: step %d: advancing the solution by dt = %s" % (self.name, self.step, dt)) tsolver.run(dt) vsolver.run()
def advance(self,dt): self._loopInfo.log( "%s: step %d: advancing the solution by dt = %s" % (self.name, self.step, dt)) vsolver = self.inventory.vsolver vsolver.setup() tsolver = self.inventory.tsolver tsolver.setup() tsolver.run(dt) vsolver.run()
30,323
def setProperties(self):
def setProperties(self):
30,324
def bind(self, configuration): componentName = configuration.get(self.name)
def bind(self, configuration): componentName = configuration.get(self.name)
30,325
def bind(self, configuration): componentName = configuration.get(self.name)
def bind(self, configuration): componentName = configuration.get(self.name)
30,326
def usage(self): name = 'citcomsregional.sh' if self.inventory.solver.name == 'full': name = 'citcomsfull.sh' print 'usage: %s [<property>=<value>] [<facility>.<property>=<value>] ...' % name self.showUsage() print """\
def usage(self): print 'usage: citcoms [<property>=<value>] [<facility>.<property>=<value>] ...' self.showUsage() print """\
30,327
def _getPrivateDepositoryLocations(self): list = [] try: from config import makefile list.append(makefile['pkgsysconfdir']) except ImportError, KeyError: # The user is running directly from the source directory. from os.path import dirname, join etc = join(dirname(dirname(__file__)), 'etc') list.append(etc) return list
def _getPrivateDepositoryLocations(self): list = [] etc = join(dirname(dirname(__file__)), 'etc') if isdir(etc): # The user is running directly from the source directory. from os.path import dirname, join etc = join(dirname(dirname(__file__)), 'etc') list.append(etc) return list
30,328
def _getPrivateDepositoryLocations(self): list = [] try: from config import makefile list.append(makefile['pkgsysconfdir']) except ImportError, KeyError: # The user is running directly from the source directory. from os.path import dirname, join etc = join(dirname(dirname(__file__)), 'etc') list.append(etc) return list
def _getPrivateDepositoryLocations(self): list = [] try: from config import makefile list.append(makefile['pkgsysconfdir']) except ImportError, KeyError: # The user is running directly from the source directory. list.append(etc) return list
30,329
def __init__(self, name, facility): CitcomComponent.__init__(self, name, facility) self.inventory.ADV = True self.inventory.fixed_timestep = 0.0 self.inventory.finetunedt = 0.7
def __init__(self, name, facility): CitcomComponent.__init__(self, name, facility) self.inventory.ADV = True self.inventory.fixed_timestep = 0.0 self.inventory.finetunedt = 0.7
30,330
def stable_timestep(self): dt = self.CitcomModule.stable_timestep(self.all_variables) return dt
def stable_timestep(self): dt = self.CitcomModule.stable_timestep(self.all_variables) return dt
30,331
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
30,332
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
30,333
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
30,334
def setProperties(self): from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory) return
def setProperties(self): from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory) return
30,335
def __init__(self, communicator, boundary, sink, all_variables, mode='F'): import CitcomS.Exchanger as Exchanger self._handle = Exchanger.TractionInlet_create(communicator.handle(), boundary, sink, all_variables, mode) return
def __init__(self, boundary, sink, all_variables, mode='F'): import CitcomS.Exchanger as Exchanger self._handle = Exchanger.TractionInlet_create(communicator.handle(), boundary, sink, all_variables, mode) return
30,336
def __init__(self, communicator, boundary, sink, all_variables, mode='F'): import CitcomS.Exchanger as Exchanger self._handle = Exchanger.TractionInlet_create(communicator.handle(), boundary, sink, all_variables, mode) return
def __init__(self, communicator, boundary, sink, all_variables, mode='F'): import CitcomS.Exchanger as Exchanger self._handle = Exchanger.TractionInlet_create(boundary, sink, all_variables, mode) return
30,337
def __init__(self, communicator, boundary, sink, all_variables, mode='F'): import CitcomS.Exchanger as Exchanger self._handle = Exchanger.TractionInlet_create(communicator.handle(), boundary, sink, all_variables, mode) return
def __init__(self, communicator, boundary, sink, all_variables, mode='F'): import CitcomS.Exchanger as Exchanger self._handle = Exchanger.TractionInlet_create(communicator.handle(), boundary, sink, all_variables, mode) return
30,338
def updateMaterial(self): self.CitcomModule.Visc_update_material(self.all_variables) return
def updateMaterial(self): self.CitcomModule.Visc_update_material(self.all_variables) return
30,339
def __init__(self, parent, src, method="GET", root_path=""): """ http_generator constructor.
def __init__(self, parent, src, method="GET", root_path=""): """ http_generator constructor.
30,340
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
30,341
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
30,342
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
30,343
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
def except httplib.HTTPException, e: raise GeneratorError("http_generator: exception occured during HTTP request: \"%\"" % str(e)) _result(self, except httplib.HTTPException, e: raise GeneratorError("http_generator: exception occured during HTTP request: \"%\"" % str(e)) req, except httplib.HTTPException, e: raise Ge...
30,344
def register_invokation_syntax(server): """ Allows the component to register the required XML element syntax for it's invokation in sitemap files with the sitemap_config_parse class. """ invk_syn = invokation_syntax() invk_syn.element_name = "match" invk_syn.allowed_parent_components = ["pipeline"] invk_syn.required_a...
def register_invokation_syntax(server): """ Allows the component to register the required XML element syntax for it's invokation in sitemap files with the sitemap_config_parse class. """ invk_syn = invokation_syntax() invk_syn.element_name = "match" invk_syn.allowed_parent_components = ["pipeline"] invk_syn.required_a...
30,345
def register_invokation_syntax(server): """ Allows the component to register the required XML element syntax for it's invokation in sitemap files with the sitemap_config_parse class. """ invk_syn = invokation_syntax() invk_syn.element_name = "match" invk_syn.allowed_parent_components = ["pipeline"] invk_syn.required_a...
def register_invokation_syntax(server): """ Allows the component to register the required XML element syntax for it's invokation in sitemap files with the sitemap_config_parse class. """ invk_syn = invokation_syntax() invk_syn.element_name = "match" invk_syn.allowed_parent_components = ["pipeline"] invk_syn.required_a...
30,346
def __init__(self, parent, pattern, allow_query="yes", root_path=""): self.pattern = pattern
def __init__(self, parent, pattern, allow_query="yes", required_parameters="", root_path=""): """ uri_matcher constructor. @pattern: the URI pattern string @allow_query: if True, then a URI including a query string will match (default: True) @required_parameters: a space separated list of parameters which must be spec...
30,347
def parse_uri(self, req): """ Parses the request URI into its constituent parts and stores them for later use. Returns True if the request uri matches this object's pattern, returns False otherwise. """ self.req = req
def parse_uri(self, req): """ Parses the request URI into its constituent parts and stores them for later use. Returns True if the request uri matches this object's pattern, returns False otherwise. """ self.req = req
30,348
def save_options(self, resolution, y_resolution): if y_resolution == None: y_resolution = resolution res = {} return res
def save_options(self, resolution, y_resolution): if y_resolution == None: y_resolution = resolution res = {'dpi': [resolution, y_resolution], 'quality': self.quality, } return res
30,349
def exec_func_shell(func, d): """Execute a shell BB 'function' Returns true if execution was successful. For this, it creates a bash shell script in the tmp dectory, writes the local data into it and finally executes. The output of the shell will end in a log file and stdout. Note on directory behavior. The 'dirs' v...
def exec_func_shell(func, d): """Execute a shell BB 'function' Returns true if execution was successful. For this, it creates a bash shell script in the tmp dectory, writes the local data into it and finally executes. The output of the shell will end in a log file and stdout. Note on directory behavior. The 'dirs' v...
30,350
def exec_func_shell(func, d): """Execute a shell BB 'function' Returns true if execution was successful. For this, it creates a bash shell script in the tmp dectory, writes the local data into it and finally executes. The output of the shell will end in a log file and stdout. Note on directory behavior. The 'dirs' v...
def exec_func_shell(func, d): """Execute a shell BB 'function' Returns true if execution was successful. For this, it creates a bash shell script in the tmp dectory, writes the local data into it and finally executes. The output of the shell will end in a log file and stdout. Note on directory behavior. The 'dirs' v...
30,351
def mkstamp(task, d): """Creates/updates a stamp for a given task""" stamp = data.getVar('STAMP', d) if not stamp: return stamp = "%s.%s" % (data.expand(stamp, d), task) mkdirhier(os.path.dirname(stamp)) open(stamp, "w+")
def mkstamp(task, d): """Creates/updates a stamp for a given task""" stamp = data.getVar('STAMP', d) if not stamp: return stamp = "%s.%s" % (data.expand(stamp, d), task) mkdirhier(os.path.dirname(stamp)) if os.access(stamp, os.F_OK): os.remove(stamp) f = open(stamp, "w") f.close()
30,352
def initdata(url, d): if url not in urldata: ud = FetchData() (ud.type, ud.host, ud.path, ud.user, ud.pswd, ud.parm) = bb.decodeurl(data.expand(url, d)) ud.date = Fetch.getSRCDate(d) for m in methods: if m.supports(url, ud, d): ud.localpath = m.localpath(url, ud, d) ud.md5 = ud.localpath + '.md5' # if user sets localpa...
def initdata(url, d): fn = bb.data.getVar('FILE', d, 1) if fn not in urldata: urldata[fn] = {} if url not in urldata[fn]: ud = FetchData() (ud.type, ud.host, ud.path, ud.user, ud.pswd, ud.parm) = bb.decodeurl(data.expand(url, d)) ud.date = Fetch.getSRCDate(d) for m in methods: if m.supports(url, ud, d): ud.localpath = ...
30,353
def initdata(url, d): if url not in urldata: ud = FetchData() (ud.type, ud.host, ud.path, ud.user, ud.pswd, ud.parm) = bb.decodeurl(data.expand(url, d)) ud.date = Fetch.getSRCDate(d) for m in methods: if m.supports(url, ud, d): ud.localpath = m.localpath(url, ud, d) ud.md5 = ud.localpath + '.md5' # if user sets localpa...
def initdata(url, d): if url not in urldata: ud = FetchData() (ud.type, ud.host, ud.path, ud.user, ud.pswd, ud.parm) = bb.decodeurl(data.expand(url, d)) ud.date = Fetch.getSRCDate(d) for m in methods: if m.supports(url, ud, d): ud.localpath = m.localpath(url, ud, d) ud.md5 = ud.localpath + '.md5' # if user sets localpa...
30,354
def go(d): """Fetch all urls""" for m in methods: for u in m.urls: ud = urldata[u] if ud.localfile and not m.forcefetch(u, ud, d) and os.path.exists(urldata[u].md5): # File already present along with md5 stamp file # Touch md5 file to show activity os.utime(ud.md5, None) continue # RP - is olddir needed? # olddir = os....
def go(d): """Fetch all urls""" for m in methods: for u in m.urls: ud = urldata[fn][u] if ud.localfile and not m.forcefetch(u, ud, d) and os.path.exists(urldata[fn][u].md5): # File already present along with md5 stamp file # Touch md5 file to show activity os.utime(ud.md5, None) continue # RP - is olddir needed? # oldd...
30,355
def localpaths(d): """Return a list of the local filenames, assuming successful fetch""" local = [] for m in methods: for u in m.urls: local.append(urldata[u].localpath) return local
def localpaths(d): """Return a list of the local filenames, assuming successful fetch""" local = [] for m in methods: for u in m.urls: local.append(urldata[fn][u].localpath) return local
30,356
def write(self, package, template = None): # 1) Assemble new file contents in ram, either new from bitbake # metadata, or a combination of the template and that metadata. # 2) Open the path returned by the filefunc + the basedir for writing. # 3) Write the new bitbake data file. fdata = '' if template: f = file(temp...
def write(self, package, template = None): # 1) Assemble new file contents in ram, either new from bitbake # metadata, or a combination of the template and that metadata. # 2) Open the path returned by the filefunc + the basedir for writing. # 3) Write the new bitbake data file. fdata = '' if template: f = file(temp...
30,357
def filefunc(package): # return a relative path to the bitbake .bb which will be written src_uri = bb.data.getVar('SRC_URI', package, 1) filename = bb.data.getVar('PN', package, 1) + '.bb' if not src_uri: return filename else: substr = src_uri[src_uri.find('xorg/'):] subdirlist = substr.split('/')[:2] subdir = '-'.join...
def filefunc(package): # return a relative path to the bitbake .bb which will be written src_uri = bb.data.getVar('SRC_URI', package, 1) filename = bb.data.getVar('PN', package, 1) + '.bb' if not src_uri: return filename else: substr = src_uri[src_uri.find('xorg/'):] subdirlist = substr.split('/')[:2] subdir = '-'.join...
30,358
def localpath(url, d): (type, host, path, user, pswd, parm) = bb.decodeurl(data.expand(url, d)) if "localpath" in parm:
def localpath(url, d): (type, host, path, user, pswd, parm) = bb.decodeurl(data.expand(url, d)) if "localpath" in parm:
30,359
def go(self, d, urls = []): """Fetch urls""" if not urls: urls = self.urls
def go(self, d, urls = []): """Fetch urls""" if not urls: urls = self.urls
30,360
def build( self, params, cmd = "build" ): """Build a providee""" globexpr = params[0] self._checkParsed() names = globfilter( cooker.status.pkg_pn.keys(), globexpr ) if len( names ) == 0: names = [ globexpr ] print "SHELL: Building %s" % ' '.join( names )
def build( self, params, cmd = "build" ): """Build a providee""" globexpr = params[0] self._checkParsed() names = globfilter( cooker.status.pkg_pn.keys(), globexpr ) if len( names ) == 0: names = [ globexpr ] print "SHELL: Building %s" % ' '.join( names )
30,361
def _check(path): return exists(path) and isdir(path) and isfile(path+"/ChangeLog")
def _check(path): return exists(path) and isdir(path) and isfile(path+"/ChangeLog")
30,362
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def GetScriptableInterface(f): """Returns a tuple of (constants, functions, properties) constants - a sorted list of (name, features) tuples, including all constants except for SCLEX_ constants which are presumed not used by scripts. The SCI_ constants for functions are omitted, since they can be derived, but the SCI_...
30,363
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features) ) elif features["FeatureType"] in ["fun",...
30,364
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,365
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,366
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,367
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,368
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,369
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,370
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,371
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,372
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,373
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,374
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,375
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,376
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,377
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,378
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not StartsWith(name, "SCLEX_"): constants.append( (name, features["Value"]) ) elif features["FeatureType"] i...
30,379
def CopyWithInsertion(input, output, genfn, definition): copying = 1 for line in input.readlines(): if copying: output.write(line) if Contains(line, "//++Autogenerated"): copying = 0 genfn(definition, output) if Contains(line, "//--Autogenerated"): copying = 1 output.write(line)
def CopyWithInsertion(input, output, genfn, definition): copying = 1 for line in input.readlines(): if copying: output.write(line) if Contains(line, "//++Autogenerated") or Contains(line, "<!-- <Autogenerated> -->"): copying = 0 genfn(definition, output) if Contains(line, "//--Autogenerated"): copying = 1 output.write(...
30,380
def CopyWithInsertion(input, output, genfn, definition): copying = 1 for line in input.readlines(): if copying: output.write(line) if Contains(line, "//++Autogenerated"): copying = 0 genfn(definition, output) if Contains(line, "//--Autogenerated"): copying = 1 output.write(line)
def CopyWithInsertion(input, output, genfn, definition): copying = 1 for line in input.readlines(): if copying: output.write(line) if Contains(line, "//++Autogenerated"): copying = 0 genfn(definition, output) if Contains(line, "//--Autogenerated") or Contains(line, "<!-- </Autogenerated> -->"): copying = 1 output.write...
30,381
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {} for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif...
30,382
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
30,383
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
30,384
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
30,385
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
30,386
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
defelse: out.write('{""}};\n') out.write("\nstatic IFaceProperty ifaceProperties[] = {") if properties: proplist = properties.items() proplist.sort() first = 1 for propname, (getter, setter, valueType, paramType) in proplist: if first: first = 0 else: out.write(",") out.write('\n\t{"%s", %s, %s, iface_%s, iface_%s}'...
30,387
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
def printIFaceTableCXXFile(f,out): constants = [] functions = [] for name in f.order: features = f.features[name] if features["Category"] != "Deprecated": if features["FeatureType"] == "val": if not (Contains(name, "SCE_") or Contains(name, "SCLEX_")): constants.append( (name, features["Value"]) ) elif features["Featu...
30,388
def priority10(): # mouse synonyms (similar, broad, narrow) print 'processing priority 10...%s' % mgi_utils.date() cmd = 'select _Marker_key = s._Object_key, s._Organism_key, _OrthologOrganism_key = NULL, label = s.synonym ' + \ 'from MGI_Synonym_MusMarker_View s ' + \ 'where s.synonymType in ("similar", "broad", "n...
def priority10(): # mouse synonyms (similar, broad, narrow) print 'processing priority 10...%s' % mgi_utils.date() cmd = 'select _Marker_key = s._Object_key, s._Organism_key, _OrthologOrganism_key = NULL, label = s.synonym ' + \ 'from MGI_SynonymType st, MGI_Synonym s ' + \ 'where st._MGIType_key = 2 ' + \ 'and st._...
30,389
def createBCPfile(): ''' # # Create bcp file # ''' print 'Creating %s.bcp...' % (table) bcpFile = open(outDir + '/%s.bcp' % (table), 'w') # delete existing entries db.sql('delete from %s where _Refs_key = %s' % (table, refsKey), None) # exclude all problem Molecular Segments # (those with at least one Sequence of ...
def createBCPfile(): ''' # # Create bcp file # ''' print 'Creating %s.bcp...' % (table) bcpFile = open(outDir + '/%s.bcp' % (table), 'w') # delete existing entries db.sql('delete from %s where _Refs_key = %s' % (table, refsKey), None) # exclude all problem Molecular Segments # (those with at least one Sequence of ...
30,390
def createBCPfile(): ''' # # Create bcp file # ''' print 'Creating %s.bcp...' % (table) bcpFile = open(outDir + '/%s.bcp' % (table), 'w') # delete existing entries db.sql('delete from %s where _Refs_key = %s' % (table, refsKey), None) # exclude all problem Molecular Segments # (those with at least one Sequence of ...
def createBCPfile(): ''' # # Create bcp file # ''' print 'Creating %s.bcp...' % (table) bcpFile = open(outDir + '/%s.bcp' % (table), 'w') # delete existing entries db.sql('delete from %s where _Refs_key = %s' % (table, refsKey), None) # exclude all problem Molecular Segments # (those with at least one Sequence of ...
30,391
def priority8(): # human synonyms of mouse orthologs print 'processing priority 8...%s' % mgi_utils.date() cmd = 'select distinct m._Marker_key, m2 = m2._Marker_key, m._Organism_key, _OrthologOrganism_key = m2._Organism_key ' + \ 'into #orthology1 ' + \ 'from MRK_Marker m, MRK_Marker m2, HMD_Homology h1, HMD_Homolog...
def priority8(): # human synonyms of mouse orthologs print 'processing priority 8...%s' % mgi_utils.date() cmd = 'select distinct m._Marker_key, m2 = m2._Marker_key, m._Organism_key, _OrthologOrganism_key = m2._Organism_key ' + \ 'into #orthology1 ' + \ 'from MRK_Marker m, MRK_Marker m2, HMD_Homology h1, HMD_Homolog...
30,392
def priority8(): # human synonyms of mouse orthologs print 'processing priority 8...%s' % mgi_utils.date() cmd = 'select distinct m._Marker_key, m2 = m2._Marker_key, m._Organism_key, _OrthologOrganism_key = m2._Organism_key ' + \ 'into #orthology1 ' + \ 'from MRK_Marker m, MRK_Marker m2, HMD_Homology h1, HMD_Homolog...
def priority8(): # human synonyms of mouse orthologs print 'processing priority 8...%s' % mgi_utils.date() cmd = 'select distinct m._Marker_key, m2 = m2._Marker_key, m._Organism_key, _OrthologOrganism_key = m2._Organism_key ' + \ 'into #orthology1 ' + \ 'from MRK_Marker m, MRK_Marker m2, HMD_Homology h1, HMD_Homolog...
30,393
def priority9(): # rat synonyms of mouse orthologs print 'processing priority 9...%s' % mgi_utils.date() cmd = 'select distinct m._Marker_key, m2 = m2._Marker_key, m._Organism_key, _OrthologOrganism_key = m2._Organism_key ' + \ 'into #orthology2 ' + \ 'from MRK_Marker m, MRK_Marker m2, HMD_Homology h1, HMD_Homology ...
def priority9(): # rat synonyms of mouse orthologs print 'processing priority 9...%s' % mgi_utils.date() cmd = 'select distinct m._Marker_key, m2 = m2._Marker_key, m._Organism_key, _OrthologOrganism_key = m2._Organism_key ' + \ 'into #orthology2 ' + \ 'from MRK_Marker m, MRK_Marker m2, HMD_Homology h1, HMD_Homology ...
30,394
def priority9(): # rat synonyms of mouse orthologs print 'processing priority 9...%s' % mgi_utils.date() cmd = 'select distinct m._Marker_key, m2 = m2._Marker_key, m._Organism_key, _OrthologOrganism_key = m2._Organism_key ' + \ 'into #orthology2 ' + \ 'from MRK_Marker m, MRK_Marker m2, HMD_Homology h1, HMD_Homology ...
def priority9(): # rat synonyms of mouse orthologs print 'processing priority 9...%s' % mgi_utils.date() cmd = 'select distinct m._Marker_key, m2 = m2._Marker_key, m._Organism_key, _OrthologOrganism_key = m2._Organism_key ' + \ 'into #orthology2 ' + \ 'from MRK_Marker m, MRK_Marker m2, HMD_Homology h1, HMD_Homology ...
30,395
def priority11(): # human ortholog (symbol) print 'processing priority 11...%s' % mgi_utils.date()
def priority11(): # human ortholog (symbol) print 'processing priority 11...%s' % mgi_utils.date()
30,396
def priority11(): # human ortholog (symbol) print 'processing priority 11...%s' % mgi_utils.date()
def priority11(): # human ortholog (symbol) print 'processing priority 11...%s' % mgi_utils.date()
30,397
def priority12(): # human ortholog (name) print 'processing priority 12...%s' % mgi_utils.date() cmd = 'select o.*, label = m.name, labelTypeName = s.commonName + " ortholog name" ' + \ 'from #orthology1 o, MRK_Marker m, MGI_Organism s ' + \ 'where o.m2 = m._Marker_key ' + \ 'and o._OrthologOrganism_key = s._Organis...
def priority12(): # human ortholog (name) print 'processing priority 12...%s' % mgi_utils.date() cmd = 'select o.*, label = m.name, labelTypeName = s.commonName + " ortholog name" ' + \ 'from #orthology1 o, MRK_Marker m, MGI_Organism s ' + \ 'where o.m2 = m._Marker_key ' + \ 'and o._OrthologOrganism_key = s._Organis...
30,398
def priority13(): # rat ortholog (symbol) print 'processing priority 13...%s' % mgi_utils.date() cmd = 'select o.*, label = m.symbol, labelTypeName = s.commonName + " ortholog symbol" ' + \ 'from #orthology2 o, MRK_Marker m, MGI_Organism s ' + \ 'where o.m2 = m._Marker_key ' + \ 'and o._OrthologOrganism_key = s._Org...
def priority13(): # rat ortholog (symbol) print 'processing priority 13...%s' % mgi_utils.date() cmd = 'select o.*, label = m.symbol, labelTypeName = s.commonName + " ortholog symbol" ' + \ 'from #orthology2 o, MRK_Marker m, MGI_Organism s ' + \ 'where o.m2 = m._Marker_key ' + \ 'and o._OrthologOrganism_key = s._Org...
30,399