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 |
|---|---|---|---|---|---|---|---|---|
kedro-org__kedro__c9c49e0d__10 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | versioned_hdf_data_set | tests/io/test_hdf_local.py | 46 | 51 | [
{
"decorator_line": 41,
"file_path": "kedro/io/hdf_local.py",
"line_end": 142,
"line_start": 41,
"name": "HDFLocalDataSet",
"type": "class"
},
{
"decorator_line": 356,
"file_path": "kedro/io/core.py",
"line_end": 363,
"line_start": 356,
"name": "Version",
"type": "class"
}
] | 2 |
kedro-org__kedro__c9c49e0d__11 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | create_pipeline | features/steps/pipeline_template.py | 41 | 89 | [
{
"decorator_line": 74,
"file_path": "kedro/pipeline/pipeline.py",
"line_end": 666,
"line_start": 74,
"name": "Pipeline",
"type": "class"
},
{
"decorator_line": 574,
"file_path": "kedro/pipeline/node.py",
"line_end": 631,
"line_start": 574,
"name": "node",
"type": "function"
},
{
"decorator_line": 615,
"file_path": "kedro/pipeline/pipeline.py",
"line_end": 630,
"line_start": 615,
"name": "only_nodes_with_tags",
"type": "function"
}
] | 3 |
kedro-org__kedro__c9c49e0d__12 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | test_load_unknown_sql | tests/io/test_sql.py | 122 | 128 | [
{
"decorator_line": 191,
"file_path": "kedro/io/core.py",
"line_end": 213,
"line_start": 191,
"name": "load",
"type": "function"
}
] | 1 |
kedro-org__kedro__c9c49e0d__13 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | test_table_exists | tests/io/test_sql.py | 215 | 219 | [
{
"decorator_line": 292,
"file_path": "kedro/io/core.py",
"line_end": 312,
"line_start": 292,
"name": "exists",
"type": "function"
},
{
"decorator_line": 198,
"file_path": "tests/io/test_sql.py",
"line_end": 204,
"line_start": 199,
"name": "_assert_sqlalchemy_called_once",
"type": "function"
}
] | 2 |
kedro-org__kedro__c9c49e0d__14 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | test_all_no_exists_method | tests/pipeline/test_pipeline_from_missing.py | 177 | 187 | [
{
"decorator_line": 90,
"file_path": "tests/pipeline/test_pipeline_from_missing.py",
"line_end": 106,
"line_start": 90,
"name": "_make_catalog",
"type": "function"
},
{
"decorator_line": 117,
"file_path": "tests/pipeline/test_pipeline_from_missing.py",
"line_end": 124,
"line_start": 117,
"name": "_from_missing",
"type": "function"
},
{
"decorator_line": 109,
"file_path": "tests/pipeline/test_pipeline_from_missing.py",
"line_end": 110,
"line_start": 109,
"name": "_pipelines_equal",
"type": "function"
}
] | 3 |
kedro-org__kedro__c9c49e0d__15 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | node_dependencies | kedro/pipeline/pipeline.py | 299 | 317 | [
{
"decorator_line": 47,
"file_path": "kedro/pipeline/pipeline.py",
"line_end": 63,
"line_start": 47,
"name": "_get_transcode_compatible_name",
"type": "function"
}
] | 1 |
kedro-org__kedro__c9c49e0d__16 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | test_no_files_found | tests/config/test_config.py | 281 | 291 | [
{
"decorator_line": 125,
"file_path": "kedro/config/config.py",
"line_end": 172,
"line_start": 125,
"name": "get",
"type": "function"
},
{
"decorator_line": 54,
"file_path": "kedro/config/config.py",
"line_end": 172,
"line_start": 54,
"name": "ConfigLoader",
"type": "class"
}
] | 2 |
kedro-org__kedro__c9c49e0d__17 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | from_nodes | kedro/pipeline/pipeline.py | 573 | 592 | [
{
"decorator_line": 343,
"file_path": "kedro/pipeline/pipeline.py",
"line_end": 367,
"line_start": 343,
"name": "only_nodes",
"type": "function"
},
{
"decorator_line": 469,
"file_path": "kedro/pipeline/pipeline.py",
"line_end": 507,
"line_start": 469,
"name": "from_inputs",
"type": "function"
},
{
"decorator_line": 172,
"file_path": "kedro/pipeline/pipeline.py",
"line_end": 179,
"line_start": 172,
"name": "all_outputs",
"type": "function"
}
] | 3 |
kedro-org__kedro__c9c49e0d__18 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | memory_data_set | tests/contrib/io/pyspark/test_memory_data_set.py | 62 | 63 | [
{
"decorator_line": 40,
"file_path": "kedro/io/memory_data_set.py",
"line_end": 105,
"line_start": 40,
"name": "MemoryDataSet",
"type": "class"
}
] | 1 |
kedro-org__kedro__c9c49e0d__19 | kedro-org/kedro | c9c49e0dfe1571e93cf6c57a5bd50d3237aadeb5 | test_missing_include_example | tests/cli/test_cli_new.py | 371 | 386 | [
{
"decorator_line": 227,
"file_path": "tests/cli/test_cli_new.py",
"line_end": 243,
"line_start": 227,
"name": "_create_config_file",
"type": "function"
},
{
"decorator_line": 46,
"file_path": "tests/cli/test_cli_new.py",
"line_end": 58,
"line_start": 46,
"name": "_invoke",
"type": "function"
}
] | 2 |
openstates__openstates-scrapers__346a76aa__0 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_lower_offices | openstates/ok/people.py | 133 | 179 | [
{
"decorator_line": 40,
"file_path": "openstates/ok/people.py",
"line_end": 54,
"line_start": 40,
"name": "_get_rep_email",
"type": "function"
}
] | 1 |
openstates__openstates-scrapers__346a76aa__1 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | parse_bill | openstates/mt/bills.py | 99 | 152 | [
{
"decorator_line": 177,
"file_path": "openstates/mt/bills.py",
"line_end": 260,
"line_start": 177,
"name": "parse_bill_status_page",
"type": "function"
},
{
"decorator_line": 308,
"file_path": "openstates/mt/bills.py",
"line_end": 351,
"line_start": 308,
"name": "add_other_versions",
"type": "function"
}
] | 2 |
openstates__openstates-scrapers__346a76aa__2 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_action_page | openstates/ma/bills.py | 212 | 298 | [
{
"decorator_line": 309,
"file_path": "openstates/ma/bills.py",
"line_end": 356,
"line_start": 309,
"name": "scrape_house_vote",
"type": "function"
},
{
"decorator_line": 358,
"file_path": "openstates/ma/bills.py",
"line_end": 405,
"line_start": 358,
"name": "scrape_senate_vote",
"type": "function"
},
{
"decorator_line": 71,
"file_path": "openstates/utils/actions.py",
"line_end": 104,
"line_start": 71,
"name": "categorize",
"type": "function"
}
] | 3 |
openstates__openstates-scrapers__346a76aa__3 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_documents | openstates/md/bills.py | 456 | 502 | [
{
"decorator_line": 536,
"file_path": "openstates/md/bills.py",
"line_end": 538,
"line_start": 536,
"name": "remove_leading_dash",
"type": "function"
}
] | 1 |
openstates__openstates-scrapers__346a76aa__4 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | bill_list_url | openstates/pa/utils.py | 36 | 39 | [
{
"decorator_line": 32,
"file_path": "openstates/pa/utils.py",
"line_end": 33,
"line_start": 32,
"name": "start_year",
"type": "function"
},
{
"decorator_line": 25,
"file_path": "openstates/pa/utils.py",
"line_end": 29,
"line_start": 25,
"name": "bill_abbr",
"type": "function"
}
] | 2 |
openstates__openstates-scrapers__346a76aa__5 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | parse_actions | openstates/vi/bills.py | 248 | 261 | [
{
"decorator_line": 263,
"file_path": "openstates/vi/bills.py",
"line_end": 271,
"line_start": 263,
"name": "split_action",
"type": "function"
},
{
"decorator_line": 240,
"file_path": "openstates/vi/bills.py",
"line_end": 246,
"line_start": 240,
"name": "parse_date",
"type": "function"
},
{
"decorator_line": 273,
"file_path": "openstates/vi/bills.py",
"line_end": 277,
"line_start": 273,
"name": "categorize_action",
"type": "function"
}
] | 3 |
openstates__openstates-scrapers__346a76aa__6 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | get_phones | openstates/id/people.py | 23 | 30 | [
{
"decorator_line": 33,
"file_path": "openstates/id/people.py",
"line_end": 36,
"line_start": 33,
"name": "parse_phone",
"type": "function"
}
] | 1 |
openstates__openstates-scrapers__346a76aa__7 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | get_current_year | openstates/ca/download.py | 331 | 353 | [
{
"decorator_line": 322,
"file_path": "openstates/ca/download.py",
"line_end": 328,
"line_start": 322,
"name": "get_zip",
"type": "function"
},
{
"decorator_line": 160,
"file_path": "openstates/ca/download.py",
"line_end": 204,
"line_start": 160,
"name": "load",
"type": "function"
}
] | 2 |
openstates__openstates-scrapers__346a76aa__8 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_committees_pdf | openstates/mt/committees.py | 36 | 92 | [
{
"decorator_line": 94,
"file_path": "openstates/mt/committees.py",
"line_end": 142,
"line_start": 94,
"name": "_fix_house_text",
"type": "function"
},
{
"decorator_line": 145,
"file_path": "openstates/mt/committees.py",
"line_end": 159,
"line_start": 145,
"name": "is_committee_name",
"type": "function"
},
{
"decorator_line": 162,
"file_path": "openstates/mt/committees.py",
"line_end": 163,
"line_start": 162,
"name": "is_legislator_name",
"type": "function"
}
] | 3 |
openstates__openstates-scrapers__346a76aa__9 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_introducers | openstates/ct/bills.py | 326 | 339 | [
{
"decorator_line": 341,
"file_path": "openstates/ct/bills.py",
"line_end": 347,
"line_start": 341,
"name": "scrape_introducer",
"type": "function"
}
] | 1 |
openstates__openstates-scrapers__346a76aa__10 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_chamber | openstates/de/committees.py | 16 | 33 | [
{
"decorator_line": 62,
"file_path": "openstates/de/committees.py",
"line_end": 66,
"line_start": 62,
"name": "scrape_joint_committees",
"type": "function"
},
{
"decorator_line": 35,
"file_path": "openstates/de/committees.py",
"line_end": 60,
"line_start": 35,
"name": "scrape_comm",
"type": "function"
}
] | 2 |
openstates__openstates-scrapers__346a76aa__11 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | parse_bill | openstates/ky/bills.py | 81 | 299 | [
{
"decorator_line": 12,
"file_path": "openstates/utils/lxmlize.py",
"line_end": 35,
"line_start": 12,
"name": "lxmlize",
"type": "function"
},
{
"decorator_line": 37,
"file_path": "openstates/utils/lxmlize.py",
"line_end": 54,
"line_start": 37,
"name": "get_node",
"type": "function"
},
{
"decorator_line": 56,
"file_path": "openstates/utils/lxmlize.py",
"line_end": 68,
"line_start": 56,
"name": "get_nodes",
"type": "function"
}
] | 3 |
openstates__openstates-scrapers__346a76aa__12 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape | openstates/ks/people.py | 10 | 21 | [
{
"decorator_line": 23,
"file_path": "openstates/ks/people.py",
"line_end": 70,
"line_start": 23,
"name": "get_member",
"type": "function"
}
] | 1 |
openstates__openstates-scrapers__346a76aa__13 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape | openstates/mo/votes.py | 190 | 198 | [
{
"decorator_line": 39,
"file_path": "openstates/mo/votes.py",
"line_end": 181,
"line_start": 39,
"name": "_scrape_upper_chamber",
"type": "function"
},
{
"decorator_line": 183,
"file_path": "openstates/mo/votes.py",
"line_end": 185,
"line_start": 183,
"name": "_scrape_lower_chamber",
"type": "function"
}
] | 2 |
openstates__openstates-scrapers__346a76aa__14 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_html | openstates/ks/bills.py | 119 | 183 | [
{
"decorator_line": 11,
"file_path": "openstates/ks/bills.py",
"line_end": 12,
"line_start": 11,
"name": "_clean_spaces",
"type": "function"
},
{
"decorator_line": 244,
"file_path": "openstates/ks/bills.py",
"line_end": 251,
"line_start": 244,
"name": "get_doc_link",
"type": "function"
},
{
"decorator_line": 185,
"file_path": "openstates/ks/bills.py",
"line_end": 241,
"line_start": 185,
"name": "parse_vote",
"type": "function"
}
] | 3 |
openstates__openstates-scrapers__346a76aa__15 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_chamber | openstates/or/people.py | 13 | 47 | [
{
"decorator_line": 45,
"file_path": "openstates/or/apiclient.py",
"line_end": 81,
"line_start": 45,
"name": "get",
"type": "function"
}
] | 1 |
openstates__openstates-scrapers__346a76aa__16 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_session | openstates/pa/bills.py | 30 | 38 | [
{
"decorator_line": 36,
"file_path": "openstates/pa/utils.py",
"line_end": 39,
"line_start": 36,
"name": "bill_list_url",
"type": "function"
},
{
"decorator_line": 40,
"file_path": "openstates/pa/bills.py",
"line_end": 85,
"line_start": 40,
"name": "parse_bill",
"type": "function"
}
] | 2 |
openstates__openstates-scrapers__346a76aa__17 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_bill | openstates/hi/bills.py | 170 | 212 | [
{
"decorator_line": 71,
"file_path": "openstates/hi/bills.py",
"line_end": 89,
"line_start": 71,
"name": "parse_bill_metainf_table",
"type": "function"
},
{
"decorator_line": 147,
"file_path": "openstates/hi/bills.py",
"line_end": 168,
"line_start": 147,
"name": "parse_bill_versions_table",
"type": "function"
},
{
"decorator_line": 91,
"file_path": "openstates/hi/bills.py",
"line_end": 145,
"line_start": 91,
"name": "parse_bill_actions_table",
"type": "function"
}
] | 3 |
openstates__openstates-scrapers__346a76aa__18 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_house_weekly_schedule | openstates/la/events.py | 106 | 162 | [
{
"decorator_line": 12,
"file_path": "openstates/utils/lxmlize.py",
"line_end": 35,
"line_start": 12,
"name": "lxmlize",
"type": "function"
}
] | 1 |
openstates__openstates-scrapers__346a76aa__19 | openstates/openstates-scrapers | 346a76aaf1f8d0d9b72fe93dbbad230aabf048a0 | scrape_lower_committee | openstates/ny/committees.py | 68 | 99 | [
{
"decorator_line": 12,
"file_path": "openstates/utils/lxmlize.py",
"line_end": 35,
"line_start": 12,
"name": "lxmlize",
"type": "function"
},
{
"decorator_line": 56,
"file_path": "openstates/utils/lxmlize.py",
"line_end": 68,
"line_start": 56,
"name": "get_nodes",
"type": "function"
}
] | 2 |
facebookresearch__fairseq__3bde773d__0 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | load_state_dict | fairseq/models/fairseq_model.py | 58 | 66 | [
{
"decorator_line": 68,
"file_path": "fairseq/models/fairseq_model.py",
"line_end": 71,
"line_start": 68,
"name": "upgrade_state_dict",
"type": "function"
}
] | 1 |
facebookresearch__fairseq__3bde773d__1 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | generate | fairseq/sequence_generator.py | 86 | 89 | [
{
"decorator_line": 159,
"file_path": "fairseq/utils.py",
"line_end": 163,
"line_start": 159,
"name": "maybe_no_grad",
"type": "function"
},
{
"decorator_line": 91,
"file_path": "fairseq/sequence_generator.py",
"line_end": 402,
"line_start": 91,
"name": "_generate",
"type": "function"
}
] | 2 |
facebookresearch__fairseq__3bde773d__2 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | build_dictionary | fairseq/tokenizer.py | 27 | 31 | [
{
"decorator_line": 11,
"file_path": "fairseq/dictionary.py",
"line_end": 140,
"line_start": 11,
"name": "Dictionary",
"type": "class"
},
{
"decorator_line": 33,
"file_path": "fairseq/tokenizer.py",
"line_end": 39,
"line_start": 34,
"name": "add_file_to_dictionary",
"type": "function"
},
{
"decorator_line": 79,
"file_path": "fairseq/dictionary.py",
"line_end": 85,
"line_start": 79,
"name": "finalize",
"type": "function"
}
] | 3 |
facebookresearch__fairseq__3bde773d__3 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | get_original_text | fairseq/indexed_dataset.py | 130 | 132 | [
{
"decorator_line": 62,
"file_path": "fairseq/indexed_dataset.py",
"line_end": 64,
"line_start": 62,
"name": "check_index",
"type": "function"
}
] | 1 |
facebookresearch__fairseq__3bde773d__4 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | print | fairseq/progress_bar.py | 180 | 183 | [
{
"decorator_line": 73,
"file_path": "fairseq/progress_bar.py",
"line_end": 75,
"line_start": 73,
"name": "_str_pipes",
"type": "function"
},
{
"decorator_line": 77,
"file_path": "fairseq/progress_bar.py",
"line_end": 92,
"line_start": 77,
"name": "_format_stats",
"type": "function"
}
] | 2 |
facebookresearch__fairseq__3bde773d__5 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | train_model | tests/test_binaries.py | 72 | 88 | [
{
"decorator_line": 17,
"file_path": "fairseq/options.py",
"line_end": 24,
"line_start": 17,
"name": "get_training_parser",
"type": "function"
},
{
"decorator_line": 34,
"file_path": "fairseq/options.py",
"line_end": 65,
"line_start": 34,
"name": "parse_args_and_arch",
"type": "function"
},
{
"decorator_line": 15,
"file_path": "train.py",
"line_end": 22,
"line_start": 15,
"name": "main",
"type": "function"
}
] | 3 |
facebookresearch__fairseq__3bde773d__6 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | collater | fairseq/data.py | 206 | 207 | [
{
"decorator_line": 209,
"file_path": "fairseq/data.py",
"line_end": 248,
"line_start": 210,
"name": "collate",
"type": "function"
}
] | 1 |
facebookresearch__fairseq__3bde773d__7 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | eval_dataloader | fairseq/data.py | 148 | 161 | [
{
"decorator_line": 329,
"file_path": "fairseq/data.py",
"line_end": 344,
"line_start": 329,
"name": "batches_by_size",
"type": "function"
},
{
"decorator_line": 390,
"file_path": "fairseq/data.py",
"line_end": 399,
"line_start": 390,
"name": "mask_batches",
"type": "function"
}
] | 2 |
facebookresearch__fairseq__3bde773d__8 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | build_model | fairseq/models/fconv.py | 48 | 67 | [
{
"decorator_line": 70,
"file_path": "fairseq/models/fconv.py",
"line_end": 138,
"line_start": 70,
"name": "FConvEncoder",
"type": "class"
},
{
"decorator_line": 181,
"file_path": "fairseq/models/fconv.py",
"line_end": 327,
"line_start": 181,
"name": "FConvDecoder",
"type": "class"
},
{
"decorator_line": 19,
"file_path": "fairseq/models/fconv.py",
"line_end": 67,
"line_start": 20,
"name": "FConvModel",
"type": "class"
}
] | 3 |
facebookresearch__fairseq__3bde773d__9 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | fconv_wmt_en_de | fairseq/models/fconv.py | 401 | 410 | [
{
"decorator_line": 369,
"file_path": "fairseq/models/fconv.py",
"line_end": 377,
"line_start": 370,
"name": "base_architecture",
"type": "function"
}
] | 1 |
facebookresearch__fairseq__3bde773d__10 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | finalize | fairseq/indexed_dataset.py | 169 | 181 | [
{
"decorator_line": 36,
"file_path": "fairseq/indexed_dataset.py",
"line_end": 39,
"line_start": 36,
"name": "code",
"type": "function"
},
{
"decorator_line": 21,
"file_path": "fairseq/indexed_dataset.py",
"line_end": 22,
"line_start": 21,
"name": "write_longs",
"type": "function"
}
] | 2 |
facebookresearch__fairseq__3bde773d__11 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | main | train.py | 15 | 22 | [
{
"decorator_line": 16,
"file_path": "distributed_train.py",
"line_end": 38,
"line_start": 16,
"name": "main",
"type": "function"
},
{
"decorator_line": 18,
"file_path": "multiprocessing_train.py",
"line_end": 39,
"line_start": 18,
"name": "main",
"type": "function"
},
{
"decorator_line": 19,
"file_path": "singleprocess_train.py",
"line_end": 95,
"line_start": 19,
"name": "main",
"type": "function"
}
] | 3 |
facebookresearch__fairseq__3bde773d__12 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | backward | fairseq/criterions/label_smoothed_cross_entropy.py | 45 | 49 | [
{
"decorator_line": 166,
"file_path": "fairseq/utils.py",
"line_end": 171,
"line_start": 166,
"name": "volatile_variable",
"type": "function"
}
] | 1 |
facebookresearch__fairseq__3bde773d__13 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | build_model | tests/utils.py | 76 | 79 | [
{
"decorator_line": 82,
"file_path": "tests/utils.py",
"line_end": 88,
"line_start": 82,
"name": "TestEncoder",
"type": "class"
},
{
"decorator_line": 91,
"file_path": "tests/utils.py",
"line_end": 140,
"line_start": 91,
"name": "TestIncrementalDecoder",
"type": "class"
}
] | 2 |
facebookresearch__fairseq__3bde773d__14 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | dummy_dictionary | tests/utils.py | 19 | 25 | [
{
"decorator_line": 11,
"file_path": "fairseq/dictionary.py",
"line_end": 140,
"line_start": 11,
"name": "Dictionary",
"type": "class"
},
{
"decorator_line": 66,
"file_path": "fairseq/dictionary.py",
"line_end": 77,
"line_start": 66,
"name": "add_symbol",
"type": "function"
},
{
"decorator_line": 79,
"file_path": "fairseq/dictionary.py",
"line_end": 85,
"line_start": 79,
"name": "finalize",
"type": "function"
}
] | 3 |
facebookresearch__fairseq__3bde773d__15 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | save_checkpoint | fairseq/trainer.py | 60 | 64 | [
{
"decorator_line": 29,
"file_path": "fairseq/utils.py",
"line_end": 49,
"line_start": 29,
"name": "save_state",
"type": "function"
}
] | 1 |
facebookresearch__fairseq__3bde773d__16 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | main | multiprocessing_train.py | 18 | 39 | [
{
"decorator_line": 54,
"file_path": "multiprocessing_train.py",
"line_end": 81,
"line_start": 54,
"name": "ErrorHandler",
"type": "class"
},
{
"decorator_line": 67,
"file_path": "multiprocessing_train.py",
"line_end": 68,
"line_start": 67,
"name": "add_child",
"type": "function"
}
] | 2 |
facebookresearch__fairseq__3bde773d__17 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | load_checkpoint | fairseq/trainer.py | 66 | 85 | [
{
"decorator_line": 52,
"file_path": "fairseq/utils.py",
"line_end": 72,
"line_start": 52,
"name": "load_model_state",
"type": "function"
},
{
"decorator_line": 17,
"file_path": "fairseq/optim/__init__.py",
"line_end": 18,
"line_start": 17,
"name": "build_optimizer",
"type": "function"
},
{
"decorator_line": 16,
"file_path": "fairseq/optim/lr_scheduler/__init__.py",
"line_end": 17,
"line_start": 16,
"name": "build_lr_scheduler",
"type": "function"
}
] | 3 |
facebookresearch__fairseq__3bde773d__18 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | distributed_init | fairseq/distributed_utils.py | 13 | 32 | [
{
"decorator_line": 35,
"file_path": "fairseq/distributed_utils.py",
"line_end": 46,
"line_start": 35,
"name": "suppress_output",
"type": "function"
}
] | 1 |
facebookresearch__fairseq__3bde773d__19 | facebookresearch/fairseq | 3bde773d66ff8472c5e9fb4b63d9a33554e48c09 | forward | tests/utils.py | 98 | 130 | [
{
"decorator_line": 216,
"file_path": "fairseq/utils.py",
"line_end": 221,
"line_start": 216,
"name": "get_incremental_state",
"type": "function"
},
{
"decorator_line": 224,
"file_path": "fairseq/utils.py",
"line_end": 228,
"line_start": 224,
"name": "set_incremental_state",
"type": "function"
}
] | 2 |
benoitc__gunicorn__054f1135__0 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | get_data | gunicorn/http/message.py | 153 | 159 | [
{
"decorator_line": 10,
"file_path": "gunicorn/http/errors.py",
"line_end": 15,
"line_start": 10,
"name": "NoMoreData",
"type": "class"
}
] | 1 |
benoitc__gunicorn__054f1135__1 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | test_nworkers_changed | tests/test_003-config.py | 231 | 237 | [
{
"decorator_line": 44,
"file_path": "gunicorn/config.py",
"line_end": 144,
"line_start": 44,
"name": "Config",
"type": "class"
},
{
"decorator_line": 83,
"file_path": "tests/t.py",
"line_end": 84,
"line_start": 83,
"name": "eq",
"type": "function"
}
] | 2 |
benoitc__gunicorn__054f1135__2 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | test_readline_new_line_after_size | tests/test_004-http-body.py | 26 | 29 | [
{
"decorator_line": 174,
"file_path": "gunicorn/http/body.py",
"line_end": 258,
"line_start": 174,
"name": "Body",
"type": "class"
},
{
"decorator_line": 83,
"file_path": "tests/t.py",
"line_end": 84,
"line_start": 83,
"name": "eq",
"type": "function"
},
{
"decorator_line": 222,
"file_path": "gunicorn/http/body.py",
"line_end": 245,
"line_start": 222,
"name": "readline",
"type": "function"
}
] | 3 |
benoitc__gunicorn__054f1135__3 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | handle_usr1 | gunicorn/arbiter.py | 252 | 258 | [
{
"decorator_line": 509,
"file_path": "gunicorn/arbiter.py",
"line_end": 515,
"line_start": 509,
"name": "kill_workers",
"type": "function"
}
] | 1 |
benoitc__gunicorn__054f1135__4 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | format_help | gunicorn/argparse_compat.py | 223 | 246 | [
{
"decorator_line": 206,
"file_path": "gunicorn/argparse_compat.py",
"line_end": 208,
"line_start": 206,
"name": "_indent",
"type": "function"
},
{
"decorator_line": 210,
"file_path": "gunicorn/argparse_compat.py",
"line_end": 213,
"line_start": 210,
"name": "_dedent",
"type": "function"
}
] | 2 |
benoitc__gunicorn__054f1135__5 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | parse_chunked | gunicorn/http/body.py | 54 | 70 | [
{
"decorator_line": 72,
"file_path": "gunicorn/http/body.py",
"line_end": 97,
"line_start": 72,
"name": "parse_chunk_size",
"type": "function"
},
{
"decorator_line": 10,
"file_path": "gunicorn/http/errors.py",
"line_end": 15,
"line_start": 10,
"name": "NoMoreData",
"type": "class"
},
{
"decorator_line": 68,
"file_path": "gunicorn/http/errors.py",
"line_end": 73,
"line_start": 68,
"name": "ChunkMissingTerminator",
"type": "class"
}
] | 3 |
benoitc__gunicorn__054f1135__6 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | sendfile_all | gunicorn/http/wsgi.py | 314 | 330 | [
{
"decorator_line": 31,
"file_path": "gunicorn/http/_sendfile.py",
"line_end": 67,
"line_start": 31,
"name": "sendfile",
"type": "function"
}
] | 1 |
benoitc__gunicorn__054f1135__7 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | print_help | gunicorn/argparse_compat.py | 2,324 | 2,327 | [
{
"decorator_line": 2337,
"file_path": "gunicorn/argparse_compat.py",
"line_end": 2341,
"line_start": 2337,
"name": "_print_message",
"type": "function"
},
{
"decorator_line": 2280,
"file_path": "gunicorn/argparse_compat.py",
"line_end": 2301,
"line_start": 2280,
"name": "format_help",
"type": "function"
}
] | 2 |
benoitc__gunicorn__054f1135__8 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | test_http_parser | tests/test_002-invalid-requests.py | 17 | 28 | [
{
"decorator_line": 41,
"file_path": "tests/treq.py",
"line_end": 46,
"line_start": 41,
"name": "load_py",
"type": "function"
},
{
"decorator_line": 251,
"file_path": "tests/treq.py",
"line_end": 272,
"line_start": 251,
"name": "badrequest",
"type": "class"
},
{
"decorator_line": 270,
"file_path": "tests/treq.py",
"line_end": 272,
"line_start": 270,
"name": "check",
"type": "function"
}
] | 3 |
benoitc__gunicorn__054f1135__9 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | img | examples/frameworks/pylonstest/pylonstest/controllers/error.py | 32 | 34 | [
{
"decorator_line": 40,
"file_path": "examples/frameworks/pylonstest/pylonstest/controllers/error.py",
"line_end": 45,
"line_start": 40,
"name": "_serve_file",
"type": "function"
}
] | 1 |
benoitc__gunicorn__054f1135__10 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | manage_workers | gunicorn/arbiter.py | 441 | 453 | [
{
"decorator_line": 497,
"file_path": "gunicorn/arbiter.py",
"line_end": 507,
"line_start": 497,
"name": "spawn_workers",
"type": "function"
},
{
"decorator_line": 517,
"file_path": "gunicorn/arbiter.py",
"line_end": 535,
"line_start": 517,
"name": "kill_worker",
"type": "function"
}
] | 2 |
benoitc__gunicorn__054f1135__11 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | test_property_access | tests/test_003-config.py | 51 | 87 | [
{
"decorator_line": 44,
"file_path": "gunicorn/config.py",
"line_end": 144,
"line_start": 44,
"name": "Config",
"type": "class"
},
{
"decorator_line": 83,
"file_path": "tests/t.py",
"line_end": 84,
"line_start": 83,
"name": "eq",
"type": "function"
},
{
"decorator_line": 110,
"file_path": "tests/t.py",
"line_end": 118,
"line_start": 110,
"name": "raises",
"type": "function"
}
] | 3 |
benoitc__gunicorn__054f1135__12 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | spawn_worker | gunicorn/arbiter.py | 455 | 495 | [
{
"decorator_line": 57,
"file_path": "gunicorn/util.py",
"line_end": 58,
"line_start": 57,
"name": "_setproctitle",
"type": "function"
}
] | 1 |
benoitc__gunicorn__054f1135__13 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | address | gunicorn/config.py | 101 | 103 | [
{
"decorator_line": 218,
"file_path": "gunicorn/util.py",
"line_end": 248,
"line_start": 218,
"name": "parse_address",
"type": "function"
},
{
"decorator_line": 382,
"file_path": "gunicorn/six.py",
"line_end": 385,
"line_start": 382,
"name": "bytes_to_str",
"type": "function"
}
] | 2 |
benoitc__gunicorn__054f1135__14 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | test_cmd_line | tests/test_003-config.py | 164 | 173 | [
{
"decorator_line": 23,
"file_path": "tests/test_003-config.py",
"line_end": 32,
"line_start": 23,
"name": "AltArgs",
"type": "class"
},
{
"decorator_line": 34,
"file_path": "tests/test_003-config.py",
"line_end": 42,
"line_start": 34,
"name": "NoConfigApp",
"type": "class"
},
{
"decorator_line": 83,
"file_path": "tests/t.py",
"line_end": 84,
"line_start": 83,
"name": "eq",
"type": "function"
}
] | 3 |
benoitc__gunicorn__054f1135__15 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | test_req | tests/treq.py | 226 | 227 | [
{
"decorator_line": 233,
"file_path": "tests/treq.py",
"line_end": 238,
"line_start": 233,
"name": "check",
"type": "function"
}
] | 1 |
benoitc__gunicorn__054f1135__16 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | parse_args | gunicorn/argparse_compat.py | 1,701 | 1,706 | [
{
"decorator_line": 1708,
"file_path": "gunicorn/argparse_compat.py",
"line_end": 1741,
"line_start": 1708,
"name": "parse_known_args",
"type": "function"
},
{
"decorator_line": 2351,
"file_path": "gunicorn/argparse_compat.py",
"line_end": 2361,
"line_start": 2351,
"name": "error",
"type": "function"
}
] | 2 |
benoitc__gunicorn__054f1135__17 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | test_pos_int_validation | tests/test_003-config.py | 101 | 113 | [
{
"decorator_line": 44,
"file_path": "gunicorn/config.py",
"line_end": 144,
"line_start": 44,
"name": "Config",
"type": "class"
},
{
"decorator_line": 83,
"file_path": "tests/t.py",
"line_end": 84,
"line_start": 83,
"name": "eq",
"type": "function"
},
{
"decorator_line": 110,
"file_path": "tests/t.py",
"line_end": 118,
"line_start": 110,
"name": "raises",
"type": "function"
}
] | 3 |
benoitc__gunicorn__054f1135__18 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | execfile_ | gunicorn/six.py | 301 | 302 | [
{
"decorator_line": 308,
"file_path": "gunicorn/six.py",
"line_end": 318,
"line_start": 308,
"name": "exec_",
"type": "function"
}
] | 1 |
benoitc__gunicorn__054f1135__19 | benoitc/gunicorn | 054f1135db0bc458ce8261c2428bb31dc19b2000 | test_defaults | tests/test_003-config.py | 45 | 49 | [
{
"decorator_line": 44,
"file_path": "gunicorn/config.py",
"line_end": 144,
"line_start": 44,
"name": "Config",
"type": "class"
},
{
"decorator_line": 83,
"file_path": "tests/t.py",
"line_end": 84,
"line_start": 83,
"name": "eq",
"type": "function"
}
] | 2 |
vnpy__vnpy__198796d7__0 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | show | docker/dockerTrader/uiBasicWidget.py | 1,187 | 1,190 | [
{
"decorator_line": 1171,
"file_path": "docker/dockerTrader/uiBasicWidget.py",
"line_end": 1176,
"line_start": 1171,
"name": "refresh",
"type": "function"
}
] | 1 |
vnpy__vnpy__198796d7__1 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | processCallBack | vnpy/api/lts/pyscript/generate_md_functions.py | 9 | 35 | [
{
"decorator_line": 38,
"file_path": "vnpy/api/lts/pyscript/generate_md_functions.py",
"line_end": 83,
"line_start": 38,
"name": "createTask",
"type": "function"
},
{
"decorator_line": 86,
"file_path": "vnpy/api/lts/pyscript/generate_md_functions.py",
"line_end": 129,
"line_start": 86,
"name": "createProcess",
"type": "function"
}
] | 2 |
vnpy__vnpy__198796d7__2 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | initUi | vnpy/trader/uiBasicWidget.py | 1,124 | 1,129 | [
{
"decorator_line": 252,
"file_path": "vnpy/trader/uiBasicWidget.py",
"line_end": 254,
"line_start": 252,
"name": "setFont",
"type": "function"
},
{
"decorator_line": 262,
"file_path": "vnpy/trader/uiBasicWidget.py",
"line_end": 282,
"line_start": 262,
"name": "initTable",
"type": "function"
},
{
"decorator_line": 1170,
"file_path": "vnpy/trader/uiBasicWidget.py",
"line_end": 1175,
"line_start": 1170,
"name": "addMenuAction",
"type": "function"
}
] | 3 |
vnpy__vnpy__198796d7__3 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | onTrade | docker/dockerTrader/ctaStrategy/strategy/strategyDualThrust.py | 219 | 221 | [
{
"decorator_line": 164,
"file_path": "docker/dockerTrader/ctaStrategy/ctaTemplate.py",
"line_end": 166,
"line_start": 164,
"name": "putEvent",
"type": "function"
}
] | 1 |
vnpy__vnpy__198796d7__4 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | qryPosition | docker/dockerTrader/gateway/ibGateway/ibGateway.py | 271 | 276 | [
{
"decorator_line": 228,
"file_path": "vnpy/trader/vtObject.py",
"line_end": 237,
"line_start": 228,
"name": "VtLogData",
"type": "class"
},
{
"decorator_line": 95,
"file_path": "vnpy/trader/vtGateway.py",
"line_end": 100,
"line_start": 95,
"name": "onLog",
"type": "function"
}
] | 2 |
vnpy__vnpy__198796d7__5 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | test | docker/dockerTrader/eventEngine.py | 338 | 354 | [
{
"decorator_line": 186,
"file_path": "docker/dockerTrader/eventEngine.py",
"line_end": 323,
"line_start": 186,
"name": "EventEngine2",
"type": "class"
},
{
"decorator_line": 314,
"file_path": "docker/dockerTrader/eventEngine.py",
"line_end": 317,
"line_start": 314,
"name": "registerGeneralHandler",
"type": "function"
},
{
"decorator_line": 255,
"file_path": "docker/dockerTrader/eventEngine.py",
"line_end": 269,
"line_start": 255,
"name": "start",
"type": "function"
}
] | 3 |
vnpy__vnpy__198796d7__6 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | qryPosition | vnpy/trader/gateway/ksotpGateway/ksotpGateway.py | 129 | 131 | [
{
"decorator_line": 1175,
"file_path": "vnpy/trader/gateway/ksotpGateway/ksotpGateway.py",
"line_end": 1181,
"line_start": 1175,
"name": "qryPosition",
"type": "function"
}
] | 1 |
vnpy__vnpy__198796d7__7 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | updateID | archive/demo/ctpdemo/demoUi.py | 959 | 1,004 | [
{
"decorator_line": 161,
"file_path": "archive/demo/ctpdemo/demoEngine.py",
"line_end": 167,
"line_start": 161,
"name": "selectInstrument",
"type": "function"
},
{
"decorator_line": 51,
"file_path": "archive/demo/ctpdemo/demoEngine.py",
"line_end": 53,
"line_start": 51,
"name": "subscribe",
"type": "function"
}
] | 2 |
vnpy__vnpy__198796d7__8 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | showBacktestingResult | docker/dockerTrader/ctaStrategy/ctaBacktesting.py | 658 | 715 | [
{
"decorator_line": 470,
"file_path": "docker/dockerTrader/ctaStrategy/ctaBacktesting.py",
"line_end": 655,
"line_start": 470,
"name": "calculateBacktestingResult",
"type": "function"
},
{
"decorator_line": 465,
"file_path": "docker/dockerTrader/ctaStrategy/ctaBacktesting.py",
"line_end": 467,
"line_start": 465,
"name": "output",
"type": "function"
},
{
"decorator_line": 920,
"file_path": "docker/dockerTrader/ctaStrategy/ctaBacktesting.py",
"line_end": 923,
"line_start": 920,
"name": "formatNumber",
"type": "function"
}
] | 3 |
vnpy__vnpy__198796d7__9 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | cancelAll | docker/dockerTrader/uiBasicWidget.py | 1,067 | 1,077 | [
{
"decorator_line": 310,
"file_path": "vnpy/trader/vtObject.py",
"line_end": 322,
"line_start": 310,
"name": "VtCancelOrderReq",
"type": "class"
}
] | 1 |
vnpy__vnpy__198796d7__10 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | onRtnCancelOrder | vnpy/trader/gateway/xspeedGateway/xspeedGateway.py | 820 | 854 | [
{
"decorator_line": 132,
"file_path": "vnpy/trader/vtObject.py",
"line_end": 161,
"line_start": 132,
"name": "VtOrderData",
"type": "class"
},
{
"decorator_line": 48,
"file_path": "vnpy/trader/vtGateway.py",
"line_end": 58,
"line_start": 48,
"name": "onOrder",
"type": "function"
}
] | 2 |
vnpy__vnpy__198796d7__11 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | onFrontConnected | docker/dockerTrader/gateway/sgitGateway/sgitGateway.py | 285 | 293 | [
{
"decorator_line": 228,
"file_path": "vnpy/trader/vtObject.py",
"line_end": 237,
"line_start": 228,
"name": "VtLogData",
"type": "class"
},
{
"decorator_line": 95,
"file_path": "vnpy/trader/vtGateway.py",
"line_end": 100,
"line_start": 95,
"name": "onLog",
"type": "function"
},
{
"decorator_line": 268,
"file_path": "docker/dockerTrader/gateway/sgitGateway/sgitGateway.py",
"line_end": 277,
"line_start": 268,
"name": "login",
"type": "function"
}
] | 3 |
vnpy__vnpy__198796d7__12 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | queryWorkingOrders | docker/dockerTrader/gateway/huobiGateway/huobiGateway.py | 461 | 468 | [
{
"decorator_line": 211,
"file_path": "docker/dockerTrader/gateway/huobiGateway/vnhuobi.py",
"line_end": 220,
"line_start": 211,
"name": "orderInfo",
"type": "function"
}
] | 1 |
vnpy__vnpy__198796d7__13 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | processCallBack | archive/vn.lts_old/pyscript/generate_md_functions.py | 9 | 35 | [
{
"decorator_line": 38,
"file_path": "archive/vn.lts_old/pyscript/generate_md_functions.py",
"line_end": 83,
"line_start": 38,
"name": "createTask",
"type": "function"
},
{
"decorator_line": 86,
"file_path": "archive/vn.lts_old/pyscript/generate_md_functions.py",
"line_end": 129,
"line_start": 86,
"name": "createProcess",
"type": "function"
}
] | 2 |
vnpy__vnpy__198796d7__14 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | processCallBack | vnpy/api/lts/pyscript/generate_td_functions.py | 9 | 57 | [
{
"decorator_line": 95,
"file_path": "vnpy/api/lts/pyscript/generate_td_functions.py",
"line_end": 151,
"line_start": 95,
"name": "createTask",
"type": "function"
},
{
"decorator_line": 154,
"file_path": "vnpy/api/lts/pyscript/generate_td_functions.py",
"line_end": 197,
"line_start": 154,
"name": "createProcess",
"type": "function"
},
{
"decorator_line": 61,
"file_path": "vnpy/api/lts/pyscript/generate_td_functions.py",
"line_end": 91,
"line_start": 61,
"name": "createWrap",
"type": "function"
}
] | 3 |
vnpy__vnpy__198796d7__15 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | refresh | vnpy/trader/uiBasicWidget.py | 1,162 | 1,167 | [
{
"decorator_line": 1132,
"file_path": "vnpy/trader/uiBasicWidget.py",
"line_end": 1159,
"line_start": 1132,
"name": "showAllContracts",
"type": "function"
}
] | 1 |
vnpy__vnpy__198796d7__16 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | filterContract | vnpy/trader/uiBasicWidget.py | 1,225 | 1,229 | [
{
"decorator_line": 1184,
"file_path": "vnpy/trader/uiBasicWidget.py",
"line_end": 1186,
"line_start": 1184,
"name": "setFilterContent",
"type": "function"
},
{
"decorator_line": 1162,
"file_path": "vnpy/trader/uiBasicWidget.py",
"line_end": 1167,
"line_start": 1162,
"name": "refresh",
"type": "function"
}
] | 2 |
vnpy__vnpy__198796d7__17 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | onFrontConnected | vnpy/trader/gateway/sgitGateway/sgitGateway.py | 588 | 597 | [
{
"decorator_line": 228,
"file_path": "vnpy/trader/vtObject.py",
"line_end": 237,
"line_start": 228,
"name": "VtLogData",
"type": "class"
},
{
"decorator_line": 95,
"file_path": "vnpy/trader/vtGateway.py",
"line_end": 100,
"line_start": 95,
"name": "onLog",
"type": "function"
},
{
"decorator_line": 488,
"file_path": "vnpy/trader/gateway/sgitGateway/sgitGateway.py",
"line_end": 497,
"line_start": 488,
"name": "login",
"type": "function"
}
] | 3 |
vnpy__vnpy__198796d7__18 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | onCancelOrder | docker/dockerTrader/gateway/lhangGateway/lhangGateway.py | 318 | 328 | [
{
"decorator_line": 48,
"file_path": "vnpy/trader/vtGateway.py",
"line_end": 58,
"line_start": 48,
"name": "onOrder",
"type": "function"
}
] | 1 |
vnpy__vnpy__198796d7__19 | vnpy/vnpy | 198796d7bede461e287c9afb6763c32f16c99413 | onRtnDepthMarketData | docker/dockerTrader/gateway/ltsGateway/ltsGateway.py | 315 | 364 | [
{
"decorator_line": 20,
"file_path": "vnpy/trader/vtObject.py",
"line_end": 74,
"line_start": 20,
"name": "VtTickData",
"type": "class"
},
{
"decorator_line": 22,
"file_path": "vnpy/trader/vtGateway.py",
"line_end": 32,
"line_start": 22,
"name": "onTick",
"type": "function"
}
] | 2 |
falconry__falcon__b74cc79e__0 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | router | bench/create.py | 57 | 67 | [
{
"decorator_line": 37,
"file_path": "bench/create.py",
"line_end": 49,
"line_start": 37,
"name": "hello",
"type": "function"
}
] | 1 |
falconry__falcon__b74cc79e__1 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | prepare | tests/test_req_vars.py | 6 | 16 | [
{
"decorator_line": 26,
"file_path": "falcon/request.py",
"line_end": 184,
"line_start": 26,
"name": "Request",
"type": "class"
},
{
"decorator_line": 75,
"file_path": "tests/helpers.py",
"line_end": 114,
"line_start": 75,
"name": "create_environ",
"type": "function"
}
] | 2 |
falconry__falcon__b74cc79e__2 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | on_get | tests/test_example.py | 16 | 59 | [
{
"decorator_line": 43,
"file_path": "falcon/exceptions.py",
"line_end": 66,
"line_start": 43,
"name": "HTTPUnauthorized",
"type": "class"
},
{
"decorator_line": 177,
"file_path": "falcon/exceptions.py",
"line_end": 191,
"line_start": 177,
"name": "HTTPUnsupportedMediaType",
"type": "class"
},
{
"decorator_line": 216,
"file_path": "falcon/exceptions.py",
"line_end": 224,
"line_start": 216,
"name": "HTTPServiceUnavailable",
"type": "class"
}
] | 3 |
falconry__falcon__b74cc79e__3 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | on_get | tests/test_httperror.py | 49 | 50 | [
{
"decorator_line": 103,
"file_path": "falcon/exceptions.py",
"line_end": 124,
"line_start": 103,
"name": "HTTPMethodNotAllowed",
"type": "class"
}
] | 1 |
falconry__falcon__b74cc79e__4 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | prepare | tests/test_request_body.py | 5 | 7 | [
{
"decorator_line": 32,
"file_path": "tests/helpers.py",
"line_end": 52,
"line_start": 32,
"name": "TestResource",
"type": "class"
},
{
"decorator_line": 109,
"file_path": "falcon/api.py",
"line_end": 131,
"line_start": 109,
"name": "add_route",
"type": "function"
}
] | 2 |
falconry__falcon__b74cc79e__5 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | test_401 | tests/test_httperror.py | 157 | 162 | [
{
"decorator_line": 109,
"file_path": "falcon/api.py",
"line_end": 131,
"line_start": 109,
"name": "add_route",
"type": "function"
},
{
"decorator_line": 33,
"file_path": "tests/test_httperror.py",
"line_end": 38,
"line_start": 33,
"name": "UnauthorizedResource",
"type": "class"
},
{
"decorator_line": 67,
"file_path": "tests/helpers.py",
"line_end": 72,
"line_start": 67,
"name": "_simulate_request",
"type": "function"
}
] | 3 |
falconry__falcon__b74cc79e__6 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | test_stream_chunked | tests/test_hello.py | 85 | 96 | [
{
"decorator_line": 67,
"file_path": "tests/helpers.py",
"line_end": 72,
"line_start": 67,
"name": "_simulate_request",
"type": "function"
}
] | 1 |
falconry__falcon__b74cc79e__7 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | test_empty_path | tests/test_req_vars.py | 37 | 39 | [
{
"decorator_line": 26,
"file_path": "falcon/request.py",
"line_end": 184,
"line_start": 26,
"name": "Request",
"type": "class"
},
{
"decorator_line": 75,
"file_path": "tests/helpers.py",
"line_end": 114,
"line_start": 75,
"name": "create_environ",
"type": "function"
}
] | 2 |
falconry__falcon__b74cc79e__8 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | test_default_content_type | tests/test_headers.py | 139 | 145 | [
{
"decorator_line": 25,
"file_path": "tests/test_headers.py",
"line_end": 31,
"line_start": 25,
"name": "DefaultContentTypeResource",
"type": "class"
},
{
"decorator_line": 109,
"file_path": "falcon/api.py",
"line_end": 131,
"line_start": 109,
"name": "add_route",
"type": "function"
},
{
"decorator_line": 67,
"file_path": "tests/helpers.py",
"line_end": 72,
"line_start": 67,
"name": "_simulate_request",
"type": "function"
}
] | 3 |
falconry__falcon__b74cc79e__9 | falconry/falcon | b74cc79e9754f7a6e4319a7ce5cf2835671c724d | test_content_type | tests/test_req_vars.py | 41 | 42 | [
{
"decorator_line": 92,
"file_path": "falcon/request.py",
"line_end": 116,
"line_start": 92,
"name": "get_header",
"type": "function"
}
] | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.