a74090f72c022d1a6dd6e13a111faa8c571a3726,go.py,,parse_sgf_coords,#,49

Before Change


    "Interprets coords in the format "hc", with "aa" being top left quadrant"
    if not s:
        return None
    x_coord, y_coord = [SGF_COLUMNS.index(coord) for coord in s]
    return W + W * y_coord + x_coord

def parse_coords(s):
    "Interprets coords in the format "H3", with A1 being lower left quadrant."

After Change


    "Interprets coords in the format "aj", with "aj" being top right quadrant"
    if not s:
        return None
    return tuple(map(SGF_COLUMNS.index, s))

def parse_coords(s):
    "Interprets coords in the format "H3", with A1 being lower left quadrant."
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: brilee/MuGo
Commit Name: a74090f72c022d1a6dd6e13a111faa8c571a3726
Time: 2016-06-28
Author: brian.kihoon.lee@gmail.com
File Name: go.py
Class Name:
Method Name: parse_sgf_coords


Project Name: openeventdata/mordecai
Commit Name: 05572c0e31b9354e6b0fd4435b65b81da1b3f188
Time: 2017-12-13
Author: ahalterman0@gmail.com
File Name: mordecai/geoparse.py
Class Name: Geoparser
Method Name: batch_geoparse


Project Name: dit/dit
Commit Name: d738388c3ac14684d384b05d7e03417a0edffdd1
Time: 2016-05-11
Author: ryangregoryjames@gmail.com
File Name: dit/multivariate/dilworth.py
Class Name:
Method Name: dilworth