<commit_before>package main

import (
	"fmt"
	"os"
	"syscall"
)

func interruptProcess() {
	pid := os.Getpid()
	d, e := syscall.LoadDLL("kernel32.dll")
	if e != nil {
		panic(fmt.Sprintf("LoadDLL: %v", e))
	}
	p, e := d.FindProc("GenerateConsoleCtrlEvent")
	if e != nil {
		panic(fmt.Sprintf("FindProc: %v", e))
	}
	r, _, e := p.Call(syscall.CTRL_BREAK_EVENT, uintptr(pid))
	if r == 0 {
		panic(fmt.Sprintf("GenerateConsoleCtrlEvent: %v", e))
	}
}
<commit_msg>Add Go copyright and licence for some of the code<commit_after>// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the GO_LICENSE file.
//
// This is based on code from the os/signal tests

package main

import (
	"fmt"
	"os"
	"syscall"
)

func interruptProcess() {
	pid := os.Getpid()
	d, err := syscall.LoadDLL("kernel32.dll")
	if err != nil {
		panic(fmt.Sprintf("LoadDLL: %v", err))
	}
	p, err := d.FindProc("GenerateConsoleCtrlEvent")
	if err != nil {
		panic(fmt.Sprintf("FindProc: %v", err))
	}
	r, _, err := p.Call(syscall.CTRL_BREAK_EVENT, uintptr(pid))
	if r == 0 {
		panic(fmt.Sprintf("GenerateConsoleCtrlEvent: %v", err))
	}
}

{'fraction_non_alphanumeric': 0.16414141414141414, 'fraction_numerical': 0.008417508417508417, 'mean_word_length': 3.9748953974895396, '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': '1173893', 'n_tokens_mistral': 475, 'n_tokens_neox': 437, 'n_words': 122}