<commit_before>import { FSWatcher } from 'fs';

/**
 * Watch for changes on `filename`, where filename is either a file or a directory. The second argument is optional.
 * If `options` is provided as a string, it specifies the encoding. Otherwise `options` should be passed as an object.
 * The listener callback gets two arguments `(eventType, filename)`. `eventType` is either `update` or `remove`, and
 * `filename` is the name of the file which triggered the event.
 *
 * @param {string} filename File or directory to watch.
 * @param {WatchOptions|string} options
 * @param {Function} listener
 */
declare function watch(
    filename: string,
    options ?: WatchOptions | string,
    listener ?: (eventType: 'update' | 'remove', filename: string) => any
) : ImprovedFSWatcher;<commit_msg>Add a definition for watch without options<commit_after>import { FSWatcher } from 'fs';

/**
 * Watch for changes on `filename`, where filename is either a file or a directory. The second argument is optional.
 * If `options` is provided as a string, it specifies the encoding. Otherwise `options` should be passed as an object.
 * The listener callback gets two arguments `(eventType, filename)`. `eventType` is either `update` or `remove`, and
 * `filename` is the name of the file which triggered the event.
 *
 * @param {string} filename File or directory to watch.
 * @param {WatchOptions|string} options
 * @param {Function} listener
 */
declare function watch(filename: string, listener ?: (eventType: 'update' | 'remove', filename: string) => any) : ImprovedFSWatcher;
declare function watch(filename: string, options ?: WatchOptions | string, listener ?: (eventType: 'update' | 'remove', filename: string) => any) : ImprovedFSWatcher;
{'fraction_non_alphanumeric': 0.10817031070195628, 'fraction_numerical': 0.0, 'mean_word_length': 4.739273927392739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3648976', 'n_tokens_mistral': 462, 'n_tokens_neox': 455, 'n_words': 212}