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

Refactoring Type : Extract Superclass | Total : 42 | Precision : 95.24% | True Positives :40 | Evaluated : 42 | Not Evaluated : 23

Project RefactoringType RefactoringLink CommitLink TrueRefactoring? Description File
keras-team/keras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.keras.layers.convolutional._UpSampling from classes [org.keras.layers.convolutional.UpSampling1D, org.keras.layers.convolutional.UpSampling2D, org.keras.layers.convolutional.UpSampling3D] keras/layers/convolutional.py
IDSIA/sacred Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.sacred.tensorflow_hooks.tensorflow_hooks.ContextlibDecorator from classes [org.sacred.tensorflow_hooks.tensorflow_hooks.LogSummaryWriter] sacred/tensorflow_hooks/tensorflow_hooks.py
PaddlePaddle/edl Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.python.edl.utils.exceptions.EdlException from classes [org.python.edl.utils.exceptions.EdlStopIteration, org.python.edl.utils.exceptions.EdlInternalError, org.python.edl.utils.exceptions.EdlRegisterError, org.python.edl.utils.exceptions.EdlBarrierError, org.python.edl.utils.exceptions.EdlUnkownError, org.python.edl.utils.exceptions.EdlRankError] python/edl/utils/exceptions.py
kimhc6028/relational-networks Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.model.BasicModel from classes [org.model.RN] model.py
chakki-works/doccano Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.app.api.permissions.ProjectMixin from classes [org.app.api.permissions.IsProjectUser, org.app.api.permissions.IsOwnAnnotation] app/api/permissions.py
mozilla/mozregression Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.gui.mozregui.wizard.WizardPage from classes [org.gui.mozregui.wizard.IntroPage, org.gui.mozregui.wizard.NightliesPage, org.gui.mozregui.wizard.InboundPage] gui/mozregui/wizard.py
brilee/MuGo Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.strategies.GtpInterface from classes [org.strategies.RandomPlayer] strategies.py
Rostlab/nalaf Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.nalaf.learning.taggers.StubRelationExtractor from classes [org.nalaf.learning.taggers.StubSameSentenceRelationExtractor] nalaf/learning/taggers.py
NervanaSystems/coach Extract Superclass RefactoringLinkCommitLinkNo Extract Superclass org.rl_coach.core_types.VideoDumpFilter from classes [org.rl_coach.core_types.AlwaysDumpFilter, org.rl_coach.core_types.MaxDumpFilter] rl_coach/core_types.py
dmlc/gluon-nlp Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.scripts.machine_translation.gnmt._BaseGNMTDecoder from classes [org.scripts.machine_translation.gnmt.GNMTDecoder] scripts/machine_translation/gnmt.py
dmlc/gluon-nlp Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.src.gluonnlp.model.transformer._BaseTransformerDecoder from classes [org.src.gluonnlp.model.transformer.TransformerDecoder] src/gluonnlp/model/transformer.py
deepmind/sonnet Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.sonnet.python.modules.conv._ConvNDTranspose from classes [org.sonnet.python.modules.conv.Conv2DTranspose, org.sonnet.python.modules.conv.Conv1DTranspose, org.sonnet.python.modules.conv.Conv3DTranspose] sonnet/python/modules/conv.py
deepmind/sonnet Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.sonnet.python.modules.conv._ConvND from classes [org.sonnet.python.modules.conv.Conv2D, org.sonnet.python.modules.conv.Conv1D, org.sonnet.python.modules.conv.Conv3D] sonnet/python/modules/conv.py
deepmind/sonnet Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.sonnet.python.modules.gated_rnn._BaseLSTM from classes [org.sonnet.python.modules.gated_rnn.LSTM] sonnet/python/modules/gated_rnn.py
keras-team/autokeras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.autokeras.blocks.reduction.Reduction from classes [org.autokeras.blocks.reduction.SpatialReduction, org.autokeras.blocks.reduction.TemporalReduction] autokeras/blocks/reduction.py
keras-team/autokeras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.autokeras.blocks.basic.KerasApplicationBlock from classes [org.autokeras.blocks.basic.ResNetBlock, org.autokeras.blocks.basic.XceptionBlock] autokeras/blocks/basic.py
keras-team/autokeras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.autokeras.supervised.SingleModelSupervised from classes [org.autokeras.predefined_model.PredefinedModel, org.autokeras.supervised.PortableDeepSupervised] autokeras/supervised.py
keras-team/autokeras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.autokeras.nn.generator.NetworkGenerator from classes [org.autokeras.nn.generator.CnnGenerator] autokeras/nn/generator.py
keras-team/autokeras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.autokeras.stub.StubLayer from classes [org.autokeras.stub.StubBatchNormalization, org.autokeras.stub.StubDense, org.autokeras.stub.StubConv, org.autokeras.stub.StubActivation] autokeras/stub.py
keras-team/autokeras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.autokeras.stub.StubAggregateLayer from classes [org.autokeras.stub.StubConcatenate, org.autokeras.stub.StubWeightedAdd] autokeras/stub.py
keras-team/autokeras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.autokeras.search.Searcher from classes [org.autokeras.search.HillClimbingSearcher] autokeras/search.py
catalyst-team/catalyst Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.catalyst.data.loader.ILoaderWrapper from classes [org.catalyst.data.loader.BatchLimitLoaderWrapper] catalyst/data/loader.py
catalyst-team/catalyst Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.catalyst.dl.runner.gan.MultiPhaseRunner from classes [org.catalyst.dl.runner.gan.GanRunner] catalyst/dl/runner/gan.py
microsoft/nni Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.src.sdk.pynni.nni.compression.torch.builtin_pruners.RankFilterPruner from classes [org.src.sdk.pynni.nni.compression.torch.builtin_pruners.FPGMPruner, org.src.sdk.pynni.nni.compression.torch.builtin_pruners.L1FilterPruner] src/sdk/pynni/nni/compression/torch/builtin_pruners.py
asyml/texar Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.txtgen.modules.encoders.rnn_encoders.RNNEncoderBase from classes [org.txtgen.modules.encoders.rnn_encoders.ForwardRNNEncoder] txtgen/modules/encoders/rnn_encoders.py
GPflow/GPflow Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.gpflow.models.sgpr.SGPRBase from classes [org.gpflow.models.sgpr.SGPR, org.gpflow.models.sgpr.GPRFITC] gpflow/models/sgpr.py
GPflow/GPflow Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.gpflow.inducing_variables.inducing_variables.InducingPointsBase from classes [org.gpflow.inducing_variables.inducing_variables.InducingPoints, org.gpflow.inducing_variables.inducing_variables.Multiscale] gpflow/inducing_variables/inducing_variables.py
GPflow/GPflow Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.GPflow.kernels.Combination from classes [org.GPflow.kernels.Add, org.GPflow.kernels.Prod] GPflow/kernels.py
deepmipt/DeepPavlov Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.deeppavlov.core.models.nn_model.NNModel from classes [org.deeppavlov.core.models.keras_model.KerasModel, org.deeppavlov.core.models.tf_model.TFModel, org.deeppavlov.core.models.tf_model.SimpleTFModel] deeppavlov/core/models/tf_model.py
streamlit/streamlit Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.lib.streamlit.Server._SpecialRequestHandler from classes [org.lib.streamlit.Server._HealthHandler, org.lib.streamlit.Server._MetricsHandler, org.lib.streamlit.Server._DebugHandler] lib/streamlit/Server.py
chainer/chainercv Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.chainercv.links.model.yolo.yolo_v2.YOLOv2Base from classes [org.chainercv.links.model.yolo.yolo_v2.YOLOv2] chainercv/links/model/yolo/yolo_v2.py
chainer/chainercv Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.chainercv.links.ssd._SSDVGG16 from classes [org.chainercv.links.ssd.SSD300] chainercv/links/ssd.py
OpenMined/PySyft Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.src.syft.core.nodes.common.service.node_service.EventualNodeServiceWithoutReply from classes [org.src.syft.core.nodes.common.service.obj_action_service.EventualObjectActionServiceWithoutReply] src/syft/core/nodes/common/service/obj_action_service.py
OpenMined/PySyft Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.src.syft.core.message.syft_message.SyftMessageWithoutReply from classes [org.src.syft.core.message.delete_object_message.DeleteObjectMessage, org.src.syft.core.message.run_function_or_constructor_message.RunFunctionOrConstructorMessage] src/syft/core/message/run_function_or_constructor_message.py
keras-team/keras Extract Superclass RefactoringLinkCommitLinkNo Extract Superclass org.keras.callbacks.callbacks.Callback from classes [org.keras.callbacks.callbacks.EarlyStopping, org.keras.callbacks.callbacks.RemoteMonitor, org.keras.callbacks.callbacks.ReduceLROnPlateau, org.keras.callbacks.callbacks.LambdaCallback] keras/callbacks/callbacks.py
keras-team/keras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.keras.layers.convolutional._ZeroPadding from classes [org.keras.layers.convolutional.ZeroPadding1D, org.keras.layers.convolutional.ZeroPadding2D, org.keras.layers.convolutional.ZeroPadding3D] keras/layers/convolutional.py
keras-team/keras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.keras.layers.convolutional._Cropping from classes [org.keras.layers.convolutional.Cropping1D, org.keras.layers.convolutional.Cropping2D, org.keras.layers.convolutional.Cropping3D] keras/layers/convolutional.py
keras-team/keras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.keras.layers.convolutional._SeparableConv from classes [org.keras.layers.convolutional.SeparableConv2D] keras/layers/convolutional.py
keras-team/keras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.keras.layers.convolutional.Pooling1D from classes [org.keras.layers.convolutional.MaxPooling1D] keras/layers/convolutional.py
keras-team/keras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.keras.layers.recurrent.JZS from classes [org.keras.layers.recurrent.JZS1, org.keras.layers.recurrent.JZS2] keras/layers/recurrent.py
keras-team/keras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.keras.wrappers.scikit_learn.BaseWrapper from classes [org.keras.wrappers.scikit_learn.KerasClassifier] keras/wrappers/scikit_learn.py
keras-team/keras Extract Superclass RefactoringLinkCommitLinkYes Extract Superclass org.keras.layers.core.MaskedLayer from classes [org.keras.layers.core.Dropout, org.keras.layers.core.Activation, org.keras.layers.core.TimeDistributedDense, org.keras.layers.embeddings.Embedding] keras/layers/core.py