<commit_before>import {Session} from "../shell/Session";
import {PluginManager} from "../PluginManager";
import {EnvironmentObserverPlugin} from "../Interfaces";
import * as _ from "lodash";
import {EventEmitter} from "events";
import {currentBranchName, GitDirectoryPath, repositoryState, RepositoryState} from "../utils/Git";

const GIT_WATCHER_EVENT_NAME = "git-data-changed";

class GitWatcher extends EventEmitter {
    static INTERVAL = 3000;
    timer: NodeJS.Timer;<commit_msg>Decrease interval.<commit_after>import {Session} from "../shell/Session";
import {PluginManager} from "../PluginManager";
import {EnvironmentObserverPlugin} from "../Interfaces";
import * as _ from "lodash";
import {EventEmitter} from "events";
import {currentBranchName, GitDirectoryPath, repositoryState, RepositoryState} from "../utils/Git";

const GIT_WATCHER_EVENT_NAME = "git-data-changed";

class GitWatcher extends EventEmitter {
    static INTERVAL = 2000;
    timer: NodeJS.Timer;
{'fraction_non_alphanumeric': 0.12615384615384614, 'fraction_numerical': 0.008205128205128205, 'mean_word_length': 5.825174825174825, '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': '6242714', 'n_tokens_mistral': 284, 'n_tokens_neox': 274, 'n_words': 78}