<commit_before>import { expect } from 'chai';

const Stopwatch = Jymfony.Component.Stopwatch.Stopwatch;
const StopwatchEvent = Jymfony.Component.Stopwatch.StopwatchEvent;
const TestCase = Jymfony.Component.Testing.Framework.TestCase;

export default class StopwatchPeriodTest extends TestCase {
    get testCaseName() {
        return '[Stopwatch] ' + super.testCaseName;
    }

    testStart() {
        const stopwatch = new Stopwatch();
        const event = stopwatch.start('foo', 'cat');

        expect(event).to.be.instanceOf(StopwatchEvent);
        expect(event.category).to.be.equal('cat');
        expect(stopwatch.getEvent('foo')).to.be.equal(event);
    }

    testStartWithoutCategory() {
        const stopwatch = new Stopwatch();
        const event = stopwatch.start('bar');
<commit_msg>[Stopwatch] fix test case class name<commit_after>import { expect } from 'chai';

const Stopwatch = Jymfony.Component.Stopwatch.Stopwatch;
const StopwatchEvent = Jymfony.Component.Stopwatch.StopwatchEvent;
const TestCase = Jymfony.Component.Testing.Framework.TestCase;

export default class StopwatchTest extends TestCase {
    get testCaseName() {
        return '[Stopwatch] ' + super.testCaseName;
    }

    testStart() {
        const stopwatch = new Stopwatch();
        const event = stopwatch.start('foo', 'cat');

        expect(event).to.be.instanceOf(StopwatchEvent);
        expect(event.category).to.be.equal('cat');
        expect(stopwatch.getEvent('foo')).to.be.equal(event);
    }

    testStartWithoutCategory() {
        const stopwatch = new Stopwatch();
        const event = stopwatch.start('bar');

{'fraction_non_alphanumeric': 0.12430769230769231, 'fraction_numerical': 0.0, 'mean_word_length': 3.593220338983051, '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': '6336405', 'n_tokens_mistral': 470, 'n_tokens_neox': 464, 'n_words': 93}