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

Before Change


        // if not (self.data.index.names == other.data.index.names and
        //         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):
        Create an independent copy of this object.

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()

    def copy(self):
        Create an independent copy of this object.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: QUANTAXIS/QUANTAXIS
Commit Name: 4113a6a3be19167a8c551f8ae20e849ac851e52c
Time: 2019-03-25
Author: zhongjy1992@outlook.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_day


Project Name: catalyst-cooperative/pudl
Commit Name: 6bd4147eae6085142288b355660c250e8184d62f
Time: 2017-11-16
Author: cgosnell@catalyst.coop
File Name: pudl/outputs.py
Class Name:
Method Name: generation_eia923


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 5b4d04de17457286fe4e5f3e0e8295db42d0f064
Time: 2020-04-05
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_min