An Empirical Study of Frequent Code Edit Patterns In Machine Learning Systems

Refactoring Type : Extract Subclass | Total : 45 | Precision : 100.0% | True Positives :45 | Evaluated : 45 | Not Evaluated : 4

Project RefactoringType RefactoringLink CommitLink TrueRefactoring? Description File
asyml/texar Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.txtgen.modules.encoders.rnn_encoders.BidirectionalRNNEncoder from class org.txtgen.modules.encoders.rnn_encoders.RNNEncoderBase txtgen/modules/encoders/rnn_encoders.py
GPflow/GPflow Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.gpflow.kernels.stationaries.IsotropicStationary from class org.gpflow.kernels.stationaries.Stationary gpflow/kernels/stationaries.py
ikostrikov/pytorch-a2c-ppo-acktr Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.a2c_ppo_acktr.envs.TransposeImage from class org.a2c_ppo_acktr.envs.TransposeObs a2c_ppo_acktr/envs.py
dit/dit Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.dit.multivariate.secret_key_agreement.skar_lower_bounds.NecessaryIntrinsicMutualInformation from class org.dit.multivariate.secret_key_agreement.necessary_intrinsic_mutual_information.NecessaryIntrinsicMutualInformation dit/multivariate/secret_key_agreement/necessary_intrinsic_mutual_information.py
rusty1s/pytorch_geometric Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.torch_geometric.datasets.icews.ICEWS18 from class org.torch_geometric.datasets.icews.TemporalDataset torch_geometric/datasets/icews.py
bashtage/linearmodels Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.linearmodels.panel.results.PanelEffectsResults from class org.linearmodels.panel.results.PanelResults linearmodels/panel/results.py
mathics/Mathics Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.mathics.algorithm.clusters.ApproximateSilhouetteSplitCriterion from class org.mathics.algorithm.clusters.SplitCriterion mathics/algorithm/clusters.py
cornellius-gp/gpytorch Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.test.lazy.test_kronecker_product_added_diag_lazy_tensor.TestKroneckerProductAddedConstDiagLazyTensor from class org.test.lazy.test_kronecker_product_added_diag_lazy_tensor.TestKroneckerProductAddedDiagLazyTensor test/lazy/test_kronecker_product_added_diag_lazy_tensor.py
cornellius-gp/gpytorch Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.gpytorch.likelihoods.gaussian_likelihood.HomoskedasticGaussianLikelihood from class org.gpytorch.likelihoods.gaussian_likelihood.GaussianLikelihood gpytorch/likelihoods/gaussian_likelihood.py
J535D165/recordlinkage Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.tests.test_compare.TestCompareAlgorithms from class org.tests.test_compare.TestCompare tests/test_compare.py
chainer/chainerrl Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.chainerrl.envs.multiprocess_vector_env.MultiprocessVectorEnv from class org.chainerrl.envs.vec_env.VectorEnv chainerrl/envs/vec_env.py
bokeh/bokeh Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.bokeh.charts.glyphs.PointGlyph from class org.bokeh.charts.glyphs.ScatterGlyph bokeh/charts/glyphs.py
data61/python-paillier Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.phe.tests.paillier_test.PaillierTestEncodedNumberDefaultBase from class org.phe.tests.paillier_test.PaillierTestEncodedNumber phe/tests/paillier_test.py
ray-project/ray Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.python.ray.tune.syncer.CloudSyncer from class org.python.ray.tune.syncer.Syncer python/ray/tune/syncer.py
castorini/honk Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.service.TorchLabelService from class org.service.LabelService service.py
tensorpack/tensorpack Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.tensorpack.callbacks.validation_callback.ValidationStatPrinter from class org.tensorpack.callbacks.validation_callback.ValidationCallback tensorpack/callbacks/validation_callback.py
vatlab/SoS Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.pysos.sos_step.MP_Step_Executor from class org.pysos.sos_step.Run_Step_Executor pysos/sos_step.py
vatlab/SoS Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.pysos.sos_step.RQ_Step_Executor from class org.pysos.sos_step.Run_Step_Executor pysos/sos_step.py
vatlab/SoS Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.pysos.sos_step.Celery_Step_Executor from class org.pysos.sos_step.Run_Step_Executor pysos/sos_step.py
autorope/donkeycar Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.cameras.ThreadedCamera from class org.cameras.Camera cameras.py
masa-su/pixyz Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.Tars.distributions.distributions.DistributionBase from class org.Tars.distributions.distributions.Distribution Tars/distributions/distributions.py
masa-su/pixyz Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.Tars.distributions.distributions.ReplaceVarDistribution from class org.Tars.distributions.distributions.Distribution Tars/distributions/distributions.py
masa-su/pixyz Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.Tars.distributions.real_nvp.AffineCouplingLayer1D from class org.Tars.distributions.real_nvp.AffineCouplingLayer Tars/distributions/real_nvp.py
masa-su/pixyz Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.Tars.distributions.real_nvp.AffineCouplingLayer2D from class org.Tars.distributions.real_nvp.AffineCouplingLayer Tars/distributions/real_nvp.py
chakki-works/doccano Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.app.server.models.TextClassificationProject from class org.app.server.models.Project app/server/models.py
chakki-works/doccano Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.app.server.models.SequenceLabelingProject from class org.app.server.models.Project app/server/models.py
chakki-works/doccano Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.app.server.models.Seq2seqProject from class org.app.server.models.Project app/server/models.py
IBM/adversarial-robustness-toolbox Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.art.classifiers.classifier.ImageClassifier from class org.art.classifiers.classifier.Classifier art/classifiers/classifier.py
tensorflow/benchmarks Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.scripts.tf_cnn_benchmarks.models.model.CNNModel from class org.scripts.tf_cnn_benchmarks.models.model.Model scripts/tf_cnn_benchmarks/models/model.py
dpressel/mead-baseline Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.baseline.pytorch.lm.model.AbstractGeneratorLanguageModel from class org.baseline.pytorch.lm.model.LanguageModelBase baseline/pytorch/lm/model.py
dpressel/mead-baseline Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.baseline.tf.lm.model.AbstractGeneratorModel from class org.baseline.pytorch.lm.model.LanguageModelBase baseline/pytorch/lm/model.py
dpressel/mead-baseline Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.python.baseline.tf.lm.model.RNNLanguageModel from class org.python.baseline.tf.lm.model.BasicLanguageModel python/baseline/tf/lm/model.py
OpenNMT/OpenNMT-tf Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.opennmt.training.DistributionStrategyTrainer from class org.opennmt.training.Trainer opennmt/training.py
openml/openml-python Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.openml.tasks.task.OpenMLSupervisedTask from class org.openml.tasks.task.OpenMLTask openml/tasks/task.py
uber/pyro Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.pyro.infer.abstract_infer.Marginal from class org.pyro.infer.__init__.Marginal pyro/infer/__init__.py
utiasSTARS/liegroups Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.liegroups._base.MatrixLieGroupBase from class org.liegroups._base.LieGroupBase liegroups/_base.py
bambinos/bambi Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.bambi.results.PyMC3ModelResults from class org.bambi.results.ModelResults bambi/results.py
rasbt/mlxtend Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.mlxtend.frequent_patterns.tests.test_fpbase.FPTestAll from class org.mlxtend.frequent_patterns.tests.test_fpbase.FPTestBase mlxtend/frequent_patterns/tests/test_fpbase.py
rasbt/mlxtend Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.mlxtend.frequent_patterns.tests.test_fpbase.FPTestMaximal from class org.mlxtend.frequent_patterns.tests.test_fpbase.FPTestBase mlxtend/frequent_patterns/tests/test_fpbase.py
markovmodel/PyEMMA Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.pyemma.msm.ui.msm.EstimatedMSM from class org.pyemma.msm.ui.msm.MSM pyemma/msm/ui/msm.py
biolab/orange3 Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.Orange.widgets.visualize.ownomogram.ProbabilitiesDotItem from class org.Orange.widgets.visualize.ownomogram.DotItem Orange/widgets/visualize/ownomogram.py
pymc-devs/pymc3 Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.pymc3.step_methods.hmc.quadpotential.QuadPotentialFull from class org.pymc3.step_methods.hmc.quadpotential.QuadPotential pymc3/step_methods/hmc/quadpotential.py
ChrisCummins/clgen Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.labm8.py.progress.ProgressBarContext from class org.labm8.py.progress.ProgressContext labm8/py/progress.py
scikit-learn/scikit-learn Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.sklearn.svm.base.DenseBaseLibSVM from class org.sklearn.svm.base.BaseLibSVM sklearn/svm/base.py
polyaxon/polyaxon Extract Subclass RefactoringLinkCommitLinkYes Extract Subclass org.polyaxon.polyaxon.config_manager.SettingsConfigManager from class org.polyaxon.config_manager.config_manager.ConfigManager polyaxon/config_manager/config_manager.py