<commit_before>#!/usr/bin/env bash
# Copyright 2010 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.

echo '// ./mkunix.sh' "$1"
echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT'
echo

cat <<EOH
package signal

import (
  "syscall"
)

var _ = syscall.Syscall  // in case there are zero signals

const (
EOH

sed -n 's/^[ 	]*\(SIG[A-Z0-9][A-Z0-9]*\).*/  \1 = UnixSignal(syscall.\1)/p' "$1"

echo ")"<commit_msg>	Correct the regexp for finding unix signal names.   For example, earlier, the regexp would accept SIGQUEUE_MAX   as a unix signal with name SIGQUEUE. Now it is ignored.<commit_after>#!/usr/bin/env bash
# Copyright 2010 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.

echo '// ./mkunix.sh' "$1"
echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT'
echo

cat <<EOH
package signal

import (
  "syscall"
)

var _ = syscall.Syscall  // in case there are zero signals

const (
EOH

sed -n 's/^[ 	]*\(SIG[A-Z0-9][A-Z0-9]*\)[ 	].*/  \1 = UnixSignal(syscall.\1)/p' "$1"

echo ")"
{'fraction_non_alphanumeric': 0.13766891891891891, 'fraction_numerical': 0.02027027027027027, 'mean_word_length': 3.2170818505338077, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6315926', 'n_tokens_mistral': 462, 'n_tokens_neox': 416, 'n_words': 161}