Shuu12121's picture
Update README.md
e3a475a verified
metadata
license: apache-2.0
language: code
tags:
  - code
  - java
  - 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: 1575603430.5308661
      num_examples: 593184
    - name: validation
      num_bytes: 121851835.0992033
      num_examples: 95973
    - name: test
      num_bytes: 45685755.840106174
      num_examples: 45752
  download_size: 375108416
  dataset_size: 1743141021.4701757
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
      - split: validation
        path: data/validation-*
      - split: test
        path: data/test-*

Java 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 Java 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: 593,184 examples
  • validation: 95,973 examples
  • test: 45,752 examples

Total: 734,909 examples