<commit_before>#!/bin/sh

# Update everything (just in case)
npm rebuild
npm install

# Built and test
grunt
grunt sonar --sonarLogin=$SONAR_LOGIN --sonarPassword=$SONAR_PASSWORD --sonarBranch=$SONAR_BRANCH
<commit_msg>Revert "OLMIS-3696: Remove --no-optional flag from the sonar script"<commit_after>#!/bin/sh

# Update everything (just in case)
npm rebuild
npm install --no-optional

# Built and test
grunt
grunt sonar --sonarLogin=$SONAR_LOGIN --sonarPassword=$<PASSWORD> --sonarBranch=$SONAR_BRANCH

{'fraction_non_alphanumeric': 0.11530815109343936, 'fraction_numerical': 0.007952286282306162, 'mean_word_length': 5.379746835443038, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '841258', 'n_tokens_mistral': 186, 'n_tokens_neox': 177, 'n_words': 47}