File size: 2,557 Bytes
cb5c03a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "ModuleMap-Bench v2 \u2014 one labelled top-level Java type",
 "type": "object",
 "additionalProperties": false,
 "required": [
  "id",
  "project",
  "repo_url",
  "commit_sha",
  "license",
  "module",
  "file_path",
  "qualified_name",
  "role",
  "marks",
  "annotator",
  "labelled_at",
  "guideline_version",
  "audited_by",
  "rationale",
  "confidence",
  "split"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "<project>/<qualified_name>"
  },
  "project": {
   "type": "string"
  },
  "repo_url": {
   "type": "string",
   "pattern": "^https://github\\.com/[^/]+/[^/]+$"
  },
  "commit_sha": {
   "type": "string",
   "pattern": "^[0-9a-f]{40}$"
  },
  "license": {
   "type": "string",
   "description": "SPDX id as found at the repository root"
  },
  "module": {
   "type": "string",
   "description": "name of the folder holding src/main/java"
  },
  "file_path": {
   "type": "string",
   "pattern": "\\.java$",
   "description": "from the repository root"
  },
  "qualified_name": {
   "type": "string"
  },
  "role": {
   "enum": [
    "entry",
    "client",
    "service",
    "domain",
    "persistence",
    "event",
    "config",
    "none"
   ]
  },
  "marks": {
   "description": "null: marks not labelled for this row; [] labelled, none hold",
   "oneOf": [
    {
     "type": "null"
    },
    {
     "type": "array",
     "uniqueItems": true,
     "items": {
      "enum": [
       "api",
       "ext"
      ]
     }
    }
   ]
  },
  "annotator": {
   "type": "string",
   "pattern": "^(person:[a-z0-9-]+|claude:[A-Za-z0-9.-]+)$"
  },
  "labelled_at": {
   "type": "string",
   "format": "date"
  },
  "guideline_version": {
   "type": [
    "string",
    "null"
   ],
   "description": "null: not recorded (legacy rows)"
  },
  "audited_by": {
   "type": [
    "string",
    "null"
   ],
   "pattern": "^person:[a-z0-9-]+$"
  },
  "rationale": {
   "type": [
    "string",
    "null"
   ]
  },
  "confidence": {
   "enum": [
    "sure",
    "unsure",
    null
   ],
   "description": "null: not recorded (legacy rows)"
  },
  "split": {
   "enum": [
    "train",
    "dev",
    "test",
    "suggester_holdout"
   ]
  },
  "stratum": {
   "type": [
    "string",
    "null"
   ],
   "description": "how the type was drawn: random, boost:<signal>, all, or legacy"
  },
  "status": {
   "type": [
    "string",
    "null"
   ],
   "description": "how the label was settled: two passes agreed, pass a taken, bulk approval\u2026"
  }
 }
}