<commit_before>package javaposse.jobdsl.dsl

import static java.lang.Thread.currentThread
import static org.codehaus.groovy.runtime.StackTraceUtils.isApplicationClass

/**
 * Abstract version of JobManagement to minimize impact on future API changes
 */
abstract class AbstractJobManagement implements JobManagement {
    protected PrintStream out

    protected AbstractJobManagement(PrintStream out) {
        this.out = out
    }

    protected AbstractJobManagement() {
        this(System.out)
    }

    @Override
    PrintStream getOutputStream() {
        out
    }

    @Override
    void queueJob(String jobName) throws NameNotProvidedException {
        validateNameArg(jobName)
    }

    @Override
    InputStream streamFileInWorkspace(String filePath) throws IOException {
        throw new UnsupportedOperationException()
    }

    @Override
    String readFileInWorkspace(String filePath) throws IOException {
        throw new UnsupportedOperationException()
    }

    @Override
    String readFileInWorkspace(String jobName, String filePath) throws IOException {
        throw new UnsupportedOperationException()<commit_msg>replaced getter for outputStream by a Groovy property<commit_after>package javaposse.jobdsl.dsl

import static java.lang.Thread.currentThread
import static org.codehaus.groovy.runtime.StackTraceUtils.isApplicationClass

/**
 * Abstract version of JobManagement to minimize impact on future API changes
 */
abstract class AbstractJobManagement implements JobManagement {
    final PrintStream outputStream

    protected AbstractJobManagement(PrintStream out) {
        this.outputStream = out
    }

    protected AbstractJobManagement() {
        this(System.out)
    }

    @Override
    void queueJob(String jobName) throws NameNotProvidedException {
        validateNameArg(jobName)
    }

    @Override
    InputStream streamFileInWorkspace(String filePath) throws IOException {
        throw new UnsupportedOperationException()
    }

    @Override
    String readFileInWorkspace(String filePath) throws IOException {
        throw new UnsupportedOperationException()
    }

    @Override
    String readFileInWorkspace(String jobName, String filePath) throws IOException {
        throw new UnsupportedOperationException()
{'fraction_non_alphanumeric': 0.05587329520457545, 'fraction_numerical': 0.0, 'mean_word_length': 3.7473903966597075, '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': '2146729', 'n_tokens_mistral': 559, 'n_tokens_neox': 543, 'n_words': 152}