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

Refactoring Type : Extract And Move Method | Total : 37 | Precision : 100.0% | True Positives :37 | Evaluated : 37 | Not Evaluated : 3

Project RefactoringType RefactoringLink CommitLink TrueRefactoring? Description File
nilmtk/nilmtk Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package activation_series_for_chunk(chunk Any, min_off_duration Any, min_on_duration Any, border Any, on_power_threshold Any) : void extracted from package activation_series(self Electric, min_off_duration Any, min_on_duration Any, border Any, on_power_threshold Any) : void in class org.nilmtk.electric.Electric & moved to class org.nilmtk.electric.PyDummyClass1 nilmtk/electric.py
nilmtk/nilmtk Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _load_and_reindex_chunk(generator Any, timeframe Any, index Any) : void extracted from package dataframe_of_meters(self MeterGroup, sample_period Any) : void in class org.nilmtk.metergroup.MeterGroup & moved to class org.nilmtk.metergroup.PyDummyClass1 nilmtk/metergroup.py
brilee/MuGo Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package select_most_likely(position Any, move_probabilities Any) : void extracted from package suggest_move(self PolicyNetworkBestMovePlayer, position Any) : void in class org.strategies.PolicyNetworkBestMovePlayer & moved to class org.strategies.PyDummyClass1 strategies.py
lene/nn-wtf Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _get_geometry(hidden1 Any, hidden2 Any, hidden3 Any) : void extracted from package __init__(self MNISTGraph, verbose Any, learning_rate Any, hidden1 Any, hidden2 Any, hidden3 Any, batch_size Any, train_dir Any) : void in class org.nn_wtf.mnist_graph.MNISTGraph & moved to class org.nn_wtf.mnist_graph.PyDummyClass1 nn_wtf/mnist_graph.py
lene/nn-wtf Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _initialize_session() : void extracted from package set_session(self NeuralNetworkGraph, session Any) : void in class org.nn_wtf.neural_network_graph.NeuralNetworkGraph & moved to class org.nn_wtf.neural_network_graph.PyDummyClass1 nn_wtf/neural_network_graph.py
dmlc/gluon-cv Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package tuple_map(obj Any) : void extracted from package __call__(self DataParallelCriterion, inputs Any) : void in class org.gluoncv.utils.parallel.DataParallelCriterion & moved to class org.gluoncv.utils.parallel.PyDummyClass1 gluoncv/utils/parallel.py
deepmind/sonnet Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _verify_inputs(inputs Any, channel_index Any, data_format Any) : void extracted from package _build(self _ConvND, inputs Any) : void in class org.sonnet.python.modules.conv._ConvND & moved to class org.sonnet.python.modules.conv.PyDummyClass1 sonnet/python/modules/conv.py
deepmind/sonnet Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _verify_inputs(inputs Any, channel_index Any, data_format Any) : void extracted from package _build(self _ConvNDTranspose, inputs Any) : void in class org.sonnet.python.modules.conv._ConvNDTranspose & moved to class org.sonnet.python.modules.conv.PyDummyClass1 sonnet/python/modules/conv.py
deepmind/sonnet Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _verify_inputs(inputs Any, channel_index Any, data_format Any) : void extracted from package _build(self InPlaneConv2D, inputs Any) : void in class org.sonnet.python.modules.conv.InPlaneConv2D & moved to class org.sonnet.python.modules.conv.PyDummyClass1 sonnet/python/modules/conv.py
deepmind/sonnet Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _verify_inputs(inputs Any, channel_index Any, data_format Any) : void extracted from package _build(self DepthwiseConv2D, inputs Any) : void in class org.sonnet.python.modules.conv.DepthwiseConv2D & moved to class org.sonnet.python.modules.conv.PyDummyClass1 sonnet/python/modules/conv.py
deepmind/sonnet Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _verify_inputs(inputs Any, channel_index Any, data_format Any) : void extracted from package _build(self SeparableConv2D, inputs Any) : void in class org.sonnet.python.modules.conv.SeparableConv2D & moved to class org.sonnet.python.modules.conv.PyDummyClass1 sonnet/python/modules/conv.py
deepmind/sonnet Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _find_channel_index(data_format Any) : void extracted from package __init__(self _ConvND, output_channels Any, kernel_shape Any, stride Any, rate Any, padding Any, use_bias Any, initializers Any, partitioners Any, regularizers Any, mask Any, data_format Any, causal_padding Any, custom_getter Any, name Any) : void in class org.sonnet.python.modules.conv._ConvND & moved to class org.sonnet.python.modules.conv.PyDummyClass1 sonnet/python/modules/conv.py
deepmind/sonnet Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _find_channel_index(data_format Any) : void extracted from package __init__(self _ConvNDTranspose, output_channels Any, output_shape Any, kernel_shape Any, stride Any, padding Any, use_bias Any, initializers Any, partitioners Any, regularizers Any, data_format Any, custom_getter Any, name Any) : void in class org.sonnet.python.modules.conv._ConvNDTranspose & moved to class org.sonnet.python.modules.conv.PyDummyClass1 sonnet/python/modules/conv.py
uber/ludwig Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package embedding_matrix_on_device(vocab Any, embedding_size Any, regularizer Any, representation Any, embeddings_trainable Any, pretrained_embeddings Any, force_embedding_size Any, embeddings_on_cpu Any, initializer Any) : void extracted from package __call__(self Embed, input_ids Any, regularizer Any, dropout_rate Any, is_training Any) : void in class org.ludwig.models.modules.embedding_modules.Embed & moved to class org.ludwig.models.modules.embedding_modules.PyDummyClass1 ludwig/models/modules/embedding_modules.py
uber/ludwig Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package embedding_matrix_on_device(vocab Any, embedding_size Any, regularizer Any, representation Any, embeddings_trainable Any, pretrained_embeddings Any, force_embedding_size Any, embeddings_on_cpu Any, initializer Any) : void extracted from package __call__(self EmbedWeighted, input_ids Any, regularizer Any, dropout_rate Any, is_training Any) : void in class org.ludwig.models.modules.embedding_modules.EmbedWeighted & moved to class org.ludwig.models.modules.embedding_modules.PyDummyClass1 ludwig/models/modules/embedding_modules.py
uber/ludwig Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package embedding_matrix_on_device(vocab Any, embedding_size Any, regularizer Any, representation Any, embeddings_trainable Any, pretrained_embeddings Any, force_embedding_size Any, embeddings_on_cpu Any, initializer Any) : void extracted from package __call__(self EmbedSparse, input_sparse Any, regularizer Any, dropout_rate Any, is_training Any) : void in class org.ludwig.models.modules.embedding_modules.EmbedSparse & moved to class org.ludwig.models.modules.embedding_modules.PyDummyClass1 ludwig/models/modules/embedding_modules.py
catalyst-team/catalyst Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package real_module_from_maybe_ddp(model Any) : void extracted from package pack_checkpoint(model Any, criterion Any, optimizer Any, scheduler Any) : void in class org.catalyst.dl.utils.UtilsFactory & moved to class org.catalyst.dl.utils.PyDummyClass1 catalyst/dl/utils.py
catalyst-team/catalyst Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package real_module_from_maybe_ddp(model Any) : void extracted from package unpack_checkpoint(checkpoint Any, model Any, criterion Any, optimizer Any, scheduler Any) : void in class org.catalyst.dl.utils.UtilsFactory & moved to class org.catalyst.dl.utils.PyDummyClass1 catalyst/dl/utils.py
google/deepvariant Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package logging_with_options(options Any, message Any) : void extracted from package processing_regions_from_options(options Any) : void in class org.deepvariant.make_examples.PyDummyClass2 & moved to class org.deepvariant.make_examples.PyDummyClass1 deepvariant/make_examples.py
google/deepvariant Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _read_contents(path Any, decompress Any) : void extracted from package test_call_end2end(self PostprocessVariantsTest, compressed_inputs_and_outputs Any) : void in class org.deepvariant.postprocess_variants_test.PostprocessVariantsTest & moved to class org.deepvariant.postprocess_variants_test.PyDummyClass2 deepvariant/postprocess_variants_test.py
microsoft/nni Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package get_tf_mnist_model() : void extracted from package test_tf_pruner(self CompressorTestCase) : void in class org.src.sdk.pynni.tests.test_compressor.CompressorTestCase & moved to class org.src.sdk.pynni.tests.test_compressor.PyDummyClass1 src/sdk/pynni/tests/test_compressor.py
microsoft/nni Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package get_tf_mnist_model() : void extracted from package test_tf_quantizer(self CompressorTestCase) : void in class org.src.sdk.pynni.tests.test_compressor.CompressorTestCase & moved to class org.src.sdk.pynni.tests.test_compressor.PyDummyClass1 src/sdk/pynni/tests/test_compressor.py
hanxiao/bert-as-service Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _auto_bind(socket Any) : void extracted from package __init__(self BertServer, args Any) : void in class org.server.bert_serving.server.__init__.BertServer & moved to class org.server.bert_serving.server.__init__.PyDummyClass1 server/bert_serving/server/__init__.py
hanxiao/bert-as-service Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _auto_bind(socket Any) : void extracted from package run(self BertSink) : void in class org.server.bert_serving.server.__init__.BertSink & moved to class org.server.bert_serving.server.__init__.PyDummyClass1 server/bert_serving/server/__init__.py
asyml/texar Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _default_output_layer_hparams() : void extracted from package default_hparams() : void in class org.texar.modules.encoders.rnn_encoders.UnidirectionalRNNEncoder & moved to class org.texar.modules.encoders.rnn_encoders.PyDummyClass1 texar/modules/encoders/rnn_encoders.py
asyml/texar Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _assert_same_size(outputs Any, output_size Any) : void extracted from package _build(self ReparameterizedStochasticConnector, distribution Any, distribution_type Any, distribution_kwargs Any, transform Any, num_samples Any) : void in class org.txtgen.modules.connectors.connectors.ReparameterizedStochasticConnector & moved to class org.txtgen.modules.connectors.connectors.PyDummyClass1 txtgen/modules/connectors/connectors.py
GPflow/GPflow Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package __setstate__(self Parentable, d Any) : void extracted from package __setstate__(self Param, d Any) : void in class org.GPflow.param.Param & moved to class org.GPflow.param.Parentable GPflow/param.py
GPflow/GPflow Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package __setstate__(self Parentable, d Any) : void extracted from package __setstate__(self Parameterized, d Any) : void in class org.GPflow.param.Parameterized & moved to class org.GPflow.param.Parentable GPflow/param.py
aleju/imgaug Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package blur_avg_(image Any, k Any) : void extracted from package _augment_batch_(self AverageBlur, batch Any, random_state Any, parents Any, hooks Any) : void in class org.imgaug.augmenters.blur.AverageBlur & moved to class org.imgaug.augmenters.blur.PyDummyClass1 imgaug/augmenters/blur.py
aleju/imgaug Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _prevent_zero_sizes_after_crops_(axis_sizes Any, crops_start Any, crops_end Any) : void extracted from package _draw_samples(self CropAndPad, random_state Any, shapes Any) : void in class org.imgaug.augmenters.size.CropAndPad & moved to class org.imgaug.augmenters.size.PyDummyClass1 imgaug/augmenters/size.py
aleju/imgaug Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _crop_and_pad_arr(arr Any, croppings Any, paddings Any, pad_mode Any, pad_cval Any, keep_size Any) : void extracted from package _augment_images(self CropAndPad, images Any, random_state Any, parents Any, hooks Any) : void in class org.imgaug.augmenters.size.CropAndPad & moved to class org.imgaug.augmenters.size.PyDummyClass1 imgaug/augmenters/size.py
aleju/imgaug Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _crop_and_pad_hms_or_segmaps_(augmentable Any, arr_attr_name Any, croppings_img Any, paddings_img Any, pad_mode Any, pad_cval Any, keep_size Any) : void extracted from package _augment_segmaps_and_heatmaps(self CropAndPad, augmentables Any, arr_attr_name Any, mode Any, cval Any, random_state Any) : void in class org.imgaug.augmenters.size.CropAndPad & moved to class org.imgaug.augmenters.size.PyDummyClass1 imgaug/augmenters/size.py
aleju/imgaug Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _crop_and_pad_kpsoi(kpsoi Any, croppings_img Any, paddings_img Any, keep_size Any) : void extracted from package _augment_keypoints(self CropAndPad, keypoints_on_images Any, random_state Any, parents Any, hooks Any) : void in class org.imgaug.augmenters.size.CropAndPad & moved to class org.imgaug.augmenters.size.PyDummyClass1 imgaug/augmenters/size.py
aleju/imgaug Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package fliplr(arr Any) : void extracted from package _augment_images(self Fliplr, images Any, random_state Any, parents Any, hooks Any) : void in class org.imgaug.augmenters.flip.Fliplr & moved to class org.imgaug.augmenters.flip.PyDummyClass1 imgaug/augmenters/flip.py
tensorlayer/tensorlayer Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package str2act(act Any) : void extracted from package __init__(self Layer, name Any, act Any, haveact Any) : void in class org.tensorlayer.layers.core.Layer & moved to class org.tensorlayer.layers.core.PyDummyClass1 tensorlayer/layers/core.py
ray-project/ray Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _export_bundle_reservation_check_method_if_needed() : void extracted from package ready(self PlacementGroup) : void in class org.python.ray.util.placement_group.PlacementGroup & moved to class org.python.ray.util.placement_group.PyDummyClass1 python/ray/util/placement_group.py
keras-team/keras Extract And Move Method RefactoringLinkCommitLinkYes Extract And Move Method package _reshape_batch(x Any, shape Any) : void extracted from package reshape(x Any, shape Any) : void in class org.keras.backend.cntk_backend.PyDummyClass1 & moved to class org.keras.backend.cntk_backend.PyDummyClass2 keras/backend/cntk_backend.py