<commit_before>@GrabResolver(name = 'utils', root = 'file:.lazybones/repo')
@Grab(group = '@groupId@', module = '@artifactId@', version = '@version@', transitive = false)

import com.github.dkorotych.lazybones.templates.maven.Dependency
import com.github.dkorotych.lazybones.templates.maven.PomProcessor
import groovy.xml.MarkupBuilder

def script = new GroovyScriptEngine('.lazybones').with {
    loadScriptByName('utils.groovy')
}
this.metaClass.mixin script

class Slf4JDependency extends Dependency {
    Slf4JDependency() {
        this.groupId = 'org.slf4j'
        this.version = '${slf4j.version}'
        asRuntime()
    }
}

// Create dependencies list
slf4jApi = new Slf4JDependency(artifactId: 'slf4j-api', scope: 'compile')
dependencies = [
        slf4jApi,
        new Slf4JDependency(artifactId: 'jul-to-slf4j'),
        new Slf4JDependency(artifactId: 'jcl-over-slf4j'),
        new Slf4JDependency(artifactId: 'log4j-over-slf4j'),
        new Dependency(groupId: 'ch.qos.logback', artifactId: 'logback-classic', version: '1.2.3',
                exclusions: [slf4jApi]).asRuntime()
]

pomProcessor = new PomProcessor(dependencies, this)
if (pomProcessor.processing) {
    MarkupBuilder builder = pomProcessor.createMarkupBuilder()
    builder.project {
        delegate.'properties' {
            'slf4j.version'("1.7.25")
        }
    }
    pomProcessor.process()

    // Create new dependencies as part of pom.xml
    builder = pomProcessor.createMarkupBuilder()
    pomProcessor.addDependencies(builder)
    pomProcessor.process()

    pomProcessor.save()
    log.info "Add logback and slf4j as project dependencies"

    // Copy configuration files
    copyDirectoryFromTemplate('src')
    log.info "Generate simple configuration files"
}<commit_msg>Lazybones uses System.out.print for messages<commit_after>@GrabResolver(name = 'utils', root = 'file:.lazybones/repo')
@Grab(group = '@groupId@', module = '@artifactId@', version = '@version@', transitive = false)

import com.github.dkorotych.lazybones.templates.maven.Dependency
import com.github.dkorotych.lazybones.templates.maven.PomProcessor
import groovy.xml.MarkupBuilder

def script = new GroovyScriptEngine('.lazybones').with {
    loadScriptByName('utils.groovy')
}
this.metaClass.mixin script

class Slf4JDependency extends Dependency {
    Slf4JDependency() {
        this.groupId = 'org.slf4j'
        this.version = '${slf4j.version}'
        asRuntime()
    }
}

// Create dependencies list
slf4jApi = new Slf4JDependency(artifactId: 'slf4j-api', scope: 'compile')
dependencies = [
        slf4jApi,
        new Slf4JDependency(artifactId: 'jul-to-slf4j'),
        new Slf4JDependency(artifactId: 'jcl-over-slf4j'),
        new Slf4JDependency(artifactId: 'log4j-over-slf4j'),
        new Dependency(groupId: 'ch.qos.logback', artifactId: 'logback-classic', version: '1.2.3',
                exclusions: [slf4jApi]).asRuntime()
]

pomProcessor = new PomProcessor(dependencies, this)
if (pomProcessor.processing) {
    MarkupBuilder builder = pomProcessor.createMarkupBuilder()
    builder.project {
        delegate.'properties' {
            'slf4j.version'("1.7.25")
        }
    }
    pomProcessor.process()

    // Create new dependencies as part of pom.xml
    builder = pomProcessor.createMarkupBuilder()
    pomProcessor.addDependencies(builder)
    pomProcessor.process()

    pomProcessor.save()
    System.out.println "Add logback and slf4j as project dependencies"

    // Copy configuration files
    copyDirectoryFromTemplate('src')
    System.out.println "Generate simple configuration files"
}
{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.013900472616068946, 'mean_word_length': 3.740447957839262, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2007410', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1125, 'n_words': 216}