File size: 2,502 Bytes
654bf94 3a3df24 654bf94 e3a475a 654bf94 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
---
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
|