timlawrenz commited on
Commit
95c74ba
·
verified ·
1 Parent(s): 714c354

Upload paper.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. paper.md +1 -1
paper.md CHANGED
@@ -41,7 +41,7 @@ Our contributions are:
41
  ### 3.1 Dataset
42
 
43
  We use 22,452 Ruby methods extracted from open-source repositories, each parsed into an AST with:
44
- - **74-dimensional node features** encoding node type (one-hot), depth, sibling index, and subtree statistics.
45
  - **Edge attributes** (3D): edge type encoding, relative depth, and child index.
46
  - **Positional encodings** (2D): tree depth and sibling position.
47
  - **Labels**: McCabe cyclomatic complexity (integer, range 1–200+).
 
41
  ### 3.1 Dataset
42
 
43
  We use 22,452 Ruby methods extracted from open-source repositories, each parsed into an AST with:
44
+ - **74-dimensional node features** encoding node type (one-hot over 73 known AST types plus one `UNKNOWN` token). Lexical literals — identifiers, string contents, numeric values — are stripped of their content and mapped to this single `UNKNOWN` token to bound the feature space. As we show in Section 4.4, this design choice has profound consequences for generation.
45
  - **Edge attributes** (3D): edge type encoding, relative depth, and child index.
46
  - **Positional encodings** (2D): tree depth and sibling position.
47
  - **Labels**: McCabe cyclomatic complexity (integer, range 1–200+).