<commit_before>#!/bin/bash
PACK_DIR=`pwd`/packages/
dart2js='pkg/compiler/implementation/dart2js.dart'
core_cmd="dart
--heap_growth_rate=32
$DART_SDK/$dart2js
--colors
--package-root=$PACK_DIR
--minify
-v"

function build {
  echo "Building $1"
  local cmd="$core_cmd --out=$1.js $1"
  echo $cmd
  eval $cmd
}

good=()
bad=()

function build_and_log {
  build $1
  if [ $? -ne 0 ]
  then <commit_msg>dart2js - no more colors :-(<commit_after>#!/bin/bash
PACK_DIR=`pwd`/packages/
dart2js='pkg/compiler/implementation/dart2js.dart'
core_cmd="dart
--heap_growth_rate=32
$DART_SDK/$dart2js
--package-root=$PACK_DIR
--minify
-v"

function build {
  echo "Building $1"
  local cmd="$core_cmd --out=$1.js $1"
  echo $cmd
  eval $cmd
}

good=()
bad=()

function build_and_log {
  build $1
  if [ $? -ne 0 ]
  then 
{'fraction_non_alphanumeric': 0.17121588089330025, 'fraction_numerical': 0.026054590570719603, 'mean_word_length': 3.950920245398773, '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': '5570768', 'n_tokens_mistral': 364, 'n_tokens_neox': 345, 'n_words': 69}