<commit_before>#!/bin/sh
# Copyright 2011 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.

. ./buildinfo.sh

for sys in $GOOSARCHES
do
	export GOOS=$(echo $sys | sed 's/_.*//')
	export GOARCH=$(echo $sys | sed 's/.*_//')
	targ=buildscript/${GOOS}_$GOARCH.sh
	rm -f $targ

	(echo '#!/usr/bin/env bash
# AUTO-GENERATED by buildscript.sh; DO NOT EDIT.
# This script builds the go command (written in Go),
# and then the go command can build the rest of the tree.

export GOOS='$GOOS'
export GOARCH='$GOARCH'
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e

'
	# Save script printed by go install but make shell safe
	# by quoting variable expansions.  On Windows, rewrite
	# \ paths into / paths.  This avoids the \ being interpreted
	# as a shell escape but also makes sure that we generate the
	# same scripts on Unix and Windows systems.
	go install -a -n -t cmd_go_bootstrap cmd/go | sed '
		s/\$GOBIN/"$GOBIN"/g
		s/\$GOROOT/"$GOROOT"/g
		s/\$WORK/"$WORK"/g
		s;"\$GOBIN"/go;&_bootstrap;g
		s;\\;/;g
	'
	)>$targ
	chmod +x $targ
done<commit_msg>build: fix buildscript breakage after all.bash<commit_after>#!/bin/sh
# Copyright 2011 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.

. ./buildinfo.sh

for sys in $GOOSARCHES
do
	export GOOS=$(echo $sys | sed 's/_.*//')
	export GOARCH=$(echo $sys | sed 's/.*_//')
	targ=buildscript/${GOOS}_$GOARCH.sh
	rm -f $targ

	(echo '#!/usr/bin/env bash
# AUTO-GENERATED by buildscript.sh; DO NOT EDIT.
# This script builds the go command (written in Go),
# and then the go command can build the rest of the tree.

export GOOS='$GOOS'
export GOARCH='$GOARCH'
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e

'
	# Save script printed by go install but make shell safe
	# by quoting variable expansions.  On Windows, rewrite
	# \ paths into / paths.  This avoids the \ being interpreted
	# as a shell escape but also makes sure that we generate the
	# same scripts on Unix and Windows systems.
	go install -a -n -t cmd_go_bootstrap cmd/go | sed '
		s/\$GOBIN/"$GOBIN"/g
		s/\$GOROOT/"$GOROOT"/g
		s/\$WORK/"$WORK"/g
		s;"\$GOBIN"/go;&_bootstrap;g
		s;\\;/;g
		s/go_bootstrap-tool/go-tool/g
		s;"\$GOBIN"/go-tool;"$GOROOT"/bin/go-tool;g
	'
	)>$targ
	chmod +x $targ
done
{'fraction_non_alphanumeric': 0.13586736756975334, 'fraction_numerical': 0.003234937323089365, 'mean_word_length': 3.371024734982332, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7513964', 'n_tokens_mistral': 960, 'n_tokens_neox': 901, 'n_words': 322}