<commit_before>#!/bin/bash

set -x

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT="$( $SCRIPTDIR/.. )"

if [ -n "$SURF_ARTIFACT_DIR" ]; then
  SURF_ARTIFACT_DIR="$( $ROOT )"
fi

TRICKLINE_BIN="$( $ROOT/node_modules/.bin/ts-node ./script/find-trickline-exe.ts)"
TRICKLINE_HEAPSHOT_AND_BAIL=1 $ROOT/node_modules/.bin/timeout -t 30s -- $ROOT/node_modules/.bin/xvfb-maybe $TRICKLINE_BIN

if [$? != 0]; then
  if [ "$(uname)" = "Darwin" ]; then
    screencapture $SURF_ARTIFACT_DIR/screenshot.png
  else<commit_msg>I don't actually know sh<commit_after>#!/bin/bash

set -x

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT="$SCRIPTDIR/.."

if [ -n "$SURF_ARTIFACT_DIR" ]; then
  SURF_ARTIFACT_DIR="$ROOT"
fi

TRICKLINE_BIN="$( $ROOT/node_modules/.bin/ts-node ./script/find-trickline-exe.ts)"
TRICKLINE_HEAPSHOT_AND_BAIL=1 $ROOT/node_modules/.bin/timeout -t 30s -- $ROOT/node_modules/.bin/xvfb-maybe $TRICKLINE_BIN

if [$? != 0]; then
  if [ "$(uname)" = "Darwin" ]; then
    screencapture $SURF_ARTIFACT_DIR/screenshot.png
  else
{'fraction_non_alphanumeric': 0.19661335841956726, 'fraction_numerical': 0.00940733772342427, 'mean_word_length': 4.512953367875648, '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': '6476209', 'n_tokens_mistral': 489, 'n_tokens_neox': 452, 'n_words': 73}