<commit_before>// +build !windows

package main

import (
	"os"
	"os/signal"
)

//runService wait for os interrupt
func runService() chan bool {
	waitChan := make(chan bool)

	c := make(chan os.Signal, 1)
	signal.Notify(c, os.Interrupt)
	go func() {
		for range c {
			waitChan <- true
			return
		}
	}()
	return waitChan
}
<commit_msg>handle more signals (gracefully docker shutdown) # 137<commit_after>// +build !windows

package main

import (
	"os"
	"os/signal"
	"syscall"
)

//runService wait for os interrupt
func runService() chan bool {
	waitChan := make(chan bool)

	c := make(chan os.Signal, 1)
	signal.Notify(c, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
	go func() {
		for range c {
			waitChan <- true
			return
		}
	}()
	return waitChan
}

{'fraction_non_alphanumeric': 0.130779392338177, 'fraction_numerical': 0.0066050198150594455, 'mean_word_length': 3.458823529411765, 'pattern_counts': {'":': 0, '<': 5, '<?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': '42150', 'n_tokens_mistral': 313, 'n_tokens_neox': 275, 'n_words': 81}