Jkatzy's picture
Corrected multilingual code comments
a17e962
|
Raw History Blame Contribute Delete
11.6 kB
metadata
dataset_info:
  - config_name: Chinese
    features:
      - name: file_id
        dtype: string
      - name: content
        dtype: string
      - name: repo
        dtype: string
      - name: path
        dtype: string
      - name: original_comment
        dtype: string
      - name: masked_data_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predict_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predicted_comment_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: masked_data_bigcode/starcoder2-7b
        dtype: string
      - name: predict_bigcode/starcoder2-7b
        dtype: string
      - name: predicted_comment_bigcode/starcoder2-7b
        dtype: string
      - name: masked_data_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predict_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predicted_comment_ibm-granite/granite-8b-code-base
        dtype: string
      - name: masked_data_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predict_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predicted_comment_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: masked_data_google/codegemma-7b
        dtype: string
      - name: predict_google/codegemma-7b
        dtype: string
      - name: predicted_comment_google/codegemma-7b
        dtype: string
      - name: expert_accuracy_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: error_codes_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: expert_accuracy_bigcode/starcoder2-7b
        dtype: string
      - name: error_codes_bigcode/starcoder2-7b
        dtype: string
      - name: expert_accuracy_google/codegemma-7b
        dtype: string
      - name: error_codes_google/codegemma-7b
        dtype: string
      - name: expert_accuracy_ibm-granite/granite-8b-code-base
        dtype: string
      - name: error_codes_ibm-granite/granite-8b-code-base
        dtype: string
      - name: expert_accuracy_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: error_codes_meta-llama/CodeLlama-7b-hf
        dtype: string
    splits:
      - name: train
        num_bytes: 21709444
        num_examples: 500
    download_size: 9007265
    dataset_size: 21709444
  - config_name: Dutch
    features:
      - name: file_id
        dtype: string
      - name: content
        dtype: string
      - name: repo
        dtype: string
      - name: path
        dtype: string
      - name: original_comment
        dtype: string
      - name: masked_data_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predict_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predicted_comment_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: masked_data_bigcode/starcoder2-7b
        dtype: string
      - name: expert_accuracy_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: error_codes_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predict_bigcode/starcoder2-7b
        dtype: string
      - name: predicted_comment_bigcode/starcoder2-7b
        dtype: string
      - name: masked_data_ibm-granite/granite-8b-code-base
        dtype: string
      - name: expert_accuracy_bigcode/starcoder2-7b
        dtype: string
      - name: error_codes_bigcode/starcoder2-7b
        dtype: string
      - name: predict_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predicted_comment_ibm-granite/granite-8b-code-base
        dtype: string
      - name: masked_data_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: expert_accuracy_ibm-granite/granite-8b-code-base
        dtype: string
      - name: error_codes_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predict_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predicted_comment_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: masked_data_google/codegemma-7b
        dtype: string
      - name: expert_accuracy_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: error_codes_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predict_google/codegemma-7b
        dtype: string
      - name: predicted_comment_google/codegemma-7b
        dtype: string
      - name: expert_accuracy_google/codegemma-7b
        dtype: string
      - name: error_codes_google/codegemma-7b
        dtype: string
    splits:
      - name: train
        num_bytes: 24547573
        num_examples: 500
    download_size: 9149421
    dataset_size: 24547573
  - config_name: English
    features:
      - name: file_id
        dtype: string
      - name: content
        dtype: string
      - name: repo
        dtype: string
      - name: path
        dtype: string
      - name: original_comment
        dtype: string
      - name: masked_data_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predict_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predicted_comment_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: masked_data_bigcode/starcoder2-7b
        dtype: string
      - name: predict_bigcode/starcoder2-7b
        dtype: string
      - name: predicted_comment_bigcode/starcoder2-7b
        dtype: string
      - name: masked_data_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predict_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predicted_comment_ibm-granite/granite-8b-code-base
        dtype: string
      - name: masked_data_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predict_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predicted_comment_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: masked_data_google/codegemma-7b
        dtype: string
      - name: predict_google/codegemma-7b
        dtype: string
      - name: predicted_comment_google/codegemma-7b
        dtype: string
      - name: error_codes_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: expert_accuracy_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: error_codes_bigcode/starcoder2-7b
        dtype: string
      - name: expert_accuracy_bigcode/starcoder2-7b
        dtype: string
      - name: error_codes_ibm-granite/granite-8b-code-base
        dtype: string
      - name: expert_accuracy_ibm-granite/granite-8b-code-base
        dtype: string
      - name: error_codes_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: expert_accuracy_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: error_codes_google/codegemma-7b
        dtype: string
      - name: expert_accuracy_google/codegemma-7b
        dtype: string
    splits:
      - name: train
        num_bytes: 20576452
        num_examples: 500
    download_size: 8169164
    dataset_size: 20576452
  - config_name: Greek
    features:
      - name: file_id
        dtype: string
      - name: content
        dtype: string
      - name: repo
        dtype: string
      - name: path
        dtype: string
      - name: original_comment
        dtype: string
      - name: masked_data_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predict_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predicted_comment_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: masked_data_bigcode/starcoder2-7b
        dtype: string
      - name: predict_bigcode/starcoder2-7b
        dtype: string
      - name: predicted_comment_bigcode/starcoder2-7b
        dtype: string
      - name: masked_data_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predict_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predicted_comment_ibm-granite/granite-8b-code-base
        dtype: string
      - name: masked_data_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predict_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predicted_comment_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: masked_data_google/codegemma-7b
        dtype: string
      - name: predict_google/codegemma-7b
        dtype: string
      - name: predicted_comment_google/codegemma-7b
        dtype: string
      - name: error_codes_bigcode/starcoder2-7b
        dtype: string
      - name: error_codes_ibm-granite/granite-8b-code-base
        dtype: string
      - name: error_codes_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: error_codes_google/codegemma-7b
        dtype: string
      - name: error_codes_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: expert_accuracy_bigcode/starcoder2-7b
        dtype: string
      - name: expert_accuracy_ibm-granite/granite-8b-code-base
        dtype: string
      - name: expert_accuracy_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: expert_accuracy_google/codegemma-7b
        dtype: string
      - name: expert_accuracy_Qwen/CodeQwen1.5-7B
        dtype: string
    splits:
      - name: train
        num_bytes: 25228509
        num_examples: 500
    download_size: 8978147
    dataset_size: 25228509
  - config_name: Polish
    features:
      - name: file_id
        dtype: string
      - name: repo
        dtype: string
      - name: path
        dtype: string
      - name: content
        dtype: string
      - name: original_comment
        dtype: string
      - name: masked_data_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predict_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: predicted_comment_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: masked_data_bigcode/starcoder2-7b
        dtype: string
      - name: predict_bigcode/starcoder2-7b
        dtype: string
      - name: predicted_comment_bigcode/starcoder2-7b
        dtype: string
      - name: masked_data_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predict_ibm-granite/granite-8b-code-base
        dtype: string
      - name: predicted_comment_ibm-granite/granite-8b-code-base
        dtype: string
      - name: masked_data_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predict_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: predicted_comment_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: masked_data_google/codegemma-7b
        dtype: string
      - name: predict_google/codegemma-7b
        dtype: string
      - name: predicted_comment_google/codegemma-7b
        dtype: string
      - name: error_codes_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: expert_accuracy_Qwen/CodeQwen1.5-7B
        dtype: string
      - name: error_codes_bigcode/starcoder2-7b
        dtype: string
      - name: expert_accuracy_bigcode/starcoder2-7b
        dtype: string
      - name: error_codes_ibm-granite/granite-8b-code-base
        dtype: string
      - name: expert_accuracy_ibm-granite/granite-8b-code-base
        dtype: string
      - name: error_codes_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: expert_accuracy_meta-llama/CodeLlama-7b-hf
        dtype: string
      - name: error_codes_google/codegemma-7b
        dtype: string
      - name: expert_accuracy_google/codegemma-7b
        dtype: string
    splits:
      - name: train
        num_bytes: 17812544
        num_examples: 500
    download_size: 7250273
    dataset_size: 17812544
configs:
  - config_name: Chinese
    data_files:
      - split: train
        path: Chinese/train-*
  - config_name: Dutch
    data_files:
      - split: train
        path: Dutch/train-*
  - config_name: English
    data_files:
      - split: train
        path: English/train-*
  - config_name: Greek
    data_files:
      - split: train
        path: Greek/train-*
  - config_name: Polish
    data_files:
      - split: train
        path: Polish/train-*

Multilingual code comments

This dataset contains 500 source-code examples for each of Chinese, Dutch, English, Greek and Polish (2,500 examples total), with comments generated by five models and human correctness ratings and error annotations. Each language has a train split.

Human ratings use Correct, Partial and Incorrect. Error fields contain comma-separated taxonomy codes. A generated comment can carry multiple error codes.

Annotation interpretation

Stored human error codes use the original taxonomy identifiers. For analysis, exclude original LG-GR5 (capitalization), then map original LG-GR6 (cohesion) to normalized LG-GR5. The order matters: cohesion remains an error. Comments whose only annotated error is original LG-GR5 are rated Correct.

For English file 135838_2, CodeLlama, StarCoder2 and GraniteCode are rated Partial and annotated MS-RE1 and SE-HA3.

Data fields

The language configurations preserve source identifiers, repository and path, source content, reference comments, generation inputs and outputs, extracted generated comments, human ratings and error-code strings. Model-specific columns identify CodeGemma, CodeLlama, CodeQwen1.5, StarCoder2 and GraniteCode. Raw generation fields and extracted comments are distinct fields.