<commit_before>package gvm

import static cucumber.api.groovy.Hooks.*
import static gvm.VertxUtils.*

serviceUrlEnv = "http://localhost:8080"
forceOffline = false
buildScriptDir = new File("build/testScripts")

counter = "${(Math.random() * 10000).toInteger()}".padLeft(4, "0")

localGroovyCandidate = "/tmp/groovy-core" as File

gvmVersion = "x.y.z"
gvmVersionOutdated = "x.y.y"

gvmBaseEnv = "/tmp/gvm-$counter"
gvmBaseDir = gvmBaseEnv as File

gvmDirEnv = "$gvmBaseEnv/.gvm"
gvmDir = gvmDirEnv as File
binDir = "${gvmDirEnv}/bin" as File
srcDir = "${gvmDirEnv}/src" as File
varDir = "${gvmDirEnv}/var" as File
etcDir = "${gvmDirEnv}/etc" as File
extDir = "${gvmDirEnv}/ext" as File

broadcastFile = new File("${gvmDirEnv}/var/broadcast")

server = null
bash = null

Before(){
	cleanUp()
	server = startServer(gvmVersion)

	binDir.mkdirs()
    srcDir.mkdirs()
	varDir.mkdirs()
    etcDir.mkdirs()
    extDir.mkdirs()

    // Initialise candidate directories
    ['groovy', 'grails', 'griffon', 'gradle', 'lazybones', 'vertx'].each { candidate ->
        def candidateDir = "${gvmDirEnv}/${candidate}" as File
        candidateDir.mkdirs()
    }

    // Initialise broadcast file
    new File(varDir, 'broadcast') << 'This is a LIVE Broadcast!'

    // Copy the init script into the gvm bin folder
    new File(binDir, 'gvm-init.sh') << new File(buildScriptDir, 'gvm-init.sh').text

	// Copy all modular scripts into the gvm src folder<commit_msg>Remove obsolete candidates from directory creation in Before env hook.<commit_after>package gvm

import static cucumber.api.groovy.Hooks.*
import static gvm.VertxUtils.*

serviceUrlEnv = "http://localhost:8080"
forceOffline = false
buildScriptDir = new File("build/testScripts")

counter = "${(Math.random() * 10000).toInteger()}".padLeft(4, "0")

localGroovyCandidate = "/tmp/groovy-core" as File

gvmVersion = "x.y.z"
gvmVersionOutdated = "x.y.y"

gvmBaseEnv = "/tmp/gvm-$counter"
gvmBaseDir = gvmBaseEnv as File

gvmDirEnv = "$gvmBaseEnv/.gvm"
gvmDir = gvmDirEnv as File
binDir = "${gvmDirEnv}/bin" as File
srcDir = "${gvmDirEnv}/src" as File
varDir = "${gvmDirEnv}/var" as File
etcDir = "${gvmDirEnv}/etc" as File
extDir = "${gvmDirEnv}/ext" as File

broadcastFile = new File("${gvmDirEnv}/var/broadcast")

server = null
bash = null

Before(){
	cleanUp()
	server = startServer(gvmVersion)

	binDir.mkdirs()
    srcDir.mkdirs()
	varDir.mkdirs()
    etcDir.mkdirs()
    extDir.mkdirs()

    // Initialise candidate directories
    ['groovy', 'grails'].each { candidate ->
        def candidateDir = "${gvmDirEnv}/${candidate}" as File
        candidateDir.mkdirs()
    }

    // Initialise broadcast file
    new File(varDir, 'broadcast') << 'This is a LIVE Broadcast!'

    // Copy the init script into the gvm bin folder
    new File(binDir, 'gvm-init.sh') << new File(buildScriptDir, 'gvm-init.sh').text

	// Copy all modular scripts into the gvm src folder
{'fraction_non_alphanumeric': 0.14673539518900344, 'fraction_numerical': 0.007560137457044674, 'mean_word_length': 4.045060658578856, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '4913119', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1010, 'n_words': 256}