<commit_before>// +build windows

package main

import (
	"os"
	"path/filepath"
	"strings"
)

func init() {
	if p, err := os.Executable(); err == nil {
		dir := filepath.Dir(p)
		if strings.Index(dir, ";") > -1 {
			dir = `"` + dir + `"`
		}
		os.Setenv("PATH", dir+string(filepath.ListSeparator)+os.Getenv("PATH"))
	}
}<commit_msg>make PATH not to end with ListSeparator (windows)<commit_after>// +build windows

package main

import (
	"os"
	"path/filepath"
	"strings"
)

func init() {
	if p, err := os.Executable(); err == nil {
		dir := filepath.Dir(p)
		if strings.Index(dir, ";") > -1 {
			dir = `"` + dir + `"`
		}
		if path := os.Getenv("PATH"); path != "" {
			os.Setenv("PATH", dir+string(filepath.ListSeparator)+path)
		} else {
			os.Setenv("PATH", dir)
		}
	}
}
{'fraction_non_alphanumeric': 0.20801033591731266, 'fraction_numerical': 0.002583979328165375, 'mean_word_length': 3.378531073446328, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5167495', 'n_tokens_mistral': 326, 'n_tokens_neox': 307, 'n_words': 66}