ronantakizawa commited on
Commit
fe6399c
·
verified ·
1 Parent(s): 461fa15

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +7 -7
README.md CHANGED
@@ -40,17 +40,17 @@ Each row captures a moment where a human code reviewer left an inline comment on
40
 
41
  | Column | Type | Description |
42
  |--------|------|-------------|
43
- | `before_chunk` | string | ~50 lines of code around the comment, before the fix |
44
  | `reviewer_comment` | string | The inline review comment text |
45
- | `after_chunk` | string | ~50 lines of code around the comment, after the fix |
46
- | `diff_hunk` | string | The PR diff hunk where the comment was placed |
47
  | `file_path` | string | File path within the repo |
48
  | `comment_line` | int | Line number where the comment was placed |
49
  | `language` | string | Programming language |
50
  | `quality_score` | float | Comment quality score (0.0-1.0) |
51
  | `comment_length` | int | Character count of reviewer comment |
52
- | `before_line_count` | int | Lines in before chunk |
53
- | `after_line_count` | int | Lines in after chunk |
54
  | `pr_title` | string | Pull request title |
55
  | `pr_number` | int | PR number |
56
  | `repo_name` | string | Full repo name (owner/repo) |
@@ -70,8 +70,8 @@ ds = load_dataset("ronantakizawa/github-codereview")
70
  example = ds["train"][0]
71
  print(f"Review comment: {example['reviewer_comment']}")
72
  print(f"Language: {example['language']}")
73
- print(f"Before:\n{example['before_chunk'][:200]}")
74
- print(f"After:\n{example['after_chunk'][:200]}")
75
  ```
76
 
77
  ### Filter by language
 
40
 
41
  | Column | Type | Description |
42
  |--------|------|-------------|
43
+ | `before_code` | string | ~50 lines of code around the comment, before the fix |
44
  | `reviewer_comment` | string | The inline review comment text |
45
+ | `after_code` | string | ~50 lines of code around the comment, after the fix |
46
+ | `diff_context` | string | The PR diff hunk where the comment was placed |
47
  | `file_path` | string | File path within the repo |
48
  | `comment_line` | int | Line number where the comment was placed |
49
  | `language` | string | Programming language |
50
  | `quality_score` | float | Comment quality score (0.0-1.0) |
51
  | `comment_length` | int | Character count of reviewer comment |
52
+ | `before_lines` | int | Line count of before code |
53
+ | `after_lines` | int | Line count of after code |
54
  | `pr_title` | string | Pull request title |
55
  | `pr_number` | int | PR number |
56
  | `repo_name` | string | Full repo name (owner/repo) |
 
70
  example = ds["train"][0]
71
  print(f"Review comment: {example['reviewer_comment']}")
72
  print(f"Language: {example['language']}")
73
+ print(f"Before:\n{example['before_code'][:200]}")
74
+ print(f"After:\n{example['after_code'][:200]}")
75
  ```
76
 
77
  ### Filter by language