instance_id
stringlengths
22
58
repo
stringclasses
210 values
base_commit
stringclasses
210 values
target_function_name
stringlengths
1
70
target_function_file
stringlengths
7
109
target_function_line_start
int64
0
14.7k
target_function_line_end
int64
4
14.7k
dependencies
listlengths
1
3
num_dependencies
int64
1
3
jupyter__docker-stacks__e014bb8e__17
jupyter/docker-stacks
e014bb8ec52406e6ae491af2a7130a96922dfa25
markdown_piece
tagging/manifests.py
62
73
[ { "decorator_line": 11, "file_path": "tagging/manifests.py", "line_end": 18, "line_start": 11, "name": "quoted_output", "type": "function" } ]
1
jupyter__docker-stacks__e014bb8e__18
jupyter/docker-stacks
e014bb8ec52406e6ae491af2a7130a96922dfa25
tag_value
tagging/taggers.py
117
118
[ { "decorator_line": 10, "file_path": "tagging/taggers.py", "line_end": 11, "line_start": 10, "name": "_get_program_version", "type": "function" } ]
1
jupyter__docker-stacks__e014bb8e__19
jupyter/docker-stacks
e014bb8ec52406e6ae491af2a7130a96922dfa25
tag_value
tagging/taggers.py
99
100
[ { "decorator_line": 10, "file_path": "tagging/taggers.py", "line_end": 11, "line_start": 10, "name": "_get_program_version", "type": "function" } ]
1
magenta__magenta__86cf0621__0
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
testEventsToInput
magenta/music/encoder_decoder_test.py
54
60
[ { "decorator_line": 296, "file_path": "magenta/music/encoder_decoder.py", "line_end": 311, "line_start": 296, "name": "events_to_input", "type": "function" } ]
1
magenta__magenta__86cf0621__1
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
setUp
magenta/music/sequences_lib_test.py
28
40
[ { "decorator_line": 56, "file_path": "magenta/common/testing_lib.py", "line_end": 59, "line_start": 56, "name": "parse_test_proto", "type": "function" }, { "decorator_line": 86, "file_path": "magenta/music/sequences_lib.py", "line_end": 288, "line_start": 86, "name": ...
2
magenta__magenta__86cf0621__2
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
testFromNoteSequence_ImplicitTempoChange
magenta/music/sequences_lib_test.py
223
237
[ { "decorator_line": 23, "file_path": "magenta/music/testing_lib.py", "line_end": 33, "line_start": 23, "name": "add_track_to_sequence", "type": "function" }, { "decorator_line": 86, "file_path": "magenta/music/sequences_lib.py", "line_end": 288, "line_start": 86, "nam...
3
magenta__magenta__86cf0621__3
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
pitch_to_midi_pitch
magenta/music/musicxml_parser.py
565
588
[ { "decorator_line": 42, "file_path": "magenta/music/musicxml_parser.py", "line_end": 47, "line_start": 42, "name": "PitchStepParseException", "type": "class" } ]
1
magenta__magenta__86cf0621__4
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
testGetMajorKey
magenta/music/melodies_lib_test.py
72
89
[ { "decorator_line": 57, "file_path": "magenta/music/melodies_lib.py", "line_end": 523, "line_start": 57, "name": "Melody", "type": "class" }, { "decorator_line": 211, "file_path": "magenta/music/melodies_lib.py", "line_end": 221, "line_start": 211, "name": "get_major_...
2
magenta__magenta__86cf0621__5
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
testNotEq
magenta/music/sequences_lib_test.py
92
125
[ { "decorator_line": 86, "file_path": "magenta/music/sequences_lib.py", "line_end": 288, "line_start": 86, "name": "QuantizedSequence", "type": "class" }, { "decorator_line": 44, "file_path": "magenta/music/testing_lib.py", "line_end": 59, "line_start": 44, "name": "ad...
3
magenta__magenta__86cf0621__6
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
duration_float
magenta/music/musicxml_parser.py
708
711
[ { "decorator_line": 673, "file_path": "magenta/music/musicxml_parser.py", "line_end": 706, "line_start": 673, "name": "duration_ratio", "type": "function" } ]
1
magenta__magenta__86cf0621__7
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
test_empty_doc
magenta/music/musicxml_parser_test.py
695
729
[ { "decorator_line": 120, "file_path": "magenta/music/musicxml_reader.py", "line_end": 136, "line_start": 120, "name": "musicxml_file_to_sequence_proto", "type": "function" }, { "decorator_line": 56, "file_path": "magenta/common/testing_lib.py", "line_end": 59, "line_start...
2
magenta__magenta__86cf0621__8
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
testFromQuantizedSequenceNotCommonTimeSig
magenta/music/drums_lib_test.py
69
85
[ { "decorator_line": 44, "file_path": "magenta/music/testing_lib.py", "line_end": 59, "line_start": 44, "name": "add_quantized_track_to_sequence", "type": "function" }, { "decorator_line": 43, "file_path": "magenta/music/drums_lib.py", "line_end": 271, "line_start": 43, ...
3
magenta__magenta__86cf0621__9
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
setUp
magenta/music/chord_symbols_lib_test.py
29
30
[ { "decorator_line": 44, "file_path": "magenta/music/chord_symbols_lib.py", "line_end": 54, "line_start": 45, "name": "get", "type": "function" } ]
1
magenta__magenta__86cf0621__10
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
sleep_test_thread
magenta/common/concurrency_test.py
40
43
[ { "decorator_line": 88, "file_path": "magenta/common/concurrency.py", "line_end": 91, "line_start": 88, "name": "sleep", "type": "function" }, { "decorator_line": 45, "file_path": "magenta/common/concurrency.py", "line_end": 118, "line_start": 45, "name": "Sleeper", ...
2
magenta__magenta__86cf0621__11
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
testFromNotesPolyphonicWithIgnorePolyphonicNotes
magenta/music/melodies_lib_test.py
211
223
[ { "decorator_line": 44, "file_path": "magenta/music/testing_lib.py", "line_end": 59, "line_start": 44, "name": "add_quantized_track_to_sequence", "type": "function" }, { "decorator_line": 57, "file_path": "magenta/music/melodies_lib.py", "line_end": 523, "line_start": 57,...
3
magenta__magenta__86cf0621__12
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
restore_vars_from_checkpoint
magenta/models/rl_tuner/note_rnn_loader.py
257
278
[ { "decorator_line": 155, "file_path": "magenta/models/rl_tuner/note_rnn_loader.py", "line_end": 175, "line_start": 155, "name": "get_variable_name_dict", "type": "function" } ]
1
magenta__magenta__86cf0621__13
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
testExtractDrumTracksTooLongTruncate
magenta/music/drums_lib_test.py
284
296
[ { "decorator_line": 44, "file_path": "magenta/music/testing_lib.py", "line_end": 59, "line_start": 44, "name": "add_quantized_track_to_sequence", "type": "function" }, { "decorator_line": 274, "file_path": "magenta/music/drums_lib.py", "line_end": 377, "line_start": 274, ...
2
magenta__magenta__86cf0621__14
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
testFromNotesPolyphonic
magenta/music/melodies_lib_test.py
200
209
[ { "decorator_line": 44, "file_path": "magenta/music/testing_lib.py", "line_end": 59, "line_start": 44, "name": "add_quantized_track_to_sequence", "type": "function" }, { "decorator_line": 57, "file_path": "magenta/music/melodies_lib.py", "line_end": 523, "line_start": 57,...
3
magenta__magenta__86cf0621__15
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
set_length
magenta/music/melodies_lib.py
490
510
[ { "decorator_line": 230, "file_path": "magenta/music/events_lib.py", "line_end": 255, "line_start": 230, "name": "set_length", "type": "function" } ]
1
magenta__magenta__86cf0621__16
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
transform
magenta/pipelines/dag_pipeline_test.py
415
417
[ { "decorator_line": 219, "file_path": "magenta/pipelines/pipeline.py", "line_end": 234, "line_start": 219, "name": "_set_stats", "type": "function" }, { "decorator_line": 155, "file_path": "magenta/pipelines/statistics.py", "line_end": 190, "line_start": 155, "name": ...
2
magenta__magenta__86cf0621__17
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
precompute_gram_matrices
magenta/models/image_stylization/learning.py
29
45
[ { "decorator_line": 40, "file_path": "magenta/models/image_stylization/vgg.py", "line_end": 107, "line_start": 40, "name": "vgg_16", "type": "function" }, { "decorator_line": 35, "file_path": "magenta/models/image_stylization/vgg.py", "line_end": 37, "line_start": 35, ...
3
magenta__magenta__86cf0621__18
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
chord_symbol_quality
magenta/music/chord_symbols_lib.py
195
201
[ { "decorator_line": 137, "file_path": "magenta/music/chord_symbols_lib.py", "line_end": 175, "line_start": 137, "name": "_to_music21_chord_symbol", "type": "function" } ]
1
magenta__magenta__86cf0621__19
magenta/magenta
86cf0621afb651f5577e5bc002dfacf8e818c86e
transform
magenta/pipelines/pipeline_test.py
238
240
[ { "decorator_line": 219, "file_path": "magenta/pipelines/pipeline.py", "line_end": 234, "line_start": 219, "name": "_set_stats", "type": "function" }, { "decorator_line": 155, "file_path": "magenta/pipelines/statistics.py", "line_end": 190, "line_start": 155, "name": ...
2
ultralytics__yolov5__b3ceffb5__0
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
yolov5l
hubconf.py
80
91
[ { "decorator_line": 19, "file_path": "hubconf.py", "line_end": 49, "line_start": 19, "name": "create", "type": "function" } ]
1
ultralytics__yolov5__b3ceffb5__1
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
print_mutation
utils/general.py
368
396
[ { "decorator_line": 11, "file_path": "utils/google_utils.py", "line_end": 14, "line_start": 11, "name": "gsutil_getsize", "type": "function" }, { "decorator_line": 11, "file_path": "utils/metrics.py", "line_end": 14, "line_start": 11, "name": "fitness", "type": "f...
2
ultralytics__yolov5__b3ceffb5__2
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
create_dataloader
utils/datasets.py
56
79
[ { "decorator_line": 18, "file_path": "utils/torch_utils.py", "line_end": 27, "line_start": 19, "name": "torch_distributed_zero_first", "type": "function" }, { "decorator_line": 332, "file_path": "utils/datasets.py", "line_end": 575, "line_start": 332, "name": "LoadIma...
3
ultralytics__yolov5__b3ceffb5__3
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
forward_once
models/yolo.py
122
141
[ { "decorator_line": 67, "file_path": "utils/torch_utils.py", "line_end": 69, "line_start": 67, "name": "time_synchronized", "type": "function" } ]
1
ultralytics__yolov5__b3ceffb5__4
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
ap_per_class
utils/metrics.py
17
75
[ { "decorator_line": 78, "file_path": "utils/metrics.py", "line_end": 104, "line_start": 78, "name": "compute_ap", "type": "function" }, { "decorator_line": 185, "file_path": "utils/metrics.py", "line_end": 202, "line_start": 185, "name": "plot_pr_curve", "type": "...
2
ultralytics__yolov5__b3ceffb5__5
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
apply_classifier
utils/general.py
399
431
[ { "decorator_line": 143, "file_path": "utils/general.py", "line_end": 150, "line_start": 143, "name": "xyxy2xywh", "type": "function" }, { "decorator_line": 153, "file_path": "utils/general.py", "line_end": 160, "line_start": 153, "name": "xywh2xyxy", "type": "fun...
3
ultralytics__yolov5__b3ceffb5__6
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
update
utils/torch_utils.py
227
237
[ { "decorator_line": 72, "file_path": "utils/torch_utils.py", "line_end": 73, "line_start": 72, "name": "is_parallel", "type": "function" } ]
1
ultralytics__yolov5__b3ceffb5__7
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
plot_evolution
utils/plots.py
310
331
[ { "decorator_line": 11, "file_path": "utils/metrics.py", "line_end": 14, "line_start": 11, "name": "fitness", "type": "function" }, { "decorator_line": 33, "file_path": "utils/plots.py", "line_end": 39, "line_start": 33, "name": "hist2d", "type": "function" } ]
2
ultralytics__yolov5__b3ceffb5__8
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
plot_labels
utils/plots.py
264
307
[ { "decorator_line": 25, "file_path": "utils/plots.py", "line_end": 30, "line_start": 25, "name": "color_list", "type": "function" }, { "decorator_line": 33, "file_path": "utils/plots.py", "line_end": 39, "line_start": 33, "name": "hist2d", "type": "function" }, ...
3
ultralytics__yolov5__b3ceffb5__9
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
plot_test_txt
utils/plots.py
202
216
[ { "decorator_line": 143, "file_path": "utils/general.py", "line_end": 150, "line_start": 143, "name": "xyxy2xywh", "type": "function" } ]
1
ultralytics__yolov5__b3ceffb5__10
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
cache_labels
utils/datasets.py
431
475
[ { "decorator_line": 41, "file_path": "utils/datasets.py", "line_end": 53, "line_start": 41, "name": "exif_size", "type": "function" }, { "decorator_line": 36, "file_path": "utils/datasets.py", "line_end": 38, "line_start": 36, "name": "get_hash", "type": "function...
2
ultralytics__yolov5__b3ceffb5__11
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
plot_images
utils/plots.py
110
182
[ { "decorator_line": 25, "file_path": "utils/plots.py", "line_end": 30, "line_start": 25, "name": "color_list", "type": "function" }, { "decorator_line": 153, "file_path": "utils/general.py", "line_end": 160, "line_start": 153, "name": "xywh2xyxy", "type": "functio...
3
ultralytics__yolov5__b3ceffb5__12
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
prune
utils/torch_utils.py
107
115
[ { "decorator_line": 98, "file_path": "utils/torch_utils.py", "line_end": 104, "line_start": 98, "name": "sparsity", "type": "function" } ]
1
ultralytics__yolov5__b3ceffb5__13
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
non_max_suppression
utils/general.py
265
351
[ { "decorator_line": 153, "file_path": "utils/general.py", "line_end": 160, "line_start": 153, "name": "xywh2xyxy", "type": "function" }, { "decorator_line": 232, "file_path": "utils/general.py", "line_end": 254, "line_start": 232, "name": "box_iou", "type": "funct...
2
ultralytics__yolov5__b3ceffb5__14
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
scale_coords
utils/general.py
163
176
[ { "decorator_line": 179, "file_path": "utils/general.py", "line_end": 184, "line_start": 179, "name": "clip_coords", "type": "function" } ]
1
ultralytics__yolov5__b3ceffb5__15
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
autoshape
models/yolo.py
188
192
[ { "decorator_line": 120, "file_path": "models/common.py", "line_end": 173, "line_start": 120, "name": "autoShape", "type": "class" }, { "decorator_line": 198, "file_path": "utils/torch_utils.py", "line_end": 204, "line_start": 198, "name": "copy_attr", "type": "fu...
2
ultralytics__yolov5__b3ceffb5__16
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
build_targets
utils/loss.py
150
204
[ { "decorator_line": 72, "file_path": "utils/torch_utils.py", "line_end": 73, "line_start": 72, "name": "is_parallel", "type": "function" } ]
1
ultralytics__yolov5__b3ceffb5__17
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
attempt_load
models/experimental.py
131
151
[ { "decorator_line": 116, "file_path": "models/experimental.py", "line_end": 128, "line_start": 116, "name": "Ensemble", "type": "class" }, { "decorator_line": 17, "file_path": "utils/google_utils.py", "line_end": 52, "line_start": 17, "name": "attempt_download", "...
2
ultralytics__yolov5__b3ceffb5__18
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
check_img_size
utils/general.py
59
64
[ { "decorator_line": 98, "file_path": "utils/general.py", "line_end": 100, "line_start": 98, "name": "make_divisible", "type": "function" } ]
1
ultralytics__yolov5__b3ceffb5__19
ultralytics/yolov5
b3ceffb513a471629246fc5dd39a696519db4ba5
load_mosaic
utils/datasets.py
615
670
[ { "decorator_line": 579, "file_path": "utils/datasets.py", "line_end": 593, "line_start": 579, "name": "load_image", "type": "function" }, { "decorator_line": 723, "file_path": "utils/datasets.py", "line_end": 807, "line_start": 723, "name": "random_perspective", ...
2
plotly__dash__baa6f295__0
plotly/dash
baa6f295f53ecef66711b6e7af553fb896307394
onpong
example-3-click-events.py
39
42
[ { "decorator_line": 14, "file_path": "example_3_click_events_state.py", "line_end": 18, "line_start": 14, "name": "on_pong", "type": "function" } ]
1
plotly__dash__baa6f295__1
plotly/dash
baa6f295f53ecef66711b6e7af553fb896307394
replot
example-3-click-events.py
46
50
[ { "decorator_line": 20, "file_path": "example_3_click_events_state.py", "line_end": 134, "line_start": 20, "name": "replot", "type": "function" } ]
1
plotly__dash__baa6f295__2
plotly/dash
baa6f295f53ecef66711b6e7af553fb896307394
on_pong
example_3_click_events_state.py
14
18
[ { "decorator_line": 20, "file_path": "example_3_click_events_state.py", "line_end": 134, "line_start": 20, "name": "replot", "type": "function" } ]
1
plotly__dash__baa6f295__3
plotly/dash
baa6f295f53ecef66711b6e7af553fb896307394
graph
dash/components.py
28
33
[ { "decorator_line": 0, "file_path": "dash/components.py", "line_end": 25, "line_start": 0, "name": "element", "type": "function" } ]
1
plotly__dash__baa6f295__4
plotly/dash
baa6f295f53ecef66711b6e7af553fb896307394
replot
example-4-tickers.py
52
53
[ { "decorator_line": 56, "file_path": "example-4-tickers.py", "line_end": 82, "line_start": 56, "name": "update_graph", "type": "function" } ]
1
OpenNMT__OpenNMT-py__181fa188__0
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
init_decoder_state
onmt/modules/Transformer.py
279
280
[ { "decorator_line": 283, "file_path": "onmt/modules/Transformer.py", "line_end": 307, "line_start": 283, "name": "TransformerDecoderState", "type": "class" } ]
1
OpenNMT__OpenNMT-py__181fa188__1
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
forward
onmt/modules/Transformer.py
81
106
[ { "decorator_line": 15, "file_path": "onmt/Models.py", "line_end": 19, "line_start": 15, "name": "_check_args", "type": "function" }, { "decorator_line": 0, "file_path": "onmt/Utils.py", "line_end": 7, "line_start": 0, "name": "aeq", "type": "function" } ]
2
OpenNMT__OpenNMT-py__181fa188__2
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
dataset_build
test/test_preprocess.py
27
44
[ { "decorator_line": 149, "file_path": "onmt/IO.py", "line_end": 205, "line_start": 149, "name": "get_fields", "type": "function" }, { "decorator_line": 265, "file_path": "onmt/IO.py", "line_end": 405, "line_start": 265, "name": "ONMTDataset", "type": "class" }, ...
3
OpenNMT__OpenNMT-py__181fa188__3
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
build_vocab
onmt/IO.py
208
229
[ { "decorator_line": 91, "file_path": "onmt/IO.py", "line_end": 105, "line_start": 91, "name": "merge_vocabs", "type": "function" } ]
1
OpenNMT__OpenNMT-py__181fa188__4
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
init_decoder_state
onmt/Models.py
198
205
[ { "decorator_line": 454, "file_path": "onmt/Models.py", "line_end": 495, "line_start": 454, "name": "RNNDecoderState", "type": "class" }, { "decorator_line": 189, "file_path": "onmt/Models.py", "line_end": 196, "line_start": 189, "name": "_fix_enc_hidden", "type":...
2
OpenNMT__OpenNMT-py__181fa188__5
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
train
onmt/Trainer.py
94
139
[ { "decorator_line": 21, "file_path": "onmt/Trainer.py", "line_end": 63, "line_start": 21, "name": "Statistics", "type": "class" }, { "decorator_line": 108, "file_path": "onmt/IO.py", "line_end": 126, "line_start": 108, "name": "make_features", "type": "function" ...
3
OpenNMT__OpenNMT-py__181fa188__6
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
forward
onmt/modules/Embeddings.py
126
144
[ { "decorator_line": 0, "file_path": "onmt/Utils.py", "line_end": 7, "line_start": 0, "name": "aeq", "type": "function" } ]
1
OpenNMT__OpenNMT-py__181fa188__7
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
translate
onmt/Translator.py
194
222
[ { "decorator_line": 89, "file_path": "onmt/Translator.py", "line_end": 192, "line_start": 89, "name": "translateBatch", "type": "function" }, { "decorator_line": 42, "file_path": "onmt/Translator.py", "line_end": 59, "line_start": 42, "name": "buildTargetTokens", ...
2
OpenNMT__OpenNMT-py__181fa188__8
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
compute_loss
onmt/modules/CopyGenerator.py
104
140
[ { "decorator_line": 93, "file_path": "onmt/Loss.py", "line_end": 94, "line_start": 93, "name": "bottle", "type": "function" }, { "decorator_line": 96, "file_path": "onmt/Loss.py", "line_end": 97, "line_start": 96, "name": "unbottle", "type": "function" }, { ...
3
OpenNMT__OpenNMT-py__181fa188__9
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
stats
onmt/Loss.py
78
91
[ { "decorator_line": 21, "file_path": "onmt/Trainer.py", "line_end": 63, "line_start": 21, "name": "Statistics", "type": "class" } ]
1
OpenNMT__OpenNMT-py__181fa188__10
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
forward
onmt/modules/GlobalAttention.py
107
187
[ { "decorator_line": 0, "file_path": "onmt/Utils.py", "line_end": 7, "line_start": 0, "name": "aeq", "type": "function" }, { "decorator_line": 69, "file_path": "onmt/modules/GlobalAttention.py", "line_end": 105, "line_start": 69, "name": "score", "type": "function"...
2
OpenNMT__OpenNMT-py__181fa188__11
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
validate
onmt/Trainer.py
141
166
[ { "decorator_line": 21, "file_path": "onmt/Trainer.py", "line_end": 63, "line_start": 21, "name": "Statistics", "type": "class" }, { "decorator_line": 108, "file_path": "onmt/IO.py", "line_end": 126, "line_start": 108, "name": "make_features", "type": "function" ...
3
OpenNMT__OpenNMT-py__181fa188__12
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
score
onmt/modules/GlobalAttention.py
69
105
[ { "decorator_line": 0, "file_path": "onmt/Utils.py", "line_end": 7, "line_start": 0, "name": "aeq", "type": "function" } ]
1
OpenNMT__OpenNMT-py__181fa188__13
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
load_fields
onmt/IO.py
29
38
[ { "decorator_line": 41, "file_path": "onmt/IO.py", "line_end": 49, "line_start": 41, "name": "collect_features", "type": "function" }, { "decorator_line": 149, "file_path": "onmt/IO.py", "line_end": 205, "line_start": 149, "name": "get_fields", "type": "function" ...
2
OpenNMT__OpenNMT-py__181fa188__14
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
log
onmt/Trainer.py
58
63
[ { "decorator_line": 43, "file_path": "onmt/Trainer.py", "line_end": 44, "line_start": 43, "name": "elapsed_time", "type": "function" }, { "decorator_line": 40, "file_path": "onmt/Trainer.py", "line_end": 41, "line_start": 40, "name": "ppl", "type": "function" },...
3
OpenNMT__OpenNMT-py__181fa188__15
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
read_corpus_file
onmt/IO.py
71
88
[ { "decorator_line": 52, "file_path": "onmt/IO.py", "line_end": 68, "line_start": 52, "name": "extract_features", "type": "function" } ]
1
OpenNMT__OpenNMT-py__181fa188__16
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
forward
onmt/modules/Conv2Conv.py
130
207
[ { "decorator_line": 0, "file_path": "onmt/Utils.py", "line_end": 7, "line_start": 0, "name": "aeq", "type": "function" }, { "decorator_line": 19, "file_path": "onmt/modules/Conv2Conv.py", "line_end": 21, "line_start": 19, "name": "shape_transform", "type": "functi...
2
OpenNMT__OpenNMT-py__181fa188__17
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
make_loss_compute
train.py
119
134
[ { "decorator_line": 78, "file_path": "onmt/modules/CopyGenerator.py", "line_end": 140, "line_start": 78, "name": "CopyGeneratorLossCompute", "type": "class" }, { "decorator_line": 100, "file_path": "onmt/Loss.py", "line_end": 129, "line_start": 100, "name": "NMTLossCo...
3
OpenNMT__OpenNMT-py__181fa188__18
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
forward
onmt/Models.py
147
187
[ { "decorator_line": 0, "file_path": "onmt/Utils.py", "line_end": 7, "line_start": 0, "name": "aeq", "type": "function" } ]
1
OpenNMT__OpenNMT-py__181fa188__19
OpenNMT/OpenNMT-py
181fa1881e946c74ef842b183f4da5ccfa023315
collect_features
train.py
219
225
[ { "decorator_line": 41, "file_path": "onmt/IO.py", "line_end": 49, "line_start": 41, "name": "collect_features", "type": "function" }, { "decorator_line": 0, "file_path": "onmt/Utils.py", "line_end": 7, "line_start": 0, "name": "aeq", "type": "function" } ]
2
python-trio__trio__f64200ce__0
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
statistics
trio/_sync.py
448
462
[ { "decorator_line": 329, "file_path": "trio/_sync.py", "line_end": 332, "line_start": 330, "name": "_ConditionStatistics", "type": "class" } ]
1
python-trio__trio__f64200ce__1
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
test_agen_protection
trio/_core/tests/test_ki.py
132
187
[ { "decorator_line": 91, "file_path": "trio/_core/_ki.py", "line_end": 105, "line_start": 92, "name": "currently_ki_protected", "type": "function" }, { "decorator_line": 128, "file_path": "trio/_util.py", "line_end": 139, "line_start": 128, "name": "acontextmanager", ...
2
python-trio__trio__f64200ce__2
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
stubborn_sleeper
trio/_core/tests/test_run.py
817
827
[ { "decorator_line": 170, "file_path": "trio/_core/_run.py", "line_end": 186, "line_start": 172, "name": "open_cancel_scope", "type": "function" }, { "decorator_line": 43, "file_path": "trio/_core/_traps.py", "line_end": 137, "line_start": 45, "name": "yield_indefinite...
3
python-trio__trio__f64200ce__3
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
move_on_after
trio/_timeouts.py
19
33
[ { "decorator_line": 9, "file_path": "trio/_timeouts.py", "line_end": 17, "line_start": 9, "name": "move_on_at", "type": "function" } ]
1
python-trio__trio__f64200ce__4
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
test_call_soon_starvation_resistance
trio/_core/tests/test_run.py
1,209
1,235
[ { "decorator_line": 1340, "file_path": "trio/_core/_run.py", "line_end": 1356, "line_start": 1341, "name": "yield_briefly", "type": "function" }, { "decorator_line": 1042, "file_path": "trio/_core/_run.py", "line_end": 1165, "line_start": 1042, "name": "run", "typ...
2
python-trio__trio__f64200ce__5
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
spawn_system_task
trio/_core/_run.py
685
735
[ { "decorator_line": 8, "file_path": "trio/_core/_exceptions.py", "line_end": 20, "line_start": 8, "name": "TrioInternalError", "type": "class" }, { "decorator_line": 213, "file_path": "trio/_core/_multierror.py", "line_end": 223, "line_start": 214, "name": "catch", ...
3
python-trio__trio__f64200ce__6
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
raise_SIGINT_soon
notes-to-self/wakeup-fd-racer.py
22
24
[ { "decorator_line": 16, "file_path": "notes-to-self/wakeup-fd-racer.py", "line_end": 19, "line_start": 16, "name": "signal_raise", "type": "function" } ]
1
python-trio__trio__f64200ce__7
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
wait_kevent
trio/_core/_io_kqueue.py
94
106
[ { "decorator_line": 1293, "file_path": "trio/_core/_run.py", "line_end": 1304, "line_start": 1293, "name": "current_task", "type": "function" }, { "decorator_line": 43, "file_path": "trio/_core/_traps.py", "line_end": 137, "line_start": 45, "name": "yield_indefinitely...
2
python-trio__trio__f64200ce__8
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
test_SocketType_simple_server
trio/tests/test_socket.py
318
331
[ { "decorator_line": 156, "file_path": "trio/socket.py", "line_end": 158, "line_start": 157, "name": "socket", "type": "function" }, { "decorator_line": 271, "file_path": "trio/socket.py", "line_end": 279, "line_start": 271, "name": "bind", "type": "function" }, ...
3
python-trio__trio__f64200ce__9
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
staple
trio/_streams.py
97
98
[ { "decorator_line": 100, "file_path": "trio/_streams.py", "line_end": 131, "line_start": 101, "name": "StapledStream", "type": "class" } ]
1
python-trio__trio__f64200ce__10
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
yield_briefly
trio/_core/_run.py
1,341
1,356
[ { "decorator_line": 170, "file_path": "trio/_core/_run.py", "line_end": 186, "line_start": 172, "name": "open_cancel_scope", "type": "function" }, { "decorator_line": 43, "file_path": "trio/_core/_traps.py", "line_end": 137, "line_start": 45, "name": "yield_indefinite...
2
python-trio__trio__f64200ce__11
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
test_parking_lot_basic
trio/_core/tests/test_parking_lot.py
7
70
[ { "decorator_line": 193, "file_path": "trio/_core/_run.py", "line_end": 212, "line_start": 196, "name": "open_nursery", "type": "function" }, { "decorator_line": 87, "file_path": "trio/_core/_parking_lot.py", "line_end": 228, "line_start": 89, "name": "ParkingLot", ...
3
python-trio__trio__f64200ce__12
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
trio_test
trio/testing.py
30
42
[ { "decorator_line": 1042, "file_path": "trio/_core/_run.py", "line_end": 1165, "line_start": 1042, "name": "run", "type": "function" } ]
1
python-trio__trio__f64200ce__13
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
block_on_read
trio/_core/tests/test_io.py
86
94
[ { "decorator_line": 241, "file_path": "trio/testing.py", "line_end": 257, "line_start": 241, "name": "assert_yields", "type": "function" }, { "decorator_line": 75, "file_path": "trio/_core/tests/test_io.py", "line_end": 136, "line_start": 77, "name": "test_wait_basic"...
2
python-trio__trio__f64200ce__14
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
test_cancel_scope_multierror_filtering
trio/_core/tests/test_run.py
570
611
[ { "decorator_line": 21, "file_path": "trio/_core/tests/test_run.py", "line_end": 22, "line_start": 21, "name": "sleep_forever", "type": "function" }, { "decorator_line": 170, "file_path": "trio/_core/_run.py", "line_end": 186, "line_start": 172, "name": "open_cancel_s...
3
python-trio__trio__f64200ce__15
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
test_Value_compare
trio/_core/tests/test_result.py
66
70
[ { "decorator_line": 82, "file_path": "trio/_core/_result.py", "line_end": 101, "line_start": 83, "name": "Value", "type": "class" } ]
1
python-trio__trio__f64200ce__16
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
main2
trio/_core/tests/test_run.py
525
530
[ { "decorator_line": 170, "file_path": "trio/_core/_run.py", "line_end": 186, "line_start": 172, "name": "open_cancel_scope", "type": "function" }, { "decorator_line": 1340, "file_path": "trio/_core/_run.py", "line_end": 1356, "line_start": 1341, "name": "yield_briefly...
2
python-trio__trio__f64200ce__17
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
acquire
trio/_sync.py
279
292
[ { "decorator_line": 1358, "file_path": "trio/_core/_run.py", "line_end": 1371, "line_start": 1359, "name": "yield_if_cancelled", "type": "function" }, { "decorator_line": 260, "file_path": "trio/_sync.py", "line_end": 276, "line_start": 261, "name": "acquire_nowait", ...
3
python-trio__trio__f64200ce__18
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
release
trio/tests/test_sync.py
417
418
[ { "decorator_line": 580, "file_path": "trio/_sync.py", "line_end": 592, "line_start": 581, "name": "get_nowait", "type": "function" } ]
1
python-trio__trio__f64200ce__19
python-trio/trio
f64200ce44f99753fe0859c099a1a4f3e1306e11
main
trio/tests/test_threads.py
228
234
[ { "decorator_line": 144, "file_path": "trio/_threads.py", "line_end": 230, "line_start": 145, "name": "run_in_worker_thread", "type": "function" }, { "decorator_line": 193, "file_path": "trio/_core/_run.py", "line_end": 212, "line_start": 196, "name": "open_nursery", ...
2
mne-tools__mne-python__2c02745c__0
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
f_oneway
mne/stats/parametric.py
78
80
[ { "decorator_line": 7, "file_path": "mne/stats/parametric.py", "line_end": 75, "line_start": 7, "name": "_f_oneway", "type": "function" } ]
1
mne-tools__mne-python__2c02745c__1
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
apply_forward
mne/forward.py
661
724
[ { "decorator_line": 627, "file_path": "mne/forward.py", "line_end": 657, "line_start": 628, "name": "_apply_forward", "type": "function" }, { "decorator_line": 603, "file_path": "mne/forward.py", "line_end": 624, "line_start": 603, "name": "_fill_measurement_info", ...
2
mne-tools__mne-python__2c02745c__2
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
test_spatio_temporal_src_connectivity
mne/tests/test_source_estimate.py
189
215
[ { "decorator_line": 1395, "file_path": "mne/source_estimate.py", "line_end": 1418, "line_start": 1396, "name": "spatio_temporal_tris_connectivity", "type": "function" }, { "decorator_line": 1304, "file_path": "mne/source_estimate.py", "line_end": 1365, "line_start": 1305,...
3
mne-tools__mne-python__2c02745c__3
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
power_iteration_kron
mne/mixed_norm/debiasing.py
16
57
[ { "decorator_line": 267, "file_path": "mne/utils.py", "line_end": 282, "line_start": 267, "name": "check_random_state", "type": "function" } ]
1
mne-tools__mne-python__2c02745c__4
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
test_reject_epochs
mne/tests/test_epochs.py
156
170
[ { "decorator_line": 36, "file_path": "mne/epochs.py", "line_end": 863, "line_start": 36, "name": "Epochs", "type": "class" }, { "decorator_line": 431, "file_path": "mne/epochs.py", "line_end": 443, "line_start": 431, "name": "get_data", "type": "function" } ]
2
mne-tools__mne-python__2c02745c__5
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
read_proj
mne/fiff/proj.py
48
156
[ { "decorator_line": 12, "file_path": "mne/fiff/tree.py", "line_end": 32, "line_start": 12, "name": "dir_tree_find", "type": "function" }, { "decorator_line": 327, "file_path": "mne/fiff/tag.py", "line_end": 334, "line_start": 327, "name": "find_tag", "type": "func...
3
mne-tools__mne-python__2c02745c__6
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
test_unravel_index
mne/tests/test_fixes.py
20
28
[ { "decorator_line": 170, "file_path": "mne/fixes.py", "line_end": 184, "line_start": 170, "name": "_unravel_index", "type": "function" } ]
1
mne-tools__mne-python__2c02745c__7
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
test_stc_arithmetic
mne/tests/test_source_estimate.py
57
81
[ { "decorator_line": 233, "file_path": "mne/source_estimate.py", "line_end": 317, "line_start": 233, "name": "read_source_estimate", "type": "function" }, { "decorator_line": 614, "file_path": "mne/source_estimate.py", "line_end": 615, "line_start": 614, "name": "sqrt"...
2
mne-tools__mne-python__2c02745c__8
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
read_source_estimate
mne/source_estimate.py
233
317
[ { "decorator_line": 24, "file_path": "mne/source_estimate.py", "line_end": 82, "line_start": 24, "name": "read_stc", "type": "function" }, { "decorator_line": 133, "file_path": "mne/source_estimate.py", "line_end": 174, "line_start": 133, "name": "read_w", "type":...
3
mne-tools__mne-python__2c02745c__9
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
test_parse_ave
mne/tests/test_misc.py
9
13
[ { "decorator_line": 6, "file_path": "mne/misc.py", "line_end": 56, "line_start": 6, "name": "parse_config", "type": "function" } ]
1
mne-tools__mne-python__2c02745c__10
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
prepare_inverse_operator
mne/minimum_norm/inverse.py
428
559
[ { "decorator_line": 201, "file_path": "mne/fiff/proj.py", "line_end": 293, "line_start": 201, "name": "make_projector", "type": "function" }, { "decorator_line": 377, "file_path": "mne/minimum_norm/inverse.py", "line_end": 404, "line_start": 377, "name": "combine_xyz"...
2
mne-tools__mne-python__2c02745c__11
mne-tools/mne-python
2c02745ce39f1585ec44dc1c623047ec57695f03
center_of_mass
mne/source_estimate.py
723
821
[ { "decorator_line": 525, "file_path": "mne/source_estimate.py", "line_end": 531, "line_start": 525, "name": "is_surface", "type": "function" }, { "decorator_line": 425, "file_path": "mne/utils.py", "line_end": 432, "line_start": 425, "name": "get_subjects_dir", "t...
3