75a850f38cceab2d05ef975677c3feefd7a83a69,odps/models/resource.py,TableResource,get_source_table,#TableResource#,594

Before Change


        if "." not in src:
            raise ValueError("Malformed source table name: %s" % src)

        project_name, table_name = tuple(src.split(".", 1))

        from .projects import Projects
        return Projects(client=self._client)[project_name].tables[table_name]

After Change


        return tuple(src.split(".", 1)) + (partition, )

    def get_source_table(self):
        try:
            project_name, table_name, _ = self.get_project_table_partition()
        except AttributeError:
            return
        from .projects import Projects
        return Projects(client=self._client)[project_name].tables[table_name]

    def get_source_table_partition(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: aliyun/aliyun-odps-python-sdk
Commit Name: 75a850f38cceab2d05ef975677c3feefd7a83a69
Time: 2018-04-25
Author: wenjun.swj@alibaba-inc.com
File Name: odps/models/resource.py
Class Name: TableResource
Method Name: get_source_table


Project Name: scipy/scipy
Commit Name: 0131d72f0f7a5c13f00961aea054094b2b78f071
Time: 2016-10-12
Author: evgeny.burovskiy@gmail.com
File Name: scipy/interpolate/fitpack.py
Class Name:
Method Name: splev


Project Name: coala/coala-bears
Commit Name: b68ab2b4e4cbea341e9b2d16cc58cd24a5859aa5
Time: 2016-07-27
Author: toabhayraizada@gmail.com
File Name: bears/general/AnnotationBear.py
Class Name: AnnotationBear
Method Name: run


Project Name: stanford-mast/nn_dataflow
Commit Name: aeff109058b43a6c854621743ab7aaced5469130
Time: 2017-06-28
Author: mgao12@stanford.edu
File Name: nn_dataflow/LoopBlocking.py
Class Name:
Method Name: skip