Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
id: string
repo: string
license: string
path: string
lang: string
task: string
mutation: string
prompt: string
messages: list<item: struct<role: string, content: string>>
  child 0, item: struct<role: string, content: string>
      child 0, role: string
      child 1, content: string
to
{'id': Value('string'), 'repo': Value('string'), 'license': Value('string'), 'path': Value('string'), 'lang': Value('string'), 'task': Value('string'), 'mutation': Value('string'), 'messages': List({'role': Value('string'), 'content': Value('string')})}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              id: string
              repo: string
              license: string
              path: string
              lang: string
              task: string
              mutation: string
              prompt: string
              messages: list<item: struct<role: string, content: string>>
                child 0, item: struct<role: string, content: string>
                    child 0, role: string
                    child 1, content: string
              to
              {'id': Value('string'), 'repo': Value('string'), 'license': Value('string'), 'path': Value('string'), 'lang': Value('string'), 'task': Value('string'), 'mutation': Value('string'), 'messages': List({'role': Value('string'), 'content': Value('string')})}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1879, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

id
string
repo
string
license
string
path
string
lang
string
task
string
mutation
string
messages
list
code-xai-org_x-algorithm-0357
xai-org_x-algorithm
Apache-2.0
/thunder/schema/events.rs
Rust
review
null
[ { "role": "user", "content": "次のRustのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {\n let struct_ident = TStructIdentifier::new(\"Retweet\");\n ...
code-anthropics_sandbox-runtime-0057
anthropics_sandbox-runtime
Apache-2.0
/src/sandbox/sandbox-manager.ts
TypeScript
review
null
[ { "role": "user", "content": "次のTypeScriptのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\nexport function resolveCommandText(decodedKey: string): string {\n return (\n commandTextsByKey.get(decodedKey) ??\n sanitizeUnregisteredCommandK...
code-anthropics_sandbox-runtime-0138
anthropics_sandbox-runtime
Apache-2.0
/src/sandbox/windows-sandbox-utils.ts
TypeScript
review
null
[ { "role": "user", "content": "次のTypeScriptのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\nexport function restoreWindowsAcl(opts: {\n sandboxUserSid: string\n holderPid?: number\n srtWin?: SrtWinSpawn\n}): WindowsAclAceOutcome[] | undefine...
code-anthropics_sandbox-runtime-0068
anthropics_sandbox-runtime
Apache-2.0
/src/cli.ts
TypeScript
explain
null
[ { "role": "user", "content": "次のTypeScriptのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\nfunction parseControlFd(value: string): number {\n // Number() alone would also take '0x10', '3e0' and ' 5 '.\n if (!/^\\d+$/.test(value) || Number(value) < 3) {\n throw new InvalidArgumentError(\n 'must be an inte...
code-xai-org_x-algorithm-0202
xai-org_x-algorithm
Apache-2.0
/phoenix/xrex/utils/log_util.py
Python
review
null
[ { "role": "user", "content": "次のPythonのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\ndef get_formatter(\n rank: int | None, prefix: str = \"\", worker_name: str | None = None\n) -> logging.Formatter:\n cyan = \"\\033[2;36m\"\n faint...
code-xai-org_grok-build-0292
xai-org_grok-build
Apache-2.0
/crates/codegen/xai-grok-pager-pty-harness/src/scenarios/mixed_interaction.rs
Rust
explain
null
[ { "role": "user", "content": "次のRustのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\npub async fn run(harness: &mut PtyHarness, content: &ContentController) -> Result<BenchResults> {\n // Same payload shape as streaming_render, but we scroll through it while it's still arriving\n let mut body = String::from(...
code-MicrosoftDocs_semantic-kernel-docs-0066
MicrosoftDocs_semantic-kernel-docs
MIT
/semantic-kernel/Frameworks/agent/agent-orchestration/sequential.md
Python
review
null
[ { "role": "user", "content": "次のPythonのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\nfrom semantic_kernel.agents import Agent, ChatCompletionAgent\nfrom semantic_kernel.connectors.ai.open_ai import AzureChatCompletion\n\ndef get_agents() -> ...
code-NVIDIA-NeMo_Guardrails-0030
NVIDIA-NeMo_Guardrails
Apache-2.0
/nemoguardrails/llm/clients/_errors.py
Python
review
null
[ { "role": "user", "content": "次のPythonのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\ndef _extract_from_parsed_body(parsed_body: Any) -> Tuple[str, Optional[str], Optional[str], Optional[str]]:\n error_message = \"\"\n error_type = None...
code-xai-org_x-algorithm-0180
xai-org_x-algorithm
Apache-2.0
/botmaker/src/scala/com/twitter/botmaker/runtime/config/LogWriterConfigs.scala
Scala
explain
null
[ { "role": "user", "content": "次のScalaのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\nobject LogWriter extends ConfigUnit[LogWriterConfigs, LogWriterConfig] {\n\n val timeFormatter: SimpleDateFormat = com.twitter.util.TwitterDateFormat(\"yyyy-MM-dd HH:mm:ss\")\n\n override def description: String = \"Define a lo...
code-NVIDIA-NeMo_Guardrails-0128
NVIDIA-NeMo_Guardrails
Apache-2.0
/nemoguardrails/rails/llm/config.py
Python
explain
null
[ { "role": "user", "content": "次のPythonのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\ndef _validate_rail_prompts(rails: list[str], prompts: list[Any], validation_rail: str) -> None:\n for rail in rails:\n flow_id = _normalize_flow_id(rail)\n flow_model = _get_flow_model(rail)\n if flow_id ...
code-NVIDIA-NeMo_Guardrails-0276
NVIDIA-NeMo_Guardrails
Apache-2.0
/docs/_static/js/table-expander.js
JavaScript
explain
null
[ { "role": "user", "content": "次のJavaScriptのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n function openModal(button, table) {\n const clonedTable = table.cloneNode(true);\n activeButton = button;\n modalParts.title.textContent = button.dataset.tableTitle || \"Expanded tabl...
code-anthropics_sandbox-runtime-0043
anthropics_sandbox-runtime
Apache-2.0
/src/sandbox/credential-aws-pairs.ts
TypeScript
fix
8行目の「==」を「!=」に変えた
[ { "role": "user", "content": "次のTypeScriptのコードには問題があります。問題の場所と理由を日本語で説明し、直したコードを示してください。\n\n```\nexport function createSigv4Planner(\n registry: AwsPairRegistry,\n config: Sigv4Config | undefined,\n matches: HostMatcher,\n): PlanSigv4 {\n const policies = resolveSigv4Policies(config)\n return (method, ...
code-openai_codex-0057
openai_codex
Apache-2.0
/codex-rs/core/src/exec_policy_tests.rs
Rust
review
null
[ { "role": "user", "content": "次のRustのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\nasync fn merges_requirements_exec_policy_network_rules() -> anyhow::Result<()> {\n let temp_dir = tempdir()?;\n\n let mut requirements_exec_policy = Pol...
code-openai_codex-0019
openai_codex
Apache-2.0
/codex-rs/network-proxy/src/credential_broker/replacement.rs
Rust
fix
21行目のチェック(if self.spans.is_empty() { / return false; / })を消した
[ { "role": "user", "content": "次のRustのコードには問題があります。問題の場所と理由を日本語で説明し、直したコードを示してください。\n\n```\nimpl<'a> Replacements<'a> {\n pub(super) fn add(\n &mut self,\n ranges: impl IntoIterator<Item = Range<usize>>,\n value: &'a str,\n dummy: Option<&'a CredentialRecord>,\n ) {\n ...
code-xai-org_x-algorithm-0411
xai-org_x-algorithm
Apache-2.0
/botmaker/src/scala/com/twitter/botmaker/runtime/BatchQueue.scala
Scala
explain
null
[ { "role": "user", "content": "次のScalaのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n funcName,\n signature,\n s\"add requests to BatchQueue ${config.eventType}. ${config.description}\",\n ActionLevel.NO_ACTION\n )\n\n override def fingerprint(): Fingerprint = Fingerprint.of(...
code-NVIDIA-NeMo_Guardrails-0348
NVIDIA-NeMo_Guardrails
Apache-2.0
/examples/deployment/gliner_server/src/gliner_server/server.py
Python
explain
null
[ { "role": "user", "content": "次のPythonのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n default=DEVICE,\n choices=[\"auto\", \"cpu\", \"mps\", \"cuda\"],\n help=\"Device to use\",\n )\n parser.add_argument(\"--reload\", action=\"store_true\", help=\"Enable auto-reload for development\")\...
code-openai_codex-0446
openai_codex
Apache-2.0
/codex-rs/core/src/context/world_state/mod.rs
Rust
review
null
[ { "role": "user", "content": "次のRustのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n pub(crate) fn add_extension_section(&mut self, section: WorldStateSectionContribution) {\n let id = section.id();\n assert!(\n !s...
code-NVIDIA-NeMo_Guardrails-0285
NVIDIA-NeMo_Guardrails
Apache-2.0
/nemoguardrails/server/schemas/utils.py
Python
review
null
[ { "role": "user", "content": "次のPythonのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n object=\"chat.completion\",\n created=int(time.time()),\n model=model,\n choices=[\n Choice(\n index=...
code-openai_codex-0328
openai_codex
Apache-2.0
/codex-rs/cli/src/debug_sandbox.rs
Rust
explain
null
[ { "role": "user", "content": "次のRustのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\nasync fn load_debug_sandbox_config(\n cli_overrides: Vec<(String, TomlValue)>,\n codex_linux_sandbox_exe: Option<PathBuf>,\n options: DebugSandboxConfigOptions,\n strict_config: bool,\n) -> anyhow::Result<Config> {\n ...
code-xai-org_grok-build-0208
xai-org_grok-build
Apache-2.0
/crates/codegen/xai-tty-utils/src/lib.rs
Rust
explain
null
[ { "role": "user", "content": "次のRustのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n async fn process_group_kill_terminates_attached_child() {\n let mut cmd = if cfg!(windows) {\n let mut c = tokio::process::Command::new(\"cmd\");\n c.args([\"/C\", \"ping\", \"-n\", \"60\", \"127.0...
code-MicrosoftDocs_semantic-kernel-docs-0071
MicrosoftDocs_semantic-kernel-docs
MIT
/semantic-kernel/Frameworks/agent/agent-functions.md
C#
explain
null
[ { "role": "user", "content": "次のC#のコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n// Factory method to produce an agent with a specific role.\n// Could be incorporated into DI initialization.\nChatCompletionAgent CreateSpecificAgent(Kernel kernel, string credentials)\n{\n // Clone kernel instance to allow for ...
code-xai-org_grok-build-0310
xai-org_grok-build
Apache-2.0
/crates/codegen/xai-grok-shell/src/agent/subagent/attempt_store/rewind.rs
Rust
review
null
[ { "role": "user", "content": "次のRustのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n fn value(self) -> u8 {\n self.0\n }\n }\n };\n}\ncount!(AcceptedRowCount, 32, \"accepted row count\");\ncount!...
code-NVIDIA-NeMo_Guardrails-0153
NVIDIA-NeMo_Guardrails
Apache-2.0
/benchmark/aiperf/run_aiperf.py
Python
review
null
[ { "role": "user", "content": "次のPythonのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n def _create_output_dir(\n base_dir: Path,\n sweep_params: Optional[Dict[str, Union[str, int]]],\n ) -> Path:\n \"\"\"Create dire...
code-xai-org_grok-build-0059
xai-org_grok-build
Apache-2.0
/crates/codegen/xai-grok-hooks/src/config.rs
Rust
explain
null
[ { "role": "user", "content": "次のRustのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n fn reject_unsupported_handler_type() {\n let json = r#\"{\n \"hooks\": {\n \"PreToolUse\": [\n { \"hooks\": [{ \"type\": \"prompt\", \"command\": \"test\" }] }\n ...
code-xai-org_x-algorithm-0053
xai-org_x-algorithm
Apache-2.0
/thunder/schema/tweet.rs
Rust
review
null
[ { "role": "user", "content": "次のRustのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {\n let struct_ident = TStructIdentifier::new(\"DirectedAtUserMet...
code-xai-org_x-algorithm-0071
xai-org_x-algorithm
Apache-2.0
/botmaker/src/java/com/twitter/botmaker/compiler/Compiler.java
Java
explain
null
[ { "role": "user", "content": "次のJavaのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n private ASTNode toFlatMap(\n CompilerContext context,\n String exprText, Tree variableNameTree,\n Tree collectionTree, Tree bodyTree) throws ParseFailure, SemanticCheckFailure {\n String variableName = getVaria...
code-openai_codex-0146
openai_codex
Apache-2.0
/codex-rs/code-mode/src/grpc_session/mod.rs
Rust
review
null
[ { "role": "user", "content": "次のRustのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n fn request_shutdown(self: &Arc<Self>) -> ShutdownResultReceiver {\n self.shutdown_requested.store(true, Ordering::Release);\n let mut result...
code-xai-org_x-algorithm-0311
xai-org_x-algorithm
Apache-2.0
/agatha/hub/agatha/job/AgathaJobTemplates.scala
Scala
explain
null
[ { "role": "user", "content": "次のScalaのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\nobject DefaultParams {\n val defaultMathParams = MathParams(\n pseudoCounts = 10000.0,\n z = 2.0,\n positive = false,\n pmiDiscount = 0,\n minAbsPMI = 0.01\n )\n\n val defaultPMIParams: PMIParams = PMIParams(\n ...
code-NVIDIA-NeMo_Guardrails-0138
NVIDIA-NeMo_Guardrails
Apache-2.0
/nemoguardrails/http/composition.py
Python
review
null
[ { "role": "user", "content": "次のPythonのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\ndef ensure_retrying_http_client(client: HTTPClient, policy: RetryPolicy) -> ClosableHTTPClient:\n \"\"\"Apply retry inside instrumentation without compou...
code-anthropics_sandbox-runtime-0096
anthropics_sandbox-runtime
Apache-2.0
/src/sandbox/macos-sandbox-utils.ts
TypeScript
explain
null
[ { "role": "user", "content": "次のTypeScriptのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\nfunction moveBlockingFilters(entries: readonly PathEntry[]): Set<string> {\n const filters = new Set<string>()\n\n for (const entry of entries) {\n // Block moving/renaming the denied path itself (or files matching the\...
code-openai_codex-0247
openai_codex
Apache-2.0
/codex-rs/tui/src/bottom_pane/voice_strip.rs
Rust
explain
null
[ { "role": "user", "content": "次のRustのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\nimpl VoiceStrip {\n pub(super) fn new(state: VoiceStripState, frame_requester: FrameRequester) -> Self {\n Self {\n state,\n started_at: Instant::now(),\n frame_requester,\n }\n ...
code-NVIDIA-NeMo_Guardrails-0214
NVIDIA-NeMo_Guardrails
Apache-2.0
/nemoguardrails/llm/cache/lfu.py
Python
review
null
[ { "role": "user", "content": "次のPythonのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n def get_stats(self) -> dict:\n \"\"\"\n Get cache statistics.\n\n Returns:\n Dictionary with cache statistics (if tracki...
code-openai_codex-0013
openai_codex
Apache-2.0
/codex-rs/login/src/oauth/error_tests.rs
Rust
review
null
[ { "role": "user", "content": "次のRustのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\nfn parses_standard_legacy_and_plain_text_rejections() {\n for (body, code, display) in [\n (\n r#\"{\"error\":\"invalid_grant\",\"error_d...
code-openai_openai-cli-0108
openai_openai-cli
Apache-2.0
/internal/terminalimage/kitty_output_helper_unix.go
Go
explain
null
[ { "role": "user", "content": "次のGoのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n\tdefer input.Close()\n\tif err := kittyReadPipe(fd); err != nil {\n\t\treturn err\n\t}\n\t// Go's SIGINT handler can resume writes after the terminal flushes their\n\t// headers. Use the kernel's default disposition only inside thi...
code-openai_openai-cli-0036
openai_openai-cli
Apache-2.0
/internal/autocomplete/picker_install_cleanup.go
Go
explain
null
[ { "role": "user", "content": "次のGoのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\n\tdefer directory.Close()\n\tcaller := options\n\tcaller.Profile = callerProfile\n\tfor {\n\t\tif err := ctx.Err(); err != nil {\n\t\t\treturn changed, err\n\t\t}\n\t\tnames, readErr := directory.Readdirnames(64)\n\t\tfor _, name :=...
code-anthropics_sandbox-runtime-0054
anthropics_sandbox-runtime
Apache-2.0
/src/sandbox/linux-sandbox-utils.ts
TypeScript
review
null
[ { "role": "user", "content": "次のTypeScriptのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\nfunction retryingTransient<T>(attempt: () => T): T {\n try {\n return attempt()\n } catch (err) {\n if (!isTransientErrno(err)) throw err\n }\n...
code-xai-org_grok-build-0189
xai-org_grok-build
Apache-2.0
/crates/codegen/xai-ratatui-textarea/src/textarea.rs
Rust
review
null
[ { "role": "user", "content": "次のRustのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\n fn element_click_snap(&mut self, pos: usize, hit_element: bool) -> Option<MouseAction> {\n if !hit_element {\n return None;\n }\n...
code-xai-org_grok-build-0063
xai-org_grok-build
Apache-2.0
/crates/codegen/xai-grok-update/src/auto_update.rs
Rust
fix
16行目の「==」を「!=」に変えた
[ { "role": "user", "content": "次のRustのコードには問題があります。問題の場所と理由を日本語で説明し、直したコードを示してください。\n\n```\nfn install_npm(target: Option<&str>, channel: &str, npm_registry: Option<&str>) -> Result<()> {\n #[cfg(target_os = \"macos\")]\n warn_if_other_grok_processes_running();\n\n let version_arg = match target {\n...
code-MicrosoftDocs_semantic-kernel-docs-0127
MicrosoftDocs_semantic-kernel-docs
MIT
/agent-framework/migration-guide/from-autogen/index.md
Python
explain
null
[ { "role": "user", "content": "次のPythonのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\nfrom agent_framework import WorkflowExecutor, WorkflowBuilder\n\n# Assume we have executors from previous examples\n# specialist1_executor, specialist2_executor, coordinator_executor, reviewer_executor\n\n# Create sub-workflow\n...
code-xai-org_x-algorithm-0168
xai-org_x-algorithm
Apache-2.0
/phoenix/xrex/inference/oss_bench/bench.py
Python
explain
null
[ { "role": "user", "content": "次のPythonのコードが何をしているかを、日本語でわかりやすく説明してください。\n\n```\ndef boot_inference_server(cfg: BenchConfig) -> subprocess.Popen[bytes]:\n launch_script, uv_dir, args = build_launch_argv(cfg)\n cmd = [\n \"uv\",\n \"run\",\n \"--no-sync\",\n \"--directory\",\...
code-MicrosoftDocs_semantic-kernel-docs-0135
MicrosoftDocs_semantic-kernel-docs
MIT
/agent-framework/integrations/by-component/agent-services/github-copilot.md
Python
fix
13行目のチェック(if response in ("y", "yes"): / return PermissionHandler.approve_all(request, con)を消した
[ { "role": "user", "content": "次のPythonのコードには問題があります。問題の場所と理由を日本語で説明し、直したコードを示してください。\n\n```\nimport asyncio\n\nfrom copilot.generated.rpc import PermissionDecisionDeniedInteractivelyByUser\nfrom copilot.session import PermissionHandler, PermissionRequestResult\nfrom copilot.session_events import PermissionR...
code-MicrosoftDocs_semantic-kernel-docs-0045
MicrosoftDocs_semantic-kernel-docs
MIT
/agent-framework/workflows/human-in-the-loop.md
Python
review
null
[ { "role": "user", "content": "次のPythonのコードを読んで、バグや危ないところ(安全上の問題を含む)があれば、場所と理由を日本語で指摘してください。はっきりした問題がなければ、「大きな問題は見当たりません」と答え、気になる点があれば短く添えてください。\n\n```\nfrom dataclasses import dataclass\n\nfrom agent_framework import (\n Executor,\n WorkflowBuilder,\n WorkflowContext,\n handler,\n response_ha...
End of preview.

Japanese-Code-Review-OSS(非公式)

公開されている7つのリポジトリから切り出したコードについて、日本語でコードの説明・バグや危ないところの指摘・修正をした手本のデータセットです。NeoHorse-1-9B-Math-SFT の2段目(日本語のコード)の学習に使ったものと同じです。

Japanese code explanation / review / fix examples on snippets from 7 permissively licensed repositories. Answers were written by Qwen3.8-27B and filtered by Gemma 4 31B. Used for stage 2 of NeoHorse-1-9B-Math-SFT.

中身

分割 件数 内容
train 1,800 質問と回答(messages)
validation 40 質問と回答(学習中の確認用)
test 100 質問だけ(prompt)。学習に使っていない評価用で、うち40問はわざと問題を入れたコード

質問の種類(task):

種類 内容 train test
explain コードが何をしているかの説明 742 30
review バグや危ないところの指摘(問題がなければ「大きな問題は見当たりません」) 935(うち問題入り 68) 50(うち問題入り 20)
fix わざと入れた問題を見つけて直す 123(すべて問題入り) 20(すべて問題入り)

各行の項目

項目 内容
id 番号
repo 元のリポジトリ(owner_name)
license 元のコードのライセンス(Apache-2.0 か MIT)
path 元のリポジトリの中のファイルの場所
lang 言語(Rust・Python・TypeScript・Go・Scala・C#・Java など)
task 質問の種類(上の表)
mutation わざと入れた問題の説明(例:「48行目の「&&」を「||」に変えた」)。入れていない場合は null
messages 質問(user)と回答(assistant)。train と validation だけ
prompt 質問。test だけ

作り方

  1. コードの切り出し:下の7つのリポジトリから、関数やまとまりごとにコードを切り出しました。第三者のコード(同梱された外部のライブラリなど)・自動生成されたファイル・テスト用のフォルダ・鍵やメールアドレスらしき文字列を含む断片は除いています(ファイルの中に書かれたテストの関数は残っています)
  2. 問題を入れる:一部のコードには、演算子の入れ替え(&& → || など)や、条件の確認を消すなどの小さな問題をわざと入れました
  3. 回答を書く:Qwen/Qwen3.8-27B(Apache 2.0、FP8、思考なし)が日本語で答えました。問題を入れたコードでは、回答を書くモデルにだけ「入れた問題」を参考として渡しました(データの質問には含めていません)。参考なしでは、問題入りのコードの約6割で「問題なし」と答えてしまったためです
  4. 選別:Gemma 4 31B(FP8)が回答を採点し、「一貫性・自然さ・質問との関係」の3つがすべて 4点以上(5点満点)で、最後まで書き終えていて、問題入りのコードでは「入れた問題を指摘できている」と判定したものだけを残しました

OpenAI のモデルは、回答の作成にも採点にも使っていません。

元のリポジトリ

リポジトリ ライセンス train の件数
openai/codex Apache 2.0 384
xai-org/x-algorithm Apache 2.0 372
xai-org/grok-build Apache 2.0 296
NVIDIA-NeMo/Guardrails Apache 2.0 294
MicrosoftDocs/semantic-kernel-docs(コード部分) MIT 219
anthropics/sandbox-runtime Apache 2.0 120
openai/openai-cli Apache 2.0 115

各リポジトリの著作権は、それぞれの作者にあります。このデータセットはどのリポジトリの作者とも関係のない、非公式のものです。

注意

  • 回答はモデルが書いたもので、人は1件ずつ確認していません。誤りが含まれることがあります
  • コードの断片には、元のリポジトリにある例のパス(/Users/example/...)や例の URL(example.com など)がそのまま入っています
  • わざと問題を入れたコードは、元のリポジトリのコードとは違います(mutation に変更内容があります)

ライセンス

Apache License 2.0。ただし、license が MIT の行に含まれるコードは、元のリポジトリの MIT ライセンスに従います。回答は Qwen3.8-27B(Apache 2.0)の出力です。

Downloads last month
46

Models trained or fine-tuned on Takenoko12345678/Japanese-Code-Review-OSS