bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def msvc_version_to_maj_min(msvc_version): msvc_ver_numeric = string.join(filter(lambda x: x in string.digits + ".", msvc_version), '') t = msvc_version_numeric.split(".") if not len(t) == 2: raise ValueError("Unrecognized version %s" % msvc_version) try: maj = int(t[0]) min = int(t[1]) return maj, min except ValueEr...
def msvc_version_to_maj_min(msvc_version): t = msvc_version.split(".") if not len(t) == 2: raise ValueError("Unrecognized version %s" % msvc_version) try: maj = int(t[0]) min = int(t[1]) return maj, min except ValueError, e: raise ValueError("Unrecognized version %s" % msvc_version)
450,400
def is_win64(): """Return true if running on windows 64 bits. Works whether python itself runs in 64 bits or 32 bits.""" # Unfortunately, python does not provide a useful way to determine # if the underlying Windows OS is 32-bit or 64-bit. Worse, whether # the Python itself is 32-bit or 64-bit affects what it returns...
def is_win64(): """Return true if running on windows 64 bits. Works whether python itself runs in 64 bits or 32 bits.""" # Unfortunately, python does not provide a useful way to determine # if the underlying Windows OS is 32-bit or 64-bit. Worse, whether # the Python itself is 32-bit or 64-bit affects what it returns...
450,401
def is_win64(): """Return true if running on windows 64 bits. Works whether python itself runs in 64 bits or 32 bits.""" # Unfortunately, python does not provide a useful way to determine # if the underlying Windows OS is 32-bit or 64-bit. Worse, whether # the Python itself is 32-bit or 64-bit affects what it returns...
def is_win64(): """Return true if running on windows 64 bits. Works whether python itself runs in 64 bits or 32 bits.""" # Unfortunately, python does not provide a useful way to determine # if the underlying Windows OS is 32-bit or 64-bit. Worse, whether # the Python itself is 32-bit or 64-bit affects what it returns...
450,402
def mkdir(env, target, source): return None
def mkdir(env, target, source): return None
450,403
def mkdir(env, target, source): return None
def mkdir(env, target, source): return None
450,404
def test_proxy(self): """Test a Node.FS object wrapped in a proxy instance""" f1 = self.fs.File('fff') p = SCons.Util.Proxy(f1) f2 = self.fs.Entry(p) assert f1 is f2, (f1, f2)
def test_proxy(self): """Test a Node.FS object wrapped in a proxy instance""" f1 = self.fs.File('fff') class MyProxy(SCons.Util.Proxy): __str__ = SCons.Util.Delegate('__str__') p = MyProxy(f1) f2 = self.fs.Entry(p) assert f1 is f2, (f1, f2)
450,405
def test_proxy(self): """Test a Node.FS object wrapped in a proxy instance""" f1 = self.fs.File('fff') p = SCons.Util.Proxy(f1) f2 = self.fs.Entry(p) assert f1 is f2, (f1, f2)
def test_proxy(self): """Test a Node.FS object wrapped in a proxy instance""" f1 = self.fs.File('fff') p = SCons.Util.Proxy(f1) f2 = self.fs.Entry(p) assert f1 is f2, (f1, f2)
450,406
def cat(env, source, target): target = str(target[0]) f = open(target, "wb") for src in source: f.write(open(str(src), "rb").read()) f.close()
def cat(env, source, target): target = str(target[0]) f = open(target, "wb") for src in source: f.write(open(str(src), "rb").read()) f.close()
450,407
def f(self, x, y): self.z = x + y
def f(self, x, y): self.z = x + y
450,408
def Trace(msg, file=None, mode='w', tstamp=None): """Write a trace message to a file. Whenever a file is specified, it becomes the default for the next call to Trace().""" global TraceDefault global TimeStamp global PreviousTime if file is None: file = TraceDefault else: TraceDefault = file if tstamp is None: tstamp =...
def Trace(msg, file=None, mode='w', tstamp=None): """Write a trace message to a file. Whenever a file is specified, it becomes the default for the next call to Trace().""" global TraceDefault global TimeStampDefault global PreviousTime if file is None: file = TraceDefault else: TraceDefault = file if tstamp is None: t...
450,409
def __str__(self): return string.replace(str(self._Proxy__subject), os.sep, Sep)
def __str__(self): return string.replace(str(self._Proxy__subject), os.sep, Sep)
450,410
def my_RDirs(self, pathlist, orig_RDirs=orig_RDirs): return map(lambda x: string.replace(str(x), os.sep, Sep), orig_RDirs(self, pathlist))
def my_RDirs(self, pathlist, orig_RDirs=orig_RDirs): return map(lambda x: string.replace(str(x), os.sep, Sep), orig_RDirs(self, pathlist))
450,411
def Str(target, source, env, cmd=""): result = [] for cmd in env.subst_list(cmd, target=target, source=source): result.append(string.join(map(str, cmd))) return string.join(result, '\\n')
def Str(target, source, env, cmd=""): result = [] for cmd in env.subst_list(cmd, target=target, source=source): result.append(' '.join(map(str, cmd))) return '\\n'.join(result)
450,412
def JarCom(target, source, env): target = str(target[0]) class_files = [] for src in map(str, source): os.path.walk(src, find_class_files, class_files) f = open(target, "wb") for cf in class_files: f.write(open(cf, "rb").read()) f.close()
def JarCom(target, source, env): target = str(target[0]) class_files = [] for src in map(str, source): os.path.walk(src, find_class_files, class_files) f = open(target, "wb") for cf in class_files: f.write(open(cf, "rb").read()) f.close()
450,413
def end_scons_example(self): e = self.e files = [f for f in e.files if f.printme] if files: self.outfp.write('<programlisting>') for f in files: if f.printme: i = len(f.data) - 1 while f.data[i] == ' ': i = i - 1 output = f.data[:i+1].replace('__ROOT__', '') output = output.replace('<', '&lt;') output = output.replace(...
def end_scons_example(self): e = self.e files = [f for f in e.files if f.printme] if files: self.outfp.write('<programlisting>') for f in files: if f.printme: i = len(f.data) - 1 while f.data[i] == ' ': i = i - 1 output = self.for_display(f.data[:i+1]) self.outfp.write(output) if e.data and e.data[0] == '\n': e.data = ...
450,414
def end_scons_output(self): # The real raison d'etre for this script, this is where we # actually execute SCons to fetch the output. o = self.o e = o.e t = TestCmd.TestCmd(workdir='', combine=1) if o.preserve: t.preserve() t.subdir('ROOT', 'WORK') t.rootpath = t.workpath('ROOT').replace('\\', '\\\\')
def end_scons_output(self): # The real raison d'etre for this script, this is where we # actually execute SCons to fetch the output. o = self.o e = o.e t = TestCmd.TestCmd(workdir='', combine=1) if o.preserve: t.preserve() t.subdir('ROOT', 'WORK') t.rootpath = t.workpath('ROOT').replace('\\', '\\\\')
450,415
def end_sconstruct(self): f = self.f self.outfp.write('<programlisting>') output = f.data.replace('__ROOT__', '') self.outfp.write(output + '</programlisting>') delattr(self, 'f') self.afunclist = self.afunclist[:-1]
def end_sconstruct(self): f = self.f self.outfp.write('<programlisting>') output = self.for_display(f.data) self.outfp.write(output + '</programlisting>') delattr(self, 'f') self.afunclist = self.afunclist[:-1]
450,416
def re_escape(str): for c in ['.', '[', ']', '(', ')', '*', '+', '?']: # Not an exhaustive list. str = str.replace(c, '\\' + c) return str
def re_escape(str): for c in '.[]()*+?\\': # Not an exhaustive list. str = str.replace(c, '\\' + c) return str
450,417
def gccFortranLibs(): """Test which gcc Fortran startup libraries are required. This should probably move into SCons itself, but is kind of hacky. """ libs = ['g2c'] cmd = ['gcc', '-v'] try: import subprocess except ImportError: try: import popen2 stderr = popen2.popen3(cmd)[2].read() except OSError: return libs else...
def gccFortranLibs(): """Test which gcc Fortran startup libraries are required. This should probably move into SCons itself, but is kind of hacky. """ libs = ['g2c'] cmd = 'gcc -v' try: import subprocess except ImportError: try: import popen2 stderr = popen2.popen3(cmd)[2].read() except OSError: return libs else: std...
450,418
def gccFortranLibs(): """Test which gcc Fortran startup libraries are required. This should probably move into SCons itself, but is kind of hacky. """ libs = ['g2c'] cmd = ['gcc', '-v'] try: import subprocess except ImportError: try: import popen2 stderr = popen2.popen3(cmd)[2].read() except OSError: return libs else...
def gccFortranLibs(): """Test which gcc Fortran startup libraries are required. This should probably move into SCons itself, but is kind of hacky. """ libs = ['g2c'] cmd = ['gcc', '-v'] try: import subprocess except ImportError: try: import popen2 stderr = popen2.popen3(cmd)[2].read() except OSError: return libs else...
450,419
def get_host_target(env): host_platform = env.get('HOST_ARCH') if not host_platform: host_platform = platform.machine() # TODO(2.5): the native Python platform.machine() function returns # '' on all Python versions before 2.6, after which it also uses # PROCESSOR_ARCHITECTURE. if not host_platform: host_platform = os....
def get_host_target(env): host_platform = env.get('HOST_ARCH') if not host_platform: host_platform = platform.machine() # TODO(2.5): the native Python platform.machine() function returns # '' on all Python versions before 2.6, after which it also uses # PROCESSOR_ARCHITECTURE. if not host_platform: host_platform = os....
450,420
def msvc_version_to_maj_min(msvc_version): t = msvc_version.split(".") if not len(t) == 2: raise ValueError("Unrecognized version %s" % msvc_version) try: maj = int(t[0]) min = int(t[1]) return maj, min except ValueError, e: raise ValueError("Unrecognized version %s" % msvc_version)
def msvc_version_to_maj_min(msvc_version): msvc_ver_numeric = string.join(filter(lambda x: x in string.digits + ".", msvc_version), '') t = msvc_version_numeric.split(".") if not len(t) == 2: raise ValueError("Unrecognized version %s" % msvc_version) try: maj = int(t[0]) min = int(t[1]) return maj, min except ValueErr...
450,421
def __call__(self, *args, **kw): c = self.get_parent_class(args[2]) # args[2] is env return c.__call__(self, *args, **kw)
def __call__(self, *args, **kw): c = self.get_parent_class(args[2]) # args[2] is env return c.__call__(self, *args, **kw)
450,422
def msvc_setup_env(env): debug('msvc_setup_env()') version = get_default_version(env) if version is None: warn_msg = "No version of Visual Studio compiler found - C/C++ " \ "compilers most likely not set correctly" SCons.Warnings.warn(SCons.Warnings.VisualCMissingWarning, warn_msg) return None debug('msvc_setup_env: u...
def msvc_setup_env(env): debug('msvc_setup_env()') version = get_default_version(env) if version is None: warn_msg = "No version of Visual Studio compiler found - C/C++ " \ "compilers most likely not set correctly" SCons.Warnings.warn(SCons.Warnings.VisualCMissingWarning, warn_msg) return None debug('msvc_setup_env: u...
450,423
def get_host_target(env): debug('vc.py:get_host_target()') host_platform = env.get('HOST_ARCH') if not host_platform: host_platform = platform.machine() # TODO(2.5): the native Python platform.machine() function returns # '' on all Python versions before 2.6, after which it also uses # PROCESSOR_ARCHITECTURE. if not ...
def get_host_target(env): debug('vc.py:get_host_target()') host_platform = env.get('HOST_ARCH') if not host_platform: host_platform = platform.machine() # TODO(2.5): the native Python platform.machine() function returns # '' on all Python versions before 2.6, after which it also uses # PROCESSOR_ARCHITECTURE. if not ...
450,424
def get_host_target(env): debug('vc.py:get_host_target()') host_platform = env.get('HOST_ARCH') if not host_platform: host_platform = platform.machine() # TODO(2.5): the native Python platform.machine() function returns # '' on all Python versions before 2.6, after which it also uses # PROCESSOR_ARCHITECTURE. if not ...
def get_host_target(env): debug('vc.py:get_host_target()') host_platform = env.get('HOST_ARCH') if not host_platform: host_platform = platform.machine() # TODO(2.5): the native Python platform.machine() function returns # '' on all Python versions before 2.6, after which it also uses # PROCESSOR_ARCHITECTURE. if not ...
450,425
def templatize( self, file, type, locale, l10n=None ): with codecs.open( file, 'rU', 'utf-8' ) as f: src = f.read() newsrc = [] blocks = re.split( r'{% blocktrans (?:with "((?:\\"|[^"])*)" as (\w+) )?%}|<blocktrans>|<!-- blocktrans -->|/\* blocktrans \*/', src )
def templatize( self, file, type, locale, l10n=None ): with codecs.open( file, 'rU', 'utf-8' ) as f: src = f.read() newsrc = [] blocks = re.split( r'{% blocktrans (?:with "((?:\\"|[^"])*)" as (\w+) )?%}|<blocktrans>|<!-- blocktrans -->|/\* blocktrans \*/', src )
450,426
def gettext( self, locale ): self.xgettext_preprocessing( locale ) for root, dirs, files in os.walk( self.inputbase ): for name in files: basename, extension = os.path.splitext( name ) if extension in Localizer.TEMPLATE_EXTS: self.xgettext( os.path.join( root, name ), locale ) self.xgettext_postprocessing( locale )
def gettext( self, locale ): self.xgettext_preprocessing( locale ) for root, dirs, files in os.walk( self.inputbase ): for name in files: basename, extension = os.path.splitext( name ) if extension in Localizer.TEMPLATE_EXTS: self.xgettext( os.path.join( root, name ), locale ) self.xgettext_postprocessing( locale )
450,427
def bar(percentage): length = 25 bar_length = length * percentage
def bar(percentage): length = 25 bar_length = length * percentage
450,428
def bar(percentage): length = 33 bar_length = int(length * percentage)
def bar(percentage): length = 33 bar_length = int(length * percentage)
450,429
def bar(percentage): length = 33 bar_length = int(length * percentage)
def bar(percentage): length = 33 bar_length = int(length * percentage)
450,430
def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) self.add_newline()
def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) self.add_newline()
450,431
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,432
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,433
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,434
def do_some_calc(self): left_count = -1
def do_some_calc(self): left_count = -1
450,435
def bar(percentage): length = 25 bar_length = length * percentage
def bar(percentage): length = 25 bar_length = length * percentage
450,436
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,437
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,438
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,439
def __init__(self, verbose): self.count = 0 self.result_list = []
def __init__(self, verbose): self.count = 0 self.result_list = []
450,440
def format(self, indent): if self.count <= 0: self.add_line("%sGame Count: %d" % (header, self.count), Color.PURPLE) return
def gen_content(self, indent): if self.count <= 0: self.add_line("%sGame Count: %d" % (header, self.count), Color.PURPLE) return
450,441
def format(self, indent): if self.count <= 0: self.add_line("%sGame Count: %d" % (header, self.count), Color.PURPLE) return
def format(self, indent): if self.count <= 0: self.add_line("%sGame Count: %d" % (header, self.count), Color.PURPLE) return
450,442
def generate(self): self.add_line("No.\tScore\tPoint", Color.PURPLE)
def generate(self): self.add_line("No.\tScore\tPoint", Color.PURPLE)
450,443
def generate(self): self.add_line("No.\tScore\tPoint", Color.PURPLE)
def generate(self): self.add_line("No.\tScore\tPoint", Color.PURPLE)
450,444
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
450,445
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
450,446
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
450,447
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
450,448
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
def gen_indent(indent) : header = "" for i in range(indent): header += " " return header
450,449
def do_some_calc(self): left_count = -1 with open("total_rounds", "r") as f: left_count = int(f.read().strip()) - self.count
def do_some_calc(self): left_count = -1 with open("total_rounds", "r") as f: left_count = int(f.read().strip()) - self.count
450,450
def do_some_calc(self): left_count = -1 with open("total_rounds", "r") as f: left_count = int(f.read().strip()) - self.count
def do_some_calc(self): left_count = -1 with open("total_rounds", "r") as f: left_count = int(f.read().strip()) - self.count
450,451
def do_some_calc(self): left_count = -1 with open("total_rounds", "r") as f: left_count = int(f.read().strip()) - self.count
def do_some_calc(self): left_count = -1 with open("total_rounds", "r") as f: left_count = int(f.read().strip()) - self.count
450,452
def do_some_calc(self): left_count = -1 with open("total_rounds", "r") as f: left_count = int(f.read().strip()) - self.count
def do_some_calc(self): left_count = -1 with open("total_rounds", "r") as f: left_count = int(f.read().strip()) - self.count
450,453
def __init__(self, verbose): self.count = 0 self.result_list = []
def __init__(self, verbose): self.count = 0 self.result_list = []
450,454
def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) #title self.add_newline() self.add_line(" No. Score Point") #head
def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) #title self.add_newline() #head
450,455
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,456
def run(self, lines, method): self.generate_context(lines) self.context.dump(method)
def run(self, lines, method): self.generate_context(lines) self.context.dump(method)
450,457
def discuz(line): string = "" if line.color == Color.RED: string += "[color=Red]" elif line.color == Color.ORANGE: string += "[color=Orange]" elif line.color == Color.GREEN: string += "[color=Green]" elif line.color == Color.BLUE: string += "[color=Blue]" elif line.color == Color.PURPLE: string += "[color=Purple]" if...
def discuz(line): string = "" if line.color == Color.RED: string += "[color=Red]" elif line.color == Color.ORANGE: string += "[color=Orange]" elif line.color == Color.GREEN: string += "[color=Green]" elif line.color == Color.BLUE: string += "[color=Blue]" elif line.color == Color.PURPLE: string += "[color=Purple]" if...
450,458
def html(line): string = "" line.face = Face.MONOSPACE if line.color == Color.RED: string += "<font color=Red>" elif line.color == Color.ORANGE: string += "<font color=Orange>" elif line.color == Color.GREEN: string += "<font color=Green>" elif line.color == Color.BLUE: string += "<font color=Blue>" elif line.color ==...
def html(line): string = "" line.face = Face.MONOSPACE if line.color == Color.RED: string += "<font color=Red>" elif line.color == Color.ORANGE: string += "<font color=Orange>" elif line.color == Color.GREEN: string += "<font color=Green>" elif line.color == Color.BLUE: string += "<font color=Blue>" elif line.color ==...
450,459
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,460
def dump(self, indent): game_count = float(self.count)
def dump(self, indent): game_count = float(self.count)
450,461
def dump(self, indent): game_count = float(self.count)
def dump(self, indent): game_count = float(self.count)
450,462
def dump(self, indent): game_count = float(self.count)
def dump(self, indent): game_count = float(self.count)
450,463
def bar(percentage): length = 33 bar_length = int(length * percentage)
def bar(percentage): length = 33 bar_length = int(length * percentage)
450,464
def dump(self, header): game_count = float(self.count)
def dump_score_map(self, indent, score_map): def bar(percentage): length = 25 bar_length = length * percentage line = "[" for i in range(bar_length): line += " for i in range(length - bar_length): line += " " line += "%.2f%%" % (percentage * 100) return line indent += 1 header = gen_indent(indent) lines = [] for sco...
450,465
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,466
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,467
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,468
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,469
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,470
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,471
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,472
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,473
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,474
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,475
def dump(self, header): game_count = float(self.count)
def dump(self, header): game_count = float(self.count)
450,476
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,477
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,478
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,479
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,480
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,481
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,482
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,483
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,484
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
450,485
def run(self, lines, method): self.generate_context(lines) self.context.dump(method)
def run(self, lines, method): self.generate_context(lines) self.context.dump(method)
450,486
def run(self, lines, method): self.generate_context(lines) self.context.dump(method)
def run(self, lines, method): self.generate_context(lines) self.context.dump(method)
450,487
def update(self, left_score, right_score, valid): self.count += 1
def update(self, left_score, right_score, valid): self.count += 1
450,488
def do_some_calculating(self): game_count = float(self.count)
def do_some_calculating(self): game_count = float(self.count)
450,489
def bar(percentage): length = 25 bar_length = length * percentage
def bar(percentage): length = 25 bar_length = length * percentage
450,490
def bar(percentage): length = 25 bar_length = length * percentage
def bar(percentage): length = 25 bar_length = length * percentage
450,491
def bar(percentage): length = 25 bar_length = length * percentage
def bar(percentage): length = 25 bar_length = length * percentage
450,492
def do_some_calc(self): if self.count <= 0: self.add_line("Game Count: %d" % (self.count)) return
def do_some_calc(self): if self.count <= 0: self.add_line("Game Count: %d" % (self.count)) return
450,493
def do_some_calc(self): if self.count <= 0: self.add_line("Game Count: %d" % (self.count)) return
def do_some_calc(self): if self.count <= 0: self.add_line("Game Count: %d" % (self.count)) return
450,494
def do_some_calc(self): if self.count <= 0: self.add_line("Game Count: %d" % (self.count)) return
def do_some_calc(self): if self.count <= 0: self.add_line("Game Count: %d" % (self.count)) return
450,495
def run(self, lines, method): self.generate_context(lines) self.context.dump(method)
def run(self, lines, method): self.generate_context(lines) self.context.dump(method)
450,496
def generate_context(self, lines): index = -1 non_valid = 0 for line in lines: index += 1 if index <= 0: self.add_line(line, color=Color.BLUE) #title if self.verbose: self.add_newline() self.add_line(" No. Score Point") #head continue parts = line.split() for i in range(len(parts)): parts[i] = int(parts[i])
def generate_context(self, lines): index = -1 non_valid = 0 for line in lines: index += 1 if index <= 0: self.add_line(line, color=Color.BLUE) #title self.add_newline() self.add_line(" No. Score Point") #head continue parts = line.split() for i in range(len(parts)): parts[i] = int(parts[i])
450,497
def do_some_calc(self): left_count = -1
def do_some_calc(self): left_count = -1
450,498
def do_some_calc(self): left_count = -1
def do_some_calc(self): left_count = -1
450,499