<commit_before># timer.js
Simple timer, wraps setInterval and clearInterval.

## Installation
    $ npm install timerjs

## API Documentation

### Class Properties
* **TIMER** - 'timer'
* **TIMER_COMPLETE** - 'timerComplete'

### Member Properties
* **currentCount** - \[read-only\] The total number of times the timer has fired since it started at zero.
* **delay** - The delay, in milliseconds, between timer events.
* **repeatCount** - The total number of times the timer is set to run.
* **running** - \[read-only\] The timer's current state.

### Member Methods
* **new Timer(delay, repeatCount = 0)** - Constructs a new Timer object with the specified delay and repeatCount states.
* **reset()** - Stops the timer, if it is running, and sets the currentCount property back to 0.
* **start()** - Starts the timer, if it is not already running and currentCount is less than repeatCount.
* **stop()** - Stops the timer.

### Events
* **Event: 'timer'** - Emitted whenever a Timer object reaches an interval specified according to the delay property.
* **Event: 'timerComplete'** - Emitted whenever it has completed the number of requests set by repeatCount.

## Usage<commit_msg>write class properties, divide constructor<commit_after># timer.js
Simple timer, wraps setInterval and clearInterval.

## Installation
    $ npm install timerjs

## API Documentation

### Class Properties
* **TIMER: 'timer'** - \[static\] Defines the value of type property of a timer event.
* **TIMER_COMPLETE: 'timerComplete'** - \[static\] Defines the value of type property of a timerComplete event.

### Constructor
* **new Timer(delay, repeatCount = 0)** - Constructs a new Timer object with the specified delay and repeatCount states.

### Member Properties
* **currentCount** - \[read-only\] The total number of times the timer has fired since it started at zero.
* **delay** - The delay, in milliseconds, between timer events.
* **repeatCount** - The total number of times the timer is set to run.
* **running** - \[read-only\] The timer's current state.

### Member Methods
* **reset()** - Stops the timer, if it is running, and sets the currentCount property back to 0.
* **start()** - Starts the timer, if it is not already running and currentCount is less than repeatCount.
* **stop()** - Stops the timer.

### Events
* **Event: 'timer'** - Emitted whenever a Timer object reaches an interval specified according to the delay property.
* **Event: 'timerComplete'** - Emitted whenever it has completed the number of requests set by repeatCount.

## Usage
{'fraction_non_alphanumeric': 0.11930926216640503, 'fraction_numerical': 0.0015698587127158557, 'mean_word_length': 4.288381742738589, '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': '5226710', 'n_tokens_mistral': 694, 'n_tokens_neox': 673, 'n_words': 326}