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

Refactoring Type : Extract Method | Total : 101 | Precision : 97.03% | True Positives :98 | Evaluated : 101 | Not Evaluated : 201

Project RefactoringType RefactoringLink CommitLink TrueRefactoring? Description File
keras-team/keras Extract Method RefactoringLinkCommitLinkYes Extract Method package is_wrapped_model(layer Any) : void extracted from package model_to_dot(model Any, show_shapes Any, show_layer_names Any, rankdir Any, expand_nested Any, dpi Any, subgraph Any) : void in class org.keras.utils.vis_utils.PyDummyClass1 keras/utils/vis_utils.py
keras-team/keras Extract Method RefactoringLinkCommitLinkYes Extract Method package _set_keras_shape_for_reduction(x Any, y Any, axis Any, keepdims Any) : void extracted from package any(x Any, axis Any, keepdims Any) : void in class org.keras.backend.theano_backend.PyDummyClass1 keras/backend/theano_backend.py
keras-team/keras Extract Method RefactoringLinkCommitLinkYes Extract Method package _set_keras_shape_for_reduction(x Any, y Any, axis Any, keepdims Any) : void extracted from package all(x Any, axis Any, keepdims Any) : void in class org.keras.backend.theano_backend.PyDummyClass1 keras/backend/theano_backend.py
Kamnitsask/deepmedic Extract Method RefactoringLinkCommitLinkYes Extract Method package comp_valid_sampling_mask_excluding_edges(dims_of_segment Any, shape Any) : void extracted from package sample_idxs_of_segments(log Any, job_id Any, n_samples Any, dims_of_segment Any, dims_of_scan Any, sampling_map Any) : void in class org.deepmedic.dataManagement.sampling.PyDummyClass1 deepmedic/dataManagement/sampling.py
IDSIA/sacred Extract Method RefactoringLinkCommitLinkYes Extract Method package _get_cpu_by_pycpuinfo() : void extracted from package _cpu() : void in class org.sacred.host_info.PyDummyClass1 sacred/host_info.py
librosa/librosa Extract Method RefactoringLinkCommitLinkYes Extract Method package __audioread_load(path Any, offset Any, duration Any, dtype Any) : void extracted from package load(path Any, sr Any, mono Any, offset Any, duration Any, dtype Any, res_type Any) : void in class org.librosa.core.audio.PyDummyClass1 librosa/core/audio.py
librosa/librosa Extract Method RefactoringLinkCommitLinkYes Extract Method package __set_current_image(ax Any, img Any) : void extracted from package specshow(data Any, x_coords Any, y_coords Any, x_axis Any, y_axis Any, sr Any, hop_length Any, fmin Any, fmax Any, bins_per_octave Any, ax Any) : void in class org.librosa.display.PyDummyClass1 librosa/display.py
librosa/librosa Extract Method RefactoringLinkCommitLinkYes Extract Method package _signal_to_frame_nonsilent(y Any, frame_length Any, hop_length Any, top_db Any, ref_power Any) : void extracted from package trim(y Any, top_db Any, ref_power Any, n_fft Any, hop_length Any, index Any) : void in class org.librosa.effects.PyDummyClass1 librosa/effects.py
librosa/librosa Extract Method RefactoringLinkCommitLinkNo Extract Method package __fft_response(y Any, n_fft Any, hop_length Any, fft_basis Any) : void extracted from package cqt(y Any, sr Any, hop_length Any, fmin Any, n_bins Any, bins_per_octave Any, tuning Any, filter_scale Any, aggregate Any, norm Any, sparsity Any, real Any, resolution Any) : void in class org.librosa.core.constantq.PyDummyClass1 librosa/core/constantq.py
librosa/librosa Extract Method RefactoringLinkCommitLinkYes Extract Method package __early_downsample_count(nyquist Any, filter_cutoff Any, hop_length Any, n_octaves Any) : void extracted from package __early_downsample(y Any, sr Any, hop_length Any, res_type Any, n_octaves Any, nyquist Any, filter_cutoff Any) : void in class org.librosa.core.constantq.PyDummyClass1 librosa/core/constantq.py
librosa/librosa Extract Method RefactoringLinkCommitLinkYes Extract Method package __get_spec(y Any, sr Any, S Any, n_fft Any, hop_length Any, power Any) : void extracted from package logfsgram(y Any, sr Any, S Any, n_fft Any, hop_length Any) : void in class org.librosa.feature.spectral.PyDummyClass1 librosa/feature/spectral.py
librosa/librosa Extract Method RefactoringLinkCommitLinkYes Extract Method package __get_spec(y Any, sr Any, S Any, n_fft Any, hop_length Any, power Any) : void extracted from package chromagram(y Any, sr Any, S Any, norm Any, n_fft Any, hop_length Any, tuning Any) : void in class org.librosa.feature.spectral.PyDummyClass1 librosa/feature/spectral.py
librosa/librosa Extract Method RefactoringLinkCommitLinkYes Extract Method package __get_spec(y Any, sr Any, S Any, n_fft Any, hop_length Any, power Any) : void extracted from package melspectrogram(y Any, sr Any, S Any, n_fft Any, hop_length Any) : void in class org.librosa.feature.spectral.PyDummyClass1 librosa/feature/spectral.py
nilmtk/nilmtk Extract Method RefactoringLinkCommitLinkYes Extract Method package load_series(self Electric) : void extracted from package power_series(self Electric) : void in class org.nilmtk.electric.Electric nilmtk/electric.py
nilmtk/nilmtk Extract Method RefactoringLinkCommitLinkYes Extract Method package _meter_generators(self MeterGroup) : void extracted from package load(self MeterGroup, sample_period Any) : void in class org.nilmtk.metergroup.MeterGroup nilmtk/metergroup.py
nilmtk/nilmtk Extract Method RefactoringLinkCommitLinkNo Extract Method package get_source_node(self ElecMeter) : void extracted from package total_energy(self ElecMeter) : void in class org.nilmtk.elecmeter.ElecMeter nilmtk/elecmeter.py
nilmtk/nilmtk Extract Method RefactoringLinkCommitLinkNo Extract Method package get_source_node(self ElecMeter) : void extracted from package good_sections(self ElecMeter) : void in class org.nilmtk.elecmeter.ElecMeter nilmtk/elecmeter.py
nilmtk/nilmtk Extract Method RefactoringLinkCommitLinkYes Extract Method package reframe_index(index Any, window_start Any, window_end Any) : void extracted from package get_gap_starts_and_gap_ends(data Any, max_sample_period Any, window_start Any, window_end Any) : void in class org.nilmtk.stats.electricity.single.PyDummyClass1 nilmtk/stats/electricity/single.py
nilmtk/nilmtk Extract Method RefactoringLinkCommitLinkYes Extract Method package get_gap_starts_and_gap_ends(data Any, max_sample_period Any, window_start Any, window_end Any) : void extracted from package plot_missing_samples(data Any, ax Any, fig Any, max_sample_period Any, bottom Any, height Any, color Any) : void in class org.nilmtk.stats.electricity.single.PyDummyClass1 nilmtk/stats/electricity/single.py
nilmtk/nilmtk Extract Method RefactoringLinkCommitLinkYes Extract Method package _get_index(data Any) : void extracted from package sample_period(data Any) : void in class org.nilmtk.stats.electricity.single.PyDummyClass1 nilmtk/stats/electricity/single.py
coala/coala-bears Extract Method RefactoringLinkCommitLinkYes Extract Method package get_testfile_path(filename Any) : void extracted from package load_testdata(filename Any) : void in class org.tests.xml2.XMLBearTest.PyDummyClass1 tests/xml2/XMLBearTest.py
kkroening/ffmpeg-python Extract Method RefactoringLinkCommitLinkYes Extract Method package _get_node_color(node Any) : void extracted from package view() : void in class org.ffmpeg._view.PyDummyClass1 ffmpeg/_view.py
kkroening/ffmpeg-python Extract Method RefactoringLinkCommitLinkYes Extract Method package filter_(parent_node Any, filter_name Any) : void extracted from package hflip(parent_node Any) : void in class org.ffmpeg._filters.PyDummyClass1 ffmpeg/_filters.py
kkroening/ffmpeg-python Extract Method RefactoringLinkCommitLinkYes Extract Method package filter_(parent_node Any, filter_name Any) : void extracted from package vflip(parent_node Any) : void in class org.ffmpeg._filters.PyDummyClass1 ffmpeg/_filters.py
mathurinm/celer Extract Method RefactoringLinkCommitLinkYes Extract Method package _sparse_and_dense(X Any) : void extracted from package celer_path(X Any, y Any, pb Any, eps Any, n_alphas Any, alphas Any, coef_init Any, max_iter Any, gap_freq Any, max_epochs Any, p0 Any, verbose Any, verbose_inner Any, tol Any, prune Any, groups Any, return_thetas Any, use_PN Any, X_offset Any, X_scale Any, return_n_iter Any, positive Any) : void in class org.celer.homotopy.PyDummyClass1 celer/homotopy.py
mathurinm/celer Extract Method RefactoringLinkCommitLinkYes Extract Method package _sparse_and_dense(X Any) : void extracted from package PN_solver(X Any, y Any, alpha Any, w_init Any, max_iter Any, verbose Any, verbose_inner Any, tol Any, prune Any, p0 Any, use_accel Any, K Any, growth Any, blitz_sc Any) : void in class org.celer.homotopy.PyDummyClass1 celer/homotopy.py
mozilla/TTS Extract Method RefactoringLinkCommitLinkYes Extract Method package maximum_path_cython(value Any, mask Any) : void extracted from package maximum_path(value Any, mask Any) : void in class org.TTS.tts.layers.glow_tts.monotonic_align.__init__.PyDummyClass1 TTS/tts/layers/glow_tts/monotonic_align/__init__.py
mozilla/TTS Extract Method RefactoringLinkCommitLinkYes Extract Method package read_json_with_comments(json_path Any) : void extracted from package load_config(config_path Any) : void in class org.TTS.utils.io.PyDummyClass1 TTS/utils/io.py
luispedro/mahotas Extract Method RefactoringLinkCommitLinkYes Extract Method package ellipse_axes(bwimage Any) : void extracted from package eccentricity(bwimage Any) : void in class org.mahotas.features.shape.PyDummyClass1 mahotas/features/shape.py
luispedro/mahotas Extract Method RefactoringLinkCommitLinkYes Extract Method package _daubechies_code(c Any) : void extracted from package daubechies(f Any, code Any, inline Any) : void in class org.mahotas.convolve.PyDummyClass1 mahotas/convolve.py
luispedro/mahotas Extract Method RefactoringLinkCommitLinkYes Extract Method package _daubechies_code(c Any) : void extracted from package idaubechies(f Any, code Any, inline Any) : void in class org.mahotas.convolve.PyDummyClass1 mahotas/convolve.py
luispedro/mahotas Extract Method RefactoringLinkCommitLinkYes Extract Method package gbernsen(f Any, se Any, contrast_threshold Any, gthresh Any) : void extracted from package bernsen(f Any, radius Any, contrast_threshold Any, gthresh Any) : void in class org.mahotas.thresholding.PyDummyClass1 mahotas/thresholding.py
luispedro/mahotas Extract Method RefactoringLinkCommitLinkYes Extract Method package zernike_moments(im Any, radius Any, degree Any, cm Any) : void extracted from package zernike(img Any, degree Any, radius Any, cm Any) : void in class org.mahotas.zernike.PyDummyClass1 mahotas/zernike.py
brilee/MuGo Extract Method RefactoringLinkCommitLinkYes Extract Method package get_next_move(node Any) : void extracted from package handle_play_stones(pos Any, node Any) : void in class org.sgf_wrapper.PyDummyClass1 sgf_wrapper.py
Rostlab/nalaf Extract Method RefactoringLinkCommitLinkYes Extract Method package _gen_allowed_and_final_mapping_features_keys(corpus Any) : void extracted from package train(self SklSVM, training_corpus Any, feature_set Any) : void in class org.nalaf.learning.lib.sklsvm.SklSVM nalaf/learning/lib/sklsvm.py
keras-team/keras-applications Extract Method RefactoringLinkCommitLinkYes Extract Method package _get_elephant(target_size Any) : void extracted from package _test_application_basic(app Any, last_dim Any, module Any) : void in class org.tests.applications_test.PyDummyClass1 tests/applications_test.py
lene/nn-wtf Extract Method RefactoringLinkCommitLinkYes Extract Method package init_graph(graph Any) : void extracted from package train_neural_network(train_data Any) : void in class org.nn_wtf.tests.util.PyDummyClass1 nn_wtf/tests/util.py
lene/nn-wtf Extract Method RefactoringLinkCommitLinkYes Extract Method package image_data_from_list(buf Any) : void extracted from package create_empty_image_data() : void in class org.nn_wtf.tests.images_labels_data_set_test.PyDummyClass1 nn_wtf/tests/images_labels_data_set_test.py
lene/nn-wtf Extract Method RefactoringLinkCommitLinkYes Extract Method package get_network_geometry(data_sets Any) : void extracted from package run_training() : void in class org.main.PyDummyClass1 main.py
lene/nn-wtf Extract Method RefactoringLinkCommitLinkYes Extract Method package convert_labels_to_onehot(labels Any) : void extracted from package loss(logits Any, labels Any) : void in class org.tutorials.mnist.PyDummyClass1 tutorials/mnist.py
tsurumeso/waifu2x-chainer Extract Method RefactoringLinkCommitLinkYes Extract Method package split_alpha(src Any, offset Any) : void extracted from package denoise_image(src Any, model Any, cfg Any) : void in class org.waifu2x.PyDummyClass1 waifu2x.py
tsurumeso/waifu2x-chainer Extract Method RefactoringLinkCommitLinkYes Extract Method package split_alpha(src Any, offset Any) : void extracted from package upscale_image(src Any, model Any, cfg Any) : void in class org.waifu2x.PyDummyClass1 waifu2x.py
maciejkula/spotlight Extract Method RefactoringLinkCommitLinkYes Extract Method package _get_precision_recall(predictions Any, targets Any, k Any) : void extracted from package precision_recall_score(model Any, test Any, train Any, k Any) : void in class org.spotlight.evaluation.PyDummyClass1 spotlight/evaluation.py
PetrochukM/PyTorch-NLP Extract Method RefactoringLinkCommitLinkYes Extract Method package download(file_url Any, destination Any) : void extracted from package download_urls(urls Any, directory Any, check_file Any) : void in class org.torchnlp.utils.PyDummyClass1 torchnlp/utils.py
PetrochukM/PyTorch-NLP Extract Method RefactoringLinkCommitLinkYes Extract Method package maybe_extract(compressed_filename Any, destination Any) : void extracted from package download_compressed_directory(url Any, directory Any, check_file Any) : void in class org.torchnlp.utils.PyDummyClass1 torchnlp/utils.py
NervanaSystems/coach Extract Method RefactoringLinkCommitLinkYes Extract Method package rollout_worker(graph_manager Any) : void extracted from package main() : void in class org.rl_coach.rollout_worker.PyDummyClass1 rl_coach/rollout_worker.py
NervanaSystems/coach Extract Method RefactoringLinkCommitLinkYes Extract Method package display_all_presets_and_exit() : void extracted from package parse_arguments(parser Any) : void in class org.rl_coach.coach.PyDummyClass1 rl_coach/coach.py
NervanaSystems/coach Extract Method RefactoringLinkCommitLinkYes Extract Method package expand_preset(preset Any) : void extracted from package parse_arguments(parser Any) : void in class org.rl_coach.coach.PyDummyClass1 rl_coach/coach.py
autonomio/talos Extract Method RefactoringLinkCommitLinkYes Extract Method package create_params_dict(self Any, _choice Any) : void extracted from package round_params(self Any) : void in class org.talos.parameters.round_params.PyDummyClass1 talos/parameters/round_params.py
dmlc/gluon-nlp Extract Method RefactoringLinkCommitLinkYes Extract Method package _apply_mask(F Any, att_score Any, mask Any, dtype Any) : void extracted from package _masked_softmax(F Any, att_score Any, mask Any, dtype Any) : void in class org.src.gluonnlp.model.attention_cell.PyDummyClass1 src/gluonnlp/model/attention_cell.py
deepmind/sonnet Extract Method RefactoringLinkCommitLinkYes Extract Method package get_variable_scope_name(value Any) : void extracted from package get_variables_in_scope(scope Any, collection Any) : void in class org.sonnet.python.modules.util.PyDummyClass1 sonnet/python/modules/util.py
NervanaSystems/nlp-architect Extract Method RefactoringLinkCommitLinkYes Extract Method package send_request_to_server(request Any) : void extracted from package get_expand_results_callback() : void in class org.set_expansion_demo.ui.main.PyDummyClass1 set_expansion_demo/ui/main.py
tryolabs/luminoth Extract Method RefactoringLinkCommitLinkYes Extract Method package is_video(filename Any) : void extracted from package predict(path_or_dir Any, config_files Any, output_dir Any, save Any, min_prob Any, debug Any) : void in class org.luminoth.predict.PyDummyClass1 luminoth/predict.py
tryolabs/luminoth Extract Method RefactoringLinkCommitLinkYes Extract Method package is_basestring(value Any) : void extracted from package types_compatible(new_config_value Any, base_config_value Any) : void in class org.luminoth.utils.config.PyDummyClass1 luminoth/utils/config.py
tryolabs/luminoth Extract Method RefactoringLinkCommitLinkYes Extract Method package adjust_bboxes(bboxes Any, old_height Any, old_width Any, new_height Any, new_width Any) : void extracted from package resize_image(image Any, bboxes Any, min_size Any, max_size Any) : void in class org.luminoth.utils.image.PyDummyClass1 luminoth/utils/image.py
tryolabs/luminoth Extract Method RefactoringLinkCommitLinkYes Extract Method package get_credentials(file Any) : void extracted from package gc(job_id Any, project_id Any, service_account_json Any, bucket_name Any, config Any, dataset Any) : void in class org.luminoth.tools.cloud.gcloud.PyDummyClass1 luminoth/tools/cloud/gcloud.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package batched(dataset Any) : void extracted from package batch_dataset(dataset Any, batch_size Any) : void in class org.autokeras.utils.data_utils.PyDummyClass1 autokeras/utils/data_utils.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package get_single_io_auto_model(tmp_path Any) : void extracted from package test_auto_model_predict(tuner_fn Any, tmp_path Any) : void in class org.tests.autokeras.auto_model_test.PyDummyClass1 tests/autokeras/auto_model_test.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package get_single_io_auto_model(tmp_path Any) : void extracted from package test_final_fit_concat(tuner_fn Any, tmp_path Any) : void in class org.tests.autokeras.auto_model_test.PyDummyClass1 tests/autokeras/auto_model_test.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package get_single_io_auto_model(tmp_path Any) : void extracted from package test_final_fit_not_concat(tuner_fn Any, tmp_path Any) : void in class org.tests.autokeras.auto_model_test.PyDummyClass1 tests/autokeras/auto_model_test.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package get_single_io_auto_model(tmp_path Any) : void extracted from package test_overwrite(tuner_fn Any, tmp_path Any) : void in class org.tests.autokeras.auto_model_test.PyDummyClass1 tests/autokeras/auto_model_test.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package get_single_io_auto_model(tmp_path Any) : void extracted from package test_export_model(tuner_fn Any, tmp_path Any) : void in class org.tests.autokeras.auto_model_test.PyDummyClass1 tests/autokeras/auto_model_test.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package get_multi_io_auto_model(tmp_path Any) : void extracted from package test_multi_io_with_tf_dataset(tuner_fn Any, tmp_path Any) : void in class org.tests.autokeras.auto_model_test.PyDummyClass1 tests/autokeras/auto_model_test.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package get_multi_io_auto_model(tmp_path Any) : void extracted from package dataset_error(x Any, y Any, validation_data Any, message Any, tmp_path Any) : void in class org.tests.autokeras.auto_model_test.PyDummyClass1 tests/autokeras/auto_model_test.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package m_modification(m Any, in_channels Any, dropout Any, std_mul Any) : void extracted from package conv1d(in_channels Any, out_channels Any, kernel_size Any, dropout Any, std_mul Any) : void in class org.autokeras.pretrained.voice_generator.deepvoice3_pytorch.modules.PyDummyClass2 autokeras/pretrained/voice_generator/deepvoice3_pytorch/modules.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package m_modification(m Any, in_channels Any, dropout Any, std_mul Any) : void extracted from package conv_transpose1d(in_channels Any, out_channels Any, kernel_size Any, dropout Any, std_mul Any) : void in class org.autokeras.pretrained.voice_generator.deepvoice3_pytorch.modules.PyDummyClass2 autokeras/pretrained/voice_generator/deepvoice3_pytorch/modules.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package clear_dir() : void extracted from package test_fit_predict(_ Any, _1 Any) : void in class org.tests.test_classifier.PyDummyClass1 tests/test_classifier.py
keras-team/autokeras Extract Method RefactoringLinkCommitLinkYes Extract Method package clear_dir() : void extracted from package test_fit_predict2(_ Any, _1 Any) : void in class org.tests.test_classifier.PyDummyClass1 tests/test_classifier.py
uber/ludwig Extract Method RefactoringLinkCommitLinkYes Extract Method package obtained_sampled_values(num_classes Any, output_exp Any, loss Any) : void extracted from package sampled_softmax_cross_entropy(output_placeholder Any, feature_hidden Any, logits Any, vector_labels Any, class_weights Any, class_biases Any, loss Any, num_classes Any) : void in class org.ludwig.models.modules.loss_modules.PyDummyClass1 ludwig/models/modules/loss_modules.py
uber/ludwig Extract Method RefactoringLinkCommitLinkYes Extract Method package obtained_sampled_values(num_classes Any, output_exp Any, loss Any) : void extracted from package sequence_sampled_softmax_cross_entropy(targets Any, targets_sequence_length Any, eval_logits Any, train_logits Any, class_weights Any, class_biases Any, loss Any, num_classes Any) : void in class org.ludwig.models.modules.loss_modules.PyDummyClass1 ludwig/models/modules/loss_modules.py
uber/ludwig Extract Method RefactoringLinkCommitLinkYes Extract Method package generate_kfold_splits(data_train_df_fp Any, k_fold Any) : void extracted from package kfold_cross_validate(model_definition Any, model_definition_file Any, data_csv Any, data_train_csv Any, data_validation_csv Any, output_directory Any, k_fold Any) : void in class org.ludwig.train.PyDummyClass1 ludwig/train.py
uber/ludwig Extract Method RefactoringLinkCommitLinkYes Extract Method package set_logging_level(logging_level Any) : void extracted from package __init__(self LudwigModel, model_definition Any, model_definition_file Any, logging_level Any) : void in class org.ludwig.api.LudwigModel ludwig/api.py
wkentaro/labelme Extract Method RefactoringLinkCommitLinkYes Extract Method package img_data_to_pil(img_data Any) : void extracted from package img_data_to_arr(img_data Any) : void in class org.labelme.utils.image.PyDummyClass1 labelme/utils/image.py
Unity-Technologies/ml-agents Extract Method RefactoringLinkCommitLinkYes Extract Method package assert_stats_are_float(stats Any) : void extracted from package test_bcmodule_update(is_sac Any) : void in class org.ml_agents.mlagents.trainers.tests.torch.test_bcmodule.PyDummyClass1 ml-agents/mlagents/trainers/tests/torch/test_bcmodule.py
Unity-Technologies/ml-agents Extract Method RefactoringLinkCommitLinkYes Extract Method package assert_stats_are_float(stats Any) : void extracted from package test_bcmodule_constant_lr_update(is_sac Any) : void in class org.ml_agents.mlagents.trainers.tests.torch.test_bcmodule.PyDummyClass1 ml-agents/mlagents/trainers/tests/torch/test_bcmodule.py
Unity-Technologies/ml-agents Extract Method RefactoringLinkCommitLinkYes Extract Method package assert_stats_are_float(stats Any) : void extracted from package test_bcmodule_rnn_update(is_sac Any) : void in class org.ml_agents.mlagents.trainers.tests.torch.test_bcmodule.PyDummyClass1 ml-agents/mlagents/trainers/tests/torch/test_bcmodule.py
Unity-Technologies/ml-agents Extract Method RefactoringLinkCommitLinkYes Extract Method package assert_stats_are_float(stats Any) : void extracted from package test_bcmodule_dc_visual_update(is_sac Any) : void in class org.ml_agents.mlagents.trainers.tests.torch.test_bcmodule.PyDummyClass1 ml-agents/mlagents/trainers/tests/torch/test_bcmodule.py
Unity-Technologies/ml-agents Extract Method RefactoringLinkCommitLinkYes Extract Method package assert_stats_are_float(stats Any) : void extracted from package test_bcmodule_rnn_dc_update(is_sac Any) : void in class org.ml_agents.mlagents.trainers.tests.torch.test_bcmodule.PyDummyClass1 ml-agents/mlagents/trainers/tests/torch/test_bcmodule.py
Unity-Technologies/ml-agents Extract Method RefactoringLinkCommitLinkYes Extract Method package _raise_version_exception(unity_com_ver Any) : void extracted from package __init__(self UnityEnvironment, file_name Any, worker_id Any, base_port Any, seed Any, no_graphics Any, timeout_wait Any, args Any, side_channels Any) : void in class org.ml_agents_envs.mlagents_envs.environment.UnityEnvironment ml-agents-envs/mlagents_envs/environment.py
Unity-Technologies/ml-agents Extract Method RefactoringLinkCommitLinkYes Extract Method package setup_mock_unityenvironment(mock_env Any, mock_brain Any, mock_braininfo Any) : void extracted from package test_branched_flatten(mock_env Any) : void in class org.gym_unity.tests.test_gym.PyDummyClass1 gym-unity/tests/test_gym.py
streamlit/streamlit Extract Method RefactoringLinkCommitLinkYes Extract Method package _open_browser_with_webbrowser(url Any) : void extracted from package open_browser(url Any) : void in class org.lib.streamlit.util.PyDummyClass1 lib/streamlit/util.py
streamlit/streamlit Extract Method RefactoringLinkCommitLinkYes Extract Method package get_stack_trace(exception Any, exception_traceback Any) : void extracted from package marshall(exception_proto Any, exception Any, exception_traceback Any) : void in class org.lib.streamlit.elements.exception_proto.PyDummyClass1 lib/streamlit/elements/exception_proto.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package labels_to_one_hot(ground_truth Any, out_shape Any) : void extracted from package generalised_dice_loss(prediction Any, ground_truth Any, weight_map Any, type_weight Any) : void in class org.niftynet.layer.loss_segmentation.PyDummyClass1 niftynet/layer/loss_segmentation.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package labels_to_one_hot(ground_truth Any, out_shape Any) : void extracted from package sensitivity_specificity_loss(prediction Any, ground_truth Any, weight_map Any, r Any) : void in class org.niftynet.layer.loss_segmentation.PyDummyClass1 niftynet/layer/loss_segmentation.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package labels_to_one_hot(ground_truth Any, out_shape Any) : void extracted from package generalised_wasserstein_dice_loss(prediction Any, ground_truth Any, weight_map Any) : void in class org.niftynet.layer.loss_segmentation.PyDummyClass1 niftynet/layer/loss_segmentation.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package labels_to_one_hot(ground_truth Any, out_shape Any) : void extracted from package dice_nosquare(prediction Any, ground_truth Any, weight_map Any) : void in class org.niftynet.layer.loss_segmentation.PyDummyClass1 niftynet/layer/loss_segmentation.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package labels_to_one_hot(ground_truth Any, out_shape Any) : void extracted from package dice(prediction Any, ground_truth Any, weight_map Any) : void in class org.niftynet.layer.loss_segmentation.PyDummyClass1 niftynet/layer/loss_segmentation.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package _param_type_and_shape(sample_coords Any, input_size Any) : void extracted from package _boundary_replicate(sample_coords Any, input_size Any) : void in class org.niftynet.layer.resampler.PyDummyClass1 niftynet/layer/resampler.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package _param_type_and_shape(sample_coords Any, input_size Any) : void extracted from package _boundary_circular(sample_coords Any, input_size Any) : void in class org.niftynet.layer.resampler.PyDummyClass1 niftynet/layer/resampler.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package _param_type_and_shape(sample_coords Any, input_size Any) : void extracted from package _boundary_symmetric(sample_coords Any, input_size Any) : void in class org.niftynet.layer.resampler.PyDummyClass1 niftynet/layer/resampler.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package _console_vars_to_str(console_dict Any) : void extracted from package _training_loop(self ApplicationDriver, sess Any, loop_status Any) : void in class org.niftynet.engine.application_driver.ApplicationDriver niftynet/engine/application_driver.py
NifTK/NiftyNet Extract Method RefactoringLinkCommitLinkYes Extract Method package _console_vars_to_str(console_dict Any) : void extracted from package _inference_loop(self ApplicationDriver, sess Any, loop_status Any) : void in class org.niftynet.engine.application_driver.ApplicationDriver niftynet/engine/application_driver.py
ray-project/ray Extract Method RefactoringLinkCommitLinkYes Extract Method package create_ray_handler(redis_address Any, redis_password Any) : void extracted from package main() : void in class org.python.ray.util.client.server.server.PyDummyClass2 python/ray/util/client/server/server.py
ray-project/ray Extract Method RefactoringLinkCommitLinkYes Extract Method package _create_checkpoint(env Any, filename Any, frequency Any) : void extracted from package __call__(self _TuneCheckpointCallback, env Any) : void in class org.python.ray.tune.integration.xgboost._TuneCheckpointCallback python/ray/tune/integration/xgboost.py
ray-project/ray Extract Method RefactoringLinkCommitLinkYes Extract Method package _get_multi_action_distribution(dist_class Any, action_space Any, config Any, framework Any) : void extracted from package get_action_dist(action_space Any, config Any, dist_type Any, framework Any) : void in class org.rllib.models.catalog.ModelCatalog rllib/models/catalog.py
ray-project/ray Extract Method RefactoringLinkCommitLinkYes Extract Method package gen_step_with_fail(num_fails Any) : void extracted from package test_fail_with_recover(ray_start_2_cpus Any) : void in class org.python.ray.util.sgd.tests.test_torch.PyDummyClass1 python/ray/util/sgd/tests/test_torch.py
ray-project/ray Extract Method RefactoringLinkCommitLinkYes Extract Method package _torch_stubs() : void extracted from package try_import_torch(error Any) : void in class org.rllib.utils.framework.PyDummyClass2 rllib/utils/framework.py
chainer/chainercv Extract Method RefactoringLinkCommitLinkYes Extract Method package reorder_loc(conv Any, n_fg_class Any) : void extracted from package load_yolo_v2(file Any, model Any) : void in class org.examples.yolo.darknet2npz.PyDummyClass1 examples/yolo/darknet2npz.py
chainer/chainercv Extract Method RefactoringLinkCommitLinkYes Extract Method package reorder_loc(conv Any, n_fg_class Any) : void extracted from package load_yolo_v3(file Any, model Any) : void in class org.examples.yolo.darknet2npz.PyDummyClass1 examples/yolo/darknet2npz.py
chainer/chainercv Extract Method RefactoringLinkCommitLinkYes Extract Method package _check_example(example Any, n_fg_class Any) : void extracted from package assert_is_detection_dataset(dataset Any, n_fg_class Any, repeat Any) : void in class org.chainercv.utils.testing.assertions.assert_is_detection_dataset.PyDummyClass1 chainercv/utils/testing/assertions/assert_is_detection_dataset.py
chainer/chainercv Extract Method RefactoringLinkCommitLinkYes Extract Method package _check_example(example Any, n_class Any) : void extracted from package assert_is_semantic_segmentation_dataset(dataset Any, n_class Any, repeat Any) : void in class org.chainercv.utils.testing.assertions.assert_is_semantic_segmentation_dataset.PyDummyClass1 chainercv/utils/testing/assertions/assert_is_semantic_segmentation_dataset.py