<commit_before>package com.legstar.jaxb.generator;

import static org.junit.Assert.*;

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

import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.Before;
import org.junit.Test;

import com.legstar.cob2xsd.Cob2XsdConfig;

public class Cob2JaxbGeneratorTest extends AbstractTest {

    private static final boolean CREATE_REFERENCE = false;

    private static final String LEGSTAR_COBOL_FILE_ENCODING = "UTF-8";
    
    private static final File OUTPUT_DIR = new File("target/generated-test-sources");
    
    private Cob2JaxbGenerator gen;

    @Before
    public void setUp() throws Exception {
        setCreateReferences(CREATE_REFERENCE);
        gen = new Cob2JaxbGenerator(Cob2XsdConfig.getDefaultConfigProps());
        FileUtils.forceMkdir(OUTPUT_DIR);
        FileUtils.cleanDirectory(OUTPUT_DIR);
    }

    @Test
    public void testFlat01Generate() throws Exception {
        generate("FLAT01");
        check("Flat01Record");
    }

    @Test
    public void testCflt01Generate() throws Exception {<commit_msg>Attempts at clearing the output directory erratically fail during unit testing.<commit_after>package com.legstar.jaxb.generator;

import static org.junit.Assert.*;

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

import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.Before;
import org.junit.Test;

import com.legstar.cob2xsd.Cob2XsdConfig;

public class Cob2JaxbGeneratorTest extends AbstractTest {

    private static final boolean CREATE_REFERENCE = false;

    private static final String LEGSTAR_COBOL_FILE_ENCODING = "UTF-8";
    
    private static final File OUTPUT_DIR = new File("target/generated-test-sources");
    
    private Cob2JaxbGenerator gen;

    @Before
    public void setUp() throws Exception {
        setCreateReferences(CREATE_REFERENCE);
        gen = new Cob2JaxbGenerator(Cob2XsdConfig.getDefaultConfigProps());
        FileUtils.forceMkdir(OUTPUT_DIR);
    }

    @Test
    public void testFlat01Generate() throws Exception {
        generate("FLAT01");
        check("Flat01Record");
    }

    @Test
    public void testCflt01Generate() throws Exception {
{'fraction_non_alphanumeric': 0.08554964539007093, 'fraction_numerical': 0.014184397163120567, 'mean_word_length': 3.9065217391304348, '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': '2502267', 'n_tokens_mistral': 700, 'n_tokens_neox': 670, 'n_words': 153}