<commit_before># angular-ticker

A simple service that is meant to facilitate repetitive tasks that run every X seconds.

## How to use

Step 1: Install the bower package

`bower install angular-ticker`
 
Step 2: Add the `jsbb.angularTicker` module as a dependency in you angular app module

`angular.module('MyApp', ['jsbb.angularTicker']);`
 
Step 3: Inject the `TickerSrv` into the relevant `Controller`, `Service` or `Directive` and use it<commit_msg>doc(README):<commit_after># angular-ticker

A simple service that is meant to facilitate repetitive tasks that run every X seconds.

## How to use

Step 1: Install the bower package

`bower install angular-ticker`
 
Step 2: Add the `jsbb.angularTicker` module as a dependency in you angular app module

`angular.module('MyApp', ['jsbb.angularTicker']);`
 
Step 3: Inject the `TickerSrv` into the relevant `Controller`, `Service` or `Directive` and use it

To register a task:

`TickerSrv.register('taskId', handlerFunction, interval, delay)` 

To unregister a task:

`TickerSrv.unregister('taskId');`
{'fraction_non_alphanumeric': 0.0976303317535545, 'fraction_numerical': 0.005687203791469194, 'mean_word_length': 5.175438596491228, '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': '2666608', 'n_tokens_mistral': 332, 'n_tokens_neox': 319, 'n_words': 132}