<commit_before>class Fancy AST {
  class NilLiteral : Rubinius AST NilLiteral {
    def initialize: line {
      initialize(line)
    }
    def bytecode: g {
      pos(g)
      bytecode(g)
    }
  }

  class FixnumLiteral : Rubinius AST FixnumLiteral {
    def initialize: line value: value {
      initialize(line, value)
    }
    def bytecode: g {
      pos(g)
      bytecode(g)
    }
  }

  class NumberLiteral : Rubinius AST NumberLiteral {
    def initialize: line value: value {
      initialize(line, value)
    }
    def bytecode: g {
      pos(g)
      bytecode(g)
    }
  }

  class StringLiteral : Rubinius AST StringLiteral {
    def initialize: line value: value {
      initialize(line, StringHelper unescape_string(value))
    }
    def bytecode: g {
      pos(g)
      bytecode(g)
    }
  }

  class CurrentFile : Node {
    def initialize: @line filename: @filename
    def bytecode: g {
      pos(g)
      StringLiteral new: @line value: $ File absolute_path: @filename . bytecode: g
    }
  }

  class CurrentDir : Node {
    def initialize: @line filename: @filename
    def bytecode: g {
      pos(g)
      StringLiteral new: @line value: $ File absolute_path: (File dirname: @filename) . bytecode: g
    }
  }

  class CurrentLine : Node {
    def initialize: @line
    def bytecode: g {
      pos(g)
      FixnumLiteral new: @line value: @line . bytecode: g
    }
  }

  class Nothing : Node {
    def initialize: @line
    def bytecode: g { pos(g) }
  }<commit_msg>refactor __LINE__, __DIR__ & __FILE__ literals<commit_after>class Fancy AST {
  class NilLiteral : Rubinius AST NilLiteral {
    def initialize: line {
      initialize(line)
    }
    def bytecode: g {
      pos(g)
      bytecode(g)
    }
  }

  class FixnumLiteral : Rubinius AST FixnumLiteral {
    def initialize: line value: value {
      initialize(line, value)
    }
    def bytecode: g {
      pos(g)
      bytecode(g)
    }
  }

  class NumberLiteral : Rubinius AST NumberLiteral {
    def initialize: line value: value {
      initialize(line, value)
    }
    def bytecode: g {
      pos(g)
      bytecode(g)
    }
  }

  class StringLiteral : Rubinius AST StringLiteral {
    def initialize: line value: value {
      initialize(line, StringHelper unescape_string(value))
    }
    def bytecode: g {
      pos(g)
      bytecode(g)
    }
  }

  class CurrentFile : Node {
    def initialize: @line filename: @filename {
      @string = StringLiteral new: @line value: $ File absolute_path: @filename
    }
    def bytecode: g {
      pos(g)
      @string bytecode: g
    }
  }

  class CurrentDir : Node {
    def initialize: @line filename: @filename {
      dir = File dirname: @filename
      @string = StringLiteral new: @line value: $ File absolute_path: dir
    }
    def bytecode: g {
      pos(g)
      @string bytecode: g
    }
  }

  class CurrentLine : Node {
    def initialize: @line {
      @line_number = FixnumLiteral new: @line value: @line
    }
    def bytecode: g {
      pos(g)
      @line_number bytecode: g
    }
  }

  class Nothing : Node {
    def initialize: @line
    def bytecode: g { pos(g) }
  }
{'fraction_non_alphanumeric': 0.09433962264150944, 'fraction_numerical': 0.0, 'mean_word_length': 2.271966527196653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6173436', 'n_tokens_mistral': 1027, 'n_tokens_neox': 997, 'n_words': 292}