<commit_before>package leon
package codegen

import purescala.Common._
import purescala.Definitions._

import cafebabe._
import cafebabe.ClassFileTypes.U2
import cafebabe.Flags._

object CodeGenPhase extends LeonPhase[Program,CompilationResult] {
  val name = "CodeGen"
  val description = "Compiles a Leon program into Java methods"

  def run(ctx : LeonContext)(p : Program) : CompilationResult = {
    import CodeGeneration._

    CompilationUnit.compileProgram(p) match {
      case Some(unit) => 
        unit.writeClassFiles()
        CompilationResult(successful = true)
      case None =>
        CompilationResult(successful = false)
    }<commit_msg>No more classfiles.<commit_after>package leon
package codegen

import purescala.Common._
import purescala.Definitions._

import cafebabe._
import cafebabe.ClassFileTypes.U2
import cafebabe.Flags._

object CodeGenPhase extends LeonPhase[Program,CompilationResult] {
  val name = "CodeGen"
  val description = "Compiles a Leon program into Java methods"

  def run(ctx : LeonContext)(p : Program) : CompilationResult = {
    import CodeGeneration._

    CompilationUnit.compileProgram(p) match {
      case Some(unit) => 
        //unit.writeClassFiles()
        CompilationResult(successful = true)
      case None =>
        CompilationResult(successful = false)
    }
{'fraction_non_alphanumeric': 0.08057228915662651, 'fraction_numerical': 0.0015060240963855422, 'mean_word_length': 3.886029411764706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2925034', 'n_tokens_mistral': 383, 'n_tokens_neox': 377, 'n_words': 98}