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

Before Change


    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


    // ". ~ 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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: 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


Project Name: sahana/eden
Commit Name: 326bfca74288b4bc4ea373bb64c59f8be4181664
Time: 2018-05-25
Author: dominic@nursix.org
File Name: modules/s3/s3query.py
Class Name: S3URLQuery
Method Name: parse_expression