<commit_before># RS-Recommenders

## Setup
Run the bundle to install the gems from `Gemfile`:
```shell
bundle install
```

Load the ".csv" files to sqlite3 database run the following command
from the parent directory
```shell
sqlite3 rs-db < create-db.sql
```

## Run
Run main file
```shell
ruby src/main.rb use_id strategy
# where user_id and strategy are program arguments
```

Run spec files
```shell
rspec spec/
# checkout the repot at `coverage/index.html`
```<commit_msg>Fix report typo<commit_after># RS-Recommenders

## Setup
Run the bundle to install the gems from `Gemfile`:
```shell
bundle install
```

Load the ".csv" files to sqlite3 database run the following command
from the parent directory
```shell
sqlite3 rs-db < create-db.sql
```

## Run
Run main file
```shell
ruby src/main.rb use_id strategy
# where user_id and strategy are program arguments
```

Run spec files
```shell
rspec spec/
# checkout the report at `coverage/index.html`
```
{'fraction_non_alphanumeric': 0.10867293625914315, 'fraction_numerical': 0.0041797283176593526, 'mean_word_length': 4.668639053254438, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2691247', 'n_tokens_mistral': 319, 'n_tokens_neox': 290, 'n_words': 124}