<commit_before>import { Result, RunOptions, Spec } from "axe-core";
import { AxeBuilder, AxeAnalysis } from "axe-webdriverjs";
import { WebDriver } from "selenium-webdriver";

const inTest = async (webDriver: WebDriver) => {
    const builderCalled: AxeBuilder = AxeBuilder(webDriver);
    const builderNewed: AxeBuilder = new AxeBuilder(webDriver);

    const runOptions: RunOptions = {};
    const spec: Spec = {};

    const analysis: AxeAnalysis = await AxeBuilder(webDriver)
        .include("include")
        .exclude("exclude")
        .options(runOptions)
        .withRules("rule")
        .withRules(["rule", "rule"])
        .withTags("tag")
        .withTags(["tag", "tag"])
        .disableRules("rule")
        .disableRules(["rule", "rule"])
        .configure(spec)
        .analyze((err: Error | null, internalResults: AxeAnalysis) => {});

    const inapplicable: Result[] = analysis.inapplicable;
    const incomplete: Result[] = analysis.incomplete;
    const passes: Result[] = analysis.passes;
    const timestamp: string = analysis.timestamp;
    const url: string = analysis.url;
    const violations: Result[] = analysis.violations;
};<commit_msg>axe-webdriverjs: add deprecated analyze test<commit_after>import { Result, RunOptions, Spec } from "axe-core";
import { AxeBuilder, AxeAnalysis } from "axe-webdriverjs";
import { WebDriver } from "selenium-webdriver";

const inTest = async (webDriver: WebDriver) => {
    const builderCalled: AxeBuilder = AxeBuilder(webDriver);
    const builderNewed: AxeBuilder = new AxeBuilder(webDriver);

    const runOptions: RunOptions = {};
    const spec: Spec = {};

    const analysis: AxeAnalysis = await AxeBuilder(webDriver)
        .include("include")
        .exclude("exclude")
        .options(runOptions)
        .withRules("rule")
        .withRules(["rule", "rule"])
        .withTags("tag")
        .withTags(["tag", "tag"])
        .disableRules("rule")
        .disableRules(["rule", "rule"])
        .configure(spec)
        .analyze((err: Error | null, internalResults: AxeAnalysis) => {});

    const deprecatedAnalysis: AxeAnalysis = await AxeBuilder(webDriver).analyze(
        (internalResults: AxeAnalysis) => {}
    );

    const inapplicable: Result[] = analysis.inapplicable;
    const incomplete: Result[] = analysis.incomplete;
    const passes: Result[] = analysis.passes;
    const timestamp: string = analysis.timestamp;
    const url: string = analysis.url;
    const violations: Result[] = analysis.violations;
};
{'fraction_non_alphanumeric': 0.13739545997610514, 'fraction_numerical': 0.0, 'mean_word_length': 3.477718360071301, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '817293', 'n_tokens_mistral': 742, 'n_tokens_neox': 714, 'n_words': 175}