rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
nox = grid['nox'] noy = grid['noy'] noz = grid['noz']
nox = int(grid['nox']) noy = int(grid['noy']) noz = int(grid['noz'])
def join(self, data, me, grid, cap): # processor geometry nprocx = cap['nprocx'] nprocy = cap['nprocy'] nprocz = cap['nprocz']
81ff7d35f310027db25f3d33154c7346d28fe66d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/81ff7d35f310027db25f3d33154c7346d28fe66d/combinesurf.py
n = (i+1) * nproc_per_cap - 1 crdfilename = '%s.coord.%d' % (prefix, n) surffilename = '%s.surf.%d.%d' % (prefix, n, step) print 'reading', surffilename data = cb.readData(crdfilename, surffilename, grid, cap) cb.join(data, n, grid, cap)
for n in range(i * nproc_per_cap + (cap['nprocz']-1), (i+1) * nproc_per_cap, cap['nprocz']): crdfilename = '%s.coord.%d' % (prefix, n) surffilename = '%s.surf.%d.%d' % (prefix, n, step) print 'reading', surffilename data = cb.readData(crdfilename, surffilename, grid, cap) cb.join(data, n, grid, cap)
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
81ff7d35f310027db25f3d33154c7346d28fe66d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/81ff7d35f310027db25f3d33154c7346d28fe66d/combinesurf.py
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
81ff7d35f310027db25f3d33154c7346d28fe66d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/81ff7d35f310027db25f3d33154c7346d28fe66d/combinesurf.py
pyre.properties.list("blob_center", default=[1.570800,1.570800,0.9246600]),
pyre.properties.list("blob_center", default=[-999.,-999.,-999.]),
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
b2d0398c601fbc4cdf653ab17b52e24772259850 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/b2d0398c601fbc4cdf653ab17b52e24772259850/IC.py
__id__ = "$Id: IC.py,v 1.14 2005/05/23 22:00:45 ces74 Exp $"
__id__ = "$Id: IC.py,v 1.15 2005/05/28 05:27:26 ces74 Exp $"
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
b2d0398c601fbc4cdf653ab17b52e24772259850 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/b2d0398c601fbc4cdf653ab17b52e24772259850/IC.py
else if self.inventory.Solver == "multigrid":
elif self.inventory.Solver == "multigrid":
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()
fdd7a540582d6b04aab4d604baf335d12cd3b65a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/fdd7a540582d6b04aab4d604baf335d12cd3b65a/Stokes_solver.py
else if self.inventory.Solver == "multigrid-el":
elif self.inventory.Solver == "multigrid-el":
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()
fdd7a540582d6b04aab4d604baf335d12cd3b65a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/fdd7a540582d6b04aab4d604baf335d12cd3b65a/Stokes_solver.py
__id__ = "$Id: Stokes_solver.py,v 1.7 2003/07/15 00:40:03 tan2 Exp $"
__id__ = "$Id: Stokes_solver.py,v 1.8 2003/07/15 21:47:05 tan2 Exp $"
def output(self, *args, **kwds):
fdd7a540582d6b04aab4d604baf335d12cd3b65a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/fdd7a540582d6b04aab4d604baf335d12cd3b65a/Stokes_solver.py
if capnr==0: print iter
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 =...
6378e69a4f9972fdd215b29c2881c783062001a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/6378e69a4f9972fdd215b29c2881c783062001a7/Citcoms_Hdf2Vtk.py
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...
6378e69a4f9972fdd215b29c2881c783062001a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/6378e69a4f9972fdd215b29c2881c783062001a7/Citcoms_Hdf2Vtk.py
output_ll_max = pyre.inventory.int("output_ll_max", default=20)
output_ll_max = inv.int("output_ll_max", default=20)
def setProperties(self, stream): from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory, stream) return
30bb98f21f06a632cfbf5135512b5a294b485841 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/30bb98f21f06a632cfbf5135512b5a294b485841/Output.py
import pyre.inventory
import pyre.inventory as inv
def finalize(self): from CitcomSLib import output_finalize output_finalize(self.all_variables) return
ef5a5b2712d56359e97337d46a5d542f0ad4d7b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/ef5a5b2712d56359e97337d46a5d542f0ad4d7b9/Solver.py
tsolver = pyre.inventory.facility("tsolver", factory=Advection_diffusion.temperature_diffadv) vsolver = pyre.inventory.facility("vsolver", factory=Stokes_solver.incompressibleNewtonian) bc = pyre.inventory.facility("bc", factory=BC) const = pyre.inventory.facility("const", factory=Const) ic = pyre.inventory.facility("...
tsolver = inv.facility("tsolver", factory=Advection_diffusion.temperature_diffadv) vsolver = inv.facility("vsolver", factory=Stokes_solver.incompressibleNewtonian) bc = inv.facility("bc", factory=BC) const = inv.facility("const", factory=Const) ic = inv.facility("ic", factory=IC) param = inv.facility("param", factory=...
def finalize(self): from CitcomSLib import output_finalize output_finalize(self.all_variables) return
ef5a5b2712d56359e97337d46a5d542f0ad4d7b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/ef5a5b2712d56359e97337d46a5d542f0ad4d7b9/Solver.py
self.saved = range(grid['nox'] * grid['noy'])
self.saved = [''] * (grid['nox'] * grid['noy'])
def __init__(self, grid): # data storage self.saved = range(grid['nox'] * grid['noy']) return
295130b6e7773079117277563808eeac450a3e58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/295130b6e7773079117277563808eeac450a3e58/combinesurf.py
def readData(self, crdfilename, surffilename, grid):
def readData(self, crdfilename, surffilename, grid, cap):
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
295130b6e7773079117277563808eeac450a3e58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/295130b6e7773079117277563808eeac450a3e58/combinesurf.py
snodes = nox*noy
mynox = 1 + (nox-1)/nprocx mynoy = 1 + (noy-1)/nprocy mynoz = 1 + (noz-1)/nprocz snodes = mynox * mynoy
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
295130b6e7773079117277563808eeac450a3e58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/295130b6e7773079117277563808eeac450a3e58/combinesurf.py
if not (len(crd) == snodes*noz):
if not (len(crd) == snodes*mynoz):
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
295130b6e7773079117277563808eeac450a3e58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/295130b6e7773079117277563808eeac450a3e58/combinesurf.py
x, y, z = crd[(i+1)*noz-1].split()
x, y, z = crd[(i+1)*mynoz-1].split()
def readData(self, crdfilename, surffilename, grid): fp1 = file(crdfilename, 'r') fp2 = file(surffilename, 'r')
295130b6e7773079117277563808eeac450a3e58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/295130b6e7773079117277563808eeac450a3e58/combinesurf.py
data = cb.readData(crdfilename, surffilename, grid)
data = cb.readData(crdfilename, surffilename, grid, cap)
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
295130b6e7773079117277563808eeac450a3e58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/295130b6e7773079117277563808eeac450a3e58/combinesurf.py
def write(self, filename, grid, data): fp = file(filename, 'w') fp.write('%d x %d\n' % (grid['nox'], grid['noy'])) fp.writelines(data) return
295130b6e7773079117277563808eeac450a3e58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/295130b6e7773079117277563808eeac450a3e58/combinesurf.py
self.II = Inlet.VTInlet(self.interior, self.sink["Intr"], self.all_variables)
self.II = Inlet.TInlet(self.interior, self.sink["Intr"], self.all_variables)
def createII(self): import Inlet self.II = Inlet.VTInlet(self.interior, self.sink["Intr"], self.all_variables) return
0d19c5b922767b8504345e3f019a93b53f0b9917 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/0d19c5b922767b8504345e3f019a93b53f0b9917/CoarseGridExchanger.py
__id__ = "$Id: CoarseGridExchanger.py,v 1.35 2004/05/29 01:19:31 tan2 Exp $"
__id__ = "$Id: CoarseGridExchanger.py,v 1.36 2004/08/06 20:22:30 tan2 Exp $"
def exchangeSignal(self, signal): newsgnl = self.module.exchangeSignal(signal, self.communicator.handle(), self.srcComm[0].handle(), self.srcComm[0].size - 1) return newsgnl
0d19c5b922767b8504345e3f019a93b53f0b9917 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/0d19c5b922767b8504345e3f019a93b53f0b9917/CoarseGridExchanger.py
def launch(self,application):
4fef9a6761d1326e9f94fb1d9bde218561a31f14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/4fef9a6761d1326e9f94fb1d9bde218561a31f14/Solver.py
"%s: step %d: advancing the solution by dt = %s" % (self.name, self.step, dt))
"%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()
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()
4fef9a6761d1326e9f94fb1d9bde218561a31f14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/4fef9a6761d1326e9f94fb1d9bde218561a31f14/Solver.py
__id__ = "$Id: Solver.py,v 1.10 2003/08/28 23:04:19 ces74 Exp $"
__id__ = "$Id: Solver.py,v 1.11 2003/08/28 23:18:10 ces74 Exp $"
def setProperties(self):
4fef9a6761d1326e9f94fb1d9bde218561a31f14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/4fef9a6761d1326e9f94fb1d9bde218561a31f14/Solver.py
component = Facility.bind(configuration)
component = Facility.bind(self, configuration)
def bind(self, configuration): componentName = configuration.get(self.name)
b49fc0f832bfc49769d624c078a303263805d47a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/b49fc0f832bfc49769d624c078a303263805d47a/VSolver.py
__id__ = "$Id: VSolver.py,v 1.1 2003/06/23 20:43:32 tan2 Exp $"
__id__ = "$Id: VSolver.py,v 1.2 2003/06/23 21:01:03 tan2 Exp $"
def bind(self, configuration): componentName = configuration.get(self.name)
b49fc0f832bfc49769d624c078a303263805d47a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/b49fc0f832bfc49769d624c078a303263805d47a/VSolver.py
name = 'citcomsregional.sh' if self.inventory.solver.name == 'full': name = 'citcomsfull.sh' print 'usage: %s [<property>=<value>] [<facility>.<property>=<value>] ...' % name
print 'usage: citcoms [<property>=<value>] [<facility>.<property>=<value>] ...'
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 """\
2ad5b86c2b9d6839a031514e9bb4d7d9da08efed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/2ad5b86c2b9d6839a031514e9bb4d7d9da08efed/SimpleApp.py
try: from config import makefile list.append(makefile['pkgsysconfdir']) except ImportError, KeyError:
etc = join(dirname(dirname(__file__)), 'etc') if isdir(etc):
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
2ad5b86c2b9d6839a031514e9bb4d7d9da08efed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/2ad5b86c2b9d6839a031514e9bb4d7d9da08efed/SimpleApp.py
from os.path import dirname, join etc = join(dirname(dirname(__file__)), 'etc')
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
2ad5b86c2b9d6839a031514e9bb4d7d9da08efed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/2ad5b86c2b9d6839a031514e9bb4d7d9da08efed/SimpleApp.py
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
ce1f445ba77690331f86849d82dc6483a85ec693 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/ce1f445ba77690331f86849d82dc6483a85ec693/Advection_diffusion.py
__id__ = "$Id: Advection_diffusion.py,v 1.19 2003/11/28 22:17:26 tan2 Exp $"
__id__ = "$Id: Advection_diffusion.py,v 1.20 2004/05/26 23:53:35 tan2 Exp $"
def stable_timestep(self): dt = self.CitcomModule.stable_timestep(self.all_variables) return dt
ce1f445ba77690331f86849d82dc6483a85ec693 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/ce1f445ba77690331f86849d82dc6483a85ec693/Advection_diffusion.py
blob_radius = pyre.inventory.float("blob_radius", default=[0.063]) blob_dT = pyre.inventory.float("blob_dT", default=[0.18])
blob_radius = pyre.inventory.float("blob_radius", default=0.063) blob_dT = pyre.inventory.float("blob_dT", default=0.18)
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
3bbc630ec132edf3ba7227011966c48ef86d3319 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/3bbc630ec132edf3ba7227011966c48ef86d3319/IC.py
validator=pyre.properties.range(0, 1)),
validator=pyre.properties.choice([0, 1])),
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
f944753eb937431651e5cc23524129a0740d8cbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/f944753eb937431651e5cc23524129a0740d8cbe/IC.py
__id__ = "$Id: IC.py,v 1.12 2005/02/17 22:57:42 tan2 Exp $"
__id__ = "$Id: IC.py,v 1.13 2005/02/18 00:13:36 tan2 Exp $"
def initViscosity(self): self.CitcomModule.initViscosity(self.all_variables) return
f944753eb937431651e5cc23524129a0740d8cbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/f944753eb937431651e5cc23524129a0740d8cbe/IC.py
outupt_alignment = inv.int("outupt_alignment", default=mega1/4) outupt_alignment_threshold = inv.int("outupt_alignment_threshold",
output_alignment = inv.int("output_alignment", default=mega1/4) output_alignment_threshold = inv.int("output_alignment_threshold",
def setProperties(self): from CitcomSLib import Output_set_properties Output_set_properties(self.all_variables, self.inventory) return
3009045076022f8b4a526fe3b658e8474a2f417c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/3009045076022f8b4a526fe3b658e8474a2f417c/Output.py
def __init__(self, communicator, boundary, sink, all_variables, mode='F'):
def __init__(self, boundary, sink, all_variables, mode='F'):
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
6a82ef11c4e819eccbf7e15958967ceddc73bfd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/6a82ef11c4e819eccbf7e15958967ceddc73bfd6/Inlet.py
self._handle = Exchanger.TractionInlet_create(communicator.handle(), boundary,
self._handle = Exchanger.TractionInlet_create(boundary,
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
6a82ef11c4e819eccbf7e15958967ceddc73bfd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/6a82ef11c4e819eccbf7e15958967ceddc73bfd6/Inlet.py
__id__ = "$Id: Inlet.py,v 1.3 2004/03/11 23:25:47 tan2 Exp $"
__id__ = "$Id: Inlet.py,v 1.4 2004/03/28 23:20:55 tan2 Exp $"
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
6a82ef11c4e819eccbf7e15958967ceddc73bfd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/6a82ef11c4e819eccbf7e15958967ceddc73bfd6/Inlet.py
__id__ = "$Id: Visc.py,v 1.11 2005/01/19 18:55:00 tan2 Exp $"
__id__ = "$Id: Visc.py,v 1.12 2005/01/20 22:25:53 tan2 Exp $"
def updateMaterial(self): self.CitcomModule.Visc_update_material(self.all_variables) return
ca3e40ec5e43910530c7a71e152caa39cc65a9b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/ca3e40ec5e43910530c7a71e152caa39cc65a9b9/Visc.py
self.method = method
self.method = method.upper()
def __init__(self, parent, src, method="GET", root_path=""): """ http_generator constructor.
0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa/http_generator.py
parameters = urllib.urlencode(self.parameter_children(self.child_results)) + q
parameters = urllib.urlencode(self.parameter_children(child_results)) + q
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa/http_generator.py
response = conn.request("GET", urlparse.urlunparse(protocol, host, path, p, parameters, f))
conn.request("GET", urlparse.urlunparse((protocol, host, path, p, parameters, f))) response = conn.getresponse()
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa/http_generator.py
response = conn.request("POST", urlparse.urlunparse(protocol, host, path, p, "", f), parameters)
conn.request("POST", urlparse.urlunparse((protocol, host, path, p, "", f)), parameters) response = conn.getresponse()
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa/http_generator.py
except httplib.HTTPException, e: raise GeneratorError("http_generator: exception occured during HTTP request: \"%\"" % str(e))
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa/http_generator.py
invk_syn.optional_attribs = ["allow-query"]
invk_syn.optional_attribs = ["allow-query", "required-parameters"]
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...
5159097980568cbffb9fee4e51dfa96450b2f25e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/5159097980568cbffb9fee4e51dfa96450b2f25e/uri_matcher.py
@pattern: the URI pattern string @allow_query: if True, then a URI including a query string will match (default: True)
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...
5159097980568cbffb9fee4e51dfa96450b2f25e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/5159097980568cbffb9fee4e51dfa96450b2f25e/uri_matcher.py
def __init__(self, parent, pattern, allow_query="yes", root_path=""):
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...
def __init__(self, parent, pattern, allow_query="yes", root_path=""): self.pattern = pattern
5159097980568cbffb9fee4e51dfa96450b2f25e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/5159097980568cbffb9fee4e51dfa96450b2f25e/uri_matcher.py
self.match_obj = self.regex.match(req.parsed_uri[apache.URI_PATH])
if self.regex.pattern.find("?") >= 0: self.match_obj = self.regex.match(req.unparsed_uri) else: self.match_obj = self.regex.match(req.parsed_uri[apache.URI_PATH])
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
5159097980568cbffb9fee4e51dfa96450b2f25e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/5159097980568cbffb9fee4e51dfa96450b2f25e/uri_matcher.py
res = {}
res = {'dpi': [resolution, y_resolution], 'quality': self.quality, }
def save_options(self, resolution, y_resolution): if y_resolution == None: y_resolution = resolution res = {} return res
d08f73934e2a6be597ec6ca81346f56c92ce3599 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2820/d08f73934e2a6be597ec6ca81346f56c92ce3599/SaneScanToFile.py
osi = [os.dup(sys.stdin.fileno()), sys.stdin.fileno()] oso = [os.dup(sys.stdout.fileno()), sys.stdout.fileno()] ose = [os.dup(sys.stderr.fileno()), sys.stderr.fileno()] os.dup2(si.fileno(), osi[1]) os.dup2(so.fileno(), oso[1]) os.dup2(se.fileno(), ose[1])
if not interact: osi = [os.dup(sys.stdin.fileno()), sys.stdin.fileno()] oso = [os.dup(sys.stdout.fileno()), sys.stdout.fileno()] ose = [os.dup(sys.stderr.fileno()), sys.stderr.fileno()] os.dup2(si.fileno(), osi[1]) os.dup2(so.fileno(), oso[1]) os.dup2(se.fileno(), ose[1])
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...
27e6638adc8ef10a975d6e853ef7f427ca3e5fbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/27e6638adc8ef10a975d6e853ef7f427ca3e5fbb/build.py
os.dup2(osi[0], osi[1]) os.dup2(oso[0], oso[1]) os.dup2(ose[0], ose[1]) si.close() so.close() se.close() os.close(osi[0]) os.close(oso[0]) os.close(ose[0])
if not interact: os.dup2(osi[0], osi[1]) os.dup2(oso[0], oso[1]) os.dup2(ose[0], ose[1]) si.close() so.close() se.close() os.close(osi[0]) os.close(oso[0]) os.close(ose[0])
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...
27e6638adc8ef10a975d6e853ef7f427ca3e5fbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/27e6638adc8ef10a975d6e853ef7f427ca3e5fbb/build.py
open(stamp, "w+")
if os.access(stamp, os.F_OK): os.remove(stamp) f = open(stamp, "w") f.close()
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+")
27e6638adc8ef10a975d6e853ef7f427ca3e5fbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/27e6638adc8ef10a975d6e853ef7f427ca3e5fbb/build.py
if url not in urldata:
fn = bb.data.getVar('FILE', d, 1) if fn not in urldata: urldata[fn] = {} if url not in urldata[fn]:
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...
d8f7680dc0221880a1eeb7bf2275642dfd3ce263 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/d8f7680dc0221880a1eeb7bf2275642dfd3ce263/__init__.py
urldata[url] = ud return urldata[url]
urldata[fn][url] = ud return urldata[fn][url]
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...
d8f7680dc0221880a1eeb7bf2275642dfd3ce263 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/d8f7680dc0221880a1eeb7bf2275642dfd3ce263/__init__.py
ud = urldata[u] if ud.localfile and not m.forcefetch(u, ud, d) and os.path.exists(urldata[u].md5):
ud = urldata[fn][u] if ud.localfile and not m.forcefetch(u, ud, d) and os.path.exists(urldata[fn][u].md5):
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....
d8f7680dc0221880a1eeb7bf2275642dfd3ce263 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/d8f7680dc0221880a1eeb7bf2275642dfd3ce263/__init__.py
local.append(urldata[u].localpath)
local.append(urldata[fn][u].localpath)
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
d8f7680dc0221880a1eeb7bf2275642dfd3ce263 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/d8f7680dc0221880a1eeb7bf2275642dfd3ce263/__init__.py
fdata.replace('@@'+key+'@@', bb.data.getVar(key, package))
fdata = fdata.replace('@@'+key+'@@', bb.data.getVar(key, package))
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...
2459137316afb0d47db53e66fff94dd1c5ffecb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/2459137316afb0d47db53e66fff94dd1c5ffecb8/rewrite.py
template = os.path.join(emitter.filefunc(package), '.in')
template = emitter.filefunc(package) + '.in'
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...
2459137316afb0d47db53e66fff94dd1c5ffecb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/2459137316afb0d47db53e66fff94dd1c5ffecb8/rewrite.py
return os.path.join(data.getVar("DL_DIR", d, 1),data.expand('%s_%s_%s_%s.tar.gz' % ( module.replace('/', '.'), host, revision, date), d))
return os.path.join(data.getVar("DL_DIR", d, 1),data.expand('%s_%s_%s_%s_%s.tar.gz' % ( module.replace('/', '.'), host, path.replace('/','.'), revision, date), d))
def localpath(url, d): (type, host, path, user, pswd, parm) = bb.decodeurl(data.expand(url, d)) if "localpath" in parm:
e752d6f3aa7b0a93cc3af880bee7f88d778d1f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/e752d6f3aa7b0a93cc3af880bee7f88d778d1f67/fetch.py
tarfn = data.expand('%s_%s_%s_%s.tar.gz' % (module.replace('/', '.'), host, revision, date), localdata)
tarfn = data.expand('%s_%s_%s_%s_%s.tar.gz' % (module.replace('/', '.'), host, path.replace('/', '.'), revision, date), localdata)
def go(self, d, urls = []): """Fetch urls""" if not urls: urls = self.urls
e752d6f3aa7b0a93cc3af880bee7f88d778d1f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/e752d6f3aa7b0a93cc3af880bee7f88d778d1f67/fetch.py
print "ERROR: '%s' failed" % td.fn_index[fnid])
print "ERROR: '%s' failed" % td.fn_index[fnid]
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 )
37669af82c8a4fd5ee7d04edb06ad654b8446e82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8123/37669af82c8a4fd5ee7d04edb06ad654b8446e82/shell.py
gettext.bindtextdomain('invest-applet', abspath(join(invest.defs.DATA_DIR, "locale"))) gettext.textdomain('invest-applet') locale.bindtextdomain('invest-applet', abspath(join(invest.defs.DATA_DIR, "locale"))) locale.textdomain('invest-applet')
gettext.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.GNOMELOCALEDIR) gettext.textdomain(invest.defs.GETTEXT_PACKAGE) locale.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.GNOMELOCALEDIR) locale.textdomain(invest.defs.GETTEXT_PACKAGE) gtk.glade.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs....
def _check(path): return exists(path) and isdir(path) and isfile(path+"/ChangeLog")
64dd6b2cbc9525d49832fe760ace79124d78c813 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11078/64dd6b2cbc9525d49832fe760ace79124d78c813/invest-applet.py
def printIFaceTableCXXFile(f,out): constants = [] functions = {} properties = {}
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_...
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
constants.append( (name, features["Value"]) )
constants.append( (name, features) )
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
functions[name] = features
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
getter = getterName and functions[getterName] setter = setterName and functions[setterName]
getter = getterName and f.features[getterName] setter = setterName and f.features[setterName]
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
properties[propname] = (getterValue, setterValue, propType, propIndex)
properties[propname] = { "GetterValue" : getterValue, "SetterValue" : setterValue, "PropertyType" : propType, "IndexParamType" : propIndex, "IndexParamName" : propIndexName, "Category" : (getter or setter)["Category"], "GetterName" : getterName, "SetterName" : setterName, "GetterComment" : gette...
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
constants.append( ("SCI_" + string.upper(getterName), getterValue) ) del(functions[getterName])
constants.append( ("SCI_" + string.upper(getterName), getter))
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
constants.append( ("SCI_" + string.upper(setterName), setterValue) ) del(functions[setterName])
constants.append( ("SCI_" + string.upper(setterName), setter))
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
constants.sort()
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
for name, value in constants:
for name, features in constants:
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
out.write('\n\t{"%s",%s}' % (name, value))
out.write('\n\t{"%s",%s}' % (name, features["Value"]))
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
funclist = functions.items() funclist.sort()
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
for name, features in funclist:
for name, features in functions:
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
out.write('{""}};\n')
out.write('{"",0,iface_void,{iface_void,iface_void}} };\n')
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
proplist = properties.items() proplist.sort()
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
for propname, (getter, setter, valueType, paramType) in proplist:
for propname, property in properties:
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
propname, getter, setter, valueType, paramType
propname, property["GetterValue"], property["SetterValue"], property["PropertyType"], property["IndexParamType"]
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
out.write('{""}};\n')
out.write('{"", 0, iface_void, iface_void} };\n')
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...
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
if Contains(line, "//++Autogenerated"):
if Contains(line, "//++Autogenerated") or Contains(line, "<!-- <Autogenerated> -->"):
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)
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
if Contains(line, "//--Autogenerated"):
if Contains(line, "//--Autogenerated") or Contains(line, "<!-- </Autogenerated> -->"):
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)
64414d33ba5e9732721cf1f248ad0e736d29315c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/64414d33ba5e9732721cf1f248ad0e736d29315c/IFaceTableGen.py
functions = []
functions = {} properties = {}
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...
114db92c80378b4eaad3f91ec47fb94c1731131a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/114db92c80378b4eaad3f91ec47fb94c1731131a/IFaceTableGen.py
functions.append((name, features))
functions[name] = features if features["FeatureType"] == "get": propname = string.replace(name, "Get", "", 1) properties[propname] = (name, properties.get(propname,(None,None))[1]) elif features["FeatureType"] == "set": propname = string.replace(name, "Set", "", 1) properties[propname] = (properties.get(propname,(Non...
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...
114db92c80378b4eaad3f91ec47fb94c1731131a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/114db92c80378b4eaad3f91ec47fb94c1731131a/IFaceTableGen.py
functions.sort()
funclist = functions.items() funclist.sort()
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...
114db92c80378b4eaad3f91ec47fb94c1731131a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/114db92c80378b4eaad3f91ec47fb94c1731131a/IFaceTableGen.py
for name, features in functions:
for name, features in funclist:
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...
114db92c80378b4eaad3f91ec47fb94c1731131a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/114db92c80378b4eaad3f91ec47fb94c1731131a/IFaceTableGen.py
name, features["Value"], features["ReturnType"] or "void", paramTypes[0], paramTypes[1]
name, features["Value"], returnType, paramTypes[0], paramTypes[1]
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...
114db92c80378b4eaad3f91ec47fb94c1731131a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/114db92c80378b4eaad3f91ec47fb94c1731131a/IFaceTableGen.py
else: 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}' % ...
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...
114db92c80378b4eaad3f91ec47fb94c1731131a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/114db92c80378b4eaad3f91ec47fb94c1731131a/IFaceTableGen.py
out.write("\tifaceConstantCount = %d\n" % len(constants))
out.write("\tifaceConstantCount = %d,\n" % len(constants)) out.write("\tifacePropertyCount = %d\n" % len(properties))
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...
114db92c80378b4eaad3f91ec47fb94c1731131a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5233/114db92c80378b4eaad3f91ec47fb94c1731131a/IFaceTableGen.py
'from MGI_Synonym_MusMarker_View s ' + \ 'where s.synonymType in ("similar", "broad", "narrow") '
'from MGI_SynonymType st, MGI_Synonym s ' + \ 'where st._MGIType_key = 2 ' + \ 'and st._Organism_key = 1 ' + \ 'and st.synonymType in ("similar", "broad", "narrow") ' + \ 'and st._SynonymType_key = s._SynonymType_key '
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...
6e4d6b3535174793d8e8cb2446fbf76561aabbfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/6e4d6b3535174793d8e8cb2446fbf76561aabbfa/mrklabel.py
server = os.environ['DBSERVER'] database = os.environ['DBNAME'] user = os.environ['DBUSER'] passwordFile = os.environ['DBPASSWORDFILE']
user = os.environ['MGD_DBUSER'] passwordFile = os.environ['MGD_DBPASSWORDFILE']
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 ...
eb6f72b2151d5b76d086a4dac99cbcb9e9379978 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/eb6f72b2151d5b76d086a4dac99cbcb9e9379978/mrkprobe.py
db.set_sqlLogin(user, password, server, database)
db.set_sqlUser(user) db.set_sqlPassword(password)
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 ...
eb6f72b2151d5b76d086a4dac99cbcb9e9379978 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/eb6f72b2151d5b76d086a4dac99cbcb9e9379978/mrkprobe.py
cmd = 'select o._Marker_key, o._Organism_key, o._OrthologOrganism_key, label = s.synonym ' + \
cmd = 'select distinct o._Marker_key, o._Organism_key, o._OrthologOrganism_key, label = s.synonym ' + \
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...
5b92781424868aacee0b2bc18b7096aa7848ce8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/5b92781424868aacee0b2bc18b7096aa7848ce8e/mrklabel.py
cmd = cmd + 'where s._Object_key = %s\n' % markerKey
cmd = cmd + 'and s._Object_key = %s\n' % markerKey
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...
5b92781424868aacee0b2bc18b7096aa7848ce8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/5b92781424868aacee0b2bc18b7096aa7848ce8e/mrklabel.py
cmd = 'select o._Marker_key, o._Organism_key, o._OrthologOrganism_key, label = s.synonym ' + \
cmd = 'select distinct o._Marker_key, o._Organism_key, o._OrthologOrganism_key, label = s.synonym ' + \
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 ...
5b92781424868aacee0b2bc18b7096aa7848ce8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/5b92781424868aacee0b2bc18b7096aa7848ce8e/mrklabel.py
cmd = cmd + 'where s._Object_key = %s\n' % markerKey
cmd = cmd + 'and s._Object_key = %s\n' % markerKey
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 ...
5b92781424868aacee0b2bc18b7096aa7848ce8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/5b92781424868aacee0b2bc18b7096aa7848ce8e/mrklabel.py
def priority11(): # human ortholog (symbol) print 'processing priority 11...%s' % mgi_utils.date()
5b92781424868aacee0b2bc18b7096aa7848ce8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/5b92781424868aacee0b2bc18b7096aa7848ce8e/mrklabel.py
if markerKey is not None: cmd = cmd + 'and _Marker_key = %s\n' % markerKey
def priority11(): # human ortholog (symbol) print 'processing priority 11...%s' % mgi_utils.date()
5b92781424868aacee0b2bc18b7096aa7848ce8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/5b92781424868aacee0b2bc18b7096aa7848ce8e/mrklabel.py
if markerKey is not None: cmd = cmd + 'and _Marker_key = %s\n' % markerKey
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...
5b92781424868aacee0b2bc18b7096aa7848ce8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/5b92781424868aacee0b2bc18b7096aa7848ce8e/mrklabel.py
if markerKey is not None: cmd = cmd + 'and _Marker_key = %s\n' % markerKey
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...
5b92781424868aacee0b2bc18b7096aa7848ce8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/342/5b92781424868aacee0b2bc18b7096aa7848ce8e/mrklabel.py