<commit_before>package gps

import (
	"fmt"
	"os"
	"os/exec"
	"testing"
	"time"
)

func mkTestCmd(iterations int) *monitoredCmd {
	return newMonitoredCmd(
		exec.Command("./echosleep", "-n", fmt.Sprint(iterations)),
		200*time.Millisecond,
	)
}

func TestMonitoredCmd(t *testing.T) {<commit_msg>Give tested monitored cmd a little slack<commit_after>package gps

import (
	"fmt"
	"os"
	"os/exec"
	"testing"
	"time"
)

func mkTestCmd(iterations int) *monitoredCmd {
	return newMonitoredCmd(
		exec.Command("./echosleep", "-n", fmt.Sprint(iterations)),
		(time.Duration(iterations+1))*100*time.Millisecond,
	)
}

func TestMonitoredCmd(t *testing.T) {
{'fraction_non_alphanumeric': 0.1561051004636785, 'fraction_numerical': 0.010819165378670788, 'mean_word_length': 5.230769230769231, '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': '1293298', 'n_tokens_mistral': 274, 'n_tokens_neox': 254, 'n_words': 48}