Git Product home page Git Product logo

search4code's Introduction

Search4Code: Web queries dataset for code search

Search4Code is a large-scale web query based dataset of code search queries for C# and Java. The Search4Code data is mined from Microsoft Bing's anonymized search query logs using weak supervision technique. We hope the dataset will aid future research in the area of Natural Language based Code Search. We briefly describe the data below, for more details, refer to our paper published at the 18th International Conference on Mining Software Repositories (MSR) 2021.

Dataset Information

Search4Code dataset is composed of real-world user queries and the corresponding most frequently clicked URLs. Each query additionally has a label denoting whether the query has a code search intent or not, as predicted by the weak supervision model described in the paper.

Currently, the Search4Code dataset contains 6596 Java queries and 4974 C# queries.

Here are some of the advantages of Search4Code dataset:

  • Real queries: The queries are sampled from anonymized Bing search logs. We believe this provides a realistic representation of how individuals would search for code.
  • Click URLs: Each query has a list of the three most frequently clicked URLs from the search results. For a given search query, the most frequently clicked URLs are representative of search results that provide satisfactory solutions.
  • Popularity score: Each query is assigned a popularity rank based on the frequency of occurrence.
  • Large scale: The dataset contains thousands of queries. Hence, enabling the use of more complex models that require large amounts of training data.

Since the dataset contains both code-search and non code-search queries, it could also be used to analyze other user intents, as described in our prior work.

Dataset Schema

Each data file has the following fields:

Field Description
Id Unique GUID to reference a query.
QueryString Raw search query.
TopClickedUrls The top 3 most frequently clicked on result urls.
PopularityRank A popularity score based on the frequency of the query in the raw data. Most popular query is ranked 1.
PredictedLabel Boolean label where 'True' denotes the query has a code search intent.

You can find a sample of the data here.

Terms of Use:

Please see the LICENSE file for more details. If you choose to use the data, please cite:

@INPROCEEDINGS {search4code,
      author = {N. Rao and C. Bansal and J. Guan},
      booktitle = {2021 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR) (MSR)},
      title = {Search4Code: Code Search Intent Classification Using Weak Supervision},
      year = {2021},
      pages = {575-579},
      keywords = {code search;weak supervision},
      doi = {10.1109/MSR52588.2021.00077},
      url = {https://doi.ieeecomputersociety.org/10.1109/MSR52588.2021.00077},
      publisher = {IEEE Computer Society}
}

Contact:

Please contact the authors of the paper, if you have any questions or feedback.

search4code's People

Contributors

chetan1 avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

search4code's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.