<commit_before>#!/usr/bin/env bash
# Copyright 2016 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

set -xe

function cleanup() {
    rm -f a.out
}
trap cleanup EXIT

# go build -buildmode=remote -o a.out -gcflags="-d remote"
go build -o a.out
go remote ./a.out
<commit_msg>Check output of test binary.<commit_after>#!/usr/bin/env bash
# Copyright 2016 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

set -e

function cleanup() {
    rm -f a.out
}
trap cleanup EXIT

# go build -buildmode=remote -o a.out -gcflags="-d remote"
go build -o a.out
OUTPUT=$(go remote ./a.out 2>&1)
EXPECTED="var1: 1
var2: 4
var3: 5
lib RemoteVar: 42"
if [ "$OUTPUT" != "$EXPECTED" ]; then
  echo invalid output:
  echo $OUTPUT
  exit 1
fi

{'fraction_non_alphanumeric': 0.11197339246119734, 'fraction_numerical': 0.02106430155210643, 'mean_word_length': 3.3205741626794256, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1164771', 'n_tokens_mistral': 323, 'n_tokens_neox': 305, 'n_words': 132}