File size: 13,257 Bytes
e5f83f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
---
license: cc-by-4.0
pretty_name: nvidia/LiveCodeBench-CPP (mirror)
source_datasets:
- nvidia/LiveCodeBench-CPP
tags:
- laya
- laya-finetune
- mirror
- domain-code
- use-permissive
- genre-exam
- label-text
- annot-natural
size_categories:
- n<1K
configs:
- config_name: test
  data_files:
  - split: v5_2408_2501
    path: test_v5_2408_2501.jsonl
  - split: v6_2408_2505
    path: test_v6_2408_2505.jsonl
dataset_info:
- config_name: test
  features:
  - name: question_title
    dtype: string
  - name: question_content
    dtype: string
  - name: platform
    dtype: string
  - name: question_id
    dtype: string
  - name: contest_id
    dtype: string
  - name: contest_date
    dtype: timestamp[s]
  - name: starter_code
    dtype: string
  - name: difficulty
    dtype: string
  - name: public_test_cases
    dtype: string
  - name: private_test_cases
    dtype: string
  - name: metadata
    dtype: string
  splits:
  - name: v5_2408_2501
    num_bytes: 1802637484
    num_examples: 279
  - name: v6_2408_2505
    num_bytes: 1939402000
    num_examples: 454
---

# nvidia/LiveCodeBench-CPP(複製)

## データの内容

LiveCodeBench の release_v6 から、2024 年 10 月〜2025 年 5 月の AtCoder と LeetCode の問題を集め、C++ の解答で評価するためのデータ。1 行が 1 題で、問題文 `question_content`、プラットフォーム `platform`、難易度 `difficulty`、公開と非公開のテストケース `public_test_cases`・`private_test_cases` を持つ。AtCoder の問題は標準入力から読み標準出力へ書く形式、LeetCode の問題はスターターコードの関数を呼び出す形式で、C++ の解答をコンパイルして採点する。

## データの概要

| 項目 | 値 |
|---|---|
| 行数 | 733(1 構成・2 分割の合計) |
| 列数 | 11 |
| 容量 | 3.74 GB(ファイル 4 本) |
| ファイルの形式 | jsonl 2 |
| 公開 | public |

### 構成と分割

| 構成(config) | 分割(split)ごとの行数 | 列数 |
|---|---|---:|
| `test` | `v5_2408_2501` 279、`v6_2408_2505` 454 | 11 |

### 列(構成 `test`)

| 列 | 型 |
|---|---|
| `question_title` | `string` |
| `question_content` | `string` |
| `platform` | `string` |
| `question_id` | `string` |
| `contest_id` | `string` |
| `contest_date` | `timestamp[s]` |
| `starter_code` | `string` |
| `difficulty` | `string` |
| `public_test_cases` | `string` |
| `private_test_cases` | `string` |
| `metadata` | `string` |

行数と列は HF のデータセットビューアの集計(元のデータセットの現在の版で数えたもの)。全データセットの一覧は [HYUKI5/dataset-catalog](https://huggingface.co/datasets/HYUKI5/dataset-catalog) にある。

## 複製について

[`nvidia/LiveCodeBench-CPP`](https://huggingface.co/datasets/nvidia/LiveCodeBench-CPP) をリビジョン `6c21015d3095e5c45812950d683f5f3e65403c13` の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(`convaiinnovations/laya`)の微調整に使う候補として、調査メモ(`Laya 学習用データセット調査`)に載せたデータを集めている。

## 出典

- 元のデータセット: https://huggingface.co/datasets/nvidia/LiveCodeBench-CPP
- 複製したリビジョン: `6c21015d3095e5c45812950d683f5f3e65403c13`(2025-08-24 05:30:01+00:00)
- 元のライセンス表記: `cc-by-4.0`

## 論文

- 元のカードに論文へのリンクは見つからなかった

## アノテーションの方法

**データセットの作成日**

2025 年 4 月〜5 月

## 微調整に使うときの注意

- 調査メモの台帳での区分: A(許諾型のライセンスだけで、疑義の注記が無い)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
- Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
- 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。

## 調査メモの記述

| メモ | 節 | ライセンス(記載) | 確認 | 注記 |
|---|---|---|---|---|
| `nvidia_nemotron.md` | 付録. 取得した nvidia 組織のデータセット全件の簡易一覧 (L404) | cc-by-4.0 | 確認済 | 確認印なし(各ファイルの凡例により確認済扱い) / 原文注記: × 数学・コード・科学・計測 |

## 元のカード(日本語訳)

以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。

---

# LiveCodeBench-CPP: C++ でデータ汚染のない評価を行うための LiveCodeBench の拡張

## Overview

**LiveCodeBench-CPP** は、LiveCodeBench の `release_v6` から 454 問を含む。期間は 2024 年 10 月から 2025 年 5 月までである。問題の出典は AtCoder(287 問)と LeetCode(167 問)である。

- **AtCoder の問題:** 生成された解答は、標準入力(`stdin`)から入力を読み、標準出力(`stdout`)へ出力しなければならない。単体テストでは、生成された C++ の解答をコンパイルし、`stdin` で与えられるテストケースで実行する。
- **LeetCode の問題:** 解答は、スターターコードで与えられる既定の関数シグネチャを使って書かなければならない。単体テストでは、生成された C++ の解答をコンパイルし、対象の関数に入力のパラメータを直接渡して呼び出し、返された値を期待される出力と比較する。

LiveCodeBench の詳細は https://huggingface.co/datasets/livecodebench/code_generation_lite を参照。

このデータセットは、商用・非商用のどちらの用途にも使える。

## Data Distribution

問題の出典は https://huggingface.co/datasets/livecodebench/code_generation_lite である。

| Source       | # Sample |
|:-------------|:---------|
| AtCoder      | 287      |
| LeetCode     | 167      |
| Total        | 合計      |


## Data Fields
|Field|Type|Description|
|:---|:---|:---|
|question_title|string|プログラミング問題のタイトル|
|question_content|string|プログラミング問題の本文|
|platform|string|AtCoder か LeetCode のいずれかを示す|
|question_id|string|問題ごとに一意な ID|
|contest_id|string|コンテストごとに一意な ID|
|contest_date|string|コンテストの日付|
|starter_code|string|問題に与えられるスターターコード|
|difficulty|string|難易度を示すラベル(easy、medium、hard のいずれか)|
|public_test_cases|string|公開テストケースの JSON 文字列|
|private_test_cases|string|非公開テストケースの JSON 文字列|
|meta_data|string|空であるか、"func_name" を含む dict オブジェクト|


## 使い方

```python
from datasets import load_dataset
dataset = load_dataset("nvidia/LiveCodeBench-CPP", split="v6_2408_2505")
```

## データ量

- レコード数: 454 サンプル。
- ダウンロードサイズ: 1.9GB

## データセットの所有者

NVIDIA Corporation

## データセットの作成日

2025 年 4 月〜5 月

## データセットの特徴づけ

** データ収集の方法<br>
* [ハイブリッド: 自動・合成] <br>

** ラベル付けの方法<be>
* [ハイブリッド: 自動・合成] <br>

## ライセンス・利用条件

準拠する条件: このデータセットは、Creative Commons Attribution 4.0 International License(CC BY 4.0)のもとで提供される。ライセンス本文は https://creativecommons.org/licenses/by/4.0/legalcode にある。

**データの開発者:** NVIDIA

### 用途: <br>
コード生成とコードの批評に特化させるため、大規模言語モデル(LLM)を訓練する開発者向け。 <br>

### 公開日: <br>
05/11/2025 <br>

## データのバージョン
1.0 (05/11/2025)

## 想定される利用方法

LiveCodeBench-CPP データセットは、コミュニティが公開モデルを改良し続けるために使われることを想定している。このデータは、モデルの評価に自由に使ってよい。**ただし、利用者はデータセットのライセンスが目的に合うかどうかを自ら確認する責任がある。**

## 倫理上の配慮:

NVIDIA は、信頼できる AI は共同の責任であると考えており、幅広い AI 応用の開発を可能にするための方針と慣行を定めている。利用規約に従ってダウンロードまたは利用する場合、開発者は社内のモデルチームと協力して、このモデルが関連する業界と用途の要件を満たすこと、そして想定外の製品の誤用に対処することを確かめるべきである。

セキュリティ上の脆弱性や NVIDIA AI に関する懸念は、[こちら](https://www.nvidia.com/en-us/support/submit-security-vulnerability/)で報告を受け付けている。

<details>
<summary>原文(英語)</summary>

# LiveCodeBench-CPP: An Extension of LiveCodeBench for Contamination Free Evaluation in C++

## Overview

**LiveCodeBench-CPP** includes 454 problems from the `release_v6` of LiveCodeBench, covering the period from October 2024 to May 2025. These problems are sourced from AtCoder (287 problems) and LeetCode (167 problems).

- **AtCoder Problems:** These require generated solutions to read inputs from standard input (`stdin`) and write outputs to standard output (`stdout`). For unit testing, the generated C++ solutions are compiled and executed using test cases provided via `stdin`.
- **LeetCode Problems:** These require solutions to be written using a predefined function signature provided in a starter code. For unit testing, the generated C++ solutions are compiled and the target function is invoked with input parameters directly, then the returned values are compared against the expected outputs.

To learn about LiveCodeBench, see details at https://huggingface.co/datasets/livecodebench/code_generation_lite.

This dataset is ready for commercial/non-commercial use.

## Data Distribution

The problems are sourced from https://huggingface.co/datasets/livecodebench/code_generation_lite.

| Source       | # Sample |
|:-------------|:---------|
| AtCoder      | 287      |
| LeetCode     | 167      |
| Total        | 454      |


## Data Fields
|Field|Type|Description|
|:---|:---|:---|
|question_title|string|A title for the programming question|
|question_content|string|The content of the programming question|
|platform|string|Indicates either AtCoder or LeetCode|
|question_id|string|A unique id for each question|
|contest_id|string|A unique id for the contest|
|contest_date|string|Contest date|
|starter_code|string|A starter code for the given question|
|difficulty|string|A label indicate difficulty (easy, medium, or hard)|
|public_test_cases|string|A JSON string for the public test cases|
|private_test_cases|string|A JSON string for the private test cases|
|meta_data|string|A dict object (either empty or include "func_name")|


## How to Use It

```python
from datasets import load_dataset
dataset = load_dataset("nvidia/LiveCodeBench-CPP", split="v6_2408_2505")
```

## Dataset Quantification

- Record Count - 454 samples.
- Download Size - 1.9GB

## Dataset Owner(s)
NVIDIA Corporation

## Dataset Creation Date
April 2025 - May 2025


## Dataset Characterization

** Data Collection Method<br>
* [Hybrid: Automated, Synthetic] <br>

** Labeling Method<be>
* [Hybrid: Automated, Synthetic] <br>

## License/Terms of Use

GOVERNING TERMS: This dataset is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0) available at https://creativecommons.org/licenses/by/4.0/legalcode.

**Data Developer:** NVIDIA

### Use Case: <br>
Developers training Large Language Models (LLMs) to specialize LLMs in code generation and code critique. <br>

### Release Date:  <br>
05/11/2025 <br>

## Data Version
1.0 (05/11/2025)

## Intended Usage

The LiveCodeBench-CPP Dataset is intended to be used by the community to continue to improve open models. The data may be freely used to evaluate models. **However, the user is responsible for checking if the dataset license is fit for the intended purpose**.

## Ethical Considerations:

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications.  When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. 

Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).

</details>