{"answer": "csn:20tab/twentytab-treeeditor:treeeditor/admin.py:TreeEditor._collect_editable_booleans#20240", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "treeeditor/admin.py", "symbol": "TreeEditor._collect_editable_booleans"}, "source_id": "csn:20tab/twentytab-treeeditor:treeeditor/admin.py:TreeEditor._collect_editable_booleans#20240"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/20tab/twentytab-treeeditor/blob/f89d459b1348961880cd488df95690e68529f96b/treeeditor/admin.py#L215-L240", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:20tab-twentytab-treeeditor:TreeEditor._collect_editable_booleans-b65951cde5", "question": "Collect all fields marked as editable booleans. We do not\n want the user to be able to edit arbitrary fields by crafting\n an AJAX request by hand.", "scope": {"holder": "20tab-twentytab-treeeditor", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:20tab/twentytab-treeeditor:treeeditor/admin.py:TreeEditor.has_delete_permission#20244", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "treeeditor/admin.py", "symbol": "TreeEditor.has_delete_permission"}, "source_id": "csn:20tab/twentytab-treeeditor:treeeditor/admin.py:TreeEditor.has_delete_permission#20244"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/20tab/twentytab-treeeditor/blob/f89d459b1348961880cd488df95690e68529f96b/treeeditor/admin.py#L363-L374", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:20tab-twentytab-treeeditor:TreeEditor.has_delete_permission-ca0cf22fa4", "question": "Implement a lookup for object level permissions. Basically the same as\n ModelAdmin.has_delete_permission, but also passes the obj parameter in.", "scope": {"holder": "20tab-twentytab-treeeditor", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:3DLIRIOUS/MeshLabXML:meshlabxml/mlx.py:FilterScript.add_layer#6360", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "meshlabxml/mlx.py", "symbol": "FilterScript.add_layer"}, "source_id": "csn:3DLIRIOUS/MeshLabXML:meshlabxml/mlx.py:FilterScript.add_layer#6360"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/3DLIRIOUS/MeshLabXML/blob/177cce21e92baca500f56a932d66bd9a33257af8/meshlabxml/mlx.py#L181-L191", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:3DLIRIOUS-MeshLabXML:FilterScript.add_layer-6d01968d4e", "question": "Add new mesh layer to the end of the stack\n\n Args:\n label (str): new label for the mesh layer\n change_layer (bool): change to the newly created layer", "scope": {"holder": "3DLIRIOUS-MeshLabXML", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:3DLIRIOUS/MeshLabXML:meshlabxml/compute.py:measure_geometry#6387", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "meshlabxml/compute.py", "symbol": "measure_geometry"}, "source_id": "csn:3DLIRIOUS/MeshLabXML:meshlabxml/compute.py:measure_geometry#6387"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/3DLIRIOUS/MeshLabXML/blob/177cce21e92baca500f56a932d66bd9a33257af8/meshlabxml/compute.py#L117-L143", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:3DLIRIOUS-MeshLabXML:measure_geometry-ec89a54ba7", "question": "Compute a set of geometric measures of a mesh/pointcloud.\n\n Bounding box extents and diagonal, principal axis, thin shell barycenter\n (mesh only), vertex barycenter and quality-weighted barycenter (pointcloud\n only), surface area (mesh only), volume (closed mesh) and Inertia tensor\n Matrix (closed mesh).\n\n Args:\n script: the mlx.FilterScript object or script filename to write\n the filter to.\n\n Layer stack:\n No impacts\n\n MeshLab versions:\n 2016.12\n 1.3.4BETA\n\n Bugs:\n Bounding box extents not computed correctly for some volumes", "scope": {"holder": "3DLIRIOUS-MeshLabXML", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:4degrees/riffle:setup.py:BuildResources.finalize_options#15487", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "setup.py", "symbol": "BuildResources.finalize_options"}, "source_id": "csn:4degrees/riffle:setup.py:BuildResources.finalize_options#15487"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/4degrees/riffle/blob/e5a0d908df8c93ff1ee7abdda8875fd1667df53d/setup.py#L48-L51", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:4degrees-riffle:BuildResources.finalize_options-d0399ca77d", "question": "Finalize options to be used.", "scope": {"holder": "4degrees-riffle", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:4degrees/riffle:source/riffle/browser.py:FilesystemBrowser._onNavigate#15483", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "source/riffle/browser.py", "symbol": "FilesystemBrowser._onNavigate"}, "source_id": "csn:4degrees/riffle:source/riffle/browser.py:FilesystemBrowser._onNavigate#15483"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/4degrees/riffle/blob/e5a0d908df8c93ff1ee7abdda8875fd1667df53d/source/riffle/browser.py#L146-L151", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:4degrees-riffle:FilesystemBrowser._onNavigate-3b6ef681ea", "question": "Handle selection of path segment.", "scope": {"holder": "4degrees-riffle", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:5j9/wikitextparser:wikitextparser/_wikitext.py:SubWikiText.ancestors#7911", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "wikitextparser/_wikitext.py", "symbol": "SubWikiText.ancestors"}, "source_id": "csn:5j9/wikitextparser:wikitextparser/_wikitext.py:SubWikiText.ancestors#7911"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/5j9/wikitextparser/blob/1347425814361d7955342c53212edbb27f0ff4b5/wikitextparser/_wikitext.py#L1065-L1088", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:5j9-wikitextparser:SubWikiText.ancestors-a2cb35e759", "question": "Return the ancestors of the current node.\n\n :param type_: the type of the desired ancestors as a string.\n Currently the following types are supported: {Template,\n ParserFunction, WikiLink, Comment, Parameter, ExtensionTag}.\n The default is None and means all the ancestors of any type above.", "scope": {"holder": "5j9-wikitextparser", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:5j9/wikitextparser:wikitextparser/_wikitext.py:WikiText._pp_type_to_spans#7897", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "wikitextparser/_wikitext.py", "symbol": "WikiText._pp_type_to_spans"}, "source_id": "csn:5j9/wikitextparser:wikitextparser/_wikitext.py:WikiText._pp_type_to_spans#7897"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/5j9/wikitextparser/blob/1347425814361d7955342c53212edbb27f0ff4b5/wikitextparser/_wikitext.py#L481-L494", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:5j9-wikitextparser:WikiText._pp_type_to_spans-b5c66d196f", "question": "Create the arguments for the parse function used in pformat method.\n\n Only return sub-spans and change the them to fit the new scope, i.e\n self.string.", "scope": {"holder": "5j9-wikitextparser", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:5monkeys/django-bananas:bananas/admin/api/mixins.py:BananasAPI.get_view_name#12384", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "bananas/admin/api/mixins.py", "symbol": "BananasAPI.get_view_name"}, "source_id": "csn:5monkeys/django-bananas:bananas/admin/api/mixins.py:BananasAPI.get_view_name#12384"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/5monkeys/django-bananas/blob/cfd318c737f6c4580036c13d2acf32bca96654bf/bananas/admin/api/mixins.py#L90-L116", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:5monkeys-django-bananas:BananasAPI.get_view_name-a09ab63a5e", "question": "Get or generate human readable view name.\n Extended version from DRF to support usage from both class and instance.", "scope": {"holder": "5monkeys-django-bananas", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:5monkeys/django-bananas:bananas/url.py:get_engine#12390", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "bananas/url.py", "symbol": "get_engine"}, "source_id": "csn:5monkeys/django-bananas:bananas/url.py:get_engine#12390"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/5monkeys/django-bananas/blob/cfd318c737f6c4580036c13d2acf32bca96654bf/bananas/url.py#L92-L134", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:5monkeys-django-bananas:get_engine-19ff20a9db", "question": "Perform a lookup in _ENGINE_MAPPING using engine_string.\n\n :param scheme: '+'-separated string Maximum of 2 parts,\n i.e \"postgres+psycopg\" is OK, \"postgres+psycopg2+postgis\" is NOT OK.\n :return: Engine string", "scope": {"holder": "5monkeys-django-bananas", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:AartGoossens/goldencheetahlib:goldencheetahlib/client.py:GoldenCheetahClient._get_request#19503", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "goldencheetahlib/client.py", "symbol": "GoldenCheetahClient._get_request"}, "source_id": "csn:AartGoossens/goldencheetahlib:goldencheetahlib/client.py:GoldenCheetahClient._get_request#19503"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/AartGoossens/goldencheetahlib/blob/ebe57de7d94280674c8440a81f53ac02f0b4eb43/goldencheetahlib/client.py#L155-L181", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:AartGoossens-goldencheetahlib:GoldenCheetahClient._get_request-4adc3e6124", "question": "Do actual GET request to GC REST API\n Also validates responses.\n\n Keyword arguments:\n endpoint -- full endpoint for GET request", "scope": {"holder": "AartGoossens-goldencheetahlib", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:AartGoossens/goldencheetahlib:goldencheetahlib/client.py:GoldenCheetahClient._request_activity_list#19499", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "goldencheetahlib/client.py", "symbol": "GoldenCheetahClient._request_activity_list"}, "source_id": "csn:AartGoossens/goldencheetahlib:goldencheetahlib/client.py:GoldenCheetahClient._request_activity_list#19499"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/AartGoossens/goldencheetahlib/blob/ebe57de7d94280674c8440a81f53ac02f0b4eb43/goldencheetahlib/client.py#L85-L110", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:AartGoossens-goldencheetahlib:GoldenCheetahClient._request_activity_list-a30b2174ef", "question": "Actually do the request for activity list\n This call is slow and therefore this method is memory cached.\n\n Keyword arguments:\n athlete -- Full name of athlete", "scope": {"holder": "AartGoossens-goldencheetahlib", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:AkihikoITOH/capybara:capybara/virtualenv/lib/python2.7/site-packages/pip/_vendor/_markerlib/markers.py:ASTWhitelist.visit#15862", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "capybara/virtualenv/lib/python2.7/site-packages/pip/_vendor/_markerlib/markers.py", "symbol": "ASTWhitelist.visit"}, "source_id": "csn:AkihikoITOH/capybara:capybara/virtualenv/lib/python2.7/site-packages/pip/_vendor/_markerlib/markers.py:ASTWhitelist.visit#15862"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/AkihikoITOH/capybara/blob/e86c2173ea386654f4ae061148e8fbe3f25e715c/capybara/virtualenv/lib/python2.7/site-packages/pip/_vendor/_markerlib/markers.py#L70-L76", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:AkihikoITOH-capybara:ASTWhitelist.visit-d73207e9cb", "question": "Ensure statement only contains allowed nodes.", "scope": {"holder": "AkihikoITOH-capybara", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:AkihikoITOH/capybara:capybara/virtualenv/lib/python2.7/site-packages/pip/vcs/__init__.py:VersionControl.run_command#16187", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "capybara/virtualenv/lib/python2.7/site-packages/pip/vcs/__init__.py", "symbol": "VersionControl.run_command"}, "source_id": "csn:AkihikoITOH/capybara:capybara/virtualenv/lib/python2.7/site-packages/pip/vcs/__init__.py:VersionControl.run_command#16187"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/AkihikoITOH/capybara/blob/e86c2173ea386654f4ae061148e8fbe3f25e715c/capybara/virtualenv/lib/python2.7/site-packages/pip/vcs/__init__.py#L301-L321", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:AkihikoITOH-capybara:VersionControl.run_command-d456583f2b", "question": "Run a VCS subcommand\n This is simply a wrapper around call_subprocess that adds the VCS\n command name, and checks that the VCS is available", "scope": {"holder": "AkihikoITOH-capybara", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Alignak-monitoring-contrib/alignak-backend-client:alignak_backend_client/client.py:Backend.decode#14960", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "alignak_backend_client/client.py", "symbol": "Backend.decode"}, "source_id": "csn:Alignak-monitoring-contrib/alignak-backend-client:alignak_backend_client/client.py:Backend.decode#14960"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Alignak-monitoring-contrib/alignak-backend-client/blob/1e21f6ce703e66984d1f9b20fe7866460ab50b39/alignak_backend_client/client.py#L199-L221", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Alignak-monitoring-contrib-alignak-backend-client:Backend.decode-f283cc66b1", "question": "Decodes and returns the response as JSON (dict) or raise BackendException\n :param response: requests.response object\n :return: dict", "scope": {"holder": "Alignak-monitoring-contrib-alignak-backend-client", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Alignak-monitoring-contrib/alignak-backend-client:alignak_backend_client/client.py:Backend.set_token#14961", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "alignak_backend_client/client.py", "symbol": "Backend.set_token"}, "source_id": "csn:Alignak-monitoring-contrib/alignak-backend-client:alignak_backend_client/client.py:Backend.set_token#14961"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Alignak-monitoring-contrib/alignak-backend-client/blob/1e21f6ce703e66984d1f9b20fe7866460ab50b39/alignak_backend_client/client.py#L223-L238", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Alignak-monitoring-contrib-alignak-backend-client:Backend.set_token-e117ab4734", "question": "Set token in authentification for next requests\n :param token: str. token to set in auth. If None, reinit auth", "scope": {"holder": "Alignak-monitoring-contrib-alignak-backend-client", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:AnthonyMRios/pymetamap:pymetamap/SubprocessBackend.py:SubprocessBackend.extract_concepts#9010", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pymetamap/SubprocessBackend.py", "symbol": "SubprocessBackend.extract_concepts"}, "source_id": "csn:AnthonyMRios/pymetamap:pymetamap/SubprocessBackend.py:SubprocessBackend.extract_concepts#9010"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/AnthonyMRios/pymetamap/blob/01f35802ad13f2eb7dff033e66e5445e8f5bc039/pymetamap/SubprocessBackend.py#L27-L175", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:AnthonyMRios-pymetamap:SubprocessBackend.extract_concepts-2ae2558c37", "question": "extract_concepts takes a list of sentences and ids(optional)\n then returns a list of Concept objects extracted via\n MetaMap.\n\n Supported Options:\n Composite Phrase -Q\n Word Sense Disambiguation -y\n use strict model -A\n use relaxed model -C\n allow large N -l\n allow overmatches -o\n allow concept gaps -g\n term processing -z\n No Derivational Variants -d\n All Derivational Variants -D\n Ignore Word Order -i\n Allow Acronym Variants -a\n Unique Acronym Variants -u\n Prefer Multiple Concepts -Y\n Ignore Stop Phrases -K\n Compute All Mappings -b\n MM Data Version -V\n Exclude Sources -e\n Restrict to Sources -R\n Restrict to Semantic Types -J\n Exclude Semantic Types -k\n \n\n For information about the available options visit\n http://metamap.nlm.nih.gov/.\n\n Note: If an error is encountered the process will be closed\n and whatever was processed, if anything, will be\n returned along with the error found.", "scope": {"holder": "AnthonyMRios-pymetamap", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:AnthonyMRios/pymetamap:pymetamap/SubprocessBackendLite.py:SubprocessBackendLite.extract_concepts#9011", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pymetamap/SubprocessBackendLite.py", "symbol": "SubprocessBackendLite.extract_concepts"}, "source_id": "csn:AnthonyMRios/pymetamap:pymetamap/SubprocessBackendLite.py:SubprocessBackendLite.extract_concepts#9011"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/AnthonyMRios/pymetamap/blob/01f35802ad13f2eb7dff033e66e5445e8f5bc039/pymetamap/SubprocessBackendLite.py#L27-L115", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:AnthonyMRios-pymetamap:SubprocessBackendLite.extract_concepts-d754c27ab1", "question": "extract_concepts takes a list of sentences and ids(optional)\n then returns a list of Concept objects extracted via\n MetaMapLite.\n\n Supported Options:\n Restrict to Semantic Types --restrict_to_sts\n Restrict to Sources --restrict_to_sources\n\n For information about the available options visit\n http://metamap.nlm.nih.gov/.\n\n Note: If an error is encountered the process will be closed\n and whatever was processed, if anything, will be\n returned along with the error found.", "scope": {"holder": "AnthonyMRios-pymetamap", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Azure/Azure-MachineLearning-ClientLibrary-Python:azureml/__init__.py:Datasets.add_from_dataframe#7275", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "azureml/__init__.py", "symbol": "Datasets.add_from_dataframe"}, "source_id": "csn:Azure/Azure-MachineLearning-ClientLibrary-Python:azureml/__init__.py:Datasets.add_from_dataframe#7275"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Azure/Azure-MachineLearning-ClientLibrary-Python/blob/d1211b289747671898eb063013e0dc53d3c80acd/azureml/__init__.py#L465-L507", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Azure-Azure-MachineLearning-ClientLibrary-Python:Datasets.add_from_dataframe-838a58a2f2", "question": "Serialize the specified DataFrame and upload it as a new dataset.\n\n Parameters\n ----------\n dataframe : pandas.DataFrame\n Data to serialize.\n data_type_id : str\n Format to serialize to.\n Supported formats are:\n 'PlainText'\n 'GenericCSV'\n 'GenericTSV'\n 'GenericCSVNoHeader'\n 'GenericTSVNoHeader'\n See the azureml.DataTypeIds class for constants.\n name : str\n Name for the new dataset.\n description : str\n Description for the new dataset.\n\n Returns\n -------\n SourceDataset\n Dataset that was just created.\n Use open(), read_as_binary(), read_as_text() or to_dataframe() on\n the dataset object to get its contents as a stream, bytes, str or\n pandas DataFrame.", "scope": {"holder": "Azure-Azure-MachineLearning-ClientLibrary-Python", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Azure/Azure-MachineLearning-ClientLibrary-Python:azureml/http.py:_RestClient.get_datasets#7283", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "azureml/http.py", "symbol": "_RestClient.get_datasets"}, "source_id": "csn:Azure/Azure-MachineLearning-ClientLibrary-Python:azureml/http.py:_RestClient.get_datasets#7283"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Azure/Azure-MachineLearning-ClientLibrary-Python/blob/d1211b289747671898eb063013e0dc53d3c80acd/azureml/http.py#L70-L73", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Azure-Azure-MachineLearning-ClientLibrary-Python:_RestClient.get_datasets-a426b60d85", "question": "Runs HTTP GET request to retrieve the list of datasets.", "scope": {"holder": "Azure-Azure-MachineLearning-ClientLibrary-Python", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Azure/azure-sdk-for-python:azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py:AlertsOperations.get_all#2443", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py", "symbol": "AlertsOperations.get_all"}, "source_id": "csn:Azure/azure-sdk-for-python:azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py:AlertsOperations.get_all#2443"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py#L39-L210", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Azure-azure-sdk-for-python:AlertsOperations.get_all-258f141cc1", "question": "List all the existing alerts, where the results can be selective by\n passing multiple filter parameters including time range and sorted on\n specific fields. .\n\n :param target_resource: Filter by target resource( which is full ARM\n ID) Default value is select all.\n :type target_resource: str\n :param target_resource_type: Filter by target resource type. Default\n value is select all.\n :type target_resource_type: str\n :param target_resource_group: Filter by target resource group name.\n Default value is select all.\n :type target_resource_group: str\n :param monitor_service: Filter by monitor service which is the source\n of the alert instance. Default value is select all. Possible values\n include: 'Application Insights', 'ActivityLog Administrative',\n 'ActivityLog Security', 'ActivityLog Recommendation', 'ActivityLog\n Policy', 'ActivityLog Autoscale', 'Log Analytics', 'Nagios',\n 'Platform', 'SCOM', 'ServiceHealth', 'SmartDetector', 'VM Insights',\n 'Zabbix'\n :type monitor_service: str or\n ~azure.mgmt.alertsmanagement.models.MonitorService\n :param monitor_condition: Filter by monitor condition which is the\n state of the monitor(alertRule) at monitor service. Default value is\n to select all. Possible values include: 'Fired', 'Resolved'\n :type monitor_condition: str or\n ~azure.mgmt.alertsmanagement.models.MonitorCondition\n :param severity: Filter by severity. Defaut value is select all.\n Possible values include: 'Sev0', 'Sev1', 'Sev2', 'Sev3', 'Sev4'\n :type severity: str or ~azure.mgmt.alertsmanagement.models.Severity\n :param alert_state: Filter by state of the alert instance. Default\n value is to select all. Possible values include: 'New',\n 'Acknowledged', 'Closed'\n :type alert_state: str or\n ~azure.mgmt.alertsmanagement.models.AlertState\n :param alert_rule: Filter by alert rule(monitor) which fired alert\n instance. Default value is to select all.\n :type alert_rule: str\n :param smart_group_id: Filter the alerts list by the Smart Group Id.\n Default value is none.\n :type smart_group_id: str\n :param include_context: Include context which has data contextual to\n the monitor service. Default value is false'\n :type include_context: bool\n :param include_egress_config: Include egress config which would be\n used for displaying the content in portal. Default value is 'false'.\n :type include_egress_config: bool\n :param page_count: Determines number of alerts returned per page in\n response. Permissible value is between 1 to 250. When the\n \"includeContent\" filter is selected, maximum value allowed is 25.\n Default value is 25.\n :type page_count: int\n :param sort_by: Sort the query results by input field, Default value\n is 'lastModifiedDateTime'. Possible values include: 'name',\n 'severity', 'alertState', 'monitorCondition', 'targetResource',\n 'targetResourceName', 'targetResourceGroup', 'targetResourceType',\n 'startDateTime', 'lastModifiedDateTime'\n :type sort_by: str or\n ~azure.mgmt.alertsmanagement.models.AlertsSortByFields\n :param sort_order: Sort the query results order in either ascending or\n descending. Default value is 'desc' for time fields and 'asc' for\n others. Possible values include: 'asc', 'desc'\n :type sort_order: str\n :param select: This filter allows to selection of the fields(comma\n seperated) which would be part of the the essential section. This\n would allow to project only the required fields rather than getting\n entire content. Default is to fetch all the fields in the essentials\n section.\n :type select: str\n :param time_range: Filter by time range by below listed values.\n Default value is 1 day. Possible values include: '1h', '1d', '7d',\n '30d'\n :type time_range: str or ~azure.mgmt.alertsmanagement.models.TimeRange\n :param custom_time_range: Filter by custom time range in the format\n / where time is in (ISO-8601 format)'.\n Permissible values is within 30 days from query time. Either\n timeRange or customTimeRange could be used but not both. Default is\n none.\n :type custom_time_range: str\n :param dict custom_headers: headers that will be added to the request\n :param bool raw: returns the direct response alongside the\n deserialized response\n :param operation_config: :ref:`Operation configuration\n overrides`.\n :return: An iterator like instance of Alert\n :rtype:\n ~azure.mgmt.alertsmanagement.models.AlertPaged[~azure.mgmt.alertsmanagement.models.Alert]\n :raises:\n :class:`ErrorResponseException`", "scope": {"holder": "Azure-azure-sdk-for-python", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Azure/azure-sdk-for-python:azure-servicebus/azure/servicebus/control_client/servicebusservice.py:ServiceBusService.with_filter#2710", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "azure-servicebus/azure/servicebus/control_client/servicebusservice.py", "symbol": "ServiceBusService.with_filter"}, "source_id": "csn:Azure/azure-sdk-for-python:azure-servicebus/azure/servicebus/control_client/servicebusservice.py:ServiceBusService.with_filter#2710"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/control_client/servicebusservice.py#L182-L201", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Azure-azure-sdk-for-python:ServiceBusService.with_filter-8200cbb233", "question": "Returns a new service which will process requests with the specified\n filter. Filtering operations can include logging, automatic retrying,\n etc... The filter is a lambda which receives the HTTPRequest and\n another lambda. The filter can perform any pre-processing on the\n request, pass it off to the next lambda, and then perform any\n post-processing on the response.", "scope": {"holder": "Azure-azure-sdk-for-python", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:BD2KGenomics/toil-lib:src/toil_lib/abstractPipelineWrapper.py:AbstractPipelineWrapper.__get_empty_config#15688", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/toil_lib/abstractPipelineWrapper.py", "symbol": "AbstractPipelineWrapper.__get_empty_config"}, "source_id": "csn:BD2KGenomics/toil-lib:src/toil_lib/abstractPipelineWrapper.py:AbstractPipelineWrapper.__get_empty_config#15688"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/BD2KGenomics/toil-lib/blob/022a615fc3dc98fc1aaa7bfd232409962ca44fbd/src/toil_lib/abstractPipelineWrapper.py#L123-L132", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:BD2KGenomics-toil-lib:AbstractPipelineWrapper.__get_empty_config-68bffcf2f5", "question": "Returns the config file contents as a string. The config file is generated and then deleted.", "scope": {"holder": "BD2KGenomics-toil-lib", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:BD2KGenomics/toil-lib:src/toil_lib/tools/variant_manipulation.py:gatk_select_variants#15736", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/toil_lib/tools/variant_manipulation.py", "symbol": "gatk_select_variants"}, "source_id": "csn:BD2KGenomics/toil-lib:src/toil_lib/tools/variant_manipulation.py:gatk_select_variants#15736"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/BD2KGenomics/toil-lib/blob/022a615fc3dc98fc1aaa7bfd232409962ca44fbd/src/toil_lib/tools/variant_manipulation.py#L7-L44", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:BD2KGenomics-toil-lib:gatk_select_variants-e9c7ecf3de", "question": "Isolates a particular variant type from a VCF file using GATK SelectVariants\n\n :param JobFunctionWrappingJob job: passed automatically by Toil\n :param str mode: variant type (i.e. SNP or INDEL)\n :param str vcf_id: FileStoreID for input VCF file\n :param str ref_fasta: FileStoreID for reference genome fasta\n :param str ref_fai: FileStoreID for reference genome index file\n :param str ref_dict: FileStoreID for reference genome sequence dictionary file\n :return: FileStoreID for filtered VCF\n :rtype: str", "scope": {"holder": "BD2KGenomics-toil-lib", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:BlueDragonX/detach:detach.py:Detach._close_fd#15517", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "detach.py", "symbol": "Detach._close_fd"}, "source_id": "csn:BlueDragonX/detach:detach.py:Detach._close_fd#15517"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/BlueDragonX/detach/blob/e2e5a1076e19f508baf3ffb2b586a75934fbae28/detach.py#L50-L57", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:BlueDragonX-detach:Detach._close_fd-f10b509847", "question": "Close a file descriptor if it is open.", "scope": {"holder": "BlueDragonX-detach", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:BlueDragonX/detach:detach.py:Detach._close_open_fds#15518", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "detach.py", "symbol": "Detach._close_open_fds"}, "source_id": "csn:BlueDragonX/detach:detach.py:Detach._close_open_fds#15518"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/BlueDragonX/detach/blob/e2e5a1076e19f508baf3ffb2b586a75934fbae28/detach.py#L59-L64", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:BlueDragonX-detach:Detach._close_open_fds-d32fd2eb91", "question": "Close open file descriptors.", "scope": {"holder": "BlueDragonX-detach", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:CITGuru/PyInquirer:PyInquirer/color_print.py:_print_token_factory#6173", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "PyInquirer/color_print.py", "symbol": "_print_token_factory"}, "source_id": "csn:CITGuru/PyInquirer:PyInquirer/color_print.py:_print_token_factory#6173"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/CITGuru/PyInquirer/blob/10d53723b36ebc7bba311457ec4afd9747a5c777/PyInquirer/color_print.py#L10-L27", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:CITGuru-PyInquirer:_print_token_factory-163ec15cd2", "question": "Internal helper to provide color names.", "scope": {"holder": "CITGuru-PyInquirer", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:CLARIAH/iribaker:iribaker/__init__.py:to_iri#15619", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "iribaker/__init__.py", "symbol": "to_iri"}, "source_id": "csn:CLARIAH/iribaker:iribaker/__init__.py:to_iri#15619"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/CLARIAH/iribaker/blob/47d2e8e95472353769962fde7626881f53429379/iribaker/__init__.py#L17-L81", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:CLARIAH-iribaker:to_iri-573c50f2b2", "question": "Safely quotes an IRI in a way that is resilient to unicode and incorrect\n arguments (checks for RFC 3987 compliance and falls back to percent encoding)", "scope": {"holder": "CLARIAH-iribaker", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Chilipp/sphinx-nbexamples:sphinx_nbexamples/__init__.py:Gallery.process_directories#14846", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sphinx_nbexamples/__init__.py", "symbol": "Gallery.process_directories"}, "source_id": "csn:Chilipp/sphinx-nbexamples:sphinx_nbexamples/__init__.py:Gallery.process_directories#14846"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Chilipp/sphinx-nbexamples/blob/08e0319ff3c70f8a931dfa8890caf48add4d0470/sphinx_nbexamples/__init__.py#L778-L784", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Chilipp-sphinx-nbexamples:Gallery.process_directories-95c4e3c0cb", "question": "Create the rst files from the input directories in the\n :attr:`in_dir` attribute", "scope": {"holder": "Chilipp-sphinx-nbexamples", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Chilipp/sphinx-nbexamples:sphinx_nbexamples/__init__.py:NotebookProcessor.data_download#14840", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sphinx_nbexamples/__init__.py", "symbol": "NotebookProcessor.data_download"}, "source_id": "csn:Chilipp/sphinx-nbexamples:sphinx_nbexamples/__init__.py:NotebookProcessor.data_download#14840"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Chilipp/sphinx-nbexamples/blob/08e0319ff3c70f8a931dfa8890caf48add4d0470/sphinx_nbexamples/__init__.py#L486-L492", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Chilipp-sphinx-nbexamples:NotebookProcessor.data_download-8fa730d769", "question": "Create the rst string to download supplementary data", "scope": {"holder": "Chilipp-sphinx-nbexamples", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:ChrisBeaumont/soupy:soupy.py:Collection.dictzip#11946", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "soupy.py", "symbol": "Collection.dictzip"}, "source_id": "csn:ChrisBeaumont/soupy:soupy.py:Collection.dictzip#11946"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ChrisBeaumont/soupy/blob/795f2f61f711f574d5218fc8a3375d02bda1104f/soupy.py#L708-L723", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ChrisBeaumont-soupy:Collection.dictzip-4c69966839", "question": "Turn this collection into a Scalar(dict), by zipping keys and items.\n\n Parameters:\n\n keys: list or Collection of NavigableStrings\n The keys of the dictionary\n\n Examples:\n\n >>> c = Collection([Scalar(1), Scalar(2)])\n >>> c.dictzip(['a', 'b']).val() == {'a': 1, 'b': 2}\n True", "scope": {"holder": "ChrisBeaumont-soupy", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:ChrisBeaumont/soupy:soupy.py:Node.find_next_sibling#11948", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "soupy.py", "symbol": "Node.find_next_sibling"}, "source_id": "csn:ChrisBeaumont/soupy:soupy.py:Node.find_next_sibling#11948"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ChrisBeaumont/soupy/blob/795f2f61f711f574d5218fc8a3375d02bda1104f/soupy.py#L1018-L1023", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ChrisBeaumont-soupy:Node.find_next_sibling-f11143d934", "question": "Like :meth:`find`, but searches through :attr:`next_siblings`", "scope": {"holder": "ChrisBeaumont-soupy", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:CiscoDevNet/webexteamssdk:webexteamssdk/api/access_tokens.py:AccessTokensAPI.get#8285", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "webexteamssdk/api/access_tokens.py", "symbol": "AccessTokensAPI.get"}, "source_id": "csn:CiscoDevNet/webexteamssdk:webexteamssdk/api/access_tokens.py:AccessTokensAPI.get#8285"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/CiscoDevNet/webexteamssdk/blob/6fc2cc3557e080ba4b2a380664cb2a0532ae45cd/webexteamssdk/api/access_tokens.py#L104-L148", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:CiscoDevNet-webexteamssdk:AccessTokensAPI.get-267a9746b6", "question": "Exchange an Authorization Code for an Access Token.\n\n Exchange an Authorization Code for an Access Token that can be used to\n invoke the APIs.\n\n Args:\n client_id(basestring): Provided when you created your integration.\n client_secret(basestring): Provided when you created your\n integration.\n code(basestring): The Authorization Code provided by the user\n OAuth process.\n redirect_uri(basestring): The redirect URI used in the user OAuth\n process.\n\n Returns:\n AccessToken: An AccessToken object with the access token provided\n by the Webex Teams cloud.\n\n Raises:\n TypeError: If the parameter types are incorrect.\n ApiError: If the Webex Teams cloud returns an error.", "scope": {"holder": "CiscoDevNet-webexteamssdk", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:CiscoDevNet/webexteamssdk:webexteamssdk/api/team_memberships.py:TeamMembershipsAPI.delete#8230", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "webexteamssdk/api/team_memberships.py", "symbol": "TeamMembershipsAPI.delete"}, "source_id": "csn:CiscoDevNet/webexteamssdk:webexteamssdk/api/team_memberships.py:TeamMembershipsAPI.delete#8230"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/CiscoDevNet/webexteamssdk/blob/6fc2cc3557e080ba4b2a380664cb2a0532ae45cd/webexteamssdk/api/team_memberships.py#L221-L235", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:CiscoDevNet-webexteamssdk:TeamMembershipsAPI.delete-0f9de9b3ca", "question": "Delete a team membership, by ID.\n\n Args:\n membershipId(basestring): The team membership ID.\n\n Raises:\n TypeError: If the parameter types are incorrect.\n ApiError: If the Webex Teams cloud returns an error.", "scope": {"holder": "CiscoDevNet-webexteamssdk", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Clinical-Genomics/scout:scout/adapter/mongo/acmg.py:ACMGHandler.get_evaluations#11657", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "scout/adapter/mongo/acmg.py", "symbol": "ACMGHandler.get_evaluations"}, "source_id": "csn:Clinical-Genomics/scout:scout/adapter/mongo/acmg.py:ACMGHandler.get_evaluations#11657"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Clinical-Genomics/scout/blob/90a551e2e1653a319e654c2405c2866f93d0ebb9/scout/adapter/mongo/acmg.py#L89-L100", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Clinical-Genomics-scout:ACMGHandler.get_evaluations-1c00a0693a", "question": "Return all evaluations for a certain variant.\n\n Args:\n variant_obj (dict): variant dict from the database\n\n Returns:\n pymongo.cursor: database cursor", "scope": {"holder": "Clinical-Genomics-scout", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Clinical-Genomics/scout:scout/parse/matchmaker.py:genomic_features#11364", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "scout/parse/matchmaker.py", "symbol": "genomic_features"}, "source_id": "csn:Clinical-Genomics/scout:scout/parse/matchmaker.py:genomic_features#11364"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Clinical-Genomics/scout/blob/90a551e2e1653a319e654c2405c2866f93d0ebb9/scout/parse/matchmaker.py#L59-L139", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Clinical-Genomics-scout:genomic_features-3f938397ee", "question": "Extract and parse matchmaker-like genomic features from pinned variants\n of a patient\n Args:\n store(MongoAdapter) : connection to the database\n case_obj(dict): a scout case object\n sample_name(str): sample display name\n genes_only(bool): if True only gene names will be included in genomic features\n\n Returns:\n g_features(list): a list of genomic feature objects that looks like this:\n [\n {\n \"gene\": {\n \"id\": \"LIMS2\"\n },\n \"variant\": {\n \"alternateBases\": \"C\",\n \"assembly\": \"GRCh37\",\n \"end\": 128412081,\n \"referenceBases\": \"G\",\n \"referenceName\": \"2\",\n \"start\": 128412080\n },\n \"zygosity\": 1\n },\n ....\n ]", "scope": {"holder": "Clinical-Genomics-scout", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ContinuumIO/pycosat:examples/sudoku.py:solve#10437", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "examples/sudoku.py", "symbol": "solve"}, "source_id": "csn:ContinuumIO/pycosat:examples/sudoku.py:solve#10437"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ContinuumIO/pycosat/blob/b38fd85b6f4dcc18efd6027e96e5785104f53bb0/examples/sudoku.py#L64-L91", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ContinuumIO-pycosat:solve-45aaf4c893", "question": "solve a Sudoku grid inplace", "scope": {"holder": "ContinuumIO-pycosat", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ContinuumIO/pycosat:examples/sudoku.py:sudoku_clauses#10436", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "examples/sudoku.py", "symbol": "sudoku_clauses"}, "source_id": "csn:ContinuumIO/pycosat:examples/sudoku.py:sudoku_clauses#10436"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ContinuumIO/pycosat/blob/b38fd85b6f4dcc18efd6027e96e5785104f53bb0/examples/sudoku.py#L24-L61", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ContinuumIO-pycosat:sudoku_clauses-9b02fbecc9", "question": "Create the (11745) Sudoku clauses, and return them as a list.\n Note that these clauses are *independent* of the particular\n Sudoku puzzle at hand.", "scope": {"holder": "ContinuumIO-pycosat", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Crypto-toolbox/btfxwss:btfxwss/client.py:BtfxWss.authenticate#8409", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "btfxwss/client.py", "symbol": "BtfxWss.authenticate"}, "source_id": "csn:Crypto-toolbox/btfxwss:btfxwss/client.py:BtfxWss.authenticate#8409"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Crypto-toolbox/btfxwss/blob/16827fa6aacb2c0e289aa852bf61a18df6905835/btfxwss/client.py#L326-L334", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Crypto-toolbox-btfxwss:BtfxWss.authenticate-b0dd13b34c", "question": "Authenticate with the Bitfinex API.\n\n :return:", "scope": {"holder": "Crypto-toolbox-btfxwss", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Crypto-toolbox/btfxwss:btfxwss/queue_processor.py:QueueProcessor._handle_trades#8394", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "btfxwss/queue_processor.py", "symbol": "QueueProcessor._handle_trades"}, "source_id": "csn:Crypto-toolbox/btfxwss:btfxwss/queue_processor.py:QueueProcessor._handle_trades#8394"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Crypto-toolbox/btfxwss/blob/16827fa6aacb2c0e289aa852bf61a18df6905835/btfxwss/queue_processor.py#L310-L322", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Crypto-toolbox-btfxwss:QueueProcessor._handle_trades-226d7ce83a", "question": "Files trades in self._trades[chan_id].\n\n :param dtype:\n :param data:\n :param ts:\n :return:", "scope": {"holder": "Crypto-toolbox-btfxwss", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Danielhiversen/PyXiaomiGateway:xiaomi_gateway/__init__.py:XiaomiGateway.get_from_hub#5386", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "xiaomi_gateway/__init__.py", "symbol": "XiaomiGateway.get_from_hub"}, "source_id": "csn:Danielhiversen/PyXiaomiGateway:xiaomi_gateway/__init__.py:XiaomiGateway.get_from_hub#5386"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Danielhiversen/PyXiaomiGateway/blob/21b38ab972d67402f2124dba02101ddfd8d9e0b4/xiaomi_gateway/__init__.py#L379-L384", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Danielhiversen-PyXiaomiGateway:XiaomiGateway.get_from_hub-bf88a27e71", "question": "Get data from gateway", "scope": {"holder": "Danielhiversen-PyXiaomiGateway", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Danielhiversen/PyXiaomiGateway:xiaomi_gateway/__init__.py:XiaomiGateway.write_to_hub#5385", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "xiaomi_gateway/__init__.py", "symbol": "XiaomiGateway.write_to_hub"}, "source_id": "csn:Danielhiversen/PyXiaomiGateway:xiaomi_gateway/__init__.py:XiaomiGateway.write_to_hub#5385"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Danielhiversen/PyXiaomiGateway/blob/21b38ab972d67402f2124dba02101ddfd8d9e0b4/xiaomi_gateway/__init__.py#L330-L377", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Danielhiversen-PyXiaomiGateway:XiaomiGateway.write_to_hub-0749ded7c5", "question": "Send data to gateway to turn on / off device", "scope": {"holder": "Danielhiversen-PyXiaomiGateway", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Dirrot/python-cryptocoincharts-api:CryptoCoinChartsApi/CryptoCoinChartsApi.py:API._getdata#19261", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "CryptoCoinChartsApi/CryptoCoinChartsApi.py", "symbol": "API._getdata"}, "source_id": "csn:Dirrot/python-cryptocoincharts-api:CryptoCoinChartsApi/CryptoCoinChartsApi.py:API._getdata#19261"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Dirrot/python-cryptocoincharts-api/blob/8bf7a35c1032847aaea322b304014cd52853c273/CryptoCoinChartsApi/CryptoCoinChartsApi.py#L98-L117", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Dirrot-python-cryptocoincharts-api:API._getdata-0d0af356c7", "question": "Wrapper method", "scope": {"holder": "Dirrot-python-cryptocoincharts-api", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Dirrot/python-cryptocoincharts-api:CryptoCoinChartsApi/CryptoCoinChartsApi.py:API.tradingpair#19259", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "CryptoCoinChartsApi/CryptoCoinChartsApi.py", "symbol": "API.tradingpair"}, "source_id": "csn:Dirrot/python-cryptocoincharts-api:CryptoCoinChartsApi/CryptoCoinChartsApi.py:API.tradingpair#19259"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Dirrot/python-cryptocoincharts-api/blob/8bf7a35c1032847aaea322b304014cd52853c273/CryptoCoinChartsApi/CryptoCoinChartsApi.py#L44-L65", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Dirrot-python-cryptocoincharts-api:API.tradingpair-d8ea6d052c", "question": "Use this function to query price and volume data for ONE trading pair.\n A list with all coin currencies can be found by using the listcoins method.\n A example pair: currency1_currency2 = \"doge_btc\" \n Usage: http://api.cryptocoincharts.info/tradingPair/[currency1_currency2]", "scope": {"holder": "Dirrot-python-cryptocoincharts-api", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:DiscordBotList/DBL-Python-Library:dbl/client.py:Client.close#7432", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "dbl/client.py", "symbol": "Client.close"}, "source_id": "csn:DiscordBotList/DBL-Python-Library:dbl/client.py:Client.close#7432"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/DiscordBotList/DBL-Python-Library/blob/c1461ae0acc644cdeedef8fd6b5e36f76d81c1aa/dbl/client.py#L351-L359", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:DiscordBotList-DBL-Python-Library:Client.close-80f7d55540", "question": "This function is a coroutine.\n\n Closes all connections.", "scope": {"holder": "DiscordBotList-DBL-Python-Library", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:DiscordBotList/DBL-Python-Library:dbl/client.py:Client.get_widget_small#7431", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "dbl/client.py", "symbol": "Client.get_widget_small"}, "source_id": "csn:DiscordBotList/DBL-Python-Library:dbl/client.py:Client.get_widget_small#7431"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/DiscordBotList/DBL-Python-Library/blob/c1461ae0acc644cdeedef8fd6b5e36f76d81c1aa/dbl/client.py#L330-L349", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:DiscordBotList-DBL-Python-Library:Client.get_widget_small-9b8ab5ab63", "question": "This function is a coroutine.\n\n Generates the default small widget.\n\n Parameters\n ==========\n\n bot_id: int\n The bot_id of the bot you wish to make a widget for.\n\n Returns\n =======\n\n URL of the widget: str", "scope": {"holder": "DiscordBotList-DBL-Python-Library", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:EpistasisLab/scikit-mdr:mdr/continuous_mdr.py:ContinuousMDR.fit#13176", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "mdr/continuous_mdr.py", "symbol": "ContinuousMDR.fit"}, "source_id": "csn:EpistasisLab/scikit-mdr:mdr/continuous_mdr.py:ContinuousMDR.fit#13176"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/EpistasisLab/scikit-mdr/blob/768565deb10467d04a960d27e000ab38b7aa8a62/mdr/continuous_mdr.py#L57-L93", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:EpistasisLab-scikit-mdr:ContinuousMDR.fit-c13b97b5d4", "question": "Constructs the Continuous MDR feature map from the provided training data.\n\n Parameters\n ----------\n features: array-like {n_samples, n_features}\n Feature matrix\n targets: array-like {n_samples}\n List of target values for prediction\n\n Returns\n -------\n self: A copy of the fitted model", "scope": {"holder": "EpistasisLab-scikit-mdr", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:EpistasisLab/scikit-mdr:mdr/utils/utils.py:conditional_entropy#13182", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "mdr/utils/utils.py", "symbol": "conditional_entropy"}, "source_id": "csn:EpistasisLab/scikit-mdr:mdr/utils/utils.py:conditional_entropy#13182"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/EpistasisLab/scikit-mdr/blob/768565deb10467d04a960d27e000ab38b7aa8a62/mdr/utils/utils.py#L68-L86", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:EpistasisLab-scikit-mdr:conditional_entropy-63aec33569", "question": "Calculates the conditional entropy, H(X|Y), in the given base\n\n Parameters\n ----------\n X: array-like (# samples)\n An array of values for which to compute the conditional entropy\n Y: array-like (# samples)\n An array of values for which to compute the conditional entropy\n base: integer (default: 2)\n The base in which to calculate conditional entropy\n\n Returns\n ----------\n conditional_entropy: float\n The conditional entropy calculated according to the equation H(X|Y) = H(X,Y) - H(Y)", "scope": {"holder": "EpistasisLab-scikit-mdr", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Erotemic/progiter:setup.py:parse_description#12079", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "setup.py", "symbol": "parse_description"}, "source_id": "csn:Erotemic/progiter:setup.py:parse_description#12079"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Erotemic/progiter/blob/24f1ad15d79f76cccef7b5811d341ab33b72bf1e/setup.py#L71-L104", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Erotemic-progiter:parse_description-3fccbb0f21", "question": "Parse the description in the README file\n\n CommandLine:\n python -c \"import setup; print(setup.parse_description())\"", "scope": {"holder": "Erotemic-progiter", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Erotemic/xdoctest:make_rtd.py:modify_conf#12249", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "make_rtd.py", "symbol": "modify_conf"}, "source_id": "csn:Erotemic/xdoctest:make_rtd.py:modify_conf#12249"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Erotemic/xdoctest/blob/1c85209498bcf3791c919985b3d1904ec2339768/make_rtd.py#L42-L65", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Erotemic-xdoctest:modify_conf-3cdbdd2a0e", "question": "pip install redbaron", "scope": {"holder": "Erotemic-xdoctest", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:GGiecold/Density_Sampling:Density_Sampling.py:density_sampling#15575", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "Density_Sampling.py", "symbol": "density_sampling"}, "source_id": "csn:GGiecold/Density_Sampling:Density_Sampling.py:density_sampling#15575"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/GGiecold/Density_Sampling/blob/8c8e6c63a97fecf958238e12947e5e6542b64102/Density_Sampling.py#L212-L323", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:GGiecold-Density_Sampling:density_sampling-d2c268f1ca", "question": "The i-th sample point of the data-set 'data' is selected by density sampling\n with a probability given by:\n \n | 0 if outlier_density > LD[i];\n P(keep the i-th data-point) = | 1 if outlier_density <= LD[i] <= target_density;\n | target_density / LD[i] if LD[i] > target_density.\n \n Here 'LD[i]' denotes the local density of the i-th sample point of the data-set, \n whereas 'outlier_density' and 'target_density' are computed as particular percentiles\n of that distribution of local densities.\n \n Parameters\n ----------\n data : array of shape (n_samples, n_features)\n The data-set, a fraction of whose sample points will be extracted\n by density sampling.\n \n local_densities : array of shape (n_samples,), optional (default = None)\n The i-th entry of this vector corresponds to the local density of the i-th sample\n point in the order of the rows of 'data'.\n \n metric : string, optional (default = 'manhattan')\n The distance metric used to determine the nearest-neighbor to each data-point.\n The DistanceMetric class defined in scikit-learn's library lists all available\n metrics.\n \n kernel_mult : float, optional (default = 2.0)\n The kernel multiplier, which determine (in terms of the median of the distribution\n of distances among nearest neighbors) the extent of the regions centered\n around each sample point to consider for the computation of the local density\n associated to that particular sample point.\n \n outlier_percentile : float, optional (default = 0.01)\n Specify the outlier density as a percentile of the distribution of local densities.\n \n target_percentile : float, optional (default = 0.05)\n Specifiy the target density as a percentile of the distribution of local densities.\n Relevant only if 'desired_samples' is left unspecified. \n \n desired_samples : int, optional (default = None)\n The number of samples to be selected from the whole data-set such that members\n of rare populations and members of more common populations are roughly\n equally represented. To that purpose, a target density is computed that to selects about\n 'desired_samples' data-points.\n \n Returns\n -------\n samples_kept : array of shape (n_selected_samples,)\n If the 'i'-th sample point of 'data' has been selected by a given instance of\n density sampling, number 'i' is featured in the array returned by \n the present function.", "scope": {"holder": "GGiecold-Density_Sampling", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:GGiecold/Density_Sampling:Density_Sampling.py:get_local_densities#15574", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "Density_Sampling.py", "symbol": "get_local_densities"}, "source_id": "csn:GGiecold/Density_Sampling:Density_Sampling.py:get_local_densities#15574"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/GGiecold/Density_Sampling/blob/8c8e6c63a97fecf958238e12947e5e6542b64102/Density_Sampling.py#L147-L209", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:GGiecold-Density_Sampling:get_local_densities-e1acf061bb", "question": "For each sample point of the data-set 'data', estimate a local density in feature\n space by counting the number of neighboring data-points within a particular\n region centered around that sample point.\n \n Parameters\n ----------\n data : array of shape (n_samples, n_features)\n The data-set, a fraction of whose sample points will be extracted\n by density sampling.\n \n kernel_mult : float, optional (default = 2.0)\n The kernel multiplier, which determine (in terms of the median of the distribution\n of distances among nearest neighbors) the extent of the regions centered\n around each sample point to consider for the computation of the local density\n associated to that particular sample point.\n \n metric : string, optional (default = 'manhattan')\n The distance metric used to determine the nearest-neighbor to each data-point.\n The DistanceMetric class defined in scikit-learn's library lists all available\n metrics.\n \n Returns\n -------\n local_densities : array of shape (n_samples,)\n The i-th entry of this vector corresponds to the local density of the i-th sample\n point in the order of the rows of 'data'.", "scope": {"holder": "GGiecold-Density_Sampling", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Gandi/pyramid_kvs:pyramid_kvs/perlsess.py:PerlSession.connect#13744", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyramid_kvs/perlsess.py", "symbol": "PerlSession.connect"}, "source_id": "csn:Gandi/pyramid_kvs:pyramid_kvs/perlsess.py:PerlSession.connect#13744"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Gandi/pyramid_kvs/blob/36285f2e50d8181428f383f6fc1d79a34ea9ac3c/pyramid_kvs/perlsess.py#L31-L38", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Gandi-pyramid_kvs:PerlSession.connect-df42aed15c", "question": "Call that method in the pyramid configuration phase.", "scope": {"holder": "Gandi-pyramid_kvs", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:GeoffAtHome/lightwave:lightwave/lightwave.py:LWLink._send_message#19266", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "lightwave/lightwave.py", "symbol": "LWLink._send_message"}, "source_id": "csn:GeoffAtHome/lightwave:lightwave/lightwave.py:LWLink._send_message#19266"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/GeoffAtHome/lightwave/blob/2fab4ee8c9f14dd97dffd4b8cd70b217e884e581/lightwave/lightwave.py#L29-L34", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:GeoffAtHome-lightwave:LWLink._send_message-3c92ed8d66", "question": "Add message to queue and start processing the queue.", "scope": {"holder": "GeoffAtHome-lightwave", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:GeoffAtHome/lightwave:lightwave/lightwave.py:LWLink.turn_on_light#19267", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "lightwave/lightwave.py", "symbol": "LWLink.turn_on_light"}, "source_id": "csn:GeoffAtHome/lightwave:lightwave/lightwave.py:LWLink.turn_on_light#19267"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/GeoffAtHome/lightwave/blob/2fab4ee8c9f14dd97dffd4b8cd70b217e884e581/lightwave/lightwave.py#L46-L49", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:GeoffAtHome-lightwave:LWLink.turn_on_light-eaf8e4ffc3", "question": "Create the message to turn light on.", "scope": {"holder": "GeoffAtHome-lightwave", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:GreatFruitOmsk/tailhead:tailhead/__init__.py:Tailer.follow#14990", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "tailhead/__init__.py", "symbol": "Tailer.follow"}, "source_id": "csn:GreatFruitOmsk/tailhead:tailhead/__init__.py:Tailer.follow#14990"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/GreatFruitOmsk/tailhead/blob/a3b1324a39935f8ffcfda59328a9a458672889d9/tailhead/__init__.py#L249-L284", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:GreatFruitOmsk-tailhead:Tailer.follow-ffd220f10c", "question": "Iterator generator that returns lines as data is added to the file.\n\n None will be yielded if no new line is available.\n Caller may either wait and re-try or end iteration.", "scope": {"holder": "GreatFruitOmsk-tailhead", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:GreatFruitOmsk/tailhead:tailhead/__init__.py:Tailer.seek_previous_line#14987", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "tailhead/__init__.py", "symbol": "Tailer.seek_previous_line"}, "source_id": "csn:GreatFruitOmsk/tailhead:tailhead/__init__.py:Tailer.seek_previous_line#14987"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/GreatFruitOmsk/tailhead/blob/a3b1324a39935f8ffcfda59328a9a458672889d9/tailhead/__init__.py#L143-L196", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:GreatFruitOmsk-tailhead:Tailer.seek_previous_line-ed714d7b5b", "question": "Seek previous line relative to the current file position.\n\n :return: Position of the line or -1 if previous line was not found.", "scope": {"holder": "GreatFruitOmsk-tailhead", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:HaaLeo/pylint-file-header:pylintfileheader/file_header_checker.py:FileHeaderChecker.process_module#19460", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pylintfileheader/file_header_checker.py", "symbol": "FileHeaderChecker.process_module"}, "source_id": "csn:HaaLeo/pylint-file-header:pylintfileheader/file_header_checker.py:FileHeaderChecker.process_module#19460"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/HaaLeo/pylint-file-header/blob/245421616fdb6b9aca234fd58c503f9a937749f6/pylintfileheader/file_header_checker.py#L41-L61", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:HaaLeo-pylint-file-header:FileHeaderChecker.process_module-d650fe2e6e", "question": "Process the astroid node stream.", "scope": {"holder": "HaaLeo-pylint-file-header", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:HumanBrainProject/hbp-service-client:hbp_service_client/storage_service/api.py:ApiClient._prep_params#15578", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "hbp_service_client/storage_service/api.py", "symbol": "ApiClient._prep_params"}, "source_id": "csn:HumanBrainProject/hbp-service-client:hbp_service_client/storage_service/api.py:ApiClient._prep_params#15578"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/HumanBrainProject/hbp-service-client/blob/b338fb41a7f0e7b9d654ff28fcf13a56d03bff4d/hbp_service_client/storage_service/api.py#L85-L88", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:HumanBrainProject-hbp-service-client:ApiClient._prep_params-4eed5e74df", "question": "Remove empty (None) valued keywords and self from function parameters", "scope": {"holder": "HumanBrainProject-hbp-service-client", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:HumanBrainProject/hbp-service-client:hbp_service_client/storage_service/api.py:ApiClient.list_folder_content#15591", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "hbp_service_client/storage_service/api.py", "symbol": "ApiClient.list_folder_content"}, "source_id": "csn:HumanBrainProject/hbp-service-client:hbp_service_client/storage_service/api.py:ApiClient.list_folder_content#15591"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/HumanBrainProject/hbp-service-client/blob/b338fb41a7f0e7b9d654ff28fcf13a56d03bff4d/hbp_service_client/storage_service/api.py#L659-L715", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:HumanBrainProject-hbp-service-client:ApiClient.list_folder_content-6ca9c1b69a", "question": "List files and folders (not recursively) contained in the folder.\n\n This function does not retrieve all results, pages have\n to be manually retrieved by the caller.\n\n Args:\n folder (str): The UUID of the requested folder.\n name (str): Optional filter on entity name.\n entity_type (str): Optional filter on entity type.\n Admitted values: ['file', 'folder'].\n content_type (str): Optional filter on entity content type (only\n files are returned).\n page_size (int): Number of elements per page.\n page (int): Number of the page.\n ordering (str): Indicate on which fields to sort the result. Prepend\n '-' to invert order. Multiple values can be provided.\n Ordering is supported on: ['name', 'created_on', 'modified_on'].\n Example: 'ordering=name,created_on'\n\n Returns:\n A dictionary of the results::\n\n {\n u'count': 1,\n u'next': None,\n u'previous': None,\n u'results': [{u'content_type': u'plain/text',\n u'created_by': u'303447',\n u'created_on': u'2017-03-13T10:17:01.688472Z',\n u'description': u'',\n u'entity_type': u'file',\n u'modified_by': u'303447',\n u'modified_on': u'2017-03-13T10:17:01.688632Z',\n u'name': u'file_1',\n u'parent': u'eac11058-4ae0-4ea9-ada8-d3ea23887509',\n u'uuid': u'0e17eaac-cb00-4336-b9d7-657026844281'}]\n }\n\n Raises:\n StorageArgumentException: Invalid arguments\n StorageForbiddenException: Server response code 403\n StorageNotFoundException: Server response code 404\n StorageException: other 400-600 error codes", "scope": {"holder": "HumanBrainProject-hbp-service-client", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:HydraChain/hydrachain:hydrachain/consensus/base.py:BlockProposal.validate_votes#16670", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "hydrachain/consensus/base.py", "symbol": "BlockProposal.validate_votes"}, "source_id": "csn:HydraChain/hydrachain:hydrachain/consensus/base.py:BlockProposal.validate_votes#16670"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/HydraChain/hydrachain/blob/6c0919b0575dc8aa481f3a8c703e1a7f0575ecc3/hydrachain/consensus/base.py#L497-L511", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:HydraChain-hydrachain:BlockProposal.validate_votes-ab82735b90", "question": "set of validators may change between heights", "scope": {"holder": "HydraChain-hydrachain", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:HydraChain/hydrachain:hydrachain/consensus/manager.py:RoundManager.get_timeout#16679", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "hydrachain/consensus/manager.py", "symbol": "RoundManager.get_timeout"}, "source_id": "csn:HydraChain/hydrachain:hydrachain/consensus/manager.py:RoundManager.get_timeout#16679"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/HydraChain/hydrachain/blob/6c0919b0575dc8aa481f3a8c703e1a7f0575ecc3/hydrachain/consensus/manager.py#L572-L581", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:HydraChain-hydrachain:RoundManager.get_timeout-8b467feaab", "question": "setup a timeout for waiting for a proposal", "scope": {"holder": "HydraChain-hydrachain", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:IEMLdev/ieml:ieml/dictionary/version.py:DictionaryVersion.load#10376", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "ieml/dictionary/version.py", "symbol": "DictionaryVersion.load"}, "source_id": "csn:IEMLdev/ieml:ieml/dictionary/version.py:DictionaryVersion.load#10376"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/IEMLdev/ieml/blob/4c842ba7e6165e2f1b4a4e2e98759f9f33af5f25/ieml/dictionary/version.py#L145-L164", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:IEMLdev-ieml:DictionaryVersion.load-45e75bb446", "question": "Download the dictionary version and cache the retrieved file.\n :return: None", "scope": {"holder": "IEMLdev-ieml", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:IEMLdev/ieml:scripts/dictionary_tools.py:_add_mode_t#10380", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "scripts/dictionary_tools.py", "symbol": "_add_mode_t"}, "source_id": "csn:IEMLdev/ieml:scripts/dictionary_tools.py:_add_mode_t#10380"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/IEMLdev/ieml/blob/4c842ba7e6165e2f1b4a4e2e98759f9f33af5f25/scripts/dictionary_tools.py#L106-L112", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:IEMLdev-ieml:_add_mode_t-ebbf7708da", "question": "O:O:.O:O:.- => O:O:.O:O:.t.-", "scope": {"holder": "IEMLdev-ieml", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:IdentityPython/fedoidcmsg:src/fedoidcmsg/entity.py:FederationEntity.pick_signed_metadata_statements#19665", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/fedoidcmsg/entity.py", "symbol": "FederationEntity.pick_signed_metadata_statements"}, "source_id": "csn:IdentityPython/fedoidcmsg:src/fedoidcmsg/entity.py:FederationEntity.pick_signed_metadata_statements#19665"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/IdentityPython/fedoidcmsg/blob/d30107be02521fa6cdfe285da3b6b0cdd153c8cc/src/fedoidcmsg/entity.py#L91-L105", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:IdentityPython-fedoidcmsg:FederationEntity.pick_signed_metadata_statements-6c7c2b59b5", "question": "Pick signed metadata statements based on ISS pattern matching\n \n :param fo: Federation operators ID\n :param context: In connect with which operation (one of the values in \n :py:data:`fedoidc.CONTEXTS`). \n :return: list of tuples (FO ID, signed metadata statement)", "scope": {"holder": "IdentityPython-fedoidcmsg", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:IdentityPython/fedoidcmsg:src/fedoidcmsg/operator.py:LessOrEqual.eval#19547", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/fedoidcmsg/operator.py", "symbol": "LessOrEqual.eval"}, "source_id": "csn:IdentityPython/fedoidcmsg:src/fedoidcmsg/operator.py:LessOrEqual.eval#19547"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/IdentityPython/fedoidcmsg/blob/d30107be02521fa6cdfe285da3b6b0cdd153c8cc/src/fedoidcmsg/operator.py#L88-L117", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:IdentityPython-fedoidcmsg:LessOrEqual.eval-10eb3f18aa", "question": "Apply the less or equal algorithm on the ordered list of metadata\n statements\n \n :param orig: Start values\n :return:", "scope": {"holder": "IdentityPython-fedoidcmsg", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:JIC-CSB/jicbioimage.illustrate:jicbioimage/illustrate/__init__.py:AnnotatedImage.from_grayscale#22167", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "jicbioimage/illustrate/__init__.py", "symbol": "AnnotatedImage.from_grayscale"}, "source_id": "csn:JIC-CSB/jicbioimage.illustrate:jicbioimage/illustrate/__init__.py:AnnotatedImage.from_grayscale#22167"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/JIC-CSB/jicbioimage.illustrate/blob/d88ddf81ee3eb3949677e2ef746af8169ce88092/jicbioimage/illustrate/__init__.py#L159-L171", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:JIC-CSB-jicbioimage.illustrate:AnnotatedImage.from_grayscale-b20bbf803e", "question": "Return a canvas from a grayscale image.\n\n :param im: single channel image\n :channels_on: channels to populate with input image\n :returns: :class:`jicbioimage.illustrate.Canvas`", "scope": {"holder": "JIC-CSB-jicbioimage.illustrate", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:JIC-CSB/jicbioimage.illustrate:jicbioimage/illustrate/__init__.py:Canvas.draw_cross#22164", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "jicbioimage/illustrate/__init__.py", "symbol": "Canvas.draw_cross"}, "source_id": "csn:JIC-CSB/jicbioimage.illustrate:jicbioimage/illustrate/__init__.py:Canvas.draw_cross#22164"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/JIC-CSB/jicbioimage.illustrate/blob/d88ddf81ee3eb3949677e2ef746af8169ce88092/jicbioimage/illustrate/__init__.py#L65-L86", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:JIC-CSB-jicbioimage.illustrate:Canvas.draw_cross-7a817e634e", "question": "Draw a cross on the canvas.\n\n :param position: (row, col) tuple\n :param color: RGB tuple\n :param radius: radius of the cross (int)", "scope": {"holder": "JIC-CSB-jicbioimage.illustrate", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Jasily/jasily-python:jasily/collection/funcs.py:CallableList.insert_func#21432", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "jasily/collection/funcs.py", "symbol": "CallableList.insert_func"}, "source_id": "csn:Jasily/jasily-python:jasily/collection/funcs.py:CallableList.insert_func#21432"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Jasily/jasily-python/blob/1c821a120ebbbbc3c5761f5f1e8a73588059242a/jasily/collection/funcs.py#L48-L53", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Jasily-jasily-python:CallableList.insert_func-35c52d094b", "question": "insert func with given arguments and keywords.", "scope": {"holder": "Jasily-jasily-python", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Jasily/jasily-python:jasily/utils/__init__.py:jrepr#21314", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "jasily/utils/__init__.py", "symbol": "jrepr"}, "source_id": "csn:Jasily/jasily-python:jasily/utils/__init__.py:jrepr#21314"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Jasily/jasily-python/blob/1c821a120ebbbbc3c5761f5f1e8a73588059242a/jasily/utils/__init__.py#L11-L18", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Jasily-jasily-python:jrepr-605526a928", "question": "customized `repr()`.", "scope": {"holder": "Jasily-jasily-python", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Jaymon/pyt:pyt/path.py:PathFinder._find_basename#16119", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyt/path.py", "symbol": "PathFinder._find_basename"}, "source_id": "csn:Jaymon/pyt:pyt/path.py:PathFinder._find_basename#16119"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Jaymon/pyt/blob/801581fd0ae238158134bde1c937fa199fa626b2/pyt/path.py#L286-L361", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Jaymon-pyt:PathFinder._find_basename-fea83cb441", "question": "check if name combined with test prefixes or postfixes is found anywhere\n in the list of basenames\n\n :param name: string, the name you're searching for\n :param basenames: list, a list of basenames to check\n :param is_prefix: bool, True if this is a prefix search, which means it will\n also check if name matches any of the basenames without the prefixes or\n postfixes, if it is False then the prefixes or postfixes must be present\n (ie, the module we're looking for is the actual test module, not the parent\n modules it's contained in)\n :returns: string, the basename if it is found", "scope": {"holder": "Jaymon-pyt", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Jaymon/pyt:pyt/path.py:PathFinder.paths#16123", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyt/path.py", "symbol": "PathFinder.paths"}, "source_id": "csn:Jaymon/pyt:pyt/path.py:PathFinder.paths#16123"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Jaymon/pyt/blob/801581fd0ae238158134bde1c937fa199fa626b2/pyt/path.py#L490-L559", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Jaymon-pyt:PathFinder.paths-d44bab332e", "question": "given a basedir, yield all test modules paths recursively found in\n basedir that are test modules\n\n return -- generator", "scope": {"holder": "Jaymon-pyt", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Jaza/s3-saver:s3_saver.py:S3Saver._delete_local#18501", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "s3_saver.py", "symbol": "S3Saver._delete_local"}, "source_id": "csn:Jaza/s3-saver:s3_saver.py:S3Saver._delete_local#18501"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Jaza/s3-saver/blob/81dc4447d76c2fc0b0238fb96fa70e879612e355/s3_saver.py#L53-L57", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Jaza-s3-saver:S3Saver._delete_local-e76c96ca33", "question": "Deletes the specified file from the local filesystem.", "scope": {"holder": "Jaza-s3-saver", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Jaza/s3-saver:s3_saver.py:S3Saver.delete#18503", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "s3_saver.py", "symbol": "S3Saver.delete"}, "source_id": "csn:Jaza/s3-saver:s3_saver.py:S3Saver.delete#18503"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Jaza/s3-saver/blob/81dc4447d76c2fc0b0238fb96fa70e879612e355/s3_saver.py#L77-L86", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Jaza-s3-saver:S3Saver.delete-bf177bed80", "question": "Deletes the specified file, either locally or from S3, depending on the file's storage type.", "scope": {"holder": "Jaza-s3-saver", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:JonathanRaiman/ciseau:ciseau/sentence_tokenizer.py:detect_sentence_boundaries#14592", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "ciseau/sentence_tokenizer.py", "symbol": "detect_sentence_boundaries"}, "source_id": "csn:JonathanRaiman/ciseau:ciseau/sentence_tokenizer.py:detect_sentence_boundaries#14592"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/JonathanRaiman/ciseau/blob/f72d1c82d85eeb3d3ac9fac17690041725402175/ciseau/sentence_tokenizer.py#L15-L96", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:JonathanRaiman-ciseau:detect_sentence_boundaries-1451a4cd9e", "question": "Subdivide an input list of strings (tokens)\n into multiple lists according to detected\n sentence boundaries.\n\n ```\n detect_sentence_boundaries(\n [\"Cat \", \"sat \", \"mat\", \". \", \"Cat \", \"'s \", \"named \", \"Cool\", \".\"]\n )\n #=> [\n [\"Cat \", \"sat \", \"mat\", \". \"],\n [\"Cat \", \"'s \", \"named \", \"Cool\", \".\"]\n ]\n ```\n\n Arguments:\n ----------\n\n tokens : list\n\n Returns:\n --------\n list> : original list subdivided into multiple\n lists according to (detected) sentence boundaries.", "scope": {"holder": "JonathanRaiman-ciseau", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:JonathanRaiman/ciseau:ciseau/word_tokenizer.py:split_with_locations#14597", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "ciseau/word_tokenizer.py", "symbol": "split_with_locations"}, "source_id": "csn:JonathanRaiman/ciseau:ciseau/word_tokenizer.py:split_with_locations#14597"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/JonathanRaiman/ciseau/blob/f72d1c82d85eeb3d3ac9fac17690041725402175/ciseau/word_tokenizer.py#L112-L138", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:JonathanRaiman-ciseau:split_with_locations-6550dbdf39", "question": "Use an integer list to split the string\n contained in `text`.\n\n Arguments:\n ----------\n text : str, same length as locations.\n locations : list, contains values\n 'SHOULD_SPLIT', 'UNDECIDED', and\n 'SHOULD_NOT_SPLIT'. Will create\n strings between each 'SHOULD_SPLIT'\n locations.\n Returns:\n --------\n Generator : the substrings of text\n corresponding to the slices given\n in locations.", "scope": {"holder": "JonathanRaiman-ciseau", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:JukeboxPipeline/jukedj:src/jukedj/models.py:Project.path#19618", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/jukedj/models.py", "symbol": "Project.path"}, "source_id": "csn:JukeboxPipeline/jukedj:src/jukedj/models.py:Project.path#19618"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/JukeboxPipeline/jukedj/blob/d4159961c819c26792a278981ee68106ee15f3f3/src/jukedj/models.py#L88-L98", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:JukeboxPipeline-jukedj:Project.path-1e64360368", "question": "Set path\n\n :param value: The value for path\n :type value: str\n :raises: None", "scope": {"holder": "JukeboxPipeline-jukedj", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:JukeboxPipeline/jukedj:src/jukedj/models.py:add_default_deps#19610", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/jukedj/models.py", "symbol": "add_default_deps"}, "source_id": "csn:JukeboxPipeline/jukedj:src/jukedj/models.py:add_default_deps#19610"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/JukeboxPipeline/jukedj/blob/d4159961c819c26792a278981ee68106ee15f3f3/src/jukedj/models.py#L366-L380", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:JukeboxPipeline-jukedj:add_default_deps-27868f6de1", "question": "Add or create the default departments for the given project\n\n :param project: the project that needs default departments\n :type project: :class:`muke.models.Project`\n :returns: None\n :rtype: None\n :raises: None", "scope": {"holder": "JukeboxPipeline-jukedj", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Julian/Ivoire:ivoire/result.py:DotsFormatter.result_summary#15234", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "ivoire/result.py", "symbol": "DotsFormatter.result_summary"}, "source_id": "csn:Julian/Ivoire:ivoire/result.py:DotsFormatter.result_summary#15234"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Julian/Ivoire/blob/5b8218cffa409ed733cf850a6fde16fafb8fc2af/ivoire/result.py#L206-L214", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Julian-Ivoire:DotsFormatter.result_summary-f060c3d93b", "question": "Return a summary of the results.", "scope": {"holder": "Julian-Ivoire", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Julian/Ivoire:ivoire/transform.py:ExampleTransformer.visit_With#15239", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "ivoire/transform.py", "symbol": "ExampleTransformer.visit_With"}, "source_id": "csn:Julian/Ivoire:ivoire/transform.py:ExampleTransformer.visit_With#15239"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Julian/Ivoire/blob/5b8218cffa409ed733cf850a6fde16fafb8fc2af/ivoire/transform.py#L32-L53", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Julian-Ivoire:ExampleTransformer.visit_With-d31c6a9fe3", "question": "with describe(thing) as it:\n ...\n\n |\n v\n\n class TestThing(TestCase):\n ...", "scope": {"holder": "Julian-Ivoire", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Julian/Virtue:virtue/cli.py:main#18325", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "virtue/cli.py", "symbol": "main"}, "source_id": "csn:Julian/Virtue:virtue/cli.py:main#18325"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Julian/Virtue/blob/d08be37d759c38c94a160bc13fe8f51bb2aeeedd/virtue/cli.py#L61-L70", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Julian-Virtue:main-74acba3b52", "question": "virtue discovers and runs tests found in the given objects.\n\n Provide it with one or more tests (packages, modules or objects) to run.", "scope": {"holder": "Julian-Virtue", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Julian/Virtue:virtue/locators.py:prefixed_by#18305", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "virtue/locators.py", "symbol": "prefixed_by"}, "source_id": "csn:Julian/Virtue:virtue/locators.py:prefixed_by#18305"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Julian/Virtue/blob/d08be37d759c38c94a160bc13fe8f51bb2aeeedd/virtue/locators.py#L11-L25", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Julian-Virtue:prefixed_by-f5ba260646", "question": "Make a callable returning True for names starting with the given prefix.\n\n The returned callable takes two arguments, the attribute or name of\n the object, and possibly its corresponding value (which is ignored),\n as suitable for use with :meth:`ObjectLocator.is_test_module` and\n :meth:`ObjectLocator.is_test_method`\\ .", "scope": {"holder": "Julian-Virtue", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Kroisse/FormEncode-Jinja2:formencode_jinja2/formfill.py:default_formatter#19919", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "formencode_jinja2/formfill.py", "symbol": "default_formatter"}, "source_id": "csn:Kroisse/FormEncode-Jinja2:formencode_jinja2/formfill.py:default_formatter#19919"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Kroisse/FormEncode-Jinja2/blob/5e8c97ec282bd85aa39f9ff83cf31fd27ed7b594/formencode_jinja2/formfill.py#L114-L117", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Kroisse-FormEncode-Jinja2:default_formatter-1cc91aa292", "question": "Escape the error, and wrap it in a span with class ``error-message``", "scope": {"holder": "Kroisse-FormEncode-Jinja2", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:L3viathan/sql-mojo-parser:sql_mojo_parser/__init__.py:p_colspec#20164", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sql_mojo_parser/__init__.py", "symbol": "p_colspec"}, "source_id": "csn:L3viathan/sql-mojo-parser:sql_mojo_parser/__init__.py:p_colspec#20164"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/L3viathan/sql-mojo-parser/blob/fc460c42f3fbcc21c6fc08c0aede8e2a5db637f3/sql_mojo_parser/__init__.py#L103-L125", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:L3viathan-sql-mojo-parser:p_colspec-edf7d0d08c", "question": "colspec : STAR\n | NAME\n | function\n | NAME COMMA colspec\n | function COMMA colspec", "scope": {"holder": "L3viathan-sql-mojo-parser", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:L3viathan/sql-mojo-parser:sql_mojo_parser/__init__.py:t_NAME#20161", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sql_mojo_parser/__init__.py", "symbol": "t_NAME"}, "source_id": "csn:L3viathan/sql-mojo-parser:sql_mojo_parser/__init__.py:t_NAME#20161"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/L3viathan/sql-mojo-parser/blob/fc460c42f3fbcc21c6fc08c0aede8e2a5db637f3/sql_mojo_parser/__init__.py#L19-L26", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:L3viathan-sql-mojo-parser:t_NAME-43e8b2b86a", "question": "r'[A-Za-z_][A-Za-z0-9_]*", "scope": {"holder": "L3viathan-sql-mojo-parser", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:LLNL/scraper:scraper/github/queryManager.py:DataManager.fileLoad#10327", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "scraper/github/queryManager.py", "symbol": "DataManager.fileLoad"}, "source_id": "csn:LLNL/scraper:scraper/github/queryManager.py:DataManager.fileLoad#10327"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LLNL/scraper/blob/881a316e4c04dfa5a9cf491b7c7f9f997a7c56ea/scraper/github/queryManager.py#L454-L478", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LLNL-scraper:DataManager.fileLoad-a7429ae0c1", "question": "Load a JSON data file into the internal JSON data dictionary.\n\n Current internal data will be overwritten.\n If no file path is provided, the stored data file path will be used.\n\n Args:\n filePath (Optional[str]): A relative or absolute path to a\n '.json' file. Defaults to None.\n updatePath (Optional[bool]): Specifies whether or not to update\n the stored data file path. Defaults to True.", "scope": {"holder": "LLNL-scraper", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LLNL/scraper:scripts/get_users_emails.py:GitHub_Users_Emails.write_to_file#10313", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "scripts/get_users_emails.py", "symbol": "GitHub_Users_Emails.write_to_file"}, "source_id": "csn:LLNL/scraper:scripts/get_users_emails.py:GitHub_Users_Emails.write_to_file#10313"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LLNL/scraper/blob/881a316e4c04dfa5a9cf491b7c7f9f997a7c56ea/scripts/get_users_emails.py#L104-L114", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LLNL-scraper:GitHub_Users_Emails.write_to_file-fc2d658a5c", "question": "Writes the user emails to file.", "scope": {"holder": "LLNL-scraper", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LionelAuroux/pyrser:pyrser/parsing/base.py:BasicParser.begin_tag#18525", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyrser/parsing/base.py", "symbol": "BasicParser.begin_tag"}, "source_id": "csn:LionelAuroux/pyrser:pyrser/parsing/base.py:BasicParser.begin_tag#18525"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LionelAuroux/pyrser/blob/f153a97ef2b6bf915a1ed468c0252a9a59b754d5/pyrser/parsing/base.py#L151-L155", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LionelAuroux-pyrser:BasicParser.begin_tag-e8bef76bd6", "question": "Save the current index under the given name.", "scope": {"holder": "LionelAuroux-pyrser", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LionelAuroux/pyrser:pyrser/type_system/scope.py:Scope.last#18473", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyrser/type_system/scope.py", "symbol": "Scope.last"}, "source_id": "csn:LionelAuroux/pyrser:pyrser/type_system/scope.py:Scope.last#18473"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LionelAuroux/pyrser/blob/f153a97ef2b6bf915a1ed468c0252a9a59b754d5/pyrser/type_system/scope.py#L338-L341", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LionelAuroux-pyrser:Scope.last-e63eb9ae74", "question": "Retrieve the last Signature ordered by mangling descendant", "scope": {"holder": "LionelAuroux-pyrser", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LordSputnik/mutagen:mutagen/apev2.py:APEValue#17388", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "mutagen/apev2.py", "symbol": "APEValue"}, "source_id": "csn:LordSputnik/mutagen:mutagen/apev2.py:APEValue#17388"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LordSputnik/mutagen/blob/38e62c8dc35c72b16554f5dbe7c0fde91acc3411/mutagen/apev2.py#L460-L482", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LordSputnik-mutagen:APEValue-c8b60189de", "question": "APEv2 tag value factory.\n\n Use this if you need to specify the value's type manually. Binary\n and text data are automatically detected by APEv2.__setitem__.", "scope": {"holder": "LordSputnik-mutagen", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LordSputnik/mutagen:mutagen/mp4.py:MP4Tags.__update_parents#17377", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "mutagen/mp4.py", "symbol": "MP4Tags.__update_parents"}, "source_id": "csn:LordSputnik/mutagen:mutagen/mp4.py:MP4Tags.__update_parents#17377"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LordSputnik/mutagen/blob/38e62c8dc35c72b16554f5dbe7c0fde91acc3411/mutagen/mp4.py#L447-L459", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LordSputnik-mutagen:MP4Tags.__update_parents-020231e413", "question": "Update all parent atoms with the new size.", "scope": {"holder": "LordSputnik-mutagen", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Loudr/asana-hub:asana_hub/action.py:Action.add_arguments#15127", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "asana_hub/action.py", "symbol": "Action.add_arguments"}, "source_id": "csn:Loudr/asana-hub:asana_hub/action.py:Action.add_arguments#15127"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Loudr/asana-hub/blob/af996ce890ed23d8ede5bf68dcd318e3438829cb/asana_hub/action.py#L27-L62", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Loudr-asana-hub:Action.add_arguments-ad6e162612", "question": "Add arguments to the parser for collection in app.args.\n\n Args:\n parser:\n `argparse.ArgumentParser`. Parser.\n Arguments added here are server on\n self.args.", "scope": {"holder": "Loudr-asana-hub", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Loudr/asana-hub:asana_hub/tool.py:ToolApp.get_saved_task_data#15140", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "asana_hub/tool.py", "symbol": "ToolApp.get_saved_task_data"}, "source_id": "csn:Loudr/asana-hub:asana_hub/tool.py:ToolApp.get_saved_task_data#15140"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Loudr/asana-hub/blob/af996ce890ed23d8ede5bf68dcd318e3438829cb/asana_hub/tool.py#L262-L282", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Loudr-asana-hub:ToolApp.get_saved_task_data-7ea18ce669", "question": "Returns task data from local data.\n\n Args:\n task:\n `int`. Asana task number.", "scope": {"holder": "Loudr-asana-hub", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LudovicRousseau/PyKCS11:PyKCS11/__init__.py:CK_OBJECT_HANDLE.to_dict#11133", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "PyKCS11/__init__.py", "symbol": "CK_OBJECT_HANDLE.to_dict"}, "source_id": "csn:LudovicRousseau/PyKCS11:PyKCS11/__init__.py:CK_OBJECT_HANDLE.to_dict#11133"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LudovicRousseau/PyKCS11/blob/76ccd8741af2ea193aaf1ca29dfedfa412c134fe/PyKCS11/__init__.py#L129-L155", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LudovicRousseau-PyKCS11:CK_OBJECT_HANDLE.to_dict-c534018c2a", "question": "convert the fields of the object into a dictionnary", "scope": {"holder": "LudovicRousseau-PyKCS11", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LudovicRousseau/PyKCS11:PyKCS11/__init__.py:Session.digestSession#11158", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "PyKCS11/__init__.py", "symbol": "Session.digestSession"}, "source_id": "csn:LudovicRousseau/PyKCS11:PyKCS11/__init__.py:Session.digestSession#11158"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LudovicRousseau/PyKCS11/blob/76ccd8741af2ea193aaf1ca29dfedfa412c134fe/PyKCS11/__init__.py#L975-L985", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LudovicRousseau-PyKCS11:Session.digestSession-cb30c32aba", "question": "C_DigestInit/C_DigestUpdate/C_DigestKey/C_DigestFinal\n\n :param mecha: the digesting mechanism to be used\n (use `MechanismSHA1` for `CKM_SHA_1`)\n :type mecha: :class:`Mechanism`\n :return: A :class:`DigestSession` object\n :rtype: DigestSession", "scope": {"holder": "LudovicRousseau-PyKCS11", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LuminosoInsight/luminoso-api-client-python:luminoso_api/v4_client.py:LuminosoClient._get_default_account#9049", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "luminoso_api/v4_client.py", "symbol": "LuminosoClient._get_default_account"}, "source_id": "csn:LuminosoInsight/luminoso-api-client-python:luminoso_api/v4_client.py:LuminosoClient._get_default_account#9049"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LuminosoInsight/luminoso-api-client-python/blob/3bedf2a454aee39214c11fbf556ead3eecc27881/luminoso_api/v4_client.py#L389-L403", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LuminosoInsight-luminoso-api-client-python:LuminosoClient._get_default_account-5fbbe5b72a", "question": "Get the ID of an account you can use to access projects.", "scope": {"holder": "LuminosoInsight-luminoso-api-client-python", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:LuminosoInsight/luminoso-api-client-python:luminoso_api/v5_cli.py:_print_csv#9054", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "luminoso_api/v5_cli.py", "symbol": "_print_csv"}, "source_id": "csn:LuminosoInsight/luminoso-api-client-python:luminoso_api/v5_cli.py:_print_csv#9054"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/LuminosoInsight/luminoso-api-client-python/blob/3bedf2a454aee39214c11fbf556ead3eecc27881/luminoso_api/v5_cli.py#L43-L51", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:LuminosoInsight-luminoso-api-client-python:_print_csv-6efed6e092", "question": "Print a JSON list of JSON objects in CSV format.", "scope": {"holder": "LuminosoInsight-luminoso-api-client-python", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ManageIQ/manageiq-api-client-python:src/manageiq_client/api.py:Action._get_entity_from_href#11874", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/manageiq_client/api.py", "symbol": "Action._get_entity_from_href"}, "source_id": "csn:ManageIQ/manageiq-api-client-python:src/manageiq_client/api.py:Action._get_entity_from_href#11874"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ManageIQ/manageiq-api-client-python/blob/e0c8884929e45766c2835bc7dcf4e78b0794248f/src/manageiq_client/api.py#L703-L724", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ManageIQ-manageiq-api-client-python:Action._get_entity_from_href-cffa72314a", "question": "Returns entity in correct collection.\n\n If the \"href\" value in result doesn't match the current collection,\n try to find the collection that the \"href\" refers to.", "scope": {"holder": "ManageIQ-manageiq-api-client-python", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ManageIQ/manageiq-api-client-python:src/manageiq_client/api.py:Collection.raw_filter#11872", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/manageiq_client/api.py", "symbol": "Collection.raw_filter"}, "source_id": "csn:ManageIQ/manageiq-api-client-python:src/manageiq_client/api.py:Collection.raw_filter#11872"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ManageIQ/manageiq-api-client-python/blob/e0c8884929e45766c2835bc7dcf4e78b0794248f/src/manageiq_client/api.py#L339-L349", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ManageIQ-manageiq-api-client-python:Collection.raw_filter-429c7959c2", "question": "Sends all filters to the API.\n\n No fancy, just a wrapper. Any advanced functionality shall be implemented as another method.\n\n Args:\n filters: List of filters (strings)\n\n Returns: :py:class:`SearchResult`", "scope": {"holder": "ManageIQ-manageiq-api-client-python", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:MartinHjelmare/leicacam:leicacam/async_cam.py:AsyncCAM.close#13447", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "leicacam/async_cam.py", "symbol": "AsyncCAM.close"}, "source_id": "csn:MartinHjelmare/leicacam:leicacam/async_cam.py:AsyncCAM.close#13447"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MartinHjelmare/leicacam/blob/1df37bccd34884737d3b5e169fae71dd2f21f1e2/leicacam/async_cam.py#L97-L101", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MartinHjelmare-leicacam:AsyncCAM.close-572f03ab21", "question": "Close stream.", "scope": {"holder": "MartinHjelmare-leicacam", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:MartinHjelmare/leicacam:leicacam/cam.py:CAM.receive#13482", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "leicacam/cam.py", "symbol": "CAM.receive"}, "source_id": "csn:MartinHjelmare/leicacam:leicacam/cam.py:CAM.receive#13482"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MartinHjelmare/leicacam/blob/1df37bccd34884737d3b5e169fae71dd2f21f1e2/leicacam/cam.py#L222-L229", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MartinHjelmare-leicacam:CAM.receive-16672ded8f", "question": "Receive message from socket interface as list of OrderedDict.", "scope": {"holder": "MartinHjelmare-leicacam", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:MaxStrange/AudioSegment:audiosegment.py:AudioSegment._execute_sox_cmd#9385", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "audiosegment.py", "symbol": "AudioSegment._execute_sox_cmd"}, "source_id": "csn:MaxStrange/AudioSegment:audiosegment.py:AudioSegment._execute_sox_cmd#9385"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MaxStrange/AudioSegment/blob/1daefb8de626ddff3ff7016697c3ad31d262ecd6/audiosegment.py#L619-L663", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MaxStrange-AudioSegment:AudioSegment._execute_sox_cmd-63bb463677", "question": "Executes a Sox command in a platform-independent manner.\n\n `cmd` must be a format string that includes {inputfile} and {outputfile}.", "scope": {"holder": "MaxStrange-AudioSegment", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:MaxStrange/AudioSegment:algorithms/asa.py:_get_corresponding_offsets#9412", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "algorithms/asa.py", "symbol": "_get_corresponding_offsets"}, "source_id": "csn:MaxStrange/AudioSegment:algorithms/asa.py:_get_corresponding_offsets#9412"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MaxStrange/AudioSegment/blob/1daefb8de626ddff3ff7016697c3ad31d262ecd6/algorithms/asa.py#L605-L613", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MaxStrange-AudioSegment:_get_corresponding_offsets-83d0cf1886", "question": "Gets the offsets that occur as close as possible to the onsets in the given onset-front.", "scope": {"holder": "MaxStrange-AudioSegment", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MeirKriheli/django-bidi-utils:bidiutils/templatetags/bidiutils_tags.py:add_direction#19952", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "bidiutils/templatetags/bidiutils_tags.py", "symbol": "add_direction"}, "source_id": "csn:MeirKriheli/django-bidi-utils:bidiutils/templatetags/bidiutils_tags.py:add_direction#19952"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MeirKriheli/django-bidi-utils/blob/48a8c481fe728fbccf486582999e79454195036e/bidiutils/templatetags/bidiutils_tags.py#L10-L42", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MeirKriheli-django-bidi-utils:add_direction-f18ffc8120", "question": "Adds direction to the element\n\n :arguments:\n arg\n * rtl_only: Add the direction only in case of a\n right-to-left language (default)\n * both: add the direction in both case\n * ltr_only: Add the direction only in case of a\n left-to-right language\n\n {{image_name|add_direction}} when image_name is 'start_arrow.png'\n results in 'start_arrow_rtl.png' in case of RTL language, and\n 'start_arrow.png' or 'start_arrow_ltr.png' depends on `arg` value.", "scope": {"holder": "MeirKriheli-django-bidi-utils", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MeirKriheli/django-bidi-utils:bidiutils/context_processors.py:bidi#20065", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "bidiutils/context_processors.py", "symbol": "bidi"}, "source_id": "csn:MeirKriheli/django-bidi-utils:bidiutils/context_processors.py:bidi#20065"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MeirKriheli/django-bidi-utils/blob/48a8c481fe728fbccf486582999e79454195036e/bidiutils/context_processors.py#L3-L33", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MeirKriheli-django-bidi-utils:bidi-84cd369ea2", "question": "Adds to the context BiDi related variables\n\n LANGUAGE_DIRECTION -- Direction of current language ('ltr' or 'rtl')\n LANGUAGE_START -- Start of language layout ('right' for rtl, 'left'\n for 'ltr')\n LANGUAGE_END -- End of language layout ('left' for rtl, 'right'\n for 'ltr')\n LANGUAGE_MARKER -- Language marker entity ('‏' for rtl, '&lrm'\n for ltr)", "scope": {"holder": "MeirKriheli-django-bidi-utils", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MeirKriheli/python-bidi:bidi/algorithm.py:apply_mirroring#14321", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "bidi/algorithm.py", "symbol": "apply_mirroring"}, "source_id": "csn:MeirKriheli/python-bidi:bidi/algorithm.py:apply_mirroring#14321"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MeirKriheli/python-bidi/blob/a0e265bb465c1b7ad628487991e33b5ebe364641/bidi/algorithm.py#L580-L596", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MeirKriheli-python-bidi:apply_mirroring-67dd9d0b49", "question": "Applies L4: mirroring\n\n See: http://unicode.org/reports/tr9/#L4", "scope": {"holder": "MeirKriheli-python-bidi", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:MeirKriheli/python-bidi:bidi/algorithm.py:get_embedding_levels#14313", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "bidi/algorithm.py", "symbol": "get_embedding_levels"}, "source_id": "csn:MeirKriheli/python-bidi:bidi/algorithm.py:get_embedding_levels#14313"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MeirKriheli/python-bidi/blob/a0e265bb465c1b7ad628487991e33b5ebe364641/bidi/algorithm.py#L153-L181", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MeirKriheli-python-bidi:get_embedding_levels-7121b64673", "question": "Get the paragraph base embedding level and direction,\n set the storage to the array of chars", "scope": {"holder": "MeirKriheli-python-bidi", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Microsoft/botbuilder-python:libraries/botbuilder-ai/botbuilder/ai/luis/activity_util.py:ActivityUtil.create_trace#3617", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "libraries/botbuilder-ai/botbuilder/ai/luis/activity_util.py", "symbol": "ActivityUtil.create_trace"}, "source_id": "csn:Microsoft/botbuilder-python:libraries/botbuilder-ai/botbuilder/ai/luis/activity_util.py:ActivityUtil.create_trace#3617"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Microsoft/botbuilder-python/blob/274663dd91c811bae6ac4488915ba5880771b0a7/libraries/botbuilder-ai/botbuilder/ai/luis/activity_util.py#L16-L69", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Microsoft-botbuilder-python:ActivityUtil.create_trace-1a0674ca90", "question": "Creates a trace activity based on this activity.\n\n :param turn_activity:\n :type turn_activity: Activity\n :param name: The value to assign to the trace activity's property.\n :type name: str\n :param value: The value to assign to the trace activity's property., defaults to None\n :param value: object, optional\n :param value_type: The value to assign to the trace activity's property, defaults to None\n :param value_type: str, optional\n :param label: The value to assign to the trace activity's property, defaults to None\n :param label: str, optional\n :return: The created trace activity.\n :rtype: Activity", "scope": {"holder": "Microsoft-botbuilder-python", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Microsoft/botbuilder-python:libraries/botbuilder-azure/botbuilder/azure/cosmosdb_storage.py:CosmosDbStorage.__create_dict#3636", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "libraries/botbuilder-azure/botbuilder/azure/cosmosdb_storage.py", "symbol": "CosmosDbStorage.__create_dict"}, "source_id": "csn:Microsoft/botbuilder-python:libraries/botbuilder-azure/botbuilder/azure/cosmosdb_storage.py:CosmosDbStorage.__create_dict#3636"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Microsoft/botbuilder-python/blob/274663dd91c811bae6ac4488915ba5880771b0a7/libraries/botbuilder-azure/botbuilder/azure/cosmosdb_storage.py#L176-L189", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Microsoft-botbuilder-python:CosmosDbStorage.__create_dict-e4ddac00b6", "question": "Return the dict of a StoreItem.\n\n This eliminates non_magic attributes and the e_tag.\n\n :param si:\n :return dict:", "scope": {"holder": "Microsoft-botbuilder-python", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:MinchinWeb/minchin.text:minchin/text.py:centered#19652", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "minchin/text.py", "symbol": "centered"}, "source_id": "csn:MinchinWeb/minchin.text:minchin/text.py:centered#19652"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MinchinWeb/minchin.text/blob/4d136039561892c3adab49fe81b2f246e5a1507b/minchin/text.py#L85-L95", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MinchinWeb-minchin.text:centered-f29aa3dbf6", "question": "Takes a string, centres it, and pads it on both sides", "scope": {"holder": "MinchinWeb-minchin.text", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MinchinWeb/minchin.text:minchin/text.py:query_yes_no#19654", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "minchin/text.py", "symbol": "query_yes_no"}, "source_id": "csn:MinchinWeb/minchin.text:minchin/text.py:query_yes_no#19654"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MinchinWeb/minchin.text/blob/4d136039561892c3adab49fe81b2f246e5a1507b/minchin/text.py#L106-L139", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MinchinWeb-minchin.text:query_yes_no-c399a21d13", "question": "Ask a yes/no question via raw_input() and return their answer.\n\n \"question\" is a string that is presented to the user.\n \"default\" is the presumed answer if the user just hits .\n It must be \"yes\" (the default), \"no\" or None (meaning\n an answer is required of the user).\n\n The return value is one of Answers.YES or Answers.NO.\n\n Copied (and modified) from\n http://stackoverflow.com/questions/3041986/python-command-line-yes-no-input", "scope": {"holder": "MinchinWeb-minchin.text", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MisterY/price-database:pricedb/config.py:Config.__create_user_config#9893", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pricedb/config.py", "symbol": "Config.__create_user_config"}, "source_id": "csn:MisterY/price-database:pricedb/config.py:Config.__create_user_config#9893"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MisterY/price-database/blob/b4fd366b7763891c690fe3000b8840e656da023e/pricedb/config.py#L74-L89", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MisterY-price-database:Config.__create_user_config-be8f8832f9", "question": "Copy the config template into user's directory", "scope": {"holder": "MisterY-price-database", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MisterY/price-database:pricedb/app.py:PriceDbApplication.get_price_repository#9908", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pricedb/app.py", "symbol": "PriceDbApplication.get_price_repository"}, "source_id": "csn:MisterY/price-database:pricedb/app.py:PriceDbApplication.get_price_repository#9908"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MisterY/price-database/blob/b4fd366b7763891c690fe3000b8840e656da023e/pricedb/app.py#L210-L216", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MisterY-price-database:PriceDbApplication.get_price_repository-d8eefbfb16", "question": "Price repository", "scope": {"holder": "MisterY-price-database", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MitchellChu/torndsession:demos/memory_session.py:DeleteHandler.get#17586", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "demos/memory_session.py", "symbol": "DeleteHandler.get"}, "source_id": "csn:MitchellChu/torndsession:demos/memory_session.py:DeleteHandler.get#17586"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MitchellChu/torndsession/blob/dd08554c06f47d33396a0a4485f53d0522961155/demos/memory_session.py#L53-L65", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MitchellChu-torndsession:DeleteHandler.get-49726e2201", "question": "Please don't do this in production environments.", "scope": {"holder": "MitchellChu-torndsession", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MomsFriendlyRobotCompany/fake_rpi:fake_rpi/Adafruit.py:LSM303.read#8292", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "fake_rpi/Adafruit.py", "symbol": "LSM303.read"}, "source_id": "csn:MomsFriendlyRobotCompany/fake_rpi:fake_rpi/Adafruit.py:LSM303.read#8292"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MomsFriendlyRobotCompany/fake_rpi/blob/eb2f640f19f74db9082bfbf8aed524e3ccba6d4f/fake_rpi/Adafruit.py#L24-L34", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MomsFriendlyRobotCompany-fake_rpi:LSM303.read-77bc37e008", "question": "Since there isn't a real sensor connected, read() creates random\n\t\tdata.", "scope": {"holder": "MomsFriendlyRobotCompany-fake_rpi", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MuhammedHasan/sklearn_utils:sklearn_utils/preprocessing/dict_input.py:DictInput.transform#16527", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sklearn_utils/preprocessing/dict_input.py", "symbol": "DictInput.transform"}, "source_id": "csn:MuhammedHasan/sklearn_utils:sklearn_utils/preprocessing/dict_input.py:DictInput.transform#16527"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MuhammedHasan/sklearn_utils/blob/337c3b7a27f4921d12da496f66a2b83ef582b413/sklearn_utils/preprocessing/dict_input.py#L29-L39", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MuhammedHasan-sklearn_utils:DictInput.transform-819d61c867", "question": ":param X: features.", "scope": {"holder": "MuhammedHasan-sklearn_utils", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MuhammedHasan/sklearn_utils:sklearn_utils/utils/skutils_io.py:SkUtilsIO.to_json#16532", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sklearn_utils/utils/skutils_io.py", "symbol": "SkUtilsIO.to_json"}, "source_id": "csn:MuhammedHasan/sklearn_utils:sklearn_utils/utils/skutils_io.py:SkUtilsIO.to_json#16532"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MuhammedHasan/sklearn_utils/blob/337c3b7a27f4921d12da496f66a2b83ef582b413/sklearn_utils/utils/skutils_io.py#L48-L57", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MuhammedHasan-sklearn_utils:SkUtilsIO.to_json-3e75640edf", "question": "Reads dataset to csv.\n\n :param X: dataset as list of dict.\n :param y: labels.", "scope": {"holder": "MuhammedHasan-sklearn_utils", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Music-Moo/music2storage:music2storage/connection.py:ConnectionHandler.use_music_service#16528", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "music2storage/connection.py", "symbol": "ConnectionHandler.use_music_service"}, "source_id": "csn:Music-Moo/music2storage:music2storage/connection.py:ConnectionHandler.use_music_service#16528"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Music-Moo/music2storage/blob/de12b9046dd227fc8c1512b5060e7f5fcd8b0ee2/music2storage/connection.py#L16-L34", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Music-Moo-music2storage:ConnectionHandler.use_music_service-d293629472", "question": "Sets the current music service to service_name.\n\n :param str service_name: Name of the music service\n :param str api_key: Optional API key if necessary", "scope": {"holder": "Music-Moo-music2storage", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Music-Moo/music2storage:music2storage/__init__.py:Music2Storage.add_to_queue#16509", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "music2storage/__init__.py", "symbol": "Music2Storage.add_to_queue"}, "source_id": "csn:Music-Moo/music2storage:music2storage/__init__.py:Music2Storage.add_to_queue#16509"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Music-Moo/music2storage/blob/de12b9046dd227fc8c1512b5060e7f5fcd8b0ee2/music2storage/__init__.py#L36-L48", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Music-Moo-music2storage:Music2Storage.add_to_queue-7c668dba00", "question": "Adds an URL to the download queue.\n\n :param str url: URL to the music service track", "scope": {"holder": "Music-Moo-music2storage", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:MycroftAI/padaos:padaos.py:IntentContainer._create_regex#12161", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "padaos.py", "symbol": "IntentContainer._create_regex"}, "source_id": "csn:MycroftAI/padaos:padaos.py:IntentContainer._create_regex#12161"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/MycroftAI/padaos/blob/c7fb3d72fefbe552963c5a5a0f606e1f2fde2968/padaos.py#L104-L112", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:MycroftAI-padaos:IntentContainer._create_regex-98fedd09a6", "question": "Create regex and return. If error occurs returns None.", "scope": {"holder": "MycroftAI-padaos", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:NLeSC/pycoeman:pycoeman/utils_execution.py:apply_argument_parser#15247", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pycoeman/utils_execution.py", "symbol": "apply_argument_parser"}, "source_id": "csn:NLeSC/pycoeman:pycoeman/utils_execution.py:apply_argument_parser#15247"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/NLeSC/pycoeman/blob/246d517b55cb98eb46f69aae453492cf9dd9d5af/pycoeman/utils_execution.py#L51-L57", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:NLeSC-pycoeman:apply_argument_parser-4f8aedcf63", "question": "Apply the argument parser.", "scope": {"holder": "NLeSC-pycoeman", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:NarrativeScience/lsi:src/lsi/utils/hosts.py:HostEntry._get_attrib#19339", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/lsi/utils/hosts.py", "symbol": "HostEntry._get_attrib"}, "source_id": "csn:NarrativeScience/lsi:src/lsi/utils/hosts.py:HostEntry._get_attrib#19339"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/NarrativeScience/lsi/blob/7d901b03fdb1a34ef795e5412bfe9685d948e32d/src/lsi/utils/hosts.py#L146-L179", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:NarrativeScience-lsi:HostEntry._get_attrib-b255fda2b2", "question": "Given an attribute name, looks it up on the entry. Names that\n start with ``tags.`` are looked up in the ``tags`` dictionary.\n\n :param attr: Name of attribute to look up.\n :type attr: ``str``\n :param convert_to_str: Convert result to a string.\n :type convert_to_str: ``bool``\n\n :rtype: ``object``", "scope": {"holder": "NarrativeScience-lsi", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:NarrativeScience/lsi:src/lsi/lsi.py:_run_ssh#19387", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "src/lsi/lsi.py", "symbol": "_run_ssh"}, "source_id": "csn:NarrativeScience/lsi:src/lsi/lsi.py:_run_ssh#19387"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/NarrativeScience/lsi/blob/7d901b03fdb1a34ef795e5412bfe9685d948e32d/src/lsi/lsi.py#L195-L350", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:NarrativeScience-lsi:_run_ssh-c35c6a3a50", "question": "Lets the user choose which instance to SSH into.\n\n :param entries: The list of host entries.\n :type entries: [:py:class:`HostEntry`]\n :param username: The SSH username to use. Defaults to current user.\n :type username: ``str`` or ``NoneType``\n :param idfile: The identity file to use. Optional.\n :type idfile: ``str`` or ``NoneType``\n :param no_prompt: Whether to disable confirmation for SSH command.\n :type no_prompt: ``bool``\n :param command: SSH command to run on matching instances.\n :type command: ``str`` or ``NoneType``\n :param show: Instance attributes to show in addition to defaults.\n :type show: ``NoneType`` or ``list`` of ``str``\n :param only: If not ``None``, will *only* show these attributes.\n :type only: ``NoneType`` or ``list`` of ``str``\n :param sort_by: What to sort columns by. By default, sort by 'name'.\n :type sort_by: ``str``\n :param limit: At most how many results to show.\n :type limit: ``int`` or ``NoneType``\n :param num: If not None, choose the given entry from within filters.\n :type num: ``int`` or ``NoneType``\n :param random: If true, choose a random entry from within filters.\n :type random: ``bool``", "scope": {"holder": "NarrativeScience-lsi", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:NateFerrero/oauth2lib:oauth2lib/provider.py:AuthorizationProvider.get_authorization_code#14084", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "oauth2lib/provider.py", "symbol": "AuthorizationProvider.get_authorization_code"}, "source_id": "csn:NateFerrero/oauth2lib:oauth2lib/provider.py:AuthorizationProvider.get_authorization_code#14084"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/NateFerrero/oauth2lib/blob/d161b010f8a596826050a09e5e94d59443cc12d9/oauth2lib/provider.py#L205-L268", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:NateFerrero-oauth2lib:AuthorizationProvider.get_authorization_code-9c982f7df5", "question": "Generate authorization code HTTP response.\n\n :param response_type: Desired response type. Must be exactly \"code\".\n :type response_type: str\n :param client_id: Client ID.\n :type client_id: str\n :param redirect_uri: Client redirect URI.\n :type redirect_uri: str\n :rtype: requests.Response", "scope": {"holder": "NateFerrero-oauth2lib", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:NateFerrero/oauth2lib:oauth2lib/provider.py:Provider._make_json_response#14083", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "oauth2lib/provider.py", "symbol": "Provider._make_json_response"}, "source_id": "csn:NateFerrero/oauth2lib:oauth2lib/provider.py:Provider._make_json_response#14083"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/NateFerrero/oauth2lib/blob/d161b010f8a596826050a09e5e94d59443cc12d9/oauth2lib/provider.py#L61-L80", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:NateFerrero-oauth2lib:Provider._make_json_response-cb7434bd3a", "question": "Return a response object from the given JSON data.\n\n :param data: Data to JSON-encode.\n :type data: mixed\n :param headers: Dict of headers to include in the requests.\n :type headers: dict\n :param status_code: HTTP status code.\n :type status_code: int\n :rtype: requests.Response", "scope": {"holder": "NateFerrero-oauth2lib", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Nekmo/amazon-dash:amazon_dash/config.py:Config.read#6531", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "amazon_dash/config.py", "symbol": "Config.read"}, "source_id": "csn:Nekmo/amazon-dash:amazon_dash/config.py:Config.read#6531"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Nekmo/amazon-dash/blob/0e2bdc24ff8ea32cecb2f5f54f5cc1c0f99c197b/amazon_dash/config.py#L227-L240", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Nekmo-amazon-dash:Config.read-2c5d8fb71a", "question": "Parse and validate the config file. The read data is accessible as a dictionary in this instance\n\n :return: None", "scope": {"holder": "Nekmo-amazon-dash", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Nekmo/amazon-dash:amazon_dash/listener.py:Listener.run#6550", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "amazon_dash/listener.py", "symbol": "Listener.run"}, "source_id": "csn:Nekmo/amazon-dash:amazon_dash/listener.py:Listener.run#6550"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Nekmo/amazon-dash/blob/0e2bdc24ff8ea32cecb2f5f54f5cc1c0f99c197b/amazon_dash/listener.py#L152-L159", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Nekmo-amazon-dash:Listener.run-89057f767e", "question": "Start daemon mode\n\n :param bool root_allowed: Only used for ExecuteCmd\n :return: loop", "scope": {"holder": "Nekmo-amazon-dash", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Nekroze/greencard:greencard/greencard.py:card#19716", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "greencard/greencard.py", "symbol": "card"}, "source_id": "csn:Nekroze/greencard:greencard/greencard.py:card#19716"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Nekroze/greencard/blob/30fe7eba5742c31b666027e31f33aaa641699857/greencard/greencard.py#L9-L19", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Nekroze-greencard:card-21eb5e421e", "question": "A decorator for providing a unittesting function/method with every card in\n a librarian card library database when it is called.", "scope": {"holder": "Nekroze-greencard", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Nekroze/greencard:greencard/greencard.py:library#19717", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "greencard/greencard.py", "symbol": "library"}, "source_id": "csn:Nekroze/greencard:greencard/greencard.py:library#19717"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Nekroze/greencard/blob/30fe7eba5742c31b666027e31f33aaa641699857/greencard/greencard.py#L22-L32", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Nekroze-greencard:library-067ffd3dcc", "question": "A decorator for providing a unittest with a library and have it called only\n once.", "scope": {"holder": "Nekroze-greencard", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Nic30/hwt:hwt/hdl/assignment.py:Assignment._cut_off_drivers_of#9677", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "hwt/hdl/assignment.py", "symbol": "Assignment._cut_off_drivers_of"}, "source_id": "csn:Nic30/hwt:hwt/hdl/assignment.py:Assignment._cut_off_drivers_of#9677"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Nic30/hwt/blob/8cbb399e326da3b22c233b98188a9d08dec057e6/hwt/hdl/assignment.py#L69-L77", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Nic30-hwt:Assignment._cut_off_drivers_of-6e151838a5", "question": "Cut off statements which are driver of specified signal", "scope": {"holder": "Nic30-hwt", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Nic30/hwt:hwt/hdl/switchContainer.py:SwitchContainer._condHasEffect#9696", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "hwt/hdl/switchContainer.py", "symbol": "SwitchContainer._condHasEffect"}, "source_id": "csn:Nic30/hwt:hwt/hdl/switchContainer.py:SwitchContainer._condHasEffect#9696"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Nic30/hwt/blob/8cbb399e326da3b22c233b98188a9d08dec057e6/hwt/hdl/switchContainer.py#L228-L251", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Nic30-hwt:SwitchContainer._condHasEffect-ad4445d38f", "question": ":return: True if statements in branches has different effect", "scope": {"holder": "Nic30-hwt", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Numergy/yoda:yoda/adapter/abstract.py:Abstract.execute#17898", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "yoda/adapter/abstract.py", "symbol": "Abstract.execute"}, "source_id": "csn:Numergy/yoda:yoda/adapter/abstract.py:Abstract.execute#17898"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Numergy/yoda/blob/109f0e9441130488b0155f05883ef6531cf46ee9/yoda/adapter/abstract.py#L37-L62", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Numergy-yoda:Abstract.execute-cb0f4d61ce", "question": "Execute command with os.popen and return output.", "scope": {"holder": "Numergy-yoda", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Numergy/yoda:yoda/subcommand/status.py:Status.print_workspace#17903", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "yoda/subcommand/status.py", "symbol": "Status.print_workspace"}, "source_id": "csn:Numergy/yoda:yoda/subcommand/status.py:Status.print_workspace#17903"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Numergy/yoda/blob/109f0e9441130488b0155f05883ef6531cf46ee9/yoda/subcommand/status.py#L56-L65", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Numergy-yoda:Status.print_workspace-2b1ddfe63d", "question": "Print workspace status.", "scope": {"holder": "Numergy-yoda", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ONSdigital/sdc-cryptography:sdc/crypto/key_store.py:KeyStore.get_key_for_purpose_and_type#13433", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sdc/crypto/key_store.py", "symbol": "KeyStore.get_key_for_purpose_and_type"}, "source_id": "csn:ONSdigital/sdc-cryptography:sdc/crypto/key_store.py:KeyStore.get_key_for_purpose_and_type#13433"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ONSdigital/sdc-cryptography/blob/846feb2b27b1c62d35ff2c290c05abcead68b23c/sdc/crypto/key_store.py#L62-L72", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ONSdigital-sdc-cryptography:KeyStore.get_key_for_purpose_and_type-25f922d56c", "question": "Gets a list of keys that match the purpose and key_type, and returns the first key in that list\n Note, if there are many keys that match the criteria, the one you get back will be random from that list\n :returns: A key object that matches the criteria", "scope": {"holder": "ONSdigital-sdc-cryptography", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ONSdigital/sdc-cryptography:sdc/crypto/decrypter.py:decrypt#13431", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sdc/crypto/decrypter.py", "symbol": "decrypt"}, "source_id": "csn:ONSdigital/sdc-cryptography:sdc/crypto/decrypter.py:decrypt#13431"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ONSdigital/sdc-cryptography/blob/846feb2b27b1c62d35ff2c290c05abcead68b23c/sdc/crypto/decrypter.py#L6-L25", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ONSdigital-sdc-cryptography:decrypt-dbab51df03", "question": "This decrypts the provided jwe token, then decodes resulting jwt token and returns\n the payload.\n\n :param str token: The jwe token.\n :param key_store: The key store.\n :param str key_purpose: Context for the key.\n :param int leeway: Extra allowed time in seconds after expiration to account for clock skew.\n :return: The decrypted payload.", "scope": {"holder": "ONSdigital-sdc-cryptography", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:OldhamMade/exemelopy:exemelopy/__init__.py:XMLEncoder.to_string#22078", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "exemelopy/__init__.py", "symbol": "XMLEncoder.to_string"}, "source_id": "csn:OldhamMade/exemelopy:exemelopy/__init__.py:XMLEncoder.to_string#22078"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/OldhamMade/exemelopy/blob/5f5141b169e61a5b6912146a995917f5d862ee9c/exemelopy/__init__.py#L52-L66", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:OldhamMade-exemelopy:XMLEncoder.to_string-051193b4dc", "question": "Encodes the stored ``data`` to XML and returns a\n ``string``.\n\n Setting ``indent`` to ``False`` will forego any pretty-printing\n and return a condensed value.\n\n Setting ``declaration`` to ``False`` will skip inserting the\n XML declaration.", "scope": {"holder": "OldhamMade-exemelopy", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:OldhamMade/exemelopy:exemelopy/__init__.py:XMLEncoder.to_xml#22079", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "exemelopy/__init__.py", "symbol": "XMLEncoder.to_xml"}, "source_id": "csn:OldhamMade/exemelopy:exemelopy/__init__.py:XMLEncoder.to_xml#22079"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/OldhamMade/exemelopy/blob/5f5141b169e61a5b6912146a995917f5d862ee9c/exemelopy/__init__.py#L68-L75", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:OldhamMade-exemelopy:XMLEncoder.to_xml-2fae15444e", "question": "Encodes the stored ``data`` to XML and returns\n an ``lxml.etree`` value.", "scope": {"holder": "OldhamMade-exemelopy", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:OpenKMIP/PyKMIP:kmip/core/messages/payloads/activate.py:ActivateRequestPayload.validate#7196", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "kmip/core/messages/payloads/activate.py", "symbol": "ActivateRequestPayload.validate"}, "source_id": "csn:OpenKMIP/PyKMIP:kmip/core/messages/payloads/activate.py:ActivateRequestPayload.validate#7196"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/activate.py#L95-L103", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:OpenKMIP-PyKMIP:ActivateRequestPayload.validate-8bf883f4f3", "question": "Error check the attributes of the ActivateRequestPayload object.", "scope": {"holder": "OpenKMIP-PyKMIP", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:OpenKMIP/PyKMIP:kmip/services/server/engine.py:KmipEngine._get_attribute_from_managed_object#7050", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "kmip/services/server/engine.py", "symbol": "KmipEngine._get_attribute_from_managed_object"}, "source_id": "csn:OpenKMIP/PyKMIP:kmip/services/server/engine.py:KmipEngine._get_attribute_from_managed_object#7050"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/engine.py#L627-L719", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:OpenKMIP-PyKMIP:KmipEngine._get_attribute_from_managed_object-8f4bcf1342", "question": "Get the attribute value from the kmip.pie managed object.", "scope": {"holder": "OpenKMIP-PyKMIP", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:OpenMath/py-openmath:openmath/convert.py:Converter._deprecated_register#17819", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "openmath/convert.py", "symbol": "Converter._deprecated_register"}, "source_id": "csn:OpenMath/py-openmath:openmath/convert.py:Converter._deprecated_register#17819"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/OpenMath/py-openmath/blob/4906aa9ccf606f533675c28823772e07c30fd220/openmath/convert.py#L242-L250", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:OpenMath-py-openmath:Converter._deprecated_register-848345e331", "question": "This is a shorthand for:\n\n ``self.register_to_python(om_cd, om_name, to_py)``\n ``self.register_to_openmath(py_class, to_om)``", "scope": {"holder": "OpenMath-py-openmath", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:OpenMath/py-openmath:openmath/convert_pickle.py:cls_build#17869", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "openmath/convert_pickle.py", "symbol": "cls_build"}, "source_id": "csn:OpenMath/py-openmath:openmath/convert_pickle.py:cls_build#17869"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/OpenMath/py-openmath/blob/4906aa9ccf606f533675c28823772e07c30fd220/openmath/convert_pickle.py#L331-L389", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:OpenMath-py-openmath:cls_build-d530b95eb0", "question": "Apply the setstate protocol to initialize `inst` from `state`.\n\n INPUT:\n\n - ``inst`` -- a raw instance of a class\n - ``state`` -- the state to restore; typically a dictionary mapping attribute names to their values\n\n EXAMPLES::\n\n >>> from openmath.convert_pickle import cls_build\n >>> class A(object): pass\n >>> inst = A.__new__(A)\n >>> state = {\"foo\": 1, \"bar\": 4}\n >>> inst2 = cls_build(inst,state)\n >>> inst is inst2\n True\n >>> inst.foo\n 1\n >>> inst.bar\n 4", "scope": {"holder": "OpenMath-py-openmath", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Patreon/multiget-cache-py:multiget_cache/base_cache_wrapper.py:BaseCacheWrapper.delete#13436", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "multiget_cache/base_cache_wrapper.py", "symbol": "BaseCacheWrapper.delete"}, "source_id": "csn:Patreon/multiget-cache-py:multiget_cache/base_cache_wrapper.py:BaseCacheWrapper.delete#13436"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Patreon/multiget-cache-py/blob/824ec4809c97cc7e0035810bd9fefd1262de3318/multiget_cache/base_cache_wrapper.py#L55-L60", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Patreon-multiget-cache-py:BaseCacheWrapper.delete-2516784610", "question": "Remove the key from the request cache and from memcache.", "scope": {"holder": "Patreon-multiget-cache-py", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Patreon/multiget-cache-py:multiget_cache/function_tools.py:map_arguments_to_objects#13435", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "multiget_cache/function_tools.py", "symbol": "map_arguments_to_objects"}, "source_id": "csn:Patreon/multiget-cache-py:multiget_cache/function_tools.py:map_arguments_to_objects#13435"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Patreon/multiget-cache-py/blob/824ec4809c97cc7e0035810bd9fefd1262de3318/multiget_cache/function_tools.py#L105-L124", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Patreon-multiget-cache-py:map_arguments_to_objects-dd30ce50b8", "question": ":param kwargs: kwargs used to call the multiget function\n :param objects: objects returned from the inner function\n :param object_key: field or set of fields that map to the kwargs provided\n :param object_tuple_key: A temporary shortcut until we allow dot.path traversal for object_key.\n Will call getattr(getattr(result, join_table_name), object_key)\n :param argument_key: field or set of fields that map to the objects provided\n :param result_value: Limit the fields returned to this field or set of fields (none = whole object)\n :param default_result: If the inner function returned none for a set of parameters, default to this\n :return:", "scope": {"holder": "Patreon-multiget-cache-py", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:PierreRaybaut/PyQtdoc:setup.py:get_data_files#17775", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "setup.py", "symbol": "get_data_files"}, "source_id": "csn:PierreRaybaut/PyQtdoc:setup.py:get_data_files#17775"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PierreRaybaut/PyQtdoc/blob/71dce1cf11d958f72db2f5b9519d3540569b7720/setup.py#L8-L14", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PierreRaybaut-PyQtdoc:get_data_files-b5079c3e68", "question": "Return data files in directory *dirname*", "scope": {"holder": "PierreRaybaut-PyQtdoc", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Pirionfr/pyLinky:pylinky/client.py:LinkyClient._get_data#9068", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pylinky/client.py", "symbol": "LinkyClient._get_data"}, "source_id": "csn:Pirionfr/pyLinky:pylinky/client.py:LinkyClient._get_data#9068"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Pirionfr/pyLinky/blob/4372496bfcdd95ccfd2f017634cf02b38a2d6fd1/pylinky/client.py#L76-L126", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Pirionfr-pyLinky:LinkyClient._get_data-f60d4fe78f", "question": "Get data.", "scope": {"holder": "Pirionfr-pyLinky", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Pirionfr/pyLinky:pylinky/client.py:LinkyClient._post_login_page#9067", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pylinky/client.py", "symbol": "LinkyClient._post_login_page"}, "source_id": "csn:Pirionfr/pyLinky:pylinky/client.py:LinkyClient._post_login_page#9067"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Pirionfr/pyLinky/blob/4372496bfcdd95ccfd2f017634cf02b38a2d6fd1/pylinky/client.py#L55-L74", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Pirionfr-pyLinky:LinkyClient._post_login_page-85cefbd8db", "question": "Login to enedis.", "scope": {"holder": "Pirionfr-pyLinky", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:PolicyStat/docx2html:docx2html/core.py:_strip_tag#14162", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "docx2html/core.py", "symbol": "_strip_tag"}, "source_id": "csn:PolicyStat/docx2html:docx2html/core.py:_strip_tag#14162"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PolicyStat/docx2html/blob/2dc4afd1e3a3f2f0b357d0bff903eb58bcc94429/docx2html/core.py#L1344-L1350", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PolicyStat-docx2html:_strip_tag-d0c4b975f6", "question": "Remove all tags that have the tag name ``tag``", "scope": {"holder": "PolicyStat-docx2html", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:PolicyStat/docx2html:docx2html/core.py:get_style_dict#14153", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "docx2html/core.py", "symbol": "get_style_dict"}, "source_id": "csn:PolicyStat/docx2html:docx2html/core.py:get_style_dict#14153"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PolicyStat/docx2html/blob/2dc4afd1e3a3f2f0b357d0bff903eb58bcc94429/docx2html/core.py#L674-L729", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PolicyStat-docx2html:get_style_dict-c22c46cfc7", "question": "Some things that are considered lists are actually supposed to be H tags\n (h1, h2, etc.) These can be denoted by their styleId", "scope": {"holder": "PolicyStat-docx2html", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Polyconseil/devpi-metawheel:devpi_metawheel/main.py:devpiserver_on_upload#13735", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "devpi_metawheel/main.py", "symbol": "devpiserver_on_upload"}, "source_id": "csn:Polyconseil/devpi-metawheel:devpi_metawheel/main.py:devpiserver_on_upload#13735"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Polyconseil/devpi-metawheel/blob/8794f7b74c406979aa4a35fa1cd28e1e9c8864ae/devpi_metawheel/main.py#L17-L52", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Polyconseil-devpi-metawheel:devpiserver_on_upload-c26515fbce", "question": "called when a file is uploaded to a private stage for\n a projectname/version. link.entry.file_exists() may be false because\n a more recent revision deleted the file (and files are not revisioned).\n NOTE that this hook is currently NOT called for the implicit \"caching\"\n uploads to the pypi mirror.\n\n If the uploaded file is a wheel and is the latest version on this index,\n store its metadata in json file at the root of index/+f/ directory.\n With the standard config with nginx, nginx will directly serve this file.", "scope": {"holder": "Polyconseil-devpi-metawheel", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:PyCQA/pylint:pylint/utils/ast_walker.py:ASTWalker.add_checker#5879", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pylint/utils/ast_walker.py", "symbol": "ASTWalker.add_checker"}, "source_id": "csn:PyCQA/pylint:pylint/utils/ast_walker.py:ASTWalker.add_checker#5879"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PyCQA/pylint/blob/2bf5c61a3ff6ae90613b81679de42c0f19aea600/pylint/utils/ast_walker.py#L27-L55", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PyCQA-pylint:ASTWalker.add_checker-5c44da7a9a", "question": "walk to the checker's dir and collect visit and leave methods", "scope": {"holder": "PyCQA-pylint", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:PyCQA/pylint:pylint/checkers/raw_metrics.py:RawMetricsChecker.process_tokens#5775", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pylint/checkers/raw_metrics.py", "symbol": "RawMetricsChecker.process_tokens"}, "source_id": "csn:PyCQA/pylint:pylint/checkers/raw_metrics.py:RawMetricsChecker.process_tokens#5775"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PyCQA/pylint/blob/2bf5c61a3ff6ae90613b81679de42c0f19aea600/pylint/checkers/raw_metrics.py#L77-L84", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PyCQA-pylint:RawMetricsChecker.process_tokens-7f7c421111", "question": "update stats", "scope": {"holder": "PyCQA-pylint", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:PyFilesystem/s3fs:fs_s3fs/_s3fs.py:S3File.factory#10222", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "fs_s3fs/_s3fs.py", "symbol": "S3File.factory"}, "source_id": "csn:PyFilesystem/s3fs:fs_s3fs/_s3fs.py:S3File.factory#10222"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PyFilesystem/s3fs/blob/1c5e3a1b6abbb9dff91ea7fc4cec7353798cd536/fs_s3fs/_s3fs.py#L65-L69", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PyFilesystem-s3fs:S3File.factory-4fa100ab85", "question": "Create a S3File backed with a temporary file.", "scope": {"holder": "PyFilesystem-s3fs", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:PyFilesystem/s3fs:fs_s3fs/_s3fs.py:_make_repr#10220", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "fs_s3fs/_s3fs.py", "symbol": "_make_repr"}, "source_id": "csn:PyFilesystem/s3fs:fs_s3fs/_s3fs.py:_make_repr#10220"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PyFilesystem/s3fs/blob/1c5e3a1b6abbb9dff91ea7fc4cec7353798cd536/fs_s3fs/_s3fs.py#L34-L58", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PyFilesystem-s3fs:_make_repr-306be9867b", "question": "Generate a repr string.\n\n Positional arguments should be the positional arguments used to\n construct the class. Keyword arguments should consist of tuples of\n the attribute value and default. If the value is the default, then\n it won't be rendered in the output.\n\n Here's an example::\n\n def __repr__(self):\n return make_repr('MyClass', 'foo', name=(self.name, None))\n\n The output of this would be something line ``MyClass('foo',\n name='Will')``.", "scope": {"holder": "PyFilesystem-s3fs", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:PyProphet/pyprophet:pyprophet/main.py:backpropagate#12237", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyprophet/main.py", "symbol": "backpropagate"}, "source_id": "csn:PyProphet/pyprophet:pyprophet/main.py:backpropagate#12237"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PyProphet/pyprophet/blob/f546ad171750cd7685afbde6785fe71f82cadb35/pyprophet/main.py#L247-L257", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PyProphet-pyprophet:backpropagate-f486c81fd2", "question": "Backpropagate multi-run peptide and protein scores to single files", "scope": {"holder": "PyProphet-pyprophet", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:PyProphet/pyprophet:pyprophet/main.py:peptide#12232", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyprophet/main.py", "symbol": "peptide"}, "source_id": "csn:PyProphet/pyprophet:pyprophet/main.py:peptide#12232"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PyProphet/pyprophet/blob/f546ad171750cd7685afbde6785fe71f82cadb35/pyprophet/main.py#L144-L154", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PyProphet-pyprophet:peptide-e9af82a648", "question": "Infer peptides and conduct error-rate estimation in different contexts.", "scope": {"holder": "PyProphet-pyprophet", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:PythonSanSebastian/docstamp:docstamp/data_source.py:GoogleData.getCSV#19164", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "docstamp/data_source.py", "symbol": "GoogleData.getCSV"}, "source_id": "csn:PythonSanSebastian/docstamp:docstamp/data_source.py:GoogleData.getCSV#19164"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PythonSanSebastian/docstamp/blob/b43808f2e15351b0b2f0b7eade9c7ef319c9e646/docstamp/data_source.py#L11-L39", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PythonSanSebastian-docstamp:GoogleData.getCSV-4e8e2fc1f1", "question": "Returns\n -------\n filename: str", "scope": {"holder": "PythonSanSebastian-docstamp", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:PythonSanSebastian/docstamp:docstamp/file_utils.py:cleanup#19106", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "docstamp/file_utils.py", "symbol": "cleanup"}, "source_id": "csn:PythonSanSebastian/docstamp:docstamp/file_utils.py:cleanup#19106"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/PythonSanSebastian/docstamp/blob/b43808f2e15351b0b2f0b7eade9c7ef319c9e646/docstamp/file_utils.py#L118-L129", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:PythonSanSebastian-docstamp:cleanup-7d14da8065", "question": "Remove the files in workdir that have the given extension.\n\n Parameters\n ----------\n workdir:\n Folder path from where to clean the files.\n\n extension: str\n File extension without the dot, e.g., 'txt'", "scope": {"holder": "PythonSanSebastian-docstamp", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Qiskit/qiskit-terra:qiskit/converters/ast_to_dag.py:AstInterpreter._create_dag_op#3743", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "qiskit/converters/ast_to_dag.py", "symbol": "AstInterpreter._create_dag_op"}, "source_id": "csn:Qiskit/qiskit-terra:qiskit/converters/ast_to_dag.py:AstInterpreter._create_dag_op#3743"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Qiskit/qiskit-terra/blob/d4f58d903bc96341b816f7c35df936d6421267d1/qiskit/converters/ast_to_dag.py#L306-L377", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Qiskit-qiskit-terra:AstInterpreter._create_dag_op-b15961168d", "question": "Create a DAG node out of a parsed AST op node.\n\n Args:\n name (str): operation name to apply to the dag.\n params (list): op parameters\n qargs (list(QuantumRegister, int)): qubits to attach to\n\n Raises:\n QiskitError: if encountering a non-basis opaque gate", "scope": {"holder": "Qiskit-qiskit-terra", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Qiskit/qiskit-terra:qiskit/circuit/quantumcircuit.py:QuantumCircuit._bind_parameter#3914", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "qiskit/circuit/quantumcircuit.py", "symbol": "QuantumCircuit._bind_parameter"}, "source_id": "csn:Qiskit/qiskit-terra:qiskit/circuit/quantumcircuit.py:QuantumCircuit._bind_parameter#3914"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Qiskit/qiskit-terra/blob/d4f58d903bc96341b816f7c35df936d6421267d1/qiskit/circuit/quantumcircuit.py#L725-L728", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Qiskit-qiskit-terra:QuantumCircuit._bind_parameter-bb54a16251", "question": "Assigns a parameter value to matching instructions in-place.", "scope": {"holder": "Qiskit-qiskit-terra", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:RRZE-HPC/kerncraft:kerncraft/models/benchmark.py:Benchmark.analyze#12077", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "kerncraft/models/benchmark.py", "symbol": "Benchmark.analyze"}, "source_id": "csn:RRZE-HPC/kerncraft:kerncraft/models/benchmark.py:Benchmark.analyze#12077"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/RRZE-HPC/kerncraft/blob/c60baf8043e4da8d8d66da7575021c2f4c6c78af/kerncraft/models/benchmark.py#L343-L486", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:RRZE-HPC-kerncraft:Benchmark.analyze-57963ff82c", "question": "Run analysis.", "scope": {"holder": "RRZE-HPC-kerncraft", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:RRZE-HPC/kerncraft:kerncraft/kernel.py:KernelCode.iaca_analysis#12054", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "kerncraft/kernel.py", "symbol": "KernelCode.iaca_analysis"}, "source_id": "csn:RRZE-HPC/kerncraft:kerncraft/kernel.py:KernelCode.iaca_analysis#12054"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/RRZE-HPC/kerncraft/blob/c60baf8043e4da8d8d66da7575021c2f4c6c78af/kerncraft/kernel.py#L1514-L1535", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:RRZE-HPC-kerncraft:KernelCode.iaca_analysis-362649ef89", "question": "Run an IACA analysis and return its outcome.\n\n *asm_block* controls how the to-be-marked block is chosen. \"auto\" (default) results in\n the largest block, \"manual\" results in interactive and a number in the according block.\n\n *pointer_increment* is the number of bytes the pointer is incremented after the loop or\n - 'auto': automatic detection, RuntimeError is raised in case of failure\n - 'auto_with_manual_fallback': automatic detection, fallback to manual input\n - 'manual': prompt user", "scope": {"holder": "RRZE-HPC-kerncraft", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:RazerM/yourls-python:yourls/core.py:YOURLSAPIMixin.db_stats#13505", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "yourls/core.py", "symbol": "YOURLSAPIMixin.db_stats"}, "source_id": "csn:RazerM/yourls-python:yourls/core.py:YOURLSAPIMixin.db_stats#13505"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/RazerM/yourls-python/blob/716845562a2bbb430de3c379c9481b195e451ccf/yourls/core.py#L166-L181", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:RazerM-yourls-python:YOURLSAPIMixin.db_stats-fc65a012dd", "question": "Get database statistics.\n\n Returns:\n DBStats: Total clicks and links statistics.\n\n Raises:\n requests.exceptions.HTTPError: Generic HTTP Error", "scope": {"holder": "RazerM-yourls-python", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:RazerM/yourls-python:yourls/core.py:YOURLSAPIMixin.stats#13504", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "yourls/core.py", "symbol": "YOURLSAPIMixin.stats"}, "source_id": "csn:RazerM/yourls-python:yourls/core.py:YOURLSAPIMixin.stats#13504"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/RazerM/yourls-python/blob/716845562a2bbb430de3c379c9481b195e451ccf/yourls/core.py#L121-L164", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:RazerM-yourls-python:YOURLSAPIMixin.stats-8cca43918e", "question": "Get stats about links.\n\n Parameters:\n filter: 'top', 'bottom', 'rand', or 'last'.\n limit: Number of links to return from filter.\n start: Optional start number.\n\n Returns:\n Tuple containing list of ShortenedURLs and DBStats.\n\n Example:\n\n .. code-block:: python\n\n links, stats = yourls.stats(filter='top', limit=10)\n\n Raises:\n ValueError: Incorrect value for filter parameter.\n requests.exceptions.HTTPError: Generic HTTP Error", "scope": {"holder": "RazerM-yourls-python", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:SeabornGames/Logger:seaborn_logger/logger.py:SeabornLogger.findCaller#19813", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "seaborn_logger/logger.py", "symbol": "SeabornLogger.findCaller"}, "source_id": "csn:SeabornGames/Logger:seaborn_logger/logger.py:SeabornLogger.findCaller#19813"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/SeabornGames/Logger/blob/fb8b1700557aaea8d3216bd4c4df33c302bece7f/seaborn_logger/logger.py#L45-L72", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:SeabornGames-Logger:SeabornLogger.findCaller-f01ee29b63", "question": "Find the stack frame of the caller so that we can note the source\n file name, line number and function name.", "scope": {"holder": "SeabornGames-Logger", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:SeabornGames/Logger:seaborn_logger/logger.py:setup_file_logging#19809", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "seaborn_logger/logger.py", "symbol": "setup_file_logging"}, "source_id": "csn:SeabornGames/Logger:seaborn_logger/logger.py:setup_file_logging#19809"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/SeabornGames/Logger/blob/fb8b1700557aaea8d3216bd4c4df33c302bece7f/seaborn_logger/logger.py#L289-L323", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:SeabornGames-Logger:setup_file_logging-283045562e", "question": "This will setup logging for a single file but can be called more than once\n LOG LEVELS are \"CRITICAL\", \"ERROR\", \"INFO\", \"DEBUG\"\n :param log_filename: str of the file location\n :param log_file_level str of the log level to use on this file\n :param str_format: str of the logging format\n :param date_format: str of the date format\n :param log_restart: bool if True the log file will be deleted first\n :param log_history: bool if True will save another log file in a folder\n called history with the datetime\n :param formatter: logging.Format instance to use\n :param log_filter: logging.filter instance to add to handler\n :param silence_modules list of str of modules to silence\n :return: None", "scope": {"holder": "SeabornGames-Logger", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:SectorLabs/django-postgres-extra:psqlextra/datastructures.py:ConditionalJoin.add_condition#4851", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "psqlextra/datastructures.py", "symbol": "ConditionalJoin.add_condition"}, "source_id": "csn:SectorLabs/django-postgres-extra:psqlextra/datastructures.py:ConditionalJoin.add_condition#4851"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/SectorLabs/django-postgres-extra/blob/eef2ed5504d225858d4e4f5d77a838082ca6053e/psqlextra/datastructures.py#L17-L28", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:SectorLabs-django-postgres-extra:ConditionalJoin.add_condition-e83603d980", "question": "Adds an extra condition to this join.\n\n Arguments:\n field:\n The field that the condition will apply to.\n\n value:\n The value to compare.", "scope": {"holder": "SectorLabs-django-postgres-extra", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:SectorLabs/django-postgres-extra:psqlextra/compiler.py:PostgresInsertCompiler._get_model_field#4838", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "psqlextra/compiler.py", "symbol": "PostgresInsertCompiler._get_model_field"}, "source_id": "csn:SectorLabs/django-postgres-extra:psqlextra/compiler.py:PostgresInsertCompiler._get_model_field#4838"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/SectorLabs/django-postgres-extra/blob/eef2ed5504d225858d4e4f5d77a838082ca6053e/psqlextra/compiler.py#L240-L266", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:SectorLabs-django-postgres-extra:PostgresInsertCompiler._get_model_field-27ebe5dc0d", "question": "Gets the field on a model with the specified name.\n\n Arguments:\n name:\n The name of the field to look for.\n\n This can be both the actual field name, or\n the name of the column, both will work :)\n\n Returns:\n The field with the specified name or None if\n no such field exists.", "scope": {"holder": "SectorLabs-django-postgres-extra", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:SiLab-Bonn/pixel_clusterizer:pixel_clusterizer/clusterizer.py:HitClusterizer.add_cluster_field#18546", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pixel_clusterizer/clusterizer.py", "symbol": "HitClusterizer.add_cluster_field"}, "source_id": "csn:SiLab-Bonn/pixel_clusterizer:pixel_clusterizer/clusterizer.py:HitClusterizer.add_cluster_field#18546"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/SiLab-Bonn/pixel_clusterizer/blob/d2c8c3072fb03ebb7c6a3e8c57350fbbe38efd4d/pixel_clusterizer/clusterizer.py#L241-L252", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:SiLab-Bonn-pixel_clusterizer:HitClusterizer.add_cluster_field-bfb64b9159", "question": "Adds a field or a list of fields to the cluster result array. Has to be defined as a numpy dtype entry, e.g.: ('parameter', ' [xmin, xmax, ymin, ymax]\n\n >>> Index.deinterleave([0, 10, 1, 11])\n [0, 1, 10, 11]\n\n >>> Index.deinterleave([0, 1, 2, 10, 11, 12])\n [0, 10, 1, 11, 2, 12]", "scope": {"holder": "Toblerity-rtree", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ToucanToco/toucan-data-sdk:toucan_data_sdk/sdk.py:ToucanDataSdk.read_entry#9159", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "toucan_data_sdk/sdk.py", "symbol": "ToucanDataSdk.read_entry"}, "source_id": "csn:ToucanToco/toucan-data-sdk:toucan_data_sdk/sdk.py:ToucanDataSdk.read_entry#9159"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ToucanToco/toucan-data-sdk/blob/c3ca874e1b64f4bdcc2edda750a72d45d1561d8a/toucan_data_sdk/sdk.py#L127-L137", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ToucanToco-toucan-data-sdk:ToucanDataSdk.read_entry-87965c4c4b", "question": "Args:\n file_name (str):\n\n Returns:\n pd.DataFrame:", "scope": {"holder": "ToucanToco-toucan-data-sdk", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ToucanToco/toucan-data-sdk:toucan_data_sdk/sdk.py:extract#9157", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "toucan_data_sdk/sdk.py", "symbol": "extract"}, "source_id": "csn:ToucanToco/toucan-data-sdk:toucan_data_sdk/sdk.py:extract#9157"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ToucanToco/toucan-data-sdk/blob/c3ca874e1b64f4bdcc2edda750a72d45d1561d8a/toucan_data_sdk/sdk.py#L194-L213", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ToucanToco-toucan-data-sdk:extract-623730ea3b", "question": "Args:\n data (str | byte):\n\n Returns:\n dict: Dict[str, DataFrame]", "scope": {"holder": "ToucanToco-toucan-data-sdk", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Trim21/sdu_bkjws:sdu_bkjws/__init__.py:SduBkjws._aodata#19560", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sdu_bkjws/__init__.py", "symbol": "SduBkjws._aodata"}, "source_id": "csn:Trim21/sdu_bkjws:sdu_bkjws/__init__.py:SduBkjws._aodata#19560"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Trim21/sdu_bkjws/blob/87e74c84e6a20b2abd20905e2381f0a572398f6c/sdu_bkjws/__init__.py#L54-L86", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Trim21-sdu_bkjws:SduBkjws._aodata-42e8029479", "question": "生成用于post的数据\n\n :param echo: a int to check is response is write\n :type echo: int\n :param columns: 所有columns列名组成的list\n :type columns: list\n :param xnxq: str\n :type xnxq: string\n :param final_exam: 是否期末考试\n :rtype: bool\n :return: a valid data for post to get data", "scope": {"holder": "Trim21-sdu_bkjws", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Trim21/sdu_bkjws:sdu_bkjws/__init__.py:SduBkjws.get_lesson#19562", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "sdu_bkjws/__init__.py", "symbol": "SduBkjws.get_lesson"}, "source_id": "csn:Trim21/sdu_bkjws:sdu_bkjws/__init__.py:SduBkjws.get_lesson#19562"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Trim21/sdu_bkjws/blob/87e74c84e6a20b2abd20905e2381f0a572398f6c/sdu_bkjws/__init__.py#L135-L163", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Trim21-sdu_bkjws:SduBkjws.get_lesson-99889b4e44", "question": "获取课表,返回一个列表,包含所有课表对象\n\n :return: list of lessons\n :rtype: list[dict]", "scope": {"holder": "Trim21-sdu_bkjws", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Tsjerk/Insane:insane/lipids.py:Lipid.build#17296", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "insane/lipids.py", "symbol": "Lipid.build"}, "source_id": "csn:Tsjerk/Insane:insane/lipids.py:Lipid.build#17296"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Tsjerk/Insane/blob/b73f08910ddb0b66597b20ff75ecee7f65f4ecf6/insane/lipids.py#L90-L144", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Tsjerk-Insane:Lipid.build-cf6d07e309", "question": "Build/return a list of [(bead, x, y, z), ...]", "scope": {"holder": "Tsjerk-Insane", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Tsjerk/Insane:insane/utils.py:iter_resource#17294", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "insane/utils.py", "symbol": "iter_resource"}, "source_id": "csn:Tsjerk/Insane:insane/utils.py:iter_resource#17294"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Tsjerk/Insane/blob/b73f08910ddb0b66597b20ff75ecee7f65f4ecf6/insane/utils.py#L25-L34", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Tsjerk-Insane:iter_resource-79fa442df3", "question": "Return a stream for a given resource file in the module.\n\n The resource file has to be part of the module and its filenane given\n relative to the module.", "scope": {"holder": "Tsjerk-Insane", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:UCBerkeleySETI/blimpy:blimpy/file_wrapper.py:FilReader._find_blob_start#11779", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "blimpy/file_wrapper.py", "symbol": "FilReader._find_blob_start"}, "source_id": "csn:UCBerkeleySETI/blimpy:blimpy/file_wrapper.py:FilReader._find_blob_start#11779"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/UCBerkeleySETI/blimpy/blob/b8822d3e3e911944370d84371a91fa0c29e9772e/blimpy/file_wrapper.py#L624-L639", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:UCBerkeleySETI-blimpy:FilReader._find_blob_start-66c06f9bec", "question": "Find first blob from selection.", "scope": {"holder": "UCBerkeleySETI-blimpy", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:UCBerkeleySETI/blimpy:blimpy/waterfall.py:Waterfall.__write_to_hdf5_heavy#11791", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "blimpy/waterfall.py", "symbol": "Waterfall.__write_to_hdf5_heavy"}, "source_id": "csn:UCBerkeleySETI/blimpy:blimpy/waterfall.py:Waterfall.__write_to_hdf5_heavy#11791"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/UCBerkeleySETI/blimpy/blob/b8822d3e3e911944370d84371a91fa0c29e9772e/blimpy/waterfall.py#L309-L404", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:UCBerkeleySETI-blimpy:Waterfall.__write_to_hdf5_heavy-dcb644cef3", "question": "Write data to HDF5 file.\n\n Args:\n filename_out (str): Name of output file", "scope": {"holder": "UCBerkeleySETI-blimpy", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:UDST/pandana:pandana/network.py:Network.aggregate#10805", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pandana/network.py", "symbol": "Network.aggregate"}, "source_id": "csn:UDST/pandana:pandana/network.py:Network.aggregate#10805"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/UDST/pandana/blob/961a7ef8d3b0144b190cb60bbd61845fca6fb314/pandana/network.py#L274-L336", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:UDST-pandana:Network.aggregate-e087a871e1", "question": "Aggregate information for every source node in the network - this is\n really the main purpose of this library. This allows you to touch\n the data specified by calling set and perform some aggregation on it\n within the specified distance. For instance, summing the population\n within 1000 meters.\n\n Parameters\n ----------\n distance : float\n The maximum distance to aggregate data within. 'distance' can\n represent any impedance unit that you have set as your edge\n weight. This will usually be a distance unit in meters however\n if you have customized the impedance this could be in other\n units such as utility or time etc.\n type : string\n The type of aggregation, can be one of \"ave\", \"sum\", \"std\",\n \"count\", and now \"min\", \"25pct\", \"median\", \"75pct\", and \"max\" will\n compute the associated quantiles. (Quantiles are computed by\n sorting so might be slower than the others.)\n decay : string\n The type of decay to apply, which makes things that are further\n away count less in the aggregation - must be one of \"linear\",\n \"exponential\" or \"flat\" (which means no decay). Linear is the\n fastest computation to perform. When performing an \"ave\",\n the decay is typically \"flat\"\n imp_name : string, optional\n The impedance name to use for the aggregation on this network.\n Must be one of the impedance names passed in the constructor of\n this object. If not specified, there must be only one impedance\n passed in the constructor, which will be used.\n name : string, optional\n The variable to aggregate. This variable will have been created\n and named by a call to set. If not specified, the default\n variable name will be used so that the most recent call to set\n without giving a name will be the variable used.\n\n Returns\n -------\n agg : Pandas Series\n Returns a Pandas Series for every origin node in the network,\n with the index which is the same as the node_ids passed to the\n init method and the values are the aggregations for each source\n node in the network.", "scope": {"holder": "UDST-pandana", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:UDST/pandana:pandana/loaders/osm.py:build_node_query#10814", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pandana/loaders/osm.py", "symbol": "build_node_query"}, "source_id": "csn:UDST/pandana:pandana/loaders/osm.py:build_node_query#10814"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/UDST/pandana/blob/961a7ef8d3b0144b190cb60bbd61845fca6fb314/pandana/loaders/osm.py#L120-L157", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:UDST-pandana:build_node_query-53fe220c9b", "question": "Build the string for a node-based OSM query.\n\n Parameters\n ----------\n lat_min, lng_min, lat_max, lng_max : float\n tags : str or list of str, optional\n Node tags that will be used to filter the search.\n See http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide\n for information about OSM Overpass queries\n and http://wiki.openstreetmap.org/wiki/Map_Features\n for a list of tags.\n\n Returns\n -------\n query : str", "scope": {"holder": "UDST-pandana", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:URXtech/cmph-cffi:cmph/__init__.py:MPH.lookup#19280", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "cmph/__init__.py", "symbol": "MPH.lookup"}, "source_id": "csn:URXtech/cmph-cffi:cmph/__init__.py:MPH.lookup#19280"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/URXtech/cmph-cffi/blob/85298572e51675cd0c7ef1052ed9989b0e57f0cc/cmph/__init__.py#L252-L273", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:URXtech-cmph-cffi:MPH.lookup-8397716751", "question": "Generate hash code for a key from the Minimal Perfect Hash (MPH)\n\n Parameters\n ----------\n Key : object\n The item to generate a key for, this works best for keys that\n are strings, or can be transformed fairly directly into bytes\n\n Returns : int\n The code for the given item", "scope": {"holder": "URXtech-cmph-cffi", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:URXtech/cmph-cffi:cmph/__init__.py:generate_hash#19277", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "cmph/__init__.py", "symbol": "generate_hash"}, "source_id": "csn:URXtech/cmph-cffi:cmph/__init__.py:generate_hash#19277"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/URXtech/cmph-cffi/blob/85298572e51675cd0c7ef1052ed9989b0e57f0cc/cmph/__init__.py#L388-L567", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:URXtech-cmph-cffi:generate_hash-956208fecb", "question": "Generates a new Minimal Perfect Hash (MPH)\n\n Parameters\n ----------\n data : list, array-like, file-like\n The input that is used to generate the minimal perfect hash.\n\n Be aware, in most cases the input is expected to be distinct, and\n many of the algorithms benefit from the input being sorted.\n\n algorithm : string, optional\n {chd_ph (default), chd, bmz, bmz8, chm, brz, fch, bdz, bdz_ph}\n The algorithm to use in generating MPH's, choice of:\n\n chd / chd_ph - Compress Hash and Displace (default)\n (http://cmph.sourceforge.net/chd.html)\n - It is the fastest algorithm to build PHFs and MPHFs in linear\n time.\n - It generates the most compact PHFs and MPHFs we know of.\n - It can generate PHFs with a load factor up to 99 %.\n - It can be used to generate t-perfect hash functions. A\n t-perfect hash function allows at most t collisions in a given\n bin. It is a well-known fact that modern memories are\n organized as blocks which constitute transfer unit. Example of\n such blocks are cache lines for internal memory or sectors for\n hard disks. Thus, it can be very useful for devices that\n carry out I/O operations in blocks.\n - It is a two level scheme. It uses a first level hash function\n to split the key set in buckets of average size determined by\n a parameter b in the range [1,32]. In the second level it uses\n displacement values to resolve the collisions that have given\n rise to the buckets.\n - It can generate MPHFs that can be stored in approximately 2.07\n bits per key.\n - For a load factor equal to the maximum one that is achieved by\n the BDZ algorithm (81 %), the resulting PHFs are stored in\n approximately 1.40 bits per key.\n\n bdz - BDZ / BPZ algorithm\n (http://cmph.sourceforge.net/bdz.html)\n - It is very simple and efficient. It outperforms all others\n except CHD.\n - It constructs both PHFs and MPHFs in linear time.\n - The maximum load factor one can achieve for a PHF is 1/1.23.\n - It is based on acyclic random 3-graphs. A 3-graph is a\n generalization of a graph where each edge connects 3 vertices\n instead of only 2.\n - The resulting MPHFs are not order preserving.\n - The resulting MPHFs can be stored in only (2 + x)cn bits,\n where c should be larger than or equal to 1.23 and x is a\n constant larger than 0 (actually, x = 1/b and b is a parameter\n that should be larger than 2). For c = 1.23 and b = 8, the\n resulting functions are stored in approximately 2.6 bits per\n key.\n - For its maximum load factor (81 %), the resulting PHFs are\n stored in approximately 1.95 bits per key.\n\n bmz - Botelho, Menoti and Ziviani algorithm:\n (http://cmph.sourceforge.net/bdz.html)\n - Constructs MPHFs in linear time.\n - It is based on cyclic random graphs. This makes it faster than\n the CHM algorithm.\n - The resulting MPHFs are not order preserving.\n - The resulting MPHFs are more compact than the ones generated by\n the CHM algorithm and can be stored in 4cn bytes, where c is in\n the range [0.93,1.15].\n\n brz - BRZ algorithm:\n (http://cmph.sourceforge.net/brz.html)\n - A very fast external memory based algorithm for constructing\n minimal perfect hash functions for sets in the order of\n billions of keys.\n - It works in linear time.\n - The resulting MPHFs are not order preserving.\n - The resulting MPHFs can be stored using less than 8.0 bits per\n key.\n\n chm - Czech, Havas and Majewski algorithm:\n (http://cmph.sourceforge.net/chm.html)\n - Construct minimal MPHFs in linear time.\n - It is based on acyclic random graphs\n - The resulting MPHFs are order preserving.\n - The resulting MPHFs are stored in 4cn bytes, where c is greater\n than 2.\n\n fch - Fox, Chen and Heath algorithm:\n (http://cmph.sourceforge.net/chm.html)\n - Construct minimal perfect hash functions that require less than\n 4 bits per key to be stored.\n - The resulting MPHFs are very compact and very efficient at\n evaluation time\n - The algorithm is only efficient for small sets.\n - It is used as internal algorithm in the BRZ algorithm to\n efficiently solve larger problems and even so to generate MPHFs\n that require approximately 4.1 bits per key to be stored. For\n that, you just need to set the parameters -a to brz and -c to a\n value larger than or equal to 2.6.\n\n hash_fns : list {jenkins (default), count} optional\n Internal hash functions to use inside MPH generation functions,\n can be multiple fns as a list.\n\n chd_keys_per_bin : int [1 to 128], optional\n Set the number of keys per bin for a t-perfect hashing function. A\n t-perfect hash function allows at most t collisions in a given bin.\n This parameter applies only to the `chd` and `chd_ph` algorithms.\n Its value should be an integer in the range [1, 128].\n\n Default is 1\n\n chd_load_factor : float, optional\n The load factor used in the `chd_ph` algorithm\n\n fch_bits_per_key : int, optional\n The number of bits per key required in the FCH algorithm\n\n num_graph_vertices : int, optional\n The number of vertices in the graph for the algorithms BMZ and CHM\n\n brz_memory_size : int (default 8), optional\n Main memory availability (in MB) used in BRZ algorithm\n\n Default is 8Mb\n\n brz_temp_dir : string, optional\n Temporary directory used in BRZ algorithm\n\n brz_max_keys_per_bucket : int [64 to 175] (default 128), optional\n Used to make the maximal number of keys in a bucket lower than 256.\n In this case its value should be an integer in the range [64,175].\n Default is 128.\n\n bdz_precomputed_rank : int [3 to 10] (default 7), optional\n For BDZ it is used to determine the size of some precomputed rank\n information and its value should be an integer in the range [3,10].\n\n Default is 7.\n\n The larger is this value, the more compact are the resulting\n functions and the slower are them at evaluation time.\n\n chd_avg_keys_per_bucket : int [1 to 32] (default 4), optional\n For CHD and CHD_PH it is used to set the average number of keys per\n bucket and its value should be an integer in the range [1,32].\n\n Default is 4.\n\n The larger is this value, the slower is the construction of the\n functions.\n\n Returns\n -------\n MPH\n A wrapper object that represents a minimal perfect hash in memory\n\n Raises\n ------\n ValueError\n If arguments presented are incomplete, or incompatable\n RuntimeError\n If the MPH generation fails", "scope": {"holder": "URXtech-cmph-cffi", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Valuehorizon/valuehorizon-forex:forex/models.py:Currency.compute_return#21405", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "forex/models.py", "symbol": "Currency.compute_return"}, "source_id": "csn:Valuehorizon/valuehorizon-forex:forex/models.py:Currency.compute_return#21405"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Valuehorizon/valuehorizon-forex/blob/e921379ae6c9d07ddad87a1fd3b5bb8fdfc74cb8/forex/models.py#L59-L75", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Valuehorizon-valuehorizon-forex:Currency.compute_return-10ea9791d5", "question": "Compute the return of the currency between two dates", "scope": {"holder": "Valuehorizon-valuehorizon-forex", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Valuehorizon/valuehorizon-forex:forex/models.py:CurrencyPriceManager.generate_dataframe#21406", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "forex/models.py", "symbol": "CurrencyPriceManager.generate_dataframe"}, "source_id": "csn:Valuehorizon/valuehorizon-forex:forex/models.py:CurrencyPriceManager.generate_dataframe#21406"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Valuehorizon/valuehorizon-forex/blob/e921379ae6c9d07ddad87a1fd3b5bb8fdfc74cb8/forex/models.py#L81-L125", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Valuehorizon-valuehorizon-forex:CurrencyPriceManager.generate_dataframe-ed13cc5132", "question": "Generate a dataframe consisting of the currency prices (specified by symbols)\n from the start to end date", "scope": {"holder": "Valuehorizon-valuehorizon-forex", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:VingtCinq/python-resize-image:resizeimage/resizeimage.py:_height_is_big_enough#12992", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "resizeimage/resizeimage.py", "symbol": "_height_is_big_enough"}, "source_id": "csn:VingtCinq/python-resize-image:resizeimage/resizeimage.py:_height_is_big_enough#12992"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/VingtCinq/python-resize-image/blob/a4e645792ef30c5fcc558df6da6de18b1ecb95ea/resizeimage/resizeimage.py#L50-L53", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:VingtCinq-python-resize-image:_height_is_big_enough-e65dfc7fbb", "question": "Check that the image height is superior to `height`", "scope": {"holder": "VingtCinq-python-resize-image", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:VingtCinq/python-resize-image:resizeimage/resizeimage.py:resize_height#12997", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "resizeimage/resizeimage.py", "symbol": "resize_height"}, "source_id": "csn:VingtCinq/python-resize-image:resizeimage/resizeimage.py:resize_height#12997"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/VingtCinq/python-resize-image/blob/a4e645792ef30c5fcc558df6da6de18b1ecb95ea/resizeimage/resizeimage.py#L142-L162", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:VingtCinq-python-resize-image:resize_height-e139f734ce", "question": "Resize image according to size.\n image: a Pillow image instance\n size: an integer or a list or tuple of two integers [width, height]", "scope": {"holder": "VingtCinq-python-resize-image", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:VorskiImagineering/C3PO:c3po/mod/communicator.py:Communicator._clear_temp#20987", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "c3po/mod/communicator.py", "symbol": "Communicator._clear_temp"}, "source_id": "csn:VorskiImagineering/C3PO:c3po/mod/communicator.py:Communicator._clear_temp#20987"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/VorskiImagineering/C3PO/blob/e3e35835e5ac24158848afed4f905ca44ac3ae00/c3po/mod/communicator.py#L115-L125", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:VorskiImagineering-C3PO:Communicator._clear_temp-12802afa55", "question": "Clear temp directory from created csv and ods files during\n communicator operations.", "scope": {"holder": "VorskiImagineering-C3PO", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:VorskiImagineering/C3PO:c3po/converters/po_csv.py:_prepare_polib_files#20780", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "c3po/converters/po_csv.py", "symbol": "_prepare_polib_files"}, "source_id": "csn:VorskiImagineering/C3PO:c3po/converters/po_csv.py:_prepare_polib_files#20780"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/VorskiImagineering/C3PO/blob/e3e35835e5ac24158848afed4f905ca44ac3ae00/c3po/converters/po_csv.py#L61-L80", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:VorskiImagineering-C3PO:_prepare_polib_files-01e5a98124", "question": "Prepare polib file object for writing/reading from them.\n Create directories and write header if needed. For each language,\n ensure there's a translation file named \"filename\" in the correct place.\n Assumes (and creates) a directory structure:\n ///.", "scope": {"holder": "VorskiImagineering-C3PO", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:WGBH/wagtail-streamfieldtools:streamfield_tools/registry.py:RegisteredBlockStreamFieldRegistry.register_block#16545", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "streamfield_tools/registry.py", "symbol": "RegisteredBlockStreamFieldRegistry.register_block"}, "source_id": "csn:WGBH/wagtail-streamfieldtools:streamfield_tools/registry.py:RegisteredBlockStreamFieldRegistry.register_block#16545"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/WGBH/wagtail-streamfieldtools/blob/192f86845532742b0b7d432bef3987357833b8ed/streamfield_tools/registry.py#L51-L57", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:WGBH-wagtail-streamfieldtools:RegisteredBlockStreamFieldRegistry.register_block-73567e0473", "question": "Registers `block` to `block_type` in the registry.", "scope": {"holder": "WGBH-wagtail-streamfieldtools", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:WGBH/wagtail-streamfieldtools:streamfield_tools/blocks/struct_block.py:RenditionAwareStructBlock.get_context#16506", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "streamfield_tools/blocks/struct_block.py", "symbol": "RenditionAwareStructBlock.get_context"}, "source_id": "csn:WGBH/wagtail-streamfieldtools:streamfield_tools/blocks/struct_block.py:RenditionAwareStructBlock.get_context#16506"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/WGBH/wagtail-streamfieldtools/blob/192f86845532742b0b7d432bef3987357833b8ed/streamfield_tools/blocks/struct_block.py#L118-L123", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:WGBH-wagtail-streamfieldtools:RenditionAwareStructBlock.get_context-d9a4b359de", "question": "Ensure `image_rendition` is added to the global context.", "scope": {"holder": "WGBH-wagtail-streamfieldtools", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:WhoopInc/pytsdb:pytsdb.py:Connection.fetch_metric#16622", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pytsdb.py", "symbol": "Connection.fetch_metric"}, "source_id": "csn:WhoopInc/pytsdb:pytsdb.py:Connection.fetch_metric#16622"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/WhoopInc/pytsdb/blob/f053c2effa7a9175c5521e690dbb23700c6c0cfe/pytsdb.py#L20-L101", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:WhoopInc-pytsdb:Connection.fetch_metric-ea5e52bfb2", "question": "Fetch time series data from OpenTSDB\n\n Parameters:\n metric:\n A string representing a valid OpenTSDB metric.\n\n tags:\n A dict mapping tag names to tag values. Tag names and values are\n always strings.\n\n { 'user_id': '44' }\n\n start:\n A datetime.datetime-like object representing the start of the\n range to query over.\n\n end:\n A datetime.datetime-like object representing the end of the\n range to query over.\n\n aggregator:\n The function for merging multiple time series together. For\n example, if the \"user_id\" tag is not specified, this aggregator\n function is used to combine all heart rate time series into one\n time series. (Yes, this isn't very useful.)\n\n For queries that return only one time series, this parameter is\n not relevant.\n\n Valid values: \"sum\", \"min\", \"max\", \"avg\", \"dev\"\n\n See: http://opentsdb.net/docs/build/html/user_guide/query/aggregators.html\n\n downsampling:\n A relative time interval to \"downsample\". This isn't true\n downsampling; rather, if you specify a downsampling of \"5m\"\n (five minutes), OpenTSDB will split data into five minute\n intervals, and return one data point in the middle of each\n interval whose value is the average of all data points within\n that interval.\n\n Valid relative time values are strings of the following format:\n\n \"\"\n\n Valid time units: \"ms\", \"s\", \"m\", \"h\", \"d\", \"w\", \"n\", \"y\"\n\n Date and time format: http://opentsdb.net/docs/build/html/user_guide/query/dates.html\n\n ms_resolution:\n Whether or not to output data point timestamps in milliseconds\n or seconds. If this flag is false and there are multiple\n data points within a second, those data points will be down\n sampled using the query's aggregation function.\n\n Returns:\n A dict mapping timestamps to data points", "scope": {"holder": "WhoopInc-pytsdb", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:WhoopInc/pytsdb:pytsdb.py:Connection.fetch_sorted_metric#16623", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pytsdb.py", "symbol": "Connection.fetch_sorted_metric"}, "source_id": "csn:WhoopInc/pytsdb:pytsdb.py:Connection.fetch_sorted_metric#16623"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/WhoopInc/pytsdb/blob/f053c2effa7a9175c5521e690dbb23700c6c0cfe/pytsdb.py#L103-L110", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:WhoopInc-pytsdb:Connection.fetch_sorted_metric-44a26876fa", "question": "Fetch and sort time series data from OpenTSDB\n\n Takes the same parameters as `fetch_metric`, but returns a list of\n (timestamp, value) tuples sorted by timestamp.", "scope": {"holder": "WhoopInc-pytsdb", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:WoLpH/mt940:mt940/processors.py:date_fixup_pre_processor#7411", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "mt940/processors.py", "symbol": "date_fixup_pre_processor"}, "source_id": "csn:WoLpH/mt940:mt940/processors.py:date_fixup_pre_processor#7411"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/WoLpH/mt940/blob/fd71c88f7ec8372f4194f831f4c29c6f9bd9d0eb/mt940/processors.py#L17-L31", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:WoLpH-mt940:date_fixup_pre_processor-9b603a2d69", "question": "Replace illegal February 29, 30 dates with the last day of February.\n\n German banks use a variant of the 30/360 interest rate calculation,\n where each month has always 30 days even February. Python's datetime\n module won't accept such dates.", "scope": {"holder": "WoLpH-mt940", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:WoLpH/mt940:mt940/processors.py:mBank_set_tnr#7414", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "mt940/processors.py", "symbol": "mBank_set_tnr"}, "source_id": "csn:WoLpH/mt940:mt940/processors.py:mBank_set_tnr#7414"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/WoLpH/mt940/blob/fd71c88f7ec8372f4194f831f4c29c6f9bd9d0eb/mt940/processors.py#L73-L87", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:WoLpH-mt940:mBank_set_tnr-a2ae2bf062", "question": "mBank Collect states TNR in transaction details as unique id for\n transactions, that may be used to identify the same transactions in\n different statement files eg. partial mt942 and full mt940\n Information about tnr uniqueness has been obtained from mBank support,\n it lacks in mt940 mBank specification.", "scope": {"holder": "WoLpH-mt940", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Yaco-Sistemas/django-transmeta:transmeta/management/commands/sync_transmeta_db.py:Command.get_db_change_languages#14851", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "transmeta/management/commands/sync_transmeta_db.py", "symbol": "Command.get_db_change_languages"}, "source_id": "csn:Yaco-Sistemas/django-transmeta:transmeta/management/commands/sync_transmeta_db.py:Command.get_db_change_languages#14851"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Yaco-Sistemas/django-transmeta/blob/de070aae27770df046b4ba995f01f654db7ed1a2/transmeta/management/commands/sync_transmeta_db.py#L134-L145", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Yaco-Sistemas-django-transmeta:Command.get_db_change_languages-7733e38e30", "question": "get only db changes fields", "scope": {"holder": "Yaco-Sistemas-django-transmeta", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Yaco-Sistemas/django-transmeta:transmeta/management/commands/sync_transmeta_db.py:Command.handle#14850", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "transmeta/management/commands/sync_transmeta_db.py", "symbol": "Command.handle"}, "source_id": "csn:Yaco-Sistemas/django-transmeta:transmeta/management/commands/sync_transmeta_db.py:Command.handle#14850"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Yaco-Sistemas/django-transmeta/blob/de070aae27770df046b4ba995f01f654db7ed1a2/transmeta/management/commands/sync_transmeta_db.py#L63-L117", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Yaco-Sistemas-django-transmeta:Command.handle-87bdf7fec7", "question": "command execution", "scope": {"holder": "Yaco-Sistemas-django-transmeta", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Yelp/py_zipkin:py_zipkin/encoding/_helpers.py:Span.build_v1_span#7374", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "py_zipkin/encoding/_helpers.py", "symbol": "Span.build_v1_span"}, "source_id": "csn:Yelp/py_zipkin:py_zipkin/encoding/_helpers.py:Span.build_v1_span#7374"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Yelp/py_zipkin/blob/0944d9a3fb1f1798dbb276694aeed99f2b4283ba/py_zipkin/encoding/_helpers.py#L117-L153", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Yelp-py_zipkin:Span.build_v1_span-78a1303568", "question": "Builds and returns a V1 Span.\n\n :return: newly generated _V1Span\n :rtype: _V1Span", "scope": {"holder": "Yelp-py_zipkin", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Yelp/py_zipkin:py_zipkin/encoding/_helpers.py:copy_endpoint_with_new_service_name#7373", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "py_zipkin/encoding/_helpers.py", "symbol": "copy_endpoint_with_new_service_name"}, "source_id": "csn:Yelp/py_zipkin:py_zipkin/encoding/_helpers.py:copy_endpoint_with_new_service_name#7373"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Yelp/py_zipkin/blob/0944d9a3fb1f1798dbb276694aeed99f2b4283ba/py_zipkin/encoding/_helpers.py#L206-L220", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Yelp-py_zipkin:copy_endpoint_with_new_service_name-9213824200", "question": "Creates a copy of a given endpoint with a new service name.\n\n :param endpoint: existing Endpoint object\n :type endpoint: Endpoint\n :param new_service_name: new service name\n :type new_service_name: str\n :returns: zipkin new Endpoint object", "scope": {"holder": "Yelp-py_zipkin", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:Yubico/python-u2flib-host:u2flib_host/device.py:U2FDevice.get_supported_versions#12970", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "u2flib_host/device.py", "symbol": "U2FDevice.get_supported_versions"}, "source_id": "csn:Yubico/python-u2flib-host:u2flib_host/device.py:U2FDevice.get_supported_versions#12970"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Yubico/python-u2flib-host/blob/eadc4dbf3bf516e74ea00d2e5690742a535834cb/u2flib_host/device.py#L69-L80", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Yubico-python-u2flib-host:U2FDevice.get_supported_versions-729e2aa275", "question": "Gets a list of supported U2F versions from the device.", "scope": {"holder": "Yubico-python-u2flib-host", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:Yubico/python-u2flib-host:u2flib_host/u2f_v2.py:authenticate#12974", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "u2flib_host/u2f_v2.py", "symbol": "authenticate"}, "source_id": "csn:Yubico/python-u2flib-host:u2flib_host/u2f_v2.py:authenticate#12974"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/Yubico/python-u2flib-host/blob/eadc4dbf3bf516e74ea00d2e5690742a535834cb/u2flib_host/u2f_v2.py#L81-L126", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:Yubico-python-u2flib-host:authenticate-f3e9a132e0", "question": "Signs an authentication challenge\n\n data = {\n 'version': \"U2F_V2\",\n 'challenge': websafe_encode(self.challenge),\n 'appId': self.binding.app_id,\n 'keyHandle': websafe_encode(self.binding.key_handle)\n }", "scope": {"holder": "Yubico-python-u2flib-host", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ZELLMECHANIK-DRESDEN/fcswrite:examples/tdms2fcs.py:add_deformation#12908", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "examples/tdms2fcs.py", "symbol": "add_deformation"}, "source_id": "csn:ZELLMECHANIK-DRESDEN/fcswrite:examples/tdms2fcs.py:add_deformation#12908"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ZELLMECHANIK-DRESDEN/fcswrite/blob/5584983aa1eb927660183252039e73285c0724b3/examples/tdms2fcs.py#L32-L44", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ZELLMECHANIK-DRESDEN-fcswrite:add_deformation-76d0555270", "question": "From circularity, compute the deformation\n\n This method is useful for RT-DC data sets that contain\n the circularity but not the deformation.", "scope": {"holder": "ZELLMECHANIK-DRESDEN-fcswrite", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ZELLMECHANIK-DRESDEN/fcswrite:examples/tdms2fcs.py:tdms2fcs#12909", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "examples/tdms2fcs.py", "symbol": "tdms2fcs"}, "source_id": "csn:ZELLMECHANIK-DRESDEN/fcswrite:examples/tdms2fcs.py:tdms2fcs#12909"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ZELLMECHANIK-DRESDEN/fcswrite/blob/5584983aa1eb927660183252039e73285c0724b3/examples/tdms2fcs.py#L47-L54", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ZELLMECHANIK-DRESDEN-fcswrite:tdms2fcs-959f8a5053", "question": "Creates an fcs file for a given tdms file", "scope": {"holder": "ZELLMECHANIK-DRESDEN-fcswrite", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:a-tal/nagaram:nagaram/anagrams.py:_letter_map#19569", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "nagaram/anagrams.py", "symbol": "_letter_map"}, "source_id": "csn:a-tal/nagaram:nagaram/anagrams.py:_letter_map#19569"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/a-tal/nagaram/blob/2edcb0ef8cb569ebd1c398be826472b4831d6110/nagaram/anagrams.py#L7-L23", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:a-tal-nagaram:_letter_map-10173fda89", "question": "Creates a map of letter use in a word.\n\n Args:\n word: a string to create a letter map from\n\n Returns:\n a dictionary of {letter: integer count of letter in word}", "scope": {"holder": "a-tal-nagaram", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:a-tal/nagaram:nagaram/cmdline.py:main#19675", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "nagaram/cmdline.py", "symbol": "main"}, "source_id": "csn:a-tal/nagaram:nagaram/cmdline.py:main#19675"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/a-tal/nagaram/blob/2edcb0ef8cb569ebd1c398be826472b4831d6110/nagaram/cmdline.py#L148-L160", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:a-tal-nagaram:main-f72fd797b0", "question": "Main command line entry point.", "scope": {"holder": "a-tal-nagaram", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:abau171/highfive:highfive/jobs.py:JobManager._distribute_jobs#19322", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "highfive/jobs.py", "symbol": "JobManager._distribute_jobs"}, "source_id": "csn:abau171/highfive:highfive/jobs.py:JobManager._distribute_jobs#19322"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/abau171/highfive/blob/07b3829331072035ab100d1d66deca3e8f3f372a/highfive/jobs.py#L359-L370", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:abau171-highfive:JobManager._distribute_jobs-6924ada722", "question": "Distributes jobs from the active job set to any waiting get_job\n callbacks.", "scope": {"holder": "abau171-highfive", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:abau171/highfive:highfive/master.py:Master.run#19311", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "highfive/master.py", "symbol": "Master.run"}, "source_id": "csn:abau171/highfive:highfive/master.py:Master.run#19311"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/abau171/highfive/blob/07b3829331072035ab100d1d66deca3e8f3f372a/highfive/master.py#L183-L191", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:abau171-highfive:Master.run-1e82ee1150", "question": "Runs a job set which consists of the jobs in an iterable job list.", "scope": {"holder": "abau171-highfive", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:accraze/pymtranslate:pymtranslate/translator.py:Translator.convertArgsToTokens#16173", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pymtranslate/translator.py", "symbol": "Translator.convertArgsToTokens"}, "source_id": "csn:accraze/pymtranslate:pymtranslate/translator.py:Translator.convertArgsToTokens#16173"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/accraze/pymtranslate/blob/b18f9d7e8ef1583c988e8beb6c3304d362a4d979/pymtranslate/translator.py#L44-L62", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:accraze-pymtranslate:Translator.convertArgsToTokens-018e3c04b4", "question": "this converts the readin lines from\n sys to useable format, returns list\n of token and dict of tokens", "scope": {"holder": "accraze-pymtranslate", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:accraze/pymtranslate:pymtranslate/translator.py:Translator.iterateEM#16175", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pymtranslate/translator.py", "symbol": "Translator.iterateEM"}, "source_id": "csn:accraze/pymtranslate:pymtranslate/translator.py:Translator.iterateEM#16175"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/accraze/pymtranslate/blob/b18f9d7e8ef1583c988e8beb6c3304d362a4d979/pymtranslate/translator.py#L103-L179", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:accraze-pymtranslate:Translator.iterateEM-584bce293e", "question": "Iterate through all transmissions of english to\n foreign words. keep count of repeated occurences\n do until convergence\n set count(e|f) to 0 for all e,f\n set total(f) to 0 for all f\n for all sentence pairs (e_s,f_s)\n set total_s(e) = 0 for all e\n for all words e in e_s\n for all words f in f_s\n total_s(e) += t(e|f)\n for all words e in e_s\n for all words f in f_s\n count(e|f) += t(e|f) / total_s(e)\n total(f) += t(e|f) / total_s(e)\n for all f\n for all e\n t(e|f) = count(e|f) / total(f)", "scope": {"holder": "accraze-pymtranslate", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:adafruit/Adafruit_Python_PureIO:Adafruit_PureIO/smbus.py:SMBus.process_call#14104", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "Adafruit_PureIO/smbus.py", "symbol": "SMBus.process_call"}, "source_id": "csn:adafruit/Adafruit_Python_PureIO:Adafruit_PureIO/smbus.py:SMBus.process_call#14104"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/adafruit/Adafruit_Python_PureIO/blob/6f4976d91c52d70b67b28bba75a429b5328a52c1/Adafruit_PureIO/smbus.py#L296-L314", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:adafruit-Adafruit_Python_PureIO:SMBus.process_call-edd65038ad", "question": "Perform a smbus process call by writing a word (2 byte) value to\n the specified register of the device, and then reading a word of response\n data (which is returned).", "scope": {"holder": "adafruit-Adafruit_Python_PureIO", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:adafruit/Adafruit_Python_PureIO:Adafruit_PureIO/smbus.py:SMBus.write_byte#14098", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "Adafruit_PureIO/smbus.py", "symbol": "SMBus.write_byte"}, "source_id": "csn:adafruit/Adafruit_Python_PureIO:Adafruit_PureIO/smbus.py:SMBus.write_byte#14098"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/adafruit/Adafruit_Python_PureIO/blob/6f4976d91c52d70b67b28bba75a429b5328a52c1/Adafruit_PureIO/smbus.py#L232-L238", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:adafruit-Adafruit_Python_PureIO:SMBus.write_byte-185ed65c9c", "question": "Write a single byte to the specified device.", "scope": {"holder": "adafruit-Adafruit_Python_PureIO", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:addok/addok:addok/helpers/__init__.py:ChunkedPool.imap_unordered#9483", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "addok/helpers/__init__.py", "symbol": "ChunkedPool.imap_unordered"}, "source_id": "csn:addok/addok:addok/helpers/__init__.py:ChunkedPool.imap_unordered#9483"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/addok/addok/blob/46a270d76ec778d2b445c2be753e5c6ba070a9b2/addok/helpers/__init__.py#L144-L164", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:addok-addok:ChunkedPool.imap_unordered-08486e4b80", "question": "Customized version of imap_unordered.\n\n Directly send chunks to func, instead of iterating in each process and\n sending one by one.\n\n Original:\n https://hg.python.org/cpython/file/tip/Lib/multiprocessing/pool.py#l271\n\n Other tried options:\n - map_async: makes a list(iterable), so it loads all the data for each\n process into RAM\n - apply_async: needs manual chunking", "scope": {"holder": "addok-addok", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:addok/addok:addok/shell.py:Cmd.do_INTERSECT#9490", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "addok/shell.py", "symbol": "Cmd.do_INTERSECT"}, "source_id": "csn:addok/addok:addok/shell.py:Cmd.do_INTERSECT#9490"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/addok/addok/blob/46a270d76ec778d2b445c2be753e5c6ba070a9b2/addok/shell.py#L218-L234", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:addok-addok:Cmd.do_INTERSECT-18e8b24e97", "question": "Do a raw intersect between tokens (default limit 100).\n INTERSECT rue des lilas [LIMIT 100]", "scope": {"holder": "addok-addok", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:agabrown/PyGaia:pygaia/astrometry/coordinates.py:CoordinateTransformation._getJacobian#11912", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pygaia/astrometry/coordinates.py", "symbol": "CoordinateTransformation._getJacobian"}, "source_id": "csn:agabrown/PyGaia:pygaia/astrometry/coordinates.py:CoordinateTransformation._getJacobian#11912"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/agabrown/PyGaia/blob/ae972b0622a15f713ffae471f925eac25ccdae47/pygaia/astrometry/coordinates.py#L298-L342", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:agabrown-PyGaia:CoordinateTransformation._getJacobian-5ee61af87e", "question": "Calculates the Jacobian for the transformation of the position errors and proper motion errors\n between coordinate systems. This Jacobian is also the rotation matrix for the transformation of\n proper motions. See section 1.5.3 of the Hipparcos Explanatory Volume 1 (equation 1.5.20). This\n matrix has the following form:\n\n | c s |\n J = | |\n | -s c |\n\n Parameters\n ----------\n\n phi - The longitude-like angle of the position of the source (radians).\n theta - The latitude-like angle of the position of the source (radians).\n\n Returns\n -------\n\n c, s - The Jacobian matrix elements c and s corresponding to (phi, theta) and the currently\n desired coordinate system transformation.", "scope": {"holder": "agabrown-PyGaia", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:agabrown/PyGaia:examples/radialVelocityHorizons.py:makePlot#11916", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "examples/radialVelocityHorizons.py", "symbol": "makePlot"}, "source_id": "csn:agabrown/PyGaia:examples/radialVelocityHorizons.py:makePlot#11916"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/agabrown/PyGaia/blob/ae972b0622a15f713ffae471f925eac25ccdae47/examples/radialVelocityHorizons.py#L35-L129", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:agabrown-PyGaia:makePlot-2c382b0b29", "question": "Make the plot with parallax horizons. The plot shows V-band magnitude vs distance for a number of\n spectral types and over the range 5.7 `self.size`.", "scope": {"holder": "alghafli-fileslice", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:algofairness/BlackBoxAuditing:python2_source/BlackBoxAuditing/measurements.py:BCR#9437", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "python2_source/BlackBoxAuditing/measurements.py", "symbol": "BCR"}, "source_id": "csn:algofairness/BlackBoxAuditing:python2_source/BlackBoxAuditing/measurements.py:BCR#9437"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/algofairness/BlackBoxAuditing/blob/b06c4faed5591cd7088475b2a203127bc5820483/python2_source/BlackBoxAuditing/measurements.py#L14-L30", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:algofairness-BlackBoxAuditing:BCR-85fc417701", "question": "Given a confusion matrix, returns Balanced Classification Rate.\n BCR is (1 - Balanced Error Rate).\n BER Definition: http://research.ics.aalto.fi/events/eyechallenge2005/evaluation.shtml", "scope": {"holder": "algofairness-BlackBoxAuditing", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:algofairness/BlackBoxAuditing:BlackBoxAuditing/repairers/calculators.py:get_median#9438", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "BlackBoxAuditing/repairers/calculators.py", "symbol": "get_median"}, "source_id": "csn:algofairness/BlackBoxAuditing:BlackBoxAuditing/repairers/calculators.py:get_median#9438"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/algofairness/BlackBoxAuditing/blob/b06c4faed5591cd7088475b2a203127bc5820483/BlackBoxAuditing/repairers/calculators.py#L3-L24", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:algofairness-BlackBoxAuditing:get_median-9cfaeedf31", "question": "Given an unsorted list of numeric values, return median value (as a float).\n Note that in the case of even-length lists of values, we apply the value to\n the left of the center to be the median (such that the median can only be\n a value from the list of values).\n Eg: get_median([1,2,3,4]) == 2, not 2.5.", "scope": {"holder": "algofairness-BlackBoxAuditing", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:alimuldal/PyFNND:pyfnnd/demo.py:make_fake_movie#17655", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyfnnd/demo.py", "symbol": "make_fake_movie"}, "source_id": "csn:alimuldal/PyFNND:pyfnnd/demo.py:make_fake_movie#17655"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/alimuldal/PyFNND/blob/3cbe0622a385f5206837bfd944d781aa7b1649ea/pyfnnd/demo.py#L8-L73", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:alimuldal-PyFNND:make_fake_movie-368566c8b6", "question": "Generate 2D fake fluorescence movie\n\n Arguments:\n ---------------------------------------------------------------------------\n nframes: number of timebins to simulate\n mask_shape: tuple (nrows, ncols), shape of a single movie frame\n mask_center: tuple (x, y), pixel coords of cell center\n bg_intensity: scalar, amplitude of (static) baseline fluorescence\n mask_sigma: scalar, standard deviation of Gaussian mask\n dt: timestep (s)\n rate: mean spike rate (Hz)\n tau: time constant of decay in calcium concentration (s)\n sigma: SD of additive noise on fluorescence\n seed: Seed for RNG\n\n Returns:\n ---------------------------------------------------------------------------\n F: fluorescence [npixels, nframes]\n c: calcium concentration [nframes,]\n n: spike train [nframes,]\n theta: tuple of true model parameters:\n (sigma, alpha, beta, lambda, gamma)", "scope": {"holder": "alimuldal-PyFNND", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:alimuldal/PyFNND:pyfnnd/utils.py:s2h#17660", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "pyfnnd/utils.py", "symbol": "s2h"}, "source_id": "csn:alimuldal/PyFNND:pyfnnd/utils.py:s2h#17660"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/alimuldal/PyFNND/blob/3cbe0622a385f5206837bfd944d781aa7b1649ea/pyfnnd/utils.py#L24-L34", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:alimuldal-PyFNND:s2h-f4ca2d684a", "question": "convert seconds to a pretty \"d hh:mm:ss.s\" format", "scope": {"holder": "alimuldal-PyFNND", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:allanlei/django-argparse-command:argcmd/management/base.py:BaseCommand.create_parser#20599", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "argcmd/management/base.py", "symbol": "BaseCommand.create_parser"}, "source_id": "csn:allanlei/django-argparse-command:argcmd/management/base.py:BaseCommand.create_parser#20599"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/allanlei/django-argparse-command/blob/27ea77e1dd0cf2f0567223735762a5ebd14fdaef/argcmd/management/base.py#L46-L61", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:allanlei-django-argparse-command:BaseCommand.create_parser-e2a6343a44", "question": "Create and return the ``ArgumentParser`` which will be used to\n parse the arguments to this command.", "scope": {"holder": "allanlei-django-argparse-command", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:alpacahq/alpaca-trade-api-python:alpaca_trade_api/rest.py:REST._one_request#4543", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "alpaca_trade_api/rest.py", "symbol": "REST._one_request"}, "source_id": "csn:alpacahq/alpaca-trade-api-python:alpaca_trade_api/rest.py:REST._one_request#4543"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/alpacahq/alpaca-trade-api-python/blob/9c9dea3b4a37c909f88391b202e86ff356a8b4d7/alpaca_trade_api/rest.py#L111-L134", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:alpacahq-alpaca-trade-api-python:REST._one_request-589595b454", "question": "Perform one request, possibly raising RetryException in the case\n the response is 429. Otherwise, if error text contain \"code\" string,\n then it decodes to json object and returns APIError.\n Returns the body json in the 200 status.", "scope": {"holder": "alpacahq-alpaca-trade-api-python", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:alpacahq/alpaca-trade-api-python:alpaca_trade_api/rest.py:REST.list_orders#4544", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "alpaca_trade_api/rest.py", "symbol": "REST.list_orders"}, "source_id": "csn:alpacahq/alpaca-trade-api-python:alpaca_trade_api/rest.py:REST.list_orders#4544"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/alpacahq/alpaca-trade-api-python/blob/9c9dea3b4a37c909f88391b202e86ff356a8b4d7/alpaca_trade_api/rest.py#L154-L173", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:alpacahq-alpaca-trade-api-python:REST.list_orders-e106d6c3de", "question": "Get a list of orders\n https://docs.alpaca.markets/web-api/orders/#get-a-list-of-orders", "scope": {"holder": "alpacahq-alpaca-trade-api-python", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:ambitioninc/python-logentries-api:logentries_api/resources.py:Alerts.get#18163", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "logentries_api/resources.py", "symbol": "Alerts.get"}, "source_id": "csn:ambitioninc/python-logentries-api:logentries_api/resources.py:Alerts.get#18163"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ambitioninc/python-logentries-api/blob/77ff1a7a2995d7ea2725b74e34c0f880f4ee23bc/logentries_api/resources.py#L560-L591", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ambitioninc-python-logentries-api:Alerts.get-a73e1ec293", "question": "Get alerts that match the alert type and args.\n\n :param alert_type: The type of the alert. Must be one of 'pagerduty',\n 'mailto', 'webhook', 'slack', or 'hipchat'\n :type alert_type: str\n\n :param alert_args: The args for the alert. The provided args must be a\n subset of the actual alert args. If no args are provided, all\n alerts matching the ``alert_type`` are returned. For example:\n ``.get('mailto', alert_args={'direct': 'me@mydomain.com'})`` or\n ``.get('slack', {'url': 'https://hooks.slack.com/services...'})``\n\n :return: A list of matching alerts. An empty list is returned if there\n are not any matches\n :rtype: list of dict\n\n :raises: This will raise a\n :class:`ServerException`\n if there is an error from Logentries", "scope": {"holder": "ambitioninc-python-logentries-api", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:ambitioninc/python-logentries-api:logentries_api/resources.py:Labels.update#18153", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "logentries_api/resources.py", "symbol": "Labels.update"}, "source_id": "csn:ambitioninc/python-logentries-api:logentries_api/resources.py:Labels.update#18153"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ambitioninc/python-logentries-api/blob/77ff1a7a2995d7ea2725b74e34c0f880f4ee23bc/logentries_api/resources.py#L151-L192", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ambitioninc-python-logentries-api:Labels.update-84d27ebdcf", "question": "Update a Label\n\n :param label: The data to update. Must include keys:\n\n * id (str)\n * appearance (dict)\n * description (str)\n * name (str)\n * title (str)\n :type label: dict\n\n Example:\n\n .. code-block:: python\n\n Labels().update(\n label={\n 'id': 'd9d4596e-49e4-4135-b3b3-847f9e7c1f43',\n 'appearance': {'color': '278abe'},\n 'name': 'My Sandbox',\n 'description': 'My Sandbox',\n 'title': 'My Sandbox',\n }\n )\n\n :return:\n :rtype: dict", "scope": {"holder": "ambitioninc-python-logentries-api", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:amcat/progressmonitor:progressmonitor/__init__.py:ProgressMonitor.begin#20822", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "progressmonitor/__init__.py", "symbol": "ProgressMonitor.begin"}, "source_id": "csn:amcat/progressmonitor:progressmonitor/__init__.py:ProgressMonitor.begin#20822"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/amcat/progressmonitor/blob/d4cabebc95bfd1447120f601c094b20bee954285/progressmonitor/__init__.py#L72-L77", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:amcat-progressmonitor:ProgressMonitor.begin-cfa7b1e9b1", "question": "Call before starting work on a monitor, specifying name and amount of work", "scope": {"holder": "amcat-progressmonitor", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:amcat/progressmonitor:progressmonitor/__init__.py:ProgressMonitor.task#20823", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "progressmonitor/__init__.py", "symbol": "ProgressMonitor.task"}, "source_id": "csn:amcat/progressmonitor:progressmonitor/__init__.py:ProgressMonitor.task#20823"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/amcat/progressmonitor/blob/d4cabebc95bfd1447120f601c094b20bee954285/progressmonitor/__init__.py#L80-L86", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:amcat-progressmonitor:ProgressMonitor.task-878e65b887", "question": "Wrap code into a begin and end call on this monitor", "scope": {"holder": "amcat-progressmonitor", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:amelchio/eternalegypt:eternalegypt/eternalegypt.py:autologin#14823", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "eternalegypt/eternalegypt.py", "symbol": "autologin"}, "source_id": "csn:amelchio/eternalegypt:eternalegypt/eternalegypt.py:autologin#14823"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/amelchio/eternalegypt/blob/895e0b235ceaf7f61458c620237c3ad397780e98/eternalegypt/eternalegypt.py#L52-L71", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:amelchio-eternalegypt:autologin-8452358fe5", "question": "Decorator that will try to login and redo an action before failing.", "scope": {"holder": "amelchio-eternalegypt", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:amelchio/eternalegypt:examples/status.py:get_information#14826", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "examples/status.py", "symbol": "get_information"}, "source_id": "csn:amelchio/eternalegypt:examples/status.py:get_information#14826"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/amelchio/eternalegypt/blob/895e0b235ceaf7f61458c620237c3ad397780e98/examples/status.py#L11-L41", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:amelchio-eternalegypt:get_information-b336a13310", "question": "Example of printing the current upstream.", "scope": {"holder": "amelchio-eternalegypt", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:amorison/loam:loam/cli.py:CLIManager._add_options_to_parser#19295", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "loam/cli.py", "symbol": "CLIManager._add_options_to_parser"}, "source_id": "csn:amorison/loam:loam/cli.py:CLIManager._add_options_to_parser#19295"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/amorison/loam/blob/a566c943a75e068a4510099331a1ddfe5bbbdd94/loam/cli.py#L141-L154", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:amorison-loam:CLIManager._add_options_to_parser-7a1b874349", "question": "Add options to a parser.", "scope": {"holder": "amorison-loam", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:amorison/loam:loam/manager.py:ConfigurationManager.read_configs_#19290", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "loam/manager.py", "symbol": "ConfigurationManager.read_configs_"}, "source_id": "csn:amorison/loam:loam/manager.py:ConfigurationManager.read_configs_#19290"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/amorison/loam/blob/a566c943a75e068a4510099331a1ddfe5bbbdd94/loam/manager.py#L366-L389", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:amorison-loam:ConfigurationManager.read_configs_-26ed94d364", "question": "Read config files and set config values accordingly.\n\n Returns:\n (dict, list, list): respectively content of files, list of\n missing/empty files and list of files for which a parsing error\n arised.", "scope": {"holder": "amorison-loam", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:amyth/django-instapush:instapush/models/base.py:GCMDevice.send_message#17148", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "instapush/models/base.py", "symbol": "GCMDevice.send_message"}, "source_id": "csn:amyth/django-instapush:instapush/models/base.py:GCMDevice.send_message#17148"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/amyth/django-instapush/blob/f8643a2e342fc73a16c95dff79c3daac8ce4b034/instapush/models/base.py#L63-L74", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:amyth-django-instapush:GCMDevice.send_message-3d6e50b667", "question": "Sends a push notification to this device via GCM", "scope": {"holder": "amyth-django-instapush", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:amyth/django-instapush:instapush/libs/apns.py:apns_fetch_inactive_ids#17150", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "instapush/libs/apns.py", "symbol": "apns_fetch_inactive_ids"}, "source_id": "csn:amyth/django-instapush:instapush/libs/apns.py:apns_fetch_inactive_ids#17150"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/amyth/django-instapush/blob/f8643a2e342fc73a16c95dff79c3daac8ce4b034/instapush/libs/apns.py#L245-L256", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:amyth-django-instapush:apns_fetch_inactive_ids-5129563f34", "question": "Queries the APNS server for id's that are no longer active since\n the last fetch", "scope": {"holder": "amyth-django-instapush", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:analytehealth/django-analytics:djanalytics/reports/utils.py:average_duration#15386", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "djanalytics/reports/utils.py", "symbol": "average_duration"}, "source_id": "csn:analytehealth/django-analytics:djanalytics/reports/utils.py:average_duration#15386"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/analytehealth/django-analytics/blob/7782d3f81249dcb1b266afb0cb1e90000108c74d/djanalytics/reports/utils.py#L12-L19", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:analytehealth-django-analytics:average_duration-39aa544068", "question": "Method to calculate and format an average duration safely", "scope": {"holder": "analytehealth-django-analytics", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:andrefsp/pyflot:flot/__init__.py:Graph._get_axis_mode#18903", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "flot/__init__.py", "symbol": "Graph._get_axis_mode"}, "source_id": "csn:andrefsp/pyflot:flot/__init__.py:Graph._get_axis_mode#18903"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/andrefsp/pyflot/blob/f2dde10709aeed39074fcce8172184b5cd8bfd66/flot/__init__.py#L266-L270", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:andrefsp-pyflot:Graph._get_axis_mode-9f2273e610", "question": "will get the axis mode for the current series", "scope": {"holder": "andrefsp-pyflot", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:andrefsp/pyflot:flot/__init__.py:Series._set_data#18902", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "flot/__init__.py", "symbol": "Series._set_data"}, "source_id": "csn:andrefsp/pyflot:flot/__init__.py:Series._set_data#18902"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/andrefsp/pyflot/blob/f2dde10709aeed39074fcce8172184b5cd8bfd66/flot/__init__.py#L168-L186", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:andrefsp-pyflot:Series._set_data-5b2c4c6aa9", "question": "This method will be called to set Series data", "scope": {"holder": "andrefsp-pyflot", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:andreikop/python-ws-discovery:wsdiscovery/daemon.py:NetworkingThread.addSourceAddr#7517", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "wsdiscovery/daemon.py", "symbol": "NetworkingThread.addSourceAddr"}, "source_id": "csn:andreikop/python-ws-discovery:wsdiscovery/daemon.py:NetworkingThread.addSourceAddr#7517"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/andreikop/python-ws-discovery/blob/a7b852cf43115c6f986e509b1870d6963e76687f/wsdiscovery/daemon.py#L126-L135", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:andreikop-python-ws-discovery:NetworkingThread.addSourceAddr-0557345ca7", "question": "None means 'system default", "scope": {"holder": "andreikop-python-ws-discovery", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:andreikop/python-ws-discovery:wsdiscovery/daemon.py:WSDiscovery.setRemoteServiceHelloCallback#7519", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "wsdiscovery/daemon.py", "symbol": "WSDiscovery.setRemoteServiceHelloCallback"}, "source_id": "csn:andreikop/python-ws-discovery:wsdiscovery/daemon.py:WSDiscovery.setRemoteServiceHelloCallback#7519"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/andreikop/python-ws-discovery/blob/a7b852cf43115c6f986e509b1870d6963e76687f/wsdiscovery/daemon.py#L291-L303", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:andreikop-python-ws-discovery:WSDiscovery.setRemoteServiceHelloCallback-f84704e6fc", "question": "Set callback, which will be called when new service appeared online\n and sent Hi message\n\n typesFilter and scopesFilter might be list of types and scopes.\n If filter is set, callback is called only for Hello messages,\n which match filter\n\n Set None to disable callback", "scope": {"holder": "andreikop-python-ws-discovery", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:anentropic/dirtyebay:dirtyebay/utils.py:_default_ns_prefix#21865", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "dirtyebay/utils.py", "symbol": "_default_ns_prefix"}, "source_id": "csn:anentropic/dirtyebay:dirtyebay/utils.py:_default_ns_prefix#21865"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/anentropic/dirtyebay/blob/c3194932360445563cfe0c7e034e41f09358c7eb/dirtyebay/utils.py#L60-L90", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:anentropic-dirtyebay:_default_ns_prefix-4d1afb181a", "question": "XML doc may have several prefix:namespace_url pairs, can also specify\n a namespace_url as default, tags in that namespace don't need a prefix\n NOTE:\n we rely on default namespace also present in prefixed form, I'm not sure if\n this is an XML certainty or a quirk of the eBay WSDLs\n\n in our case the WSDL contains:\n \n 1.0.0\n \n ...but our query needs to give a prefix to the path of `Version` so we need\n to determine the default namespace of the doc, find the matching prefix and\n return it", "scope": {"holder": "anentropic-dirtyebay", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:anentropic/dirtyebay:dirtyebay/utils.py:version_from_schema#21864", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "dirtyebay/utils.py", "symbol": "version_from_schema"}, "source_id": "csn:anentropic/dirtyebay:dirtyebay/utils.py:version_from_schema#21864"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/anentropic/dirtyebay/blob/c3194932360445563cfe0c7e034e41f09358c7eb/dirtyebay/utils.py#L36-L57", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:anentropic-dirtyebay:version_from_schema-fadf23a2d9", "question": "returns: API version number \n raises: \n\n NOTE:\n relies on presence of comment tags in the XSD, which are currently present\n for both ebaySvc.xsd (TradingAPI) and ShoppingService.xsd (ShoppingAPI)", "scope": {"holder": "anentropic-dirtyebay", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:ankitmathur3193/song-cli:song/commands/SearchEngineParser/GoogleParser.py:GoogleParser.Parse#17683", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "song/commands/SearchEngineParser/GoogleParser.py", "symbol": "GoogleParser.Parse"}, "source_id": "csn:ankitmathur3193/song-cli:song/commands/SearchEngineParser/GoogleParser.py:GoogleParser.Parse#17683"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ankitmathur3193/song-cli/blob/ca8ccfe547e9d702313ff6d14e81ae4355989a67/song/commands/SearchEngineParser/GoogleParser.py#L33-L43", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ankitmathur3193-song-cli:GoogleParser.Parse-2b9e9ab31a", "question": "song_name is a list of strings\n\t\twebsite is a string\n\t\tIt will return the url from where music file needs to be downloaded", "scope": {"holder": "ankitmathur3193-song-cli", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ankitmathur3193/song-cli:song/commands/SearchEngineParser/GoogleParser.py:GoogleParser.parse_google#17682", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "song/commands/SearchEngineParser/GoogleParser.py", "symbol": "GoogleParser.parse_google"}, "source_id": "csn:ankitmathur3193/song-cli:song/commands/SearchEngineParser/GoogleParser.py:GoogleParser.parse_google#17682"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ankitmathur3193/song-cli/blob/ca8ccfe547e9d702313ff6d14e81ae4355989a67/song/commands/SearchEngineParser/GoogleParser.py#L20-L30", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ankitmathur3193-song-cli:GoogleParser.parse_google-a0ecf6cb30", "question": "It will parse google html response\n\t\t\tand return the first url", "scope": {"holder": "ankitmathur3193-song-cli", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:ansible/ansible-lint:lib/ansiblelint/utils.py:normalize_task_v2#3564", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "lib/ansiblelint/utils.py", "symbol": "normalize_task_v2"}, "source_id": "csn:ansible/ansible-lint:lib/ansiblelint/utils.py:normalize_task_v2#3564"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ansible/ansible-lint/blob/b4a8743794e592698c32e760bc774a85f8eebeb5/lib/ansiblelint/utils.py#L368-L416", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ansible-ansible-lint:normalize_task_v2-9eb0c41b8f", "question": "Ensures tasks have an action key and strings are converted to python objects", "scope": {"holder": "ansible-ansible-lint", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:ansible/ansible-lint:lib/ansiblelint/utils.py:parse_yaml_linenumbers#3565", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "lib/ansiblelint/utils.py", "symbol": "parse_yaml_linenumbers"}, "source_id": "csn:ansible/ansible-lint:lib/ansiblelint/utils.py:parse_yaml_linenumbers#3565"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/ansible/ansible-lint/blob/b4a8743794e592698c32e760bc774a85f8eebeb5/lib/ansiblelint/utils.py#L546-L585", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:ansible-ansible-lint:parse_yaml_linenumbers-344302e324", "question": "Parses yaml as ansible.utils.parse_yaml but with linenumbers.\n\n The line numbers are stored in each node's LINE_NUMBER_KEY key.", "scope": {"holder": "ansible-ansible-lint", "scenario": "code-search", "session": null}, "split": "dev", "unanswerable": false} {"answer": "csn:antevens/listen:listen/signal_handler.py:SignalHandler._unreg_event#16617", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "listen/signal_handler.py", "symbol": "SignalHandler._unreg_event"}, "source_id": "csn:antevens/listen:listen/signal_handler.py:SignalHandler._unreg_event#16617"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/antevens/listen/blob/d3ddff8e7fbfb672c5bd7f6f4febeb5e921d8c67/listen/signal_handler.py#L190-L204", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:antevens-listen:SignalHandler._unreg_event-f112f63ce1", "question": "Tries to remove a registered event without triggering it", "scope": {"holder": "antevens-listen", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:antevens/listen:listen/signal_handler.py:SignalHandler.reg_on_abort#16619", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "listen/signal_handler.py", "symbol": "SignalHandler.reg_on_abort"}, "source_id": "csn:antevens/listen:listen/signal_handler.py:SignalHandler.reg_on_abort#16619"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/antevens/listen/blob/d3ddff8e7fbfb672c5bd7f6f4febeb5e921d8c67/listen/signal_handler.py#L240-L245", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:antevens-listen:SignalHandler.reg_on_abort-a58a5bab8c", "question": "Register a function/method to be called when execution is aborted", "scope": {"holder": "antevens-listen", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:apache/airflow:airflow/contrib/hooks/aws_athena_hook.py:AWSAthenaHook.check_query_status#651", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "airflow/contrib/hooks/aws_athena_hook.py", "symbol": "AWSAthenaHook.check_query_status"}, "source_id": "csn:apache/airflow:airflow/contrib/hooks/aws_athena_hook.py:AWSAthenaHook.check_query_status#651"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/apache/airflow/blob/b69c686ad8a0c89b9136bb4b31767257eb7b2597/airflow/contrib/hooks/aws_athena_hook.py#L74-L89", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:apache-airflow:AWSAthenaHook.check_query_status-d861e509da", "question": "Fetch the status of submitted athena query. Returns None or one of valid query states.\n\n :param query_execution_id: Id of submitted athena query\n :type query_execution_id: str\n :return: str", "scope": {"holder": "apache-airflow", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:apache/airflow:airflow/contrib/sensors/imap_attachment_sensor.py:ImapAttachmentSensor.poke#753", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "airflow/contrib/sensors/imap_attachment_sensor.py", "symbol": "ImapAttachmentSensor.poke"}, "source_id": "csn:apache/airflow:airflow/contrib/sensors/imap_attachment_sensor.py:ImapAttachmentSensor.poke#753"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/apache/airflow/blob/b69c686ad8a0c89b9136bb4b31767257eb7b2597/airflow/contrib/sensors/imap_attachment_sensor.py#L60-L76", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:apache-airflow:ImapAttachmentSensor.poke-f96f856db6", "question": "Pokes for a mail attachment on the mail server.\n\n :param context: The context that is being provided when poking.\n :type context: dict\n :return: True if attachment with the given name is present and False if not.\n :rtype: bool", "scope": {"holder": "apache-airflow", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:appier/h5sparse:h5sparse/h5sparse.py:Group.create_dataset#12251", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "h5sparse/h5sparse.py", "symbol": "Group.create_dataset"}, "source_id": "csn:appier/h5sparse:h5sparse/h5sparse.py:Group.create_dataset#12251"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/appier/h5sparse/blob/b12ee65c624207d3020c283ce561cfcc7ab71731/h5sparse/h5sparse.py#L46-L94", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:appier-h5sparse:Group.create_dataset-ae16f3f8f4", "question": "Create 3 datasets in a group to represent the sparse array.\n\n Parameters\n ----------\n sparse_format:", "scope": {"holder": "appier-h5sparse", "scenario": "code-search", "session": null}, "split": "test", "unanswerable": false} {"answer": "csn:appknox/google-chartwrapper:GChartWrapper/GChart.py:Axes.label#19516", "answer_format": "code", "as_of": "2026-02-23T14:11:41+00:00", "gold": [{"region": {"path": "GChartWrapper/GChart.py", "symbol": "Axes.label"}, "source_id": "csn:appknox/google-chartwrapper:GChartWrapper/GChart.py:Axes.label#19516"}], "modality": "code", "origin": {"dataset": "code-search-net/code_search_net", "item": "url:https://github.com/appknox/google-chartwrapper/blob/3769aecbef6c83b6cd93ee72ece478ffe433ac57/GChartWrapper/GChart.py#L122-L131", "revision": "bd0cf261e357a3eb5c8fba490d23ec1a1cd59555"}, "query_id": "csn:appknox-google-chartwrapper:Axes.label-470acef192", "question": "Label each axes one at a time\n args are of the form