557f7e52f816e477195bc12e0db63e374c4de0e7,pysos/kernel.py,,from_R_repr,#Any#,265

Before Change


    "[1] "structure(list(a = 1, b = \\"a\\"), .Names = c(\\"a\\", \\"b\\"))""
    """
    try:
        text = expr[20:-1].split("), .Names")[0].replace("\\", "")
        convert_funcs = {
            "c": lambda *args: list(args)
        }

After Change


            from feather import read_dataframe
        // the result is something like
        // [1] "{"a": 1}"
        return eval(eval(expr.split(" ", 1)[-1]))
    except Exception as e:
        raise UsageError("Failed to convert {} to Python object: {}".format(expr, e))

def python2R(name):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: vatlab/SoS
Commit Name: 557f7e52f816e477195bc12e0db63e374c4de0e7
Time: 2016-10-25
Author: ben.bog@gmail.com
File Name: pysos/kernel.py
Class Name:
Method Name: from_R_repr


Project Name: Microsoft/MMdnn
Commit Name: e3dbf30b449033ee584159dc0e462741d4e0e15b
Time: 2020-07-31
Author: 50827462+XiaoXYe@users.noreply.github.com
File Name: mmdnn/conversion/pytorch/pytorch_graph.py
Class Name: PytorchGraph151
Method Name: extractgraph


Project Name: lingpy/lingpy
Commit Name: f65356ce7e624cea941a636a1cb2c912e9ecc186
Time: 2012-11-19
Author: mattis.list@gmail.com
File Name: lingpy/data/ipa/sampa.py
Class Name:
Method Name:


Project Name: xinntao/BasicSR
Commit Name: c845ea5c15fb977b6518cc5398e87a89e3a9e700
Time: 2018-04-25
Author: wxt1994@126.com
File Name: codes/test_onlyLR.py
Class Name:
Method Name: