4ee8f67612e87a6ece9c939ccac64901fc712c08,plotnine/facets/facet_grid.py,,parse_grid_facets,#Any#,267

Before Change



    variables_pattern = r"(\w+(?:\s*\+\s*\w+)*|\.)"
    pattern = r"\s*{0}\s*~\s*{0}\s*".format(variables_pattern)
    match = re.match(pattern, facets)

    if not match:
        raise PlotnineError(error_msg_s)

    lhs = match.group(1)
    rhs = match.group(2)

    if lhs == ".":
        rows = []
    else:

After Change


    // "c ~ a + b"
    // ". ~ func(a) + func(b)"
    // "func(c) ~ func(a+1) + func(b+2)"
    try:
        lhs, rhs = facets.split("~")
    except ValueError:
        raise PlotnineError(error_msg_s)
    else:
        lhs = lhs.strip()
        rhs = rhs.strip()

    lsplitter = " + " if " + " in lhs else "+"
    rsplitter = " + " if " + " in rhs else "+"

    if lhs == ".":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: has2k1/plotnine
Commit Name: 4ee8f67612e87a6ece9c939ccac64901fc712c08
Time: 2017-09-21
Author: has2k1@gmail.com
File Name: plotnine/facets/facet_grid.py
Class Name:
Method Name: parse_grid_facets


Project Name: elfi-dev/elfi
Commit Name: eb48b9b095e2200e1f7acbc6f448ff39f88c4145
Time: 2017-07-13
Author: jarno.lintusaari@aalto.fi
File Name: elfi/model/elfi_model.py
Class Name: NodeReference
Method Name: _give_name


Project Name: polyaxon/polyaxon
Commit Name: 8d4140e264a0a47d3d690a5adc6386c027e2f8e2
Time: 2019-07-13
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/azure_store.py
Class Name: AzureStore
Method Name: parse_wasbs_url