Papers › CodeSearchNet Challenge: Evaluating the State of Semantic Code Search

CodeSearchNet Challenge: Evaluating the State of Semantic Code Search

20 Sep 2019arXiv:1909.09436archive 2025-07-28

Hamel Husain, Ho-Hsiang Wu, Tiferet Gazit, Miltiadis Allamanis, Marc Brockschmidt

Semantic code search is the task of retrieving relevant code given a natural language query. While related to other information retrieval tasks, it requires bridging the gap between the language used in code (often abbreviated and highly technical) and natural language more suitable to describe vague concepts and ideas. To enable evaluation of progress on code search, we are releasing the CodeSearchNet Corpus and are presenting the CodeSearchNet Challenge, which consists of 99 natural language queries with about 4k expert relevance annotations of likely results from CodeSearchNet Corpus. The corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation. In this article, we describe the methodology used to obtain the corpus and expert labels, as well as a number of simple baseline solutions for the task. We hope that CodeSearchNet Challenge encourages researchers and practitioners to study this interesting task further and will host a competition and leaderboard to track the progress on the challenge. We are also keen on extending CodeSearchNet Challenge to more queries and programming languages in the future.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 17 code samples harvested from 3 repositories linked to this paper: 15 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 6 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 5 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 3 samples from 1 repository, 3 ran (1 with no instrument failure; 2 where Syntology's instrument failed); community (archive-listed): 14 samples from 2 repositories, 12 ran (8 with no instrument failure; 4 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 5 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

14 repositories listed; official and paper-mentioned ones first.

github/CodeSearchNet officialmentioned in papermentioned on GitHubtfSyntology: 3 samples, 3 ran (2 instrument-failed) · 0 unverified report
UmarFarooqui/MethodNamePrediction mentioned on GitHubnot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-readySyntology: not harvested report
UmarFarooqui/Springboard mentioned on GitHubnot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-readySyntology: not harvested report
aminatadjer/test mentioned on GitHubpytorchSyntology: not harvested report
code-desc/codesc mentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Unsupervised Translation of Programming Languages (arXiv:2006.03511; that paper's own run record: 7 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 1 violated, 6 with no contract checked; 0 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. report
csebuetnlp/CoDesc mentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to CoDesc: A Large Code-Description Parallel Dataset (arXiv:2105.14220; that paper's own run record: 7 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 1 violated, 6 with no contract checked; 0 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. report
jmg764/CodeSearchNet-Challenge mentioned on GitHubtfMITSyntology: 4 samples, 4 ran (0 instrument-failed) · 0 unverified report
mandubian/codenets mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
microsoft/CodeBERT mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to CodeBERT: A Pre-Trained Model for Programming and Natural Languages (arXiv:2002.08155; that paper's own run record: 14 ran (of which 0 constructed an object rather than computing a result; 14 with no instrument failure: 0 honoured, 0 violated, 14 with no contract checked; 0 where Syntology's instrument failed) · 6 unverified), UniXcoder: Unified Cross-Modal Pre-training for Code Representation (arXiv:2203.03850; that paper's own run record: 2 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 2 unverified; every one of the 2 samples that ran constructed an object rather than computing a result), Automating Code Review Activities by Large-Scale Pre-training (arXiv:2203.09095; that paper's own run record: 0 ran · 1 unverified) and 1 more (every one in this page's JSON twin); nothing checks that they implement this paper's method. report
nchen909/codeattention mentioned on GitHubpytorchMITSyntology: 10 samples, 8 ran (4 instrument-failed) · 2 unverified report
robotics-4-all/ISSEL-Announcements mentioned on GitHubSyntology: not harvested report
salesforce/coderl mentioned on GitHubjaxBSD-3-ClauseSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learning (arXiv:2207.01780; that paper's own run record: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
sjj0403/GSCS mentioned on GitHubpytorchSyntology: not harvested report
zfj1998/CodeBert-Code2Text mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to CodeBERT: A Pre-Trained Model for Programming and Natural Languages (arXiv:2002.08155; that paper's own run record: 14 ran (of which 0 constructed an object rather than computing a result; 14 with no instrument failure: 0 honoured, 0 violated, 14 with no contract checked; 0 where Syntology's instrument failed) · 6 unverified); nothing checks that they implement this paper's method. report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

17 samples harvested: 15 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 6 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
5ran · our draft was wrong
1ran; the contract check could not run
8ran
2unverified

Licence: 2 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. For 2 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

github/CodeSearchNet official repository 3 samples, 3 ran (2 instrument-failed) · 0 unverified
coverage_per_language src/relevanceeval.py ran · honoured contract MIT (permissive) · b9d46fdb66261637 · report fixture: signature predictions:dict/0/?, relevance_scores:dict/0/?, with_positive_relevance:bool/0/bool · returned float · level recorded 2026-09-22
load_predictions in 22 papers src/relevanceeval.py ran · our draft was wrong MIT (permissive) · faa62c1fbe7df43e · report fixture: signature filepath:str/0/str, max_urls_per_language:int/0/int · returned defaultdict · level recorded 2026-09-22
load_relevances src/relevanceeval.py ran · our draft was wrong MIT (permissive) · 9279f17104890350 · report fixture: signature filepath:str/0/str · returned defaultdict · level recorded 2026-09-22
jmg764/CodeSearchNet-Challenge community (archive-listed) 4 samples, 4 ran (0 instrument-failed) · 0 unverified
label_folds src/dataextraction/dedup_split.py ran MIT (permissive) · 3db12c135869bd1e · report fixture: signature df:DataFrame/0/?, train_ratio:float/0/float, valid_ratio:float/0/float, test_ratio:float/0/float, holdout_ratio:float/0/float · returned DataFrame · level recorded 2026-09-24
sample_data in 15 papers src/error_analysis.py ran fingerprinted MIT (permissive) · 4071a311ada99ce3 · report fixture: signature data:list/1/dict, max_num_examples:int/0/int · returned list · level recorded 2026-09-24
to_highlighted_html src/error_analysis.py ran MIT (permissive) · 9dbbcd2b21d49a73 · report fixture: signature code:str/0/str, language:str/0/str · returned str · level recorded 2026-09-24
tokenize_docstring_from_string src/dataextraction/utils.py ran fingerprinted MIT (permissive) · 9140bccc6c9f6468 · report fixture: signature docstr:str/0/str · returned list · level recorded 2026-09-24
nchen909/codeattention community (archive-listed) 10 samples, 8 ran (4 instrument-failed) · 2 unverified
add_lang_by_task in 5 papers utils.py ran fingerprinted MIT (permissive) · 2e3e72e1e860afb2 · report fixture: signature target_str:str/0/str, task:str/0/str, sub_task:str/0/str · returned str · level recorded 2026-09-24
compute_bleu in 30 papers evaluator/bleu.py ran · our draft was wrong MIT (permissive) here; the stored copy is pointer only · 49289a7f94c227bd · report fixture: signature reference_corpus:list/1/list, translation_corpus:list/1/list, max_order:int/0/int, smooth:bool/0/bool · returned tuple · level recorded 2026-09-24
convert_clone_examples_to_features in 5 papers utils.py ran MIT (permissive) · cfd0293d796a30d2 · report fixture: signature item:tuple/1/SimpleExample · returned CloneInputFeatures · level recorded 2026-09-24
convert_examples_to_features in 134 papers utils.py ran MIT (permissive) · fa57c04c2fcf72af · report fixture: signature item:tuple/1/MockExample · returned InputFeatures · level recorded 2026-09-24
count_ngrams evaluator/smooth_bleu.py ran · our draft was wrong fingerprinted MIT (permissive) · 835fca2953749b59 · report fixture: signature words:list/1/str, n:int/0/int · returned dict · level recorded 2026-09-22
get_model_size in 21 papers models.py ran · our draft was wrong MIT (permissive) · 8cfe38019e9d6a49 · report fixture: signature model:callable/0/? · returned str · level recorded 2026-09-24
get_token_attention attention.py ran MIT (permissive) · 7b76b21df15d335b · report fixture: signature args:Args/0/?, attention_numpy:ndarray/5/float, subtoken_numbers_list:list/1/list, action_per_head:str/0/str · returned tuple · level recorded 2026-09-24
pad_sequence in 46 papers evaluator/CodeBLEU/utils.py ran; the contract check could not run (RAISES) MIT (permissive) here; the stored copy is pointer only · cd90fe437a24c233 · report fixture: signature sequence:list/1/int, n:int/0/int, pad_left:bool/0/bool, pad_right:bool/0/bool, left_pad_symbol:str/0/str, right_pad_symbol:str/0/str · returned chain · level recorded 2026-09-24
add_args in 42 papers configs.py unverified MIT (permissive) · 91fcc17204abe9ed · report
bulid_or_load_gen_model models.py unverified MIT (permissive) · 62f9216d4bcf84c0 · report

Tasks

4kCode SearchInformation RetrievalNatural Language QueriesRetrieval

Datasets

Introduced by this paper, per the archive.

CodeSearchNet

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections