rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
sob = [ base for base in bases \ if issubclass(base, ParamType) and base != ParamType ] if len(sob) == 1:
cnbase = [ base for base in bases if isConfigNode(base) ] if len(cnbase) == 1:
def __init__(cls, name, bases, dict): super(MetaConfigNode, cls).__init__(name, bases, dict)
d847b2fff1e504844ea2f4c68f115c26265223db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/d847b2fff1e504844ea2f4c68f115c26265223db/config.py
for key,val in sob[0]._values.iteritems():
for key,val in cnbase[0]._values.iteritems():
def __init__(cls, name, bases, dict): super(MetaConfigNode, cls).__init__(name, bases, dict)
d847b2fff1e504844ea2f4c68f115c26265223db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/d847b2fff1e504844ea2f4c68f115c26265223db/config.py
cls._params.parent = sob[0]._params cls._values.parent = sob[0]._values elif len(sob) > 1:
cls._params.parent = cnbase[0]._params cls._values.parent = cnbase[0]._values elif len(cnbase) > 1:
def __init__(cls, name, bases, dict): super(MetaConfigNode, cls).__init__(name, bases, dict)
d847b2fff1e504844ea2f4c68f115c26265223db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/d847b2fff1e504844ea2f4c68f115c26265223db/config.py
%s""" % str(sob))
%s""" % str(cnbase))
def __init__(cls, name, bases, dict): super(MetaConfigNode, cls).__init__(name, bases, dict)
d847b2fff1e504844ea2f4c68f115c26265223db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/d847b2fff1e504844ea2f4c68f115c26265223db/config.py
if value == Nxone:
if value == None:
def _convert(cls, value): if value == Nxone: return
b0d0de8662472e998edfcddb2ac0385bd6202d0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/b0d0de8662472e998edfcddb2ac0385bd6202d0d/config.py
def outputDot(self, dot):
f290e1fb5952c37c6e7e7dd618c56f59203d46ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/f290e1fb5952c37c6e7e7dd618c56f59203d46ca/config.py
def __setattr__(self, attr, value): if attr != 'ptype': raise AttributeError, \ 'Attribute %s not available in %s' % (attr, self.__class__) super(ParamFactory, self).__setattr__(attr, value)
f290e1fb5952c37c6e7e7dd618c56f59203d46ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/f290e1fb5952c37c6e7e7dd618c56f59203d46ca/config.py
def _string(cls, value): return value
f290e1fb5952c37c6e7e7dd618c56f59203d46ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/f290e1fb5952c37c6e7e7dd618c56f59203d46ca/config.py
def _string(): return 'NULL'
f290e1fb5952c37c6e7e7dd618c56f59203d46ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/f290e1fb5952c37c6e7e7dd618c56f59203d46ca/config.py
self.children.sort(lambda x,y: cmp(x.name, y.name))
def display(self): print '[' + self.path + ']' # .ini section header
722acd7a6c1e44331009716dd02d3bf38e9b1b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/722acd7a6c1e44331009716dd02d3bf38e9b1b18/m5config.py
code = None, opt_args = [], *extras):
code = None, opt_args = [], extras = {}):
def __init__(self, mnem, class_name, base_class = '', code = None, opt_args = [], *extras): self.mnemonic = mnem self.class_name = class_name self.base_class = base_class if code: #If the user already made a CodeBlock, pick the parts from it if isinstance(code, CodeBlock): origCode = code.orig_code codeBlock = code els...
318664951d60b2246ad73f0e45d337978d1bf5d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/318664951d60b2246ad73f0e45d337978d1bf5d1/isa_parser.py
compositeCode = '\n'.join([origCode] + [pair[1] for pair in extras])
stringExtras = {} otherExtras = {} for (k, v) in extras.items(): if type(v) == str: stringExtras[k] = v else: otherExtras[k] = v compositeCode = "\n".join([origCode] + stringExtras.values())
def __init__(self, mnem, class_name, base_class = '', code = None, opt_args = [], *extras): self.mnemonic = mnem self.class_name = class_name self.base_class = base_class if code: #If the user already made a CodeBlock, pick the parts from it if isinstance(code, CodeBlock): origCode = code.orig_code codeBlock = code els...
318664951d60b2246ad73f0e45d337978d1bf5d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/318664951d60b2246ad73f0e45d337978d1bf5d1/isa_parser.py
for (key, snippet) in extras:
for (key, snippet) in stringExtras.items():
def __init__(self, mnem, class_name, base_class = '', code = None, opt_args = [], *extras): self.mnemonic = mnem self.class_name = class_name self.base_class = base_class if code: #If the user already made a CodeBlock, pick the parts from it if isinstance(code, CodeBlock): origCode = code.orig_code codeBlock = code els...
318664951d60b2246ad73f0e45d337978d1bf5d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/318664951d60b2246ad73f0e45d337978d1bf5d1/isa_parser.py
jl.append(jobname)
jl.append(jobname)
def nfspath(dir): if dir.startswith('/.automount/'): dir = '/n/%s' % dir[12:] elif not dir.startswith('/n/'): dir = '/n/%s%s' % (socket.gethostname().split('.')[0], dir) return dir
cb130ee5c58d40fb0f6a76b31f912bddec3b6c59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/cb130ee5c58d40fb0f6a76b31f912bddec3b6c59/send.py
self.inner_axes.set_ylim(self.ylim)
inner_axes.set_ylim(self.ylim)
def graph(self): if self.chartdata is None: raise AttributeError, "Data not set for bar chart!"
304c9e85ebd581b8ca2f8c098823da8f4e464145 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/304c9e85ebd581b8ca2f8c098823da8f4e464145/barchart.py
self.xsubticks.append('') inner_axes.set_xticklabels(self.xsubticks * cshape[2], fontsize=7, rotation=90)
xsubticks = list(self.xsubticks) + [ '' ] inner_axes.set_xticklabels(xsubticks * cshape[2], fontsize=7, rotation=30)
def graph(self): if self.chartdata is None: raise AttributeError, "Data not set for bar chart!"
304c9e85ebd581b8ca2f8c098823da8f4e464145 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/304c9e85ebd581b8ca2f8c098823da8f4e464145/barchart.py
disk.dir = joinpath('/n/zamp/z/ktlim/local/clean/linux', 'disks')
disk.dir = joinpath(system.dir, 'disks')
def system(): if not system.dir: try: path = env['M5_PATH'].split(':') except KeyError: path = [ '/dist/m5/system', '/n/poolfs/z/dist/m5/system' ] for system.dir in path: if os.path.isdir(system.dir): break else: raise ImportError, "Can't find a path to system files." if not binary.dir: binary.dir = joinpath(system.d...
70fec422bb609ec9a481db38008bbc64248de464 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/70fec422bb609ec9a481db38008bbc64248de464/SysPaths.py
return float(value[:-3]) * tera
return float(value[:-4]) * tera
def toNetworkBandwidth(value): if not isinstance(value, str): raise TypeError, "wrong type '%s' should be str" % type(value) if value.endswith('Tbps'): return float(value[:-3]) * tera elif value.endswith('Gbps'): return float(value[:-3]) * giga elif value.endswith('Mbps'): return float(value[:-3]) * mega elif value.en...
68dac4a2c1d5d33baa2d597c0df7c5163d70b305 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/68dac4a2c1d5d33baa2d597c0df7c5163d70b305/convert.py
return float(value[:-3]) * giga
return float(value[:-4]) * giga
def toNetworkBandwidth(value): if not isinstance(value, str): raise TypeError, "wrong type '%s' should be str" % type(value) if value.endswith('Tbps'): return float(value[:-3]) * tera elif value.endswith('Gbps'): return float(value[:-3]) * giga elif value.endswith('Mbps'): return float(value[:-3]) * mega elif value.en...
68dac4a2c1d5d33baa2d597c0df7c5163d70b305 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/68dac4a2c1d5d33baa2d597c0df7c5163d70b305/convert.py
return float(value[:-3]) * mega
return float(value[:-4]) * mega
def toNetworkBandwidth(value): if not isinstance(value, str): raise TypeError, "wrong type '%s' should be str" % type(value) if value.endswith('Tbps'): return float(value[:-3]) * tera elif value.endswith('Gbps'): return float(value[:-3]) * giga elif value.endswith('Mbps'): return float(value[:-3]) * mega elif value.en...
68dac4a2c1d5d33baa2d597c0df7c5163d70b305 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/68dac4a2c1d5d33baa2d597c0df7c5163d70b305/convert.py
return float(value[:-3]) * kilo
return float(value[:-4]) * kilo
def toNetworkBandwidth(value): if not isinstance(value, str): raise TypeError, "wrong type '%s' should be str" % type(value) if value.endswith('Tbps'): return float(value[:-3]) * tera elif value.endswith('Gbps'): return float(value[:-3]) * giga elif value.endswith('Mbps'): return float(value[:-3]) * mega elif value.en...
68dac4a2c1d5d33baa2d597c0df7c5163d70b305 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/68dac4a2c1d5d33baa2d597c0df7c5163d70b305/convert.py
return float(value[:-2])
return float(value[:-3])
def toNetworkBandwidth(value): if not isinstance(value, str): raise TypeError, "wrong type '%s' should be str" % type(value) if value.endswith('Tbps'): return float(value[:-3]) * tera elif value.endswith('Gbps'): return float(value[:-3]) * giga elif value.endswith('Mbps'): return float(value[:-3]) * mega elif value.en...
68dac4a2c1d5d33baa2d597c0df7c5163d70b305 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/68dac4a2c1d5d33baa2d597c0df7c5163d70b305/convert.py
fname = '/n/ziff/z/binkertn/graph/data.ibm/%s.%s.dat' % (tag, base)
fname = '/n/ziff/z/binkertn/graph/test0/data/%s.%s.dat' % (tag, base)
def graphdata(runs, tag, label, value): import info configs = ['std', 'csa', 'ht1', 'ht4', 'htx', 'ocm', 'occ', 'ocp' ] benchmarks = [ 'm', 's' ] dmas = [ 'x', 'd', 'b' ] caches = [ '1', '2', '3', '4', '5' ] systems = [ 'M' ] checkpoints = [ '1' ] names = [] for bench in benchmarks: for dma in dmas: for cache in cache...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if binned:
if options.binned:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if binned:
if options.binned:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if binned:
if options.binned:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if binned:
if options.binned:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
graph = False binned = False
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
print parser.help
parser.print_help()
def usage(exitcode=None): print parser.help if exitcode is not None: sys.exit(exitcode)
4737ab14851ddedd4333ae80dd96bcd05d3bc65a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/4737ab14851ddedd4333ae80dd96bcd05d3bc65a/main.py
eval(args_left.pop(0))
exec args_left.pop(0)
def AddToPath(path): # if it's a relative path and we know what directory the current # python script is in, make the path relative to that directory. if not os.path.isabs(path) and sys.path[0]: path = os.path.join(sys.path[0], path) path = os.path.realpath(path) # sys.path[0] should always refer to the current script'...
c178851ce8d4ee398b2df77b7dcb822c09aaa215 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/c178851ce8d4ee398b2df77b7dcb822c09aaa215/__init__.py
(obj.path, child.path)
(found_obj.path, child.path)
def find_any(self, ptype): if isinstance(self, ptype): return self, True
9fc8f88f69f5909f954d5cd4364157a931adbcf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/9fc8f88f69f5909f954d5cd4364157a931adbcf4/config.py
def p_specification(t): 'specification : opt_defs_and_declares name_decl opt_defs_and_declares decode_block' global_decls1 = t[1] isa_name = t[2] namespace = isa_name + "Inst" global_decls2 = t[3] (inst_decls, code) = t[4] code = indent(code) # grab the last three path components of isa_desc_filename filename = '/'.joi...
86a34b57a94c7abc821975abbc3f49d0975d2f03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/86a34b57a94c7abc821975abbc3f49d0975d2f03/isa_parser.py
print 'type =', self.type
print 'type=%s' % self.type
def print_ini(self): print '[' + self.path() + ']' # .ini section header
74c9ab91676732da538aac21c6a64f6a0b215c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/74c9ab91676732da538aac21c6a64f6a0b215c2d/config.py
print 'children =', ' '.join(np_child_names)
print 'children=%s' % ' '.join(np_child_names)
def print_ini(self): print '[' + self.path() + ']' # .ini section header
74c9ab91676732da538aac21c6a64f6a0b215c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/74c9ab91676732da538aac21c6a64f6a0b215c2d/config.py
print param, '=', self._values[param].ini_str()
print '%s=%s' % (param, self._values[param].ini_str())
def print_ini(self): print '[' + self.path() + ']' # .ini section header
74c9ab91676732da538aac21c6a64f6a0b215c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/74c9ab91676732da538aac21c6a64f6a0b215c2d/config.py
'Enum', 'Bool', 'String',
'Enum', 'Bool', 'String', 'Float',
def instantiate(root): global ticks_per_sec ticks_per_sec = float(root.clock.frequency) root.print_ini() noDot = True # temporary until we fix dot if not noDot: dot = pydot.Dot() instance.outputDot(dot) dot.orientation = "portrait" dot.size = "8.5,11" dot.ranksep="equally" dot.rank="samerank" dot.write("config.dot") do...
74c9ab91676732da538aac21c6a64f6a0b215c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/74c9ab91676732da538aac21c6a64f6a0b215c2d/config.py
def parse_isa_desc(isa_desc_file, output_dir, include_path):
def parse_isa_desc(isa_desc_file, output_dir):
def parse_isa_desc(isa_desc_file, output_dir, include_path): # set a global var for the input filename... used in error messages global input_filename input_filename = isa_desc_file global fileNameStack fileNameStack = [(input_filename, 1)] # Suck the ISA description file in. input = open(isa_desc_file) isa_desc = inp...
3cb417df252404a1ced27aa6028f93e4e3a7cd9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/3cb417df252404a1ced27aa6028f93e4e3a7cd9e/isa_parser.py
includes = '
includes = '
def parse_isa_desc(isa_desc_file, output_dir, include_path): # set a global var for the input filename... used in error messages global input_filename input_filename = isa_desc_file global fileNameStack fileNameStack = [(input_filename, 1)] # Suck the ISA description file in. input = open(isa_desc_file) isa_desc = inp...
3cb417df252404a1ced27aa6028f93e4e3a7cd9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/3cb417df252404a1ced27aa6028f93e4e3a7cd9e/isa_parser.py
includes = '
includes = '
def parse_isa_desc(isa_desc_file, output_dir, include_path): # set a global var for the input filename... used in error messages global input_filename input_filename = isa_desc_file global fileNameStack fileNameStack = [(input_filename, 1)] # Suck the ISA description file in. input = open(isa_desc_file) isa_desc = inp...
3cb417df252404a1ced27aa6028f93e4e3a7cd9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/3cb417df252404a1ced27aa6028f93e4e3a7cd9e/isa_parser.py
parse_isa_desc(sys.argv[1], sys.argv[2], sys.argv[3])
parse_isa_desc(sys.argv[1], sys.argv[2])
def parse_isa_desc(isa_desc_file, output_dir, include_path): # set a global var for the input filename... used in error messages global input_filename input_filename = isa_desc_file global fileNameStack fileNameStack = [(input_filename, 1)] # Suck the ISA description file in. input = open(isa_desc_file) isa_desc = inp...
3cb417df252404a1ced27aa6028f93e4e3a7cd9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/3cb417df252404a1ced27aa6028f93e4e3a7cd9e/isa_parser.py
def panic(*args, **kwargs):
def panic(string):
def panic(*args, **kwargs): print >>sys.stderr, 'panic:', string sys.exit(1)
adc775f6ab4ac2340008fb716d8a581fb44bdd20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/adc775f6ab4ac2340008fb716d8a581fb44bdd20/m5config.py
raise TypeError, "%s is not of type BaseCPU", cpu
raise TypeError, "%s is not of type BaseCPU" % cpu
def switchCpus(cpuList): print "switching cpus" if not isinstance(cpuList, list): raise RuntimeError, "Must pass a list to this function" for i in cpuList: if not isinstance(i, tuple): raise RuntimeError, "List must have tuples of (oldCPU,newCPU)" [old_cpus, new_cpus] = zip(*cpuList) for cpu in old_cpus: if not isins...
d19c9ed6049e62f4227177461fc60b1dbaa55a8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/d19c9ed6049e62f4227177461fc60b1dbaa55a8d/__init__.py
raise TypeError, "%s is not of type BaseCPU", cpu
raise TypeError, "%s is not of type BaseCPU" % cpu
def switchCpus(cpuList): print "switching cpus" if not isinstance(cpuList, list): raise RuntimeError, "Must pass a list to this function" for i in cpuList: if not isinstance(i, tuple): raise RuntimeError, "List must have tuples of (oldCPU,newCPU)" [old_cpus, new_cpus] = zip(*cpuList) for cpu in old_cpus: if not isins...
d19c9ed6049e62f4227177461fc60b1dbaa55a8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/d19c9ed6049e62f4227177461fc60b1dbaa55a8d/__init__.py
path = [ '/dist/m5/system' ]
path = [ '/dist/m5/system', '/n/poolfs/z/dist/m5/system' ]
def load_defaults(): global systemdir, bindir, diskdir, scriptdir if not systemdir: try: path = env['M5_PATH'].split(':') except KeyError: path = [ '/dist/m5/system' ] for systemdir in path: if os.path.isdir(systemdir): break else: raise ImportError, "Can't find a path to system files." if not bindir: bindir = joinpa...
07a45e65879adacbd8ea85723da48f9da39c5cc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/07a45e65879adacbd8ea85723da48f9da39c5cc7/SysPaths.py
system = info.source.__dict__[options.system]
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
1537aae8102888ad8c44267fde0fdf0c6408f6a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/1537aae8102888ad8c44267fde0fdf0c6408f6a6/stats.py
if isinstance(self, System):
if isinstance(self, m5.objects.System):
def changeTiming(self, mode): if isinstance(self, System): self._ccObject.setMemoryMode(mode) for child in self._children.itervalues(): child.changeTiming(mode)
7ee0d522296812aafc0a4a2a399a66b528ba6517 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7ee0d522296812aafc0a4a2a399a66b528ba6517/SimObject.py
def clearPCSymbol(option, opt_str, value, parser): objects.ExecutionTrace.pc_symbol = False def clearPrintCycle(option, opt_str, value, parser): objects.ExecutionTrace.print_cycle = False
def setTraceFile(option, opt_str, value, parser): objects.Trace.file = value def usePCSymbol(option, opt_str, value, parser): objects.ExecutionTrace.pc_symbol = value def printCycle(option, opt_str, value, parser): objects.ExecutionTrace.print_cycle = value def printOp(option, opt_str, value, parser): objects.Execut...
def clearPCSymbol(option, opt_str, value, parser): objects.ExecutionTrace.pc_symbol = False
e2059d10cb9fb09349a28d3a87663d01b974f95a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/e2059d10cb9fb09349a28d3a87663d01b974f95a/__init__.py
optparse.make_option("--nopcsymbol", action="callback", callback=clearPCSymbol, help="Turn off printing PC symbols in trace output"), optparse.make_option("--noprintcycle", action="callback", callback=clearPrintCycle, help="Turn off printing cycles in trace output"),
optparse.make_option("--tracefile", type="string", action="callback", callback=setTraceFile), optparse.make_option("--pcsymbol", type="choice", choices=TrueOrFalse, default="True", metavar=TorF, action="callback", callback=usePCSymbol, help="Use PC symbols in trace output"), optparse.make_option("--printcycle", type="c...
def statsTextFile(option, opt_str, value, parser): objects.Statistics.text_file = value
e2059d10cb9fb09349a28d3a87663d01b974f95a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/e2059d10cb9fb09349a28d3a87663d01b974f95a/__init__.py
object.__setattr__(cls, attr_name, value)
type.__setattr__(cls, attr_name, value)
def __setattr__(cls, attr_name, value): # normal processing for private attributes if attr_name.startswith('_'): object.__setattr__(cls, attr_name, value) return # no '_': must be SimObject param param = cls.lookup_param(attr_name) if not param: raise AttributeError, \ "Class %s has no parameter %s" % (cls.__name__, at...
d6b939ae76aebaaee22e1fac38b6cce222d0371f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/d6b939ae76aebaaee22e1fac38b6cce222d0371f/m5configbase.py
object.__setattr__(cls, attr_name, param.make_value(value))
type.__setattr__(cls, attr_name, param.make_value(value))
def __setattr__(cls, attr_name, value): # normal processing for private attributes if attr_name.startswith('_'): object.__setattr__(cls, attr_name, value) return # no '_': must be SimObject param param = cls.lookup_param(attr_name) if not param: raise AttributeError, \ "Class %s has no parameter %s" % (cls.__name__, at...
d6b939ae76aebaaee22e1fac38b6cce222d0371f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/d6b939ae76aebaaee22e1fac38b6cce222d0371f/m5configbase.py
global fileNameStack fileNameStack.append((t.value[11:-1], t.lineno))
fileNameStack.push((t.value[11:-1], t.lineno))
def t_NEWFILE(t): r'^\#\#newfile\s+"[\w/.-]*"' global fileNameStack fileNameStack.append((t.value[11:-1], t.lineno)) t.lineno = 0
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
(filename, t.lineno) = fileNameStack.pop()
(old_filename, t.lineno) = fileNameStack.pop()
def t_ENDFILE(t): r'^\#\#endfile' (filename, t.lineno) = fileNameStack.pop()
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
error_bt(0, "unknown syntax error")
error(0, "unknown syntax error", True)
def p_error(t): if t: error(t.lineno, "syntax error at '%s'" % t.value) else: error_bt(0, "unknown syntax error")
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
def error(lineno, string):
def error(lineno, string, print_traceback = False):
def fixPythonIndentation(s): # get rid of blank lines first s = re.sub(r'(?m)^\s*\n', '', s); if (s != '' and re.match(r'[ \t]', s[0])): s = 'if 1:\n' + s return s
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
print spaces + "In file included from " + filename
print spaces + "In file included from " + filename + ":"
def error(lineno, string): spaces = "" for (filename, line) in fileNameStack[0:-1]: print spaces + "In file included from " + filename spaces += " " # Uncomment the following line to get a Python stack backtrace for # these errors too. Can be handy when trying to debug the parser. # traceback.print_exc() sys.exit(spa...
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
sys.exit(spaces + "%s:%d: %s" % (fileNameStack[-1][0], lineno, string)) def error_bt(lineno, string): traceback.print_exc() print >> sys.stderr, "%s:%d: %s" % (input_filename, lineno, string) sys.exit(1)
if (print_traceback): traceback.print_exc() if lineno != 0: line_str = "%d:" % lineno else: line_str = "" sys.exit(spaces + "%s:%s %s" % (fileNameStack[-1][0], line_str, string))
def error(lineno, string): spaces = "" for (filename, line) in fileNameStack[0:-1]: print spaces + "In file included from " + filename spaces += " " # Uncomment the following line to get a Python stack backtrace for # these errors too. Can be handy when trying to debug the parser. # traceback.print_exc() sys.exit(spa...
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
error(0, 'Unrecognized type description "%s" in userDict')
error(lineno, 'Unrecognized type description "%s" in userDict')
def buildOperandTypeMap(userDict, lineno): global operandTypeMap operandTypeMap = {} for (ext, (desc, size)) in userDict.iteritems(): if desc == 'signed int': ctype = 'int%d_t' % size is_signed = 1 elif desc == 'unsigned int': ctype = 'uint%d_t' % size is_signed = 0 elif desc == 'float': is_signed = 1 # shouldn't reall...
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
def update_if_needed(file, contents): update = False if os.access(file, os.R_OK): f = open(file, 'r') old_contents = f.read() f.close() if contents != old_contents: print 'Updating', file os.remove(file) # in case it's write-protected update = True else: print 'File', file, 'is unchanged' else: print 'Generating', file...
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
def preprocess_isa_desc(isa_desc):
def replace_include(matchobj, dirname): fname = matchobj.group('filename') full_fname = os.path.normpath(os.path.join(dirname, fname)) contents = ' (full_fname, read_and_flatten(full_fname)) return contents def read_and_flatten(filename): current_dir = os.path.dirname(filename) try: contents = open(filename).rea...
def preprocess_isa_desc(isa_desc): # Find any includes and include them pos = 0 while 1: m = includeRE.search(isa_desc, pos) if not m: break filename = m.group('filename') print 'Including file "%s"' % filename try: isa_desc = isa_desc[:m.start()] + \ '##newfile "' + filename + '"\n' + \ open(filename).read() + \ '##en...
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
pos = 0 while 1: m = includeRE.search(isa_desc, pos) if not m: break filename = m.group('filename') print 'Including file "%s"' % filename try: isa_desc = isa_desc[:m.start()] + \ ' open(filename).read() + \ ' isa_desc[m.end():] except IOError: error(0, 'Error including file "%s"' % (filename)) pos = m.start() return i...
contents = includeRE.sub(lambda m: replace_include(m, current_dir), contents) fileNameStack.pop() return contents
def preprocess_isa_desc(isa_desc): # Find any includes and include them pos = 0 while 1: m = includeRE.search(isa_desc, pos) if not m: break filename = m.group('filename') print 'Including file "%s"' % filename try: isa_desc = isa_desc[:m.start()] + \ '##newfile "' + filename + '"\n' + \ open(filename).read() + \ '##en...
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
global input_filename input_filename = isa_desc_file global fileNameStack fileNameStack = [(input_filename, 1)] input = open(isa_desc_file) isa_desc = input.read() input.close() isa_desc = preprocess_isa_desc(isa_desc)
isa_desc = read_and_flatten(isa_desc_file) fileNameStack.push((isa_desc_file, 0))
def parse_isa_desc(isa_desc_file, output_dir): # set a global var for the input filename... used in error messages global input_filename input_filename = isa_desc_file global fileNameStack fileNameStack = [(input_filename, 1)] # Suck the ISA description file in. input = open(isa_desc_file) isa_desc = input.read() inpu...
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
def m5execfile(f, global_dict): oldpath = sys.path[:] sys.path.insert(0, os.path.abspath(os.path.dirname(f))) execfile(f, global_dict) sys.path = oldpath
def panic(string): print >>sys.stderr, 'panic:', string sys.exit(1)
13c1645675441feea463de608cdac23b7e7577db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/13c1645675441feea463de608cdac23b7e7577db/__init__.py
if os.path.isdir(path) and path not in sys.path: sys.path.append(path)
sys.path.insert(1, path)
def AddToPath(path): path = os.path.realpath(path) if os.path.isdir(path) and path not in sys.path: sys.path.append(path)
13c1645675441feea463de608cdac23b7e7577db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/13c1645675441feea463de608cdac23b7e7577db/__init__.py
maxtick = -1
from m5 import MaxTick maxtick = MaxTick
def binpath(app, file=None): # executable has same name as app unless specified otherwise if not file: file = app return os.path.join(test_progs, app, 'bin', isa, opsys, file)
705f47b076eade803cf7a73472f50fc7061f9e1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/705f47b076eade803cf7a73472f50fc7061f9e1c/run.py
if isinstance(obj, BaseProxy):
if isinstance(obj, (BaseProxy, EthernetAddr)):
def isproxy(obj): if isinstance(obj, BaseProxy): return True elif isinstance(obj, (list, tuple)): for v in obj: if isproxy(v): return True return False
33010e0461a9611e7d585f759cbebb36fcad0279 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/33010e0461a9611e7d585f759cbebb36fcad0279/config.py
__metaclass__ = Singleton
def IncEthernetAddr(addr, val = 1): bytes = map(lambda x: int(x, 16), addr.split(':')) bytes[5] += val for i in (5, 4, 3, 2, 1): val,rem = divmod(bytes[i], 256) bytes[i] = rem if val == 0: break bytes[i - 1] += val assert(bytes[0] <= 255) return ':'.join(map(lambda x: '%02x' % x, bytes))
33010e0461a9611e7d585f759cbebb36fcad0279 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/33010e0461a9611e7d585f759cbebb36fcad0279/config.py
self.value = self.addr self.addr = IncEthernetAddr(self.addr, inc)
self.value = NextEthernetAddr.addr NextEthernetAddr.addr = IncEthernetAddr(NextEthernetAddr.addr, inc)
def __init__(self, inc = 1): self.value = self.addr self.addr = IncEthernetAddr(self.addr, inc)
33010e0461a9611e7d585f759cbebb36fcad0279 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/33010e0461a9611e7d585f759cbebb36fcad0279/config.py
self.value = self.value().value return self.value
return self.addr else: return self.value
def __str__(self): if self.value == NextEthernetAddr: self.value = self.value().value return self.value
33010e0461a9611e7d585f759cbebb36fcad0279 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/33010e0461a9611e7d585f759cbebb36fcad0279/config.py
def unproxy(self,base):
def unproxy(self, base):
def unproxy(self,base): return self
33010e0461a9611e7d585f759cbebb36fcad0279 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/33010e0461a9611e7d585f759cbebb36fcad0279/config.py
sim_seconds = source['sim_seconds']
def disp(*args): print "%-35s %12s %12s %4s %5s %5s %5s %10s" % args
1e47bba3ae72ab34f8ca3d066604fdedb4a37808 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/1e47bba3ae72ab34f8ca3d066604fdedb4a37808/stats.py
bps = etherdev.rxBandwidth + etherdev.txBandwidth
def disp(*args): print "%-35s %12s %12s %4s %5s %5s %5s %10s" % args
1e47bba3ae72ab34f8ca3d066604fdedb4a37808 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/1e47bba3ae72ab34f8ca3d066604fdedb4a37808/stats.py
output.stat = packets / sim_seconds
output.stat = packets / source['sim_seconds']
def display(): if options.graph: output.graph(command, options.graphdir, proxy) else: output.display(command, options.binned, options.printmode)
1e47bba3ae72ab34f8ca3d066604fdedb4a37808 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/1e47bba3ae72ab34f8ca3d066604fdedb4a37808/stats.py
output.stat = bps / 1e9
output.stat = (etherdev.rxBandwidth + etherdev.txBandwidth) / 1e9
def display(): if options.graph: output.graph(command, options.graphdir, proxy) else: output.display(command, options.binned, options.printmode)
1e47bba3ae72ab34f8ca3d066604fdedb4a37808 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/1e47bba3ae72ab34f8ca3d066604fdedb4a37808/stats.py
if system is None and hasattr('system', job):
if system is None and hasattr(job, 'system'):
def get(self, job, stat, system=None): run = self.allRunNames.get(str(job), None) if run is None: return None
ebe6e780a71ebcbcab3ab48d0e454e9c899a2e2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/ebe6e780a71ebcbcab3ab48d0e454e9c899a2e2c/db.py
sys.exit(*args, **kwargs)
print >>sys.stderr, 'panic:', string sys.exit(1)
def panic(*args, **kwargs): sys.exit(*args, **kwargs)
db63017232515e2c2be1a9dddc39336b0fb65a75 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/db63017232515e2c2be1a9dddc39336b0fb65a75/m5config.py
if os.path.isdir(path):
if os.path.isdir(path) and path not in sys.path:
def AddToPath(path): path = os.path.realpath(path) if os.path.isdir(path): sys.path.append(path)
db63017232515e2c2be1a9dddc39336b0fb65a75 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/db63017232515e2c2be1a9dddc39336b0fb65a75/m5config.py
eval("%s = %s" % (var, repr(val)))
exec "%s = %s" % (var, repr(val))
def AddToPath(path): # if it's a relative path and we know what directory the current # python script is in, make the path relative to that directory. if not os.path.isabs(path) and sys.path[0]: path = os.path.join(sys.path[0], path) path = os.path.realpath(path) # sys.path[0] should always refer to the current script'...
e781cbd421a662968fad080078cccc8c623d0644 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/e781cbd421a662968fad080078cccc8c623d0644/__init__.py
global __world__ __world__=self
_world=self
def __init__(self,digest_name="",uri_hash=None): """Create new RDF World object (constructor)""" self.world=Redland.librdf_new_world() Redland.librdf_world_open(self.world)
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
if __debug__:
global _debug if _debug:
def close(self): """Destroy RDF World object (destructor).""" if __debug__: print "Destroying RDF.world" self.me=None Redland.librdf_free_world(self.world)
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
def debug(self,value=0): global __debug__ if value: __debug__=value else: return __debug__
def debug(self,value= -1): if value >= 0: _debug=value else: return _debug
def debug(self,value=0): global __debug__ if value: __debug__=value else: return __debug__
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
if __debug__:
global _world global _debug if _debug:
def __init__(self, **args): """Create an RDF Node (constructor).""" if __debug__: print "Creating RDF.node args=",args self.node=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
self.node=Redland.librdf_new_node_from_uri_string(__world__.world, args['uri_string'])
self.node=Redland.librdf_new_node_from_uri_string(_world.world, args['uri_string'])
def __init__(self, **args): """Create an RDF Node (constructor).""" if __debug__: print "Creating RDF.node args=",args self.node=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
self.node=Redland.librdf_new_node_from_literal(__world__.world, args['literal'],xml_language,xml_space,is_wf_xml)
self.node=Redland.librdf_new_node_from_literal(_world.world, args['literal'],xml_language,xml_space,is_wf_xml)
def __init__(self, **args): """Create an RDF Node (constructor).""" if __debug__: print "Creating RDF.node args=",args self.node=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
self.node=Redland.librdf_new_node(__world__.world)
self.node=Redland.librdf_new_node(_world.world)
def __init__(self, **args): """Create an RDF Node (constructor).""" if __debug__: print "Creating RDF.node args=",args self.node=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
if __debug__:
global _debug if _debug:
def __del__(self): """Free an RDF Node (destructor).""" if __debug__: print "Destroying RDF.node" if self.node and self.free_me: if __debug__: print "Deleting Redland node object" Redland.librdf_free_node(self.node)
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
if __debug__:
if _debug:
def __del__(self): """Free an RDF Node (destructor).""" if __debug__: print "Destroying RDF.node" if self.node and self.free_me: if __debug__: print "Deleting Redland node object" Redland.librdf_free_node(self.node)
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
if __debug__:
global _world global _debug if _debug:
def __init__(self, **args): """Create an RDF Statement (constructor).""" if __debug__: print "Creating RDF.statement object args",args self.statement=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
self.statement=Redland.librdf_new_statement_from_nodes(__world__.world, s, p, o)
self.statement=Redland.librdf_new_statement_from_nodes(_world.world, s, p, o)
def __init__(self, **args): """Create an RDF Statement (constructor).""" if __debug__: print "Creating RDF.statement object args",args self.statement=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
self.statement=Redland.librdf_new_statement(__world__.world) def __del__(self): if __debug__:
self.statement=Redland.librdf_new_statement(_world.world) def __del__(self): global _debug if _debug:
def __init__(self, **args): """Create an RDF Statement (constructor).""" if __debug__: print "Creating RDF.statement object args",args self.statement=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
if __debug__:
if _debug:
def __del__(self): if __debug__: print "Destroying RDF.statement" if self.statement and self.free_me: if __debug__: print "Deleting Redland statement object" Redland.librdf_free_statement(self.statement)
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py