Shuu12121's picture
Update README.md
0dc5ef8 verified
metadata
license: apache-2.0
language: code
tags:
  - code
  - javascript
  - codesearchnet-format
dataset_info:
  features:
    - name: code
      dtype: string
    - name: docstring
      dtype: string
    - name: func_name
      dtype: string
    - name: language
      dtype: string
    - name: repo
      dtype: string
    - name: path
      dtype: string
    - name: url
      dtype: string
    - name: license
      dtype: string
  splits:
    - name: train
      num_bytes: 503949944.00499666
      num_examples: 105655
    - name: validation
      num_bytes: 6555197.603726822
      num_examples: 5565
    - name: test
      num_bytes: 2472454.5368188513
      num_examples: 1678
  download_size: 41048121
  dataset_size: 512977596.1455423
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
      - split: validation
        path: data/validation-*
      - split: test
        path: data/test-*

Javascript CodeSearchNet–Filtered

Filtered to remove files from repositories appearing in the CodeSearchNet test split, deduplicated on identical docstring or code.

📘 Dataset Description

This dataset contains Javascript functions and their documentation comments (docstring) extracted from public GitHub repositories. Each function is paired with metadata such as the repository name, file path, original license, and GitHub URL.

Only code licensed under the following OSI-approved permissive licenses was included:

  • MIT
  • Apache License 2.0
  • BSD 2-Clause
  • BSD 3-Clause
  • ISC

These licenses permit reuse and redistribution (including commercial use) provided that proper attribution and license terms are preserved.


📄 Licensing and Legal Notice

All code snippets in this dataset were collected from public GitHub repositories that explicitly declare their licenses as one of the following: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, or ISC.

To comply with license terms:

  • Each sample retains its license type in the license field.
  • Repository names and GitHub URLs are included to allow proper attribution.
  • License texts are available in the LICENSES/ directory.
  • No code from repositories lacking a license or using GPL-style licenses was included.

⚠️ Disclaimer: While care has been taken to ensure license compliance, users are responsible for verifying license terms and ensuring proper attribution when using this dataset in downstream applications.

Splits

  • train: 105,655 examples
  • validation: 5,565 examples
  • test: 1,678 examples

Total: 112,898 examples