a74090f72c022d1a6dd6e13a111faa8c571a3726,go.py,Position,__str__,#Position#,210
Before Change
board = self.board
captures = self.caps
raw_board_contents = board.split("\n")[1:-1]
row_labels = "12345678901234567890"[:N]
annotated_board_contents = reversed(["".join(r) for r in zip(row_labels, reversed(raw_board_contents), row_labels)])
header_footer_rows = [" " + COLUMNS[:N] + " "]
annotated_board = "\n".join(itertools.chain(header_footer_rows, annotated_board_contents, header_footer_rows))
After Change
else:
board = self.board
raw_board_contents = []
for i in range(N):
row = []
for j in range(N):
row.append(pretty_print_map[board[i,j]])
raw_board_contents.append("".join(row))
captures = self.caps
row_labels = "12345678901234567890"[:N]
annotated_board_contents = reversed(["".join(r) for r in zip(row_labels, reversed(raw_board_contents), row_labels)])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: brilee/MuGo
Commit Name: a74090f72c022d1a6dd6e13a111faa8c571a3726
Time: 2016-06-28
Author: brian.kihoon.lee@gmail.com
File Name: go.py
Class Name: Position
Method Name: __str__
Project Name: brilee/MuGo
Commit Name: a74090f72c022d1a6dd6e13a111faa8c571a3726
Time: 2016-06-28
Author: brian.kihoon.lee@gmail.com
File Name: go.py
Class Name: Position
Method Name: __str__
Project Name: commonsense/conceptnet5
Commit Name: 9811bd22dde5cffbba18fffb4c31f8d5f64f5cf9
Time: 2013-02-25
Author: jvarley@amber.media.mit.edu
File Name: cnet5_index_builder/cnet5-data/conceptnet4_zh/read_zh.py
Class Name:
Method Name: handle_raw_assertion
Project Name: geekcomputers/Python
Commit Name: e1c4e6a7c7db68e123d978bfc56feb057898935f
Time: 2019-10-24
Author: kostasdedesar@penguin
File Name: Counting-sort.py
Class Name:
Method Name: