<commit_before>#!/bin/bash

#
# Run tests with istanbul and report coverage.
#
# istanbul cover _mocha -- -R spec
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec

#
# If one wants to explore the coverage report manually.
#
# open coverage/lcov-report/index.html

#
# Cleaning up.
#
# rm -rf coverage/<commit_msg>starting a pm2 server<commit_after>#!/bin/bash

#
# Start server.
#
pm2 start server.js

#
# Run tests with istanbul and report coverage.
#
# istanbul cover _mocha -- -R spec
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec

#
# If one wants to explore the coverage report manually.
#
# open coverage/lcov-report/index.html

#
# Stop and delete server.
#
pm2 stop server && pm2 delete server
{'fraction_non_alphanumeric': 0.11345646437994723, 'fraction_numerical': 0.005277044854881266, 'mean_word_length': 3.4647058823529413, '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': '558080', 'n_tokens_mistral': 269, 'n_tokens_neox': 257, 'n_words': 84}