bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
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,500 |
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,501 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,502 |
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,503 |
def run(self, method): self.generate_context() self.context.dump(method) | defrun(self,method):self.generate_context()self.context.dump(method) | 450,504 |
def generate_context(self): index = -1 non_valid = 0 for line in sys.stdin: 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]) | def generate_context(self, lines): index = -1 non_valid = 0 for line in sys.stdin: 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,505 |
def generate_context(self): index = -1 non_valid = 0 for line in sys.stdin: 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]) | def generate_context(self): 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,506 |
def run(self, method): self.generate_context() self.context.dump(method) | def run(self, lines, method): self.generate_context(lines) self.context.dump(method) | 450,507 |
def run(self, method): self.generate_context() self.context.dump(method) | def run(self, method): self.generate_context() self.context.dump(method) | 450,508 |
def run(self, method): self.generate_context() self.context.dump(method) | def run(self, method): self.generate_context() self.context.dump(method) | 450,509 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,510 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,511 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,512 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,513 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,514 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,515 |
def bar(percentage): length = 33 bar_length = int(length * percentage) | def bar(percentage): length = 33 bar_length = int(length * percentage) | 450,516 |
def generate(self): self.add_line("No.\tScore\tPoint", Color.PURPLE) | def generate(self): self.add_line("No.\tScore\tPoint", Color.PURPLE) | 450,517 |
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 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]) | 450,518 |
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,519 |
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,520 |
def run(self, lines, method): self.generate_context(lines) self.context.dump(method) | defelif options.console: GameData().run(lines, console) run(self,elif options.console: GameData().run(lines, console) lines,elif options.console: GameData().run(lines, console) method):elif options.console: GameData().run(lines, console) self.generate_context(lines)elif options.console: GameData().run(lines, consol... | 450,521 |
def __init__(self, verbose): self.count = 0 | def __init__(self, verbose): self.count = 0 | 450,522 |
def update(self, index, left_score, right_score, valid): self.count += 1 | def update(self, index, left_score, right_score, valid): self.count += 1 | 450,523 |
def update(self, index, left_score, rigt_score, valid): global g_max_sub | def update(self, index, left_score, rigt_score, valid): global g_max_sub | 450,524 |
def __init__(self, verbose): self.count = 0 | def __init__(self, verbose): self.count = 0 | 450,525 |
def update(self, index, left_score, right_score, valid): self.count += 1 | def update(self, left_score, right_score, valid): self.count += 1 | 450,526 |
def update(self, index, left_score, right_score, valid): self.count += 1 | def update(self, index, left_score, right_score, valid): self.count += 1 | 450,527 |
def do_some_calc(self): left_count = -1 | def do_some_calc(self): left_count = -1 | 450,528 |
def do_some_calc(self): left_count = -1 | def do_some_calc(self): left_count = -1 | 450,529 |
def do_some_calc(self): left_count = -1 | def do_some_calc(self): left_count = -1 | 450,530 |
def do_some_calc(self): left_count = -1 | def do_some_calc(self): left_count = -1 | 450,531 |
def do_some_calc(self): left_count = -1 | def do_some_calc(self): left_count = -1 | 450,532 |
def do_some_calc(self): left_count = -1 | def do_some_calc(self): left_count = -1 | 450,533 |
def do_some_calc(self): left_count = -1 | def do_some_calc(self): left_count = -1 | 450,534 |
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]) | def generate_context(self, lines): self.title = lines[0].strip() lines.pop(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,535 |
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]) | 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,536 |
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]) | defgenerate_context(self,lines):index=-1non_valid=0forlineinlines:index+=1ifindex<=0:self.add_line(line,color=Color.BLUE)#titleself.add_newline()self.add_line("No.ScorePoint")#headcontinueparts=line.split()foriinrange(len(parts)):parts[i]=int(parts[i]) | 450,537 |
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]) | 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,538 |
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,539 |
def update(self, left_score, right_score, valid): self.count += 1 | def update(self, left_score, right_score, valid): self.count += 1 | 450,540 |
def do_some_calculating(self): game_count = float(self.count) | def do_some_calculating(self): game_count = float(self.count) | 450,541 |
def bar(percentage): length = 33 bar_length = int(length * percentage) | def bar(percentage): length = 33 bar_length = int(length * percentage) | 450,542 |
def update(self, index, left_score, right_score, valid): self.count += 1 | def update(self, index, left_score, right_score, valid): self.count += 1 | 450,543 |
def generate_context(self): self.add_line("No.\tScore\tPoint") | def generate_context(self): self.add_line("No.\tScore\tPoint") | 450,544 |
def run(self, method): self.generate_context() self.context.dump(method) | def run(self, method): self.generate_context() self.context.dump(method) | 450,545 |
def run(self, method): self.generate_context() self.context.dump(method) | def run(self, method): self.generate_context() self.context.dump(method) | 450,546 |
def update(self, index, left_score, rigt_score, valid): global g_max_sub | def update(self, index, left_score, rigt_score, valid): global g_max_sub | 450,547 |
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,548 |
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,549 |
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,550 |
def generate_context(self): index = -1 non_valid = 0 for line in sys.stdin: index += 1 if index <= 0: self.add_line(line, color=Color.BLUE) #title self.add_line("No.\tScore\tPoint") #head continue parts = line.split() for i in range(len(parts)): parts[i] = int(parts[i]) | def generate_context(self): index = -1 non_valid = 0 for line in sys.stdin: 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,551 |
def generate_context(self): index = -1 non_valid = 0 for line in sys.stdin: index += 1 if index <= 0: self.add_line(line, color=Color.BLUE) #title self.add_line("No.\tScore\tPoint") #head continue parts = line.split() for i in range(len(parts)): parts[i] = int(parts[i]) | def generate_context(self): index = -1 non_valid = 0 for line in sys.stdin: index += 1 if index <= 0: self.add_line(line, color=Color.BLUE) #title self.add_line("No.\tScore\tPoint") #head continue parts = line.split() for i in range(len(parts)): parts[i] = int(parts[i]) | 450,552 |
def run(self, method): self.generate() self.dump(method) | def run(self, method): self.generate() self.dump(method) | 450,553 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,554 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,555 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,556 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,557 |
def generate_context(self): self.add_line("No.\tScore\tPoint\n") | def generate_context(self): self.add_line("No.\tScore\tPoint\n") | 450,558 |
def dump(self, header): game_count = float(self.count) | def dump(self, header): game_count = float(self.count) | 450,559 |
def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | defdump(self,indent):ifself.count<=0:print"%sGameCount:%d"%(header,self.count)return | 450,560 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,561 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,562 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,563 |
def do_some_calc(self): game_count = float(self.count) | def do_some_calculating(self): game_count = float(self.count) | 450,564 |
def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) #title self.add_newline() | def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) #title self.add_newline() | 450,565 |
def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) #title self.add_newline() | def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) #title self.add_newline() | 450,566 |
def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) #title self.add_newline() | def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) #title self.add_newline() | 450,567 |
def generate_context(self, lines): self.title = lines[0].strip() lines.pop(0) | def generate_context(self, lines): self.title = lines[0].strip() lines.pop(0) | 450,568 |
def generate_context(self, lines): self.title = lines[0].strip() lines.pop(0) | def generate_context(self, lines): self.title = lines[0].strip() lines.pop(0) | 450,569 |
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,570 |
def discuz(line): string = "" if line.color == Color.RED: string += "[b][color=Red]" elif line.color == Color.ORANGE: string += "[b][color=Orange]" elif line.color == Color.GREEN: string += "[b][color=Green]" elif line.color == Color.BLUE: string += "[b][color=Blue]" elif line.color == Color.PURPLE: string += "[b][col... | def discuz(line): string = "" if line.color == Color.RED: string += "[b][color=Red]" elif line.color == Color.ORANGE: string += "[b][color=Orange]" elif line.color == Color.GREEN: string += "[b][color=Green]" elif line.color == Color.BLUE: string += "[b][color=Blue]" elif line.color == Color.PURPLE: string += "[b][col... | 450,571 |
def discuz(line): string = "" if line.color == Color.RED: string += "[b][color=Red]" elif line.color == Color.ORANGE: string += "[b][color=Orange]" elif line.color == Color.GREEN: string += "[b][color=Green]" elif line.color == Color.BLUE: string += "[b][color=Blue]" elif line.color == Color.PURPLE: string += "[b][col... | def discuz(line): string = "" if line.color == Color.RED: string += "[b][color=Red]" elif line.color == Color.ORANGE: string += "[b][color=Orange]" elif line.color == Color.GREEN: string += "[b][color=Green]" elif line.color == Color.BLUE: string += "[b][color=Blue]" elif line.color == Color.PURPLE: string += "[b][col... | 450,572 |
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,573 |
def update(self, index, left_score, rigt_score, valid): global g_max_sub | def update(self, index, left_score, rigt_score, valid): global g_max_sub | 450,574 |
def update(self, index, left_score, rigt_score, valid): global g_max_sub | def update(self, index, left_score, rigt_score, valid): global g_max_sub | 450,575 |
def bar(percentage): length = 25 bar_length = int(length * percentage) | def bar(percentage): length = 25 bar_length = int(length * percentage) | 450,576 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | 450,577 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,578 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print print print "%sGame Count: %d" % (header, self.count) return | 450,579 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,580 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,581 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,582 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,583 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,584 |
def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sCount: %d" % (header, self.count) return | 450,585 |
def bar(percentage): length = 25 bar_length = length * percentage | def bar(percentage): length = 25 bar_length = length * percentage | 450,586 |
def update(self, index, left_score, rigt_score, valid): global g_max_sub | def update(self, index, left_score, rigt_score, valid): global g_max_sub | 450,587 |
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 = "" 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 == Color.PURPLE: string += "<... | 450,588 |
def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | 450,589 |
def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | 450,590 |
def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | 450,591 |
def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | 450,592 |
def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return | 450,593 |
def bar(percentage): length = 25 bar_length = int(length * percentage) | def bar(percentage): length = 25 bar_length = int(length * percentage) | 450,594 |
def bar(percentage): length = 25 bar_length = int(length * percentage) | def bar(percentage): length = 25 bar_length = int(length * percentage) | 450,595 |
def bar(percentage): length = 25 bar_length = int(length * percentage) | def bar(percentage): length = 25 bar_length = int(length * percentage) | 450,596 |
def update(self, index, left_score, rigt_score, valid): global g_max_sub | def update(self, index, left_score, rigt_score, valid): global g_max_sub | 450,597 |
def update(self, index, left_score, rigt_score, valid): global g_max_sub | def update(self, index, left_score, rigt_score, valid): global g_max_sub | 450,598 |
def bar(percentage): length = 25 bar_length = int(length * percentage) | def bar(percentage): length = 33 bar_length = int(length * percentage) | 450,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.