<commit_before>package org.utplsql.api.testRunner;

import org.utplsql.api.TestRunnerOptions;

import java.sql.Connection;
import java.sql.SQLException;

/** TestRunner-Statement for Framework version before 3.0.3
 * Does not know about failOnErrors option
 *
 * @author pesse
 */
class Pre303TestRunnerStatement extends AbstractTestRunnerStatement {

    public Pre303TestRunnerStatement(TestRunnerOptions options, Connection conn) throws SQLException {
        super(options, conn);
    }

    @Override
    protected String getSql() {
        // Workaround because Oracle JDBC doesn't support passing boolean to stored procedures.
        String colorConsoleStr = Boolean.toString(options.colorConsole);

        return "BEGIN " +
                "ut_runner.run(" +
                "a_paths            => ?, " +
                "a_reporters        => ?, " +
                "a_color_console    => " + colorConsoleStr + ", " +
                "a_coverage_schemes => ?, " +
                "a_source_files     => ?, " +
                "a_test_files       => ?, " +
                "a_include_objects  => ?, " +
                "a_exclude_objects  => ?); " +<commit_msg>Fixed wrong param names in Pre303TestRunnerStatement<commit_after>package org.utplsql.api.testRunner;

import org.utplsql.api.TestRunnerOptions;

import java.sql.Connection;
import java.sql.SQLException;

/** TestRunner-Statement for Framework version before 3.0.3
 * Does not know about failOnErrors option
 *
 * @author pesse
 */
class Pre303TestRunnerStatement extends AbstractTestRunnerStatement {

    public Pre303TestRunnerStatement(TestRunnerOptions options, Connection conn) throws SQLException {
        super(options, conn);
    }

    @Override
    protected String getSql() {
        // Workaround because Oracle JDBC doesn't support passing boolean to stored procedures.
        String colorConsoleStr = Boolean.toString(options.colorConsole);

        return "BEGIN " +
                "ut_runner.run(" +
                "a_paths            => ?, " +
                "a_reporters        => ?, " +
                "a_color_console    => " + colorConsoleStr + ", " +
                "a_coverage_schemes => ?, " +
                "a_source_file_mappings => ?, " +
                "a_test_file_mappings   => ?, " +
                "a_include_objects  => ?, " +
                "a_exclude_objects  => ?); " +
{'fraction_non_alphanumeric': 0.10129761406446212, 'fraction_numerical': 0.008790288823775638, 'mean_word_length': 2.2472826086956523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '2498659', 'n_tokens_mistral': 687, 'n_tokens_neox': 638, 'n_words': 135}