<commit_before>package unluac.test;

import java.io.File;
import java.io.IOException;

import unluac.Main;

public class TestSuite {
  
  private static String working_dir = "./test/working/";
  private static String compiled = "luac.out";
  private static String decompiled = "unluac.out";
  private static String recompiled = "test.out";
  
  private String name;
  private String path;
  private String[] files;
  private String ext = ".lua";
  
  public TestSuite(String name, String path, String[] files) {
    this.name = name;
    this.path = path;
    this.files = files;
  }
  
  public String testName(LuaSpec spec, String file) {
    if(name == null) {
      return spec.id() + ":" + file;
    } else {
      return spec.id() + name + "/" + file;
    }
  }
  
  private TestResult test(LuaSpec spec, String file) throws IOException {
    try {
      LuaC.compile(spec, file, working_dir + compiled);
    } catch (IOException e) {
      return TestResult.SKIPPED;
    }<commit_msg>Test output fix<commit_after>package unluac.test;

import java.io.File;
import java.io.IOException;

import unluac.Main;

public class TestSuite {
  
  private static String working_dir = "./test/working/";
  private static String compiled = "luac.out";
  private static String decompiled = "unluac.out";
  private static String recompiled = "test.out";
  
  private String name;
  private String path;
  private String[] files;
  private String ext = ".lua";
  
  public TestSuite(String name, String path, String[] files) {
    this.name = name;
    this.path = path;
    this.files = files;
  }
  
  public String testName(LuaSpec spec, String file) {
    if(name == null) {
      return spec.id() + ":" + file;
    } else {
      return spec.id() + ":" + name + "/" + file.replace('\\', '/');
    }
  }
  
  private TestResult test(LuaSpec spec, String file) throws IOException {
    try {
      LuaC.compile(spec, file, working_dir + compiled);
    } catch (IOException e) {
      return TestResult.SKIPPED;
    }
{'fraction_non_alphanumeric': 0.12195121951219512, 'fraction_numerical': 0.0, 'mean_word_length': 2.988095238095238, 'pattern_counts': {'":': 3, '<': 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': '6250608', 'n_tokens_mistral': 642, 'n_tokens_neox': 634, 'n_words': 184}