<commit_before>package main

import (
	"fmt"
	"github.com/fatih/color"
	"github.com/fsnotify/fsnotify"
	"os"
	"os/exec"
	"path/filepath"
	"syscall" // TODO(zacsh) important to use x/syscall/unix explicitly?
	"time"
)

func (m *matcher) String() string {
	status := "RESTR"
	if m.IsIgnore {
		status = "IGNOR"
	}
	return fmt.Sprintf("[%s]: %v", status, *m.Expr)
}

func (run *runDirective) maybeRun(
	event *fsnotify.Event, stdOut bool) (bool, error) {
	run.RunMux.Lock()
	defer run.RunMux.Unlock()

	if run.isRecent(defaultWaitTime) {
		return false, nil
	}

	run.Birth = make(chan os.Process, 1)
	run.Death = make(chan error, 1)
	run.LastRun = time.Now()
	run.LastFin = time.Time{}

	if stdOut {
		msg := fmt.Sprintf("startup\n")
		if event != nil {
			msg = fmt.Sprintf("%s on %s\n", event.Op, event.Name)
		}
		fmt.Printf("\n%s %s ...\n",
			color.YellowString("handling"),
			msg)
	}

	if run.Features[flgClobberCommands] {<commit_msg>bugfix: rm excess linebreak<commit_after>package main

import (
	"fmt"
	"github.com/fatih/color"
	"github.com/fsnotify/fsnotify"
	"os"
	"os/exec"
	"path/filepath"
	"syscall" // TODO(zacsh) important to use x/syscall/unix explicitly?
	"time"
)

func (m *matcher) String() string {
	status := "RESTR"
	if m.IsIgnore {
		status = "IGNOR"
	}
	return fmt.Sprintf("[%s]: %v", status, *m.Expr)
}

func (run *runDirective) maybeRun(
	event *fsnotify.Event, stdOut bool) (bool, error) {
	run.RunMux.Lock()
	defer run.RunMux.Unlock()

	if run.isRecent(defaultWaitTime) {
		return false, nil
	}

	run.Birth = make(chan os.Process, 1)
	run.Death = make(chan error, 1)
	run.LastRun = time.Now()
	run.LastFin = time.Time{}

	if stdOut {
		msg := fmt.Sprintf("startup")
		if event != nil {
			msg = fmt.Sprintf("%s on %s", event.Op, event.Name)
		}
		fmt.Printf("\n%s %s ...\n",
			color.YellowString("handling"),
			msg)
	}

	if run.Features[flgClobberCommands] {
{'fraction_non_alphanumeric': 0.1731991525423729, 'fraction_numerical': 0.00211864406779661, 'mean_word_length': 3.699004975124378, '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': '2568961', 'n_tokens_mistral': 817, 'n_tokens_neox': 770, 'n_words': 169}