<commit_before>/**
 * Created by takesano on 15/03/23.
 */
object Main {
  def main(args: Array[String]) {
    println("hello swift, goodbye obj-c.")
  }
}<commit_msg>parse sample source in Main.<commit_after>import java.io.FileInputStream
import org.antlr.v4.runtime._
import org.antlr.v4.runtime.tree.ParseTreeWalker

/**
 * Created by takesano on 15/03/23.
 */
object Main {
  def main(args: Array[String]) {
    println("hello swift, goodbye obj-c.")

    val input = new ANTLRInputStream(new FileInputStream("sample/sample.h"))
    val lexer = new ObjCLexer(input)
    val tokens = new CommonTokenStream(lexer)
    val parser = new ObjCParser(tokens)
    val root = parser.translation_unit()

    val walker = new ParseTreeWalker()
    val listener = new MyObjCListener()

    walker.walk(listener, root)
  }
}
{'fraction_non_alphanumeric': 0.12269938650306748, 'fraction_numerical': 0.01717791411042945, 'mean_word_length': 3.689655172413793, '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': '712230', 'n_tokens_mistral': 281, 'n_tokens_neox': 260, 'n_words': 69}