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

Refactoring Type : Extract Class | Total : 85 | Precision : 98.82% | True Positives :84 | Evaluated : 85 | Not Evaluated : 64

Project RefactoringType RefactoringLink CommitLink TrueRefactoring? Description File
OpenNMT/OpenNMT-tf Extract Class RefactoringLinkCommitLinkYes Extract Class org.opennmt.training.TrainingStats from class org.opennmt.training.Trainer opennmt/training.py
dmlc/gluon-nlp Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.gluonnlp.model.seq2seq_encoder_decoder.Seq2SeqOneStepDecoder from class org.scripts.machine_translation.gnmt.GNMTDecoder scripts/machine_translation/gnmt.py
williamFalcon/pytorch-lightning Extract Class RefactoringLinkCommitLinkYes Extract Class org.pl_examples.domain_templates.computer_vision_fine_tuning.CatDogImageDataModule from class org.pl_examples.domain_templates.computer_vision_fine_tuning.TransferLearningModel pl_examples/domain_templates/computer_vision_fine_tuning.py
chainer/chainercv Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.links_tests.model_tests.test_pickable_sequential_chain.PickableSequentialChainTestBase from class org.tests.links_tests.model_tests.test_pickable_sequential_chain.TestPickableSequentialChain tests/links_tests/model_tests/test_pickable_sequential_chain.py
chainer/chainercv Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.links_tests.model_tests.test_pickable_sequential_chain.PickableSequentialChainTestBase from class org.tests.links_tests.model_tests.test_pickable_sequential_chain.TestPickableSequentialChain tests/links_tests/model_tests/test_pickable_sequential_chain.py
keras-team/keras Extract Class RefactoringLinkCommitLinkYes Extract Class org.keras.layers.recurrent.GRUCell from class org.keras.layers.recurrent.GRU keras/layers/recurrent.py
keras-team/keras Extract Class RefactoringLinkCommitLinkYes Extract Class org.keras.layers.recurrent.LSTMCell from class org.keras.layers.recurrent.LSTM keras/layers/recurrent.py
keras-team/keras Extract Class RefactoringLinkCommitLinkYes Extract Class org.keras.layers.convolutional._MaxPooling1D from class org.keras.layers.convolutional.MaxPooling1D keras/layers/convolutional.py
keras-team/keras Extract Class RefactoringLinkCommitLinkYes Extract Class org.keras.layers.convolutional.GlobalPooling2D from class org.keras.layers.convolutional.MaxPooling1D keras/layers/convolutional.py
UFAL-DSG/tgen Extract Class RefactoringLinkCommitLinkYes Extract Class org.tgen.rank_nn.NNRanker from class org.tgen.rank_nn.SimpleNNRanker tgen/rank_nn.py
UFAL-DSG/tgen Extract Class RefactoringLinkCommitLinkYes Extract Class org.tgen.parallel_percrank_train.ParallelPerceptronRanker from class org.tgen.parallel_percrank_train.ParallelTrainingPercRank tgen/parallel_percrank_train.py
matthewwithanm/django-imagekit Extract Class RefactoringLinkCommitLinkYes Extract Class org.imagekit.processors.crop.SmartCrop from class org.imagekit.processors.resize.SmartCrop imagekit/processors/resize.py
comic/grand-challenge.org Extract Class RefactoringLinkCommitLinkYes Extract Class org.app.grandchallenge.evaluation.views.SubmissionCreateBase from class org.app.grandchallenge.evaluation.views.SubmissionCreate app/grandchallenge/evaluation/views.py
scikit-optimize/scikit-optimize Extract Class RefactoringLinkCommitLinkYes Extract Class org.skopt.parameter.Identity from class org.skopt.parameter.Categorical skopt/parameter.py
scikit-optimize/scikit-optimize Extract Class RefactoringLinkCommitLinkYes Extract Class org.skopt.parameter.Log10 from class org.skopt.parameter.Categorical skopt/parameter.py
scikit-optimize/scikit-optimize Extract Class RefactoringLinkCommitLinkYes Extract Class org.skopt.parameter.Log from class org.skopt.parameter.Categorical skopt/parameter.py
scikit-optimize/scikit-optimize Extract Class RefactoringLinkCommitLinkYes Extract Class org.skopt.parameter.CategoryTransform from class org.skopt.parameter.Categorical skopt/parameter.py
XanaduAI/strawberryfields Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.apps.test_similarity.TestGetState from class org.tests.apps.test_similarity.TestProbOrbitMC tests/apps/test_similarity.py
XanaduAI/strawberryfields Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.gbs.test_data.TestGraphDatasets from class org.tests.gbs.test_data.TestDatasets tests/gbs/test_data.py
XanaduAI/strawberryfields Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.frontend.test_engine.TestEngineProgramInteraction from class org.tests.frontend.test_engine.TestEngine tests/frontend/test_engine.py
analysiscenter/batchflow Extract Class RefactoringLinkCommitLinkYes Extract Class org.batchflow.models.tf.layers.conv_block.BaseConvBlock from class org.batchflow.models.tf.layers.conv_block.ConvBlock batchflow/models/tf/layers/conv_block.py
pytorch/fairseq Extract Class RefactoringLinkCommitLinkNo Extract Class org.fairseq.optim.lr_scheduler.tri_stage_lr_scheduler.TriStageLRSchedule from class org.fairseq.optim.lr_scheduler.tri_stage_lr_scheduler.TriStageLRScheduleConfig fairseq/optim/lr_scheduler/tri_stage_lr_scheduler.py
RaRe-Technologies/gensim Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.gensim.tests.test_corpora.CorpusTesterABC from class org.src.gensim.tests.test_corpora.TestMmCorpus src/gensim/tests/test_corpora.py
pfnet/optuna Extract Class RefactoringLinkCommitLinkYes Extract Class org.examples.pytorch_lightning_simple.MNISTDataModule from class org.examples.pytorch_lightning_simple.LightningNet examples/pytorch_lightning_simple.py
pfnet/optuna Extract Class RefactoringLinkCommitLinkYes Extract Class org.optuna.storages.rdb.storage._VersionManager from class org.optuna.storages.rdb.storage.RDBStorage optuna/storages/rdb/storage.py
bashtage/linearmodels Extract Class RefactoringLinkCommitLinkYes Extract Class org.linearmodels.asset_pricing.covariance._HACMixin from class org.linearmodels.asset_pricing.covariance.KernelCovariance linearmodels/asset_pricing/covariance.py
stanford-mast/nn_dataflow Extract Class RefactoringLinkCommitLinkYes Extract Class org.nn_dataflow.Util.ContentHashClass from class org.nn_dataflow.Layer.Layer nn_dataflow/Layer.py
WheatonCS/Lexos Extract Class RefactoringLinkCommitLinkYes Extract Class org.test.unit_test.test_cut_number.TestNumberCutHelpers from class org.test.unit_test.test_cut_number.TestCutByNumbers test/unit_test/test_cut_number.py
cornellius-gp/gpytorch Extract Class RefactoringLinkCommitLinkYes Extract Class org.gpytorch.likelihoods.likelihood._Likelihood from class org.gpytorch.likelihoods.bernoulli_likelihood.BernoulliLikelihood gpytorch/likelihoods/bernoulli_likelihood.py
cornellius-gp/gpytorch Extract Class RefactoringLinkCommitLinkYes Extract Class org.gpytorch.likelihoods.gaussian_likelihood._GaussianLikelihoodBase from class org.gpytorch.likelihoods.multitask_gaussian_likelihood.MultitaskGaussianLikelihood gpytorch/likelihoods/multitask_gaussian_likelihood.py
albermax/innvestigate Extract Class RefactoringLinkCommitLinkYes Extract Class org.innvestigate.analyzer.relevance_based.ZPlusFastRule from class org.innvestigate.analyzer.relevance_based.ZPlusRule innvestigate/analyzer/relevance_based.py
automl/SMAC3 Extract Class RefactoringLinkCommitLinkYes Extract Class org.smac.intensification.hyperband._Hyperband from class org.smac.intensification.hyperband.Hyperband smac/intensification/hyperband.py
automl/SMAC3 Extract Class RefactoringLinkCommitLinkYes Extract Class org.smac.intensification.successive_halving._SuccessiveHalving from class org.smac.intensification.hyperband.Hyperband smac/intensification/hyperband.py
automl/auto-sklearn Extract Class RefactoringLinkCommitLinkYes Extract Class org.autosklearn.estimators.AutoMLDecorator from class org.autosklearn.estimators.AutoSklearnClassifier autosklearn/estimators.py
automl/auto-sklearn Extract Class RefactoringLinkCommitLinkYes Extract Class org.autosklearn.estimators.AutoMLClassifier from class org.autosklearn.estimators.AutoSklearnClassifier autosklearn/estimators.py
automl/auto-sklearn Extract Class RefactoringLinkCommitLinkYes Extract Class org.autosklearn.util.backend.BackendContext from class org.autosklearn.automl.AutoML autosklearn/automl.py
automl/auto-sklearn Extract Class RefactoringLinkCommitLinkYes Extract Class org.autosklearn.automl.PyDummyClass1 from class org.autosklearn.automl.AutoML autosklearn/automl.py
kengz/SLM-Lab Extract Class RefactoringLinkCommitLinkYes Extract Class org.slm_lab.experiment.monitor.InfoSpace from class org.slm_lab.experiment.monitor.DataSpace slm_lab/experiment/monitor.py
rtavenar/tslearn Extract Class RefactoringLinkCommitLinkYes Extract Class org.tslearn.clustering.TimeSeriesKMeansOld from class org.tslearn.clustering.TimeSeriesKMeans tslearn/clustering.py
comic/grand-challenge.org Extract Class RefactoringLinkCommitLinkYes Extract Class org.app.grandchallenge.workstations.views.UnsupportedBrowserWarningMixin from class org.app.grandchallenge.workstations.views.SessionDetail app/grandchallenge/workstations/views.py
comic/grand-challenge.org Extract Class RefactoringLinkCommitLinkYes Extract Class org.app.grandchallenge.archives.views.ArchivePermissionRequestCreate from class org.app.grandchallenge.algorithms.views.AlgorithmPermissionRequestUpdate app/grandchallenge/algorithms/views.py
comic/grand-challenge.org Extract Class RefactoringLinkCommitLinkYes Extract Class org.app.grandchallenge.reader_studies.views.ReaderStudyPermissionRequestCreate from class org.app.grandchallenge.algorithms.views.AlgorithmPermissionRequestUpdate app/grandchallenge/algorithms/views.py
chainer/chainer Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.chainer_tests.links_tests.connection_tests.test_convolution_2d.TestConvolution2DIm2ColConsistency from class org.tests.chainer_tests.links_tests.connection_tests.test_convolution_nd.TestConvolutionND tests/chainer_tests/links_tests/connection_tests/test_convolution_nd.py
chainer/chainer Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.chainer_tests.links_tests.connection_tests.test_convolution_nd.TestConvolutionNDIm2ColConsistency from class org.tests.chainer_tests.links_tests.connection_tests.test_convolution_nd.TestConvolutionND tests/chainer_tests/links_tests/connection_tests/test_convolution_nd.py
chainer/chainer Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.chainerx_tests.unit_tests.routines_tests.test_connection._ConvTestBase from class org.tests.chainerx_tests.unit_tests.routines_tests.test_connection.TestConvTranspose tests/chainerx_tests/unit_tests/routines_tests/test_connection.py
chainer/chainer Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.chainerx_tests.unit_tests.routines_tests.test_connection._ConvTransposeTestBase from class org.tests.chainerx_tests.unit_tests.routines_tests.test_connection.TestConv tests/chainerx_tests/unit_tests/routines_tests/test_connection.py
chainer/chainer Extract Class RefactoringLinkCommitLinkYes Extract Class org.tests.chainer_tests.functions_tests.math_tests.test_logsumexp.TestLogSumExpInvalidAxis from class org.tests.chainer_tests.functions_tests.math_tests.test_logsumexp.TestLogSumExp tests/chainer_tests/functions_tests/math_tests/test_logsumexp.py
LCAV/pyroomacoustics Extract Class RefactoringLinkCommitLinkYes Extract Class org.pyroomacoustics.libroom_src.tests.test_wall_side_reflect.TestUtilityRoutines from class org.pyroomacoustics.libroom_src.tests.test_wall_side_reflect.PyDummyClass1 pyroomacoustics/libroom_src/tests/test_wall_side_reflect.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.indexes.period.test_constructors.TestShallowCopy from class org.pandas.tests.indexes.period.test_period.TestPeriodIndex pandas/tests/indexes/period/test_period.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.indexes.test_setops.TestSetOpsUnsorted from class org.pandas.tests.indexes.test_base.TestIndex pandas/tests/indexes/test_base.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.indexes.categorical.test_category.TestCategoricalIndex2 from class org.pandas.tests.indexes.categorical.test_category.TestCategoricalIndex pandas/tests/indexes/categorical/test_category.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.indexes.interval.test_base.TestPutmask from class org.pandas.tests.indexes.interval.test_base.TestBase pandas/tests/indexes/interval/test_base.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.window.test_groupby.TestExpanding from class org.pandas.tests.window.test_groupby.TestGrouperGrouping pandas/tests/window/test_groupby.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.arrays.categorical.test_indexing.TestContains from class org.pandas.tests.arrays.categorical.test_operators.TestCategoricalOps pandas/tests/arrays/categorical/test_operators.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.base.test_conversion.TestAsArray from class org.pandas.tests.series.test_timeseries.TestTimeSeries pandas/tests/series/test_timeseries.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.series.test_dt_accessor.TestSeriesPeriodValuesDtAccessor from class org.pandas.tests.series.test_period.TestSeriesPeriod pandas/tests/series/test_period.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.series.methods.test_astype.TestAstypeAPI from class org.pandas.tests.series.test_dtypes.TestSeriesDtypes pandas/tests/series/test_dtypes.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.series.methods.test_astype.TestAstypeCategorical from class org.pandas.tests.series.test_dtypes.TestSeriesDtypes pandas/tests/series/test_dtypes.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.series.methods.test_fillna.TestFillnaPad from class org.pandas.tests.series.test_missing.TestSeriesMissingData pandas/tests/series/test_missing.py
pandas-dev/pandas Extract Class RefactoringLinkCommitLinkYes Extract Class org.pandas.tests.arrays.test_timedeltas.TestUnaryOps from class org.pandas.tests.arrays.test_timedeltas.TestTimedeltaArray pandas/tests/arrays/test_timedeltas.py
bokeh/bokeh Extract Class RefactoringLinkCommitLinkYes Extract Class org.bokeh._testing.plugins.bokeh._CanvasMixin from class org.bokeh._testing.plugins.bokeh._SinglePlotPage bokeh/_testing/plugins/bokeh.py
bokeh/bokeh Extract Class RefactoringLinkCommitLinkYes Extract Class org.bokeh.charts._properties.ColumnLabel from class org.bokeh.charts._properties.Column bokeh/charts/_properties.py
keiffster/program-y Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.programy.storage.stores.sql.store.errors.SQLErrorsStore from class org.src.programy.storage.stores.sql.store.defaults.SQLDefaultsStore src/programy/storage/stores/sql/store/defaults.py
keiffster/program-y Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.programy.storage.stores.sql.store.lookups.SQLDenormalStore from class org.src.programy.storage.stores.sql.store.defaults.SQLDefaultsStore src/programy/storage/stores/sql/store/defaults.py
keiffster/program-y Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.programy.storage.stores.sql.store.lookups.SQLNormalStore from class org.src.programy.storage.stores.sql.store.defaults.SQLDefaultsStore src/programy/storage/stores/sql/store/defaults.py
keiffster/program-y Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.programy.storage.stores.sql.store.lookups.SQLGenderStore from class org.src.programy.storage.stores.sql.store.defaults.SQLDefaultsStore src/programy/storage/stores/sql/store/defaults.py
keiffster/program-y Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.programy.storage.stores.sql.store.lookups.SQLPersonStore from class org.src.programy.storage.stores.sql.store.defaults.SQLDefaultsStore src/programy/storage/stores/sql/store/defaults.py
keiffster/program-y Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.programy.storage.stores.sql.store.lookups.SQLPerson2Store from class org.src.programy.storage.stores.sql.store.defaults.SQLDefaultsStore src/programy/storage/stores/sql/store/defaults.py
keiffster/program-y Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.programy.storage.stores.sql.store.spelling.SQLSpellingStore from class org.src.programy.storage.stores.sql.store.defaults.SQLDefaultsStore src/programy/storage/stores/sql/store/defaults.py
ray-project/ray Extract Class RefactoringLinkCommitLinkYes Extract Class org.streaming.python.streaming.ExecutionGraph from class org.python.ray.experimental.streaming.streaming.Environment python/ray/experimental/streaming/streaming.py
google-research/google-research Extract Class RefactoringLinkCommitLinkYes Extract Class org.eim.models.base.ProbabilisticModel from class org.eim.models.nis.NIS eim/models/nis.py
google-research/google-research Extract Class RefactoringLinkCommitLinkYes Extract Class org.eim.models.nis.AbstractNIS from class org.eim.models.rejection_sampling.RejectionSampling eim/models/rejection_sampling.py
google-research/google-research Extract Class RefactoringLinkCommitLinkYes Extract Class org.eim.models.rejection_sampling.AbstractRejectionSampling from class org.eim.models.nis.NIS eim/models/nis.py
google-research/google-research Extract Class RefactoringLinkCommitLinkYes Extract Class org.eim.models.vae.HVAE from class org.eim.models.nis.NIS eim/models/nis.py
snipsco/snips-nlu Extract Class RefactoringLinkCommitLinkYes Extract Class org.snips_nlu_dataset.intent_dataset.Chunk from class org.snips_nlu_dataset.intent_dataset.IntentDataset snips_nlu_dataset/intent_dataset.py
PyMVPA/PyMVPA Extract Class RefactoringLinkCommitLinkYes Extract Class org.mvpa2.base.learner.CompoundLearner from class org.mvpa2.base.learner.ChainLearner mvpa2/base/learner.py
fgnt/pb_bss Extract Class RefactoringLinkCommitLinkYes Extract Class org.dc_integration.distribution.complex_watson.ComplexWatsonTrainer from class org.dc_integration.distribution.complex_watson.ComplexWatson dc_integration/distribution/complex_watson.py
bethgelab/foolbox Extract Class RefactoringLinkCommitLinkYes Extract Class org.foolbox.ext.native.attacks.additive_noise.BaseAdditiveNoiseAttack from class org.foolbox.ext.native.attacks.additive_noise.L2AdditiveGaussianNoiseAttack foolbox/ext/native/attacks/additive_noise.py
bethgelab/foolbox Extract Class RefactoringLinkCommitLinkYes Extract Class org.foolbox.ext.native.attacks.additive_noise.BaseRepeatedAdditiveNoiseAttack from class org.foolbox.ext.native.attacks.additive_noise.L2AdditiveGaussianNoiseAttack foolbox/ext/native/attacks/additive_noise.py
rlworkgroup/garage Extract Class RefactoringLinkCommitLinkYes Extract Class org.src.garage.tf.models.base.StochasticModule from class org.src.garage.tf.policies.base.StochasticPolicy src/garage/tf/policies/base.py
rlworkgroup/garage Extract Class RefactoringLinkCommitLinkYes Extract Class org.garage.envs.mujoco.sawyer.sawyer_env.SawyerEnvWrapper from class org.garage.envs.mujoco.sawyer.pick_and_place_env.PickAndPlaceEnv garage/envs/mujoco/sawyer/pick_and_place_env.py
masa-su/pixyz Extract Class RefactoringLinkCommitLinkYes Extract Class org.pixyz.distributions.distributions.DistGraph from class org.pixyz.distributions.distributions.MultiplyDistribution pixyz/distributions/distributions.py
silvandeleemput/memcnn Extract Class RefactoringLinkCommitLinkYes Extract Class org.memcnn.models.additive.AdditiveCoupling from class org.memcnn.models.affine.AffineBlock memcnn/models/affine.py
silvandeleemput/memcnn Extract Class RefactoringLinkCommitLinkYes Extract Class org.memcnn.models.affine.AffineCoupling from class org.memcnn.models.additive.AdditiveBlock memcnn/models/additive.py
JasonKessler/scattertext Extract Class RefactoringLinkCommitLinkYes Extract Class org.scattertext.features.FeatsFromTopicModel.FeatsFromTopicModelBase from class org.scattertext.features.FeatsFromTopicModel.FeatsFromTopicModel scattertext/features/FeatsFromTopicModel.py