53096a8e5374e170a3b2a8106a7f1b1b081518d5,skbio/metadata/_mixin.py,PositionalMetadataMixin,_deepcopy_,#PositionalMetadataMixin#Any#,369

Before Change



    def _deepcopy_(self, memo):
        if self.has_positional_metadata():
            return copy.deepcopy(self.positional_metadata, memo)
        else:
            return None

    @stable(as_of="0.4.0")

After Change


            data_cp = copy.deepcopy(df.values.tolist(), memo)
            return pd.DataFrame(data_cp,
                                index=df.index.copy(deep=True),
                                columns=df.columns.copy(deep=True),
                                copy=False)
        else:
            return None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: biocore/scikit-bio
Commit Name: 53096a8e5374e170a3b2a8106a7f1b1b081518d5
Time: 2017-10-06
Author: jai.rideout@gmail.com
File Name: skbio/metadata/_mixin.py
Class Name: PositionalMetadataMixin
Method Name: _deepcopy_


Project Name: PyMVPA/PyMVPA
Commit Name: 3825e8e8aad5c0129e038173314b9a8b6a66be08
Time: 2010-01-04
Author: michael.hanke@gmail.com
File Name: mvpa/measures/noiseperturbation.py
Class Name: NoisePerturbationSensitivity
Method Name: _call


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: f4838c7408b81ad960c047df5984901927a86d86
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/one_hot.py
Class Name: OneHotEncoder
Method Name: generate_mapping