<commit_before>#!/bin/bash
set -e

dartanalyzer lib/*.dart bin/*.dart
pub run test
if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then
    pub run dart_coveralls report --exclude-test-files test/*.dart
fi
dart2js --categories=Server bin/plz.dart
cat $DART_SDK/lib/_internal/js_runtime/lib/preambles/d8.js out.js >> node.js<commit_msg>Attempting to fix coverage reporting<commit_after>#!/bin/bash
set -e

dartanalyzer lib/*.dart bin/*.dart
if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then
    dart --observe=2000 test/*.dart &
    pub global activate coverage
    pub global run coverage:collect_coverage --port=2000 -o report/coverage.json --resume-isolates
    pub run dart_coveralls upload --exclude-test-files report
else
    pub run test
fi
dart2js --categories=Server bin/plz.dart
cat $DART_SDK/lib/_internal/js_runtime/lib/preambles/d8.js out.js >> node.js
{'fraction_non_alphanumeric': 0.1345093715545755, 'fraction_numerical': 0.013230429988974642, 'mean_word_length': 4.101123595505618, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3570506', 'n_tokens_mistral': 348, 'n_tokens_neox': 332, 'n_words': 75}