<commit_before>package com.semperos.screwdriver.scripting.js;

import com.semperos.screwdriver.TestUtil;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.io.ByteArrayOutputStream;
import java.io.File;

import static org.junit.Assert.assertEquals;

public class CoffeeScriptEvalIntegrationTest {
    @Before
    public void setup() throws Exception {
        TestUtil.deleteAssetDirectories();
    }

    @After
    public void tearDown() throws Exception {
        TestUtil.deleteAssetDirectories();
    }

    @Test
    public void testEvalFile() throws Exception {
        String expected = "THIS IS COFFEESCRIPT, outputDir is " + TestUtil.baseDirectoryPath();
        File f = new File(TestUtil.baseDirectoryPath(), "screwdriver_config.coffee");
        // Capture stdout and compare
        ByteArrayOutputStream baos = TestUtil.captureStdout();
        CoffeeScriptEval.evalFile(f);
        assertEquals(expected, baos.toString());
        TestUtil.restoreStdout();
    }
}<commit_msg>Fix name of file in test for Clojure scripting<commit_after>package com.semperos.screwdriver.scripting.js;

import com.semperos.screwdriver.TestUtil;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.io.ByteArrayOutputStream;
import java.io.File;

import static org.junit.Assert.assertEquals;

public class CoffeeScriptEvalIntegrationTest {
    @Before
    public void setup() throws Exception {
        TestUtil.deleteAssetDirectories();
    }

    @After
    public void tearDown() throws Exception {
        TestUtil.deleteAssetDirectories();
    }

    @Test
    public void testEvalFile() throws Exception {
        String expected = "THIS IS COFFEESCRIPT, outputDir is " + TestUtil.baseDirectoryPath();
        File f = new File(TestUtil.baseDirectoryPath(), "screwdriver_build.coffee");
        // Capture stdout and compare
        ByteArrayOutputStream baos = TestUtil.captureStdout();
        CoffeeScriptEval.evalFile(f);
        assertEquals(expected, baos.toString());
        TestUtil.restoreStdout();
    }
}
{'fraction_non_alphanumeric': 0.09404990403071017, 'fraction_numerical': 0.0, 'mean_word_length': 3.6026490066225167, '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': '6276810', 'n_tokens_mistral': 595, 'n_tokens_neox': 582, 'n_words': 136}