6e6ebe4fa45fde3b666a624ddd7d735974081937,cnvlib/gary.py,GenomicArray,add_array,#GenomicArray#Any#,281

Before Change


        //         list(self.data) == list(other.data)):
        //     raise ValueError("DataFrame indices or columns do not match")
        table = pd.concat([self.data.set_index(["chromosome", "start"]),
                           other.data.set_index(["chromosome", "start"])])
        self.data = table.sort().reset_index()

    def copy(self):

After Change


        if not isinstance(other, self.__class__):
            raise ValueError("Argument (type %s) is not a %s instance"
                             % (type(other), self.__class__))
        if len(other.data):
            self.data = pd.concat([self.data, other.data])
        self.sort()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: etal/cnvkit
Commit Name: 6e6ebe4fa45fde3b666a624ddd7d735974081937
Time: 2015-07-06
Author: eric.talevich@gmail.com
File Name: cnvlib/gary.py
Class Name: GenomicArray
Method Name: add_array


Project Name: J535D165/recordlinkage
Commit Name: 0fe6aafe48a44cf8ec6f5a86ac3d212622074150
Time: 2018-03-10
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/index.py
Class Name: Block
Method Name: _link_index


Project Name: J535D165/recordlinkage
Commit Name: 0fe6aafe48a44cf8ec6f5a86ac3d212622074150
Time: 2018-03-10
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/index.py
Class Name: SortedNeighbourhood
Method Name: _link_index