<commit_before>import sublime, sublime_plugin
import gscommon as gs

class Prompt(object):
	def __init__(self, view):
		self.view = view
		self.panel = None
		self.subcommands = [
			'go run', 'go build', 'go clean', 'go fix',
			'go install', 'go test', 'go fmt', 'go vet', 'go tool'
		]
		self.settings = sublime.load_settings('GoSublime-GsShell.sublime-settings')

	def on_done(self, s):
		s = s.strip()
		if s:
			self.settings.set('last_command', s)
			sublime.save_settings('GoSublime-GsShell.sublime-settings')
		self.view.window().run_command("exec", { 'kill': True })
		self.view.window().run_command("exec", {
			'shell': True,
			'cmd': [s],
			'file_regex': '^(.+\.go):([0-9]+):(?:([0-9]+):)?\s*(.*)',
		})

	def on_change(self, s):
		if self.panel:
			size = self.view.size()<commit_msg>- always use the user-oriented env<commit_after>import sublime, sublime_plugin
import gscommon as gs

class Prompt(object):
	def __init__(self, view):
		self.view = view
		self.panel = None
		self.subcommands = [
			'go run', 'go build', 'go clean', 'go fix',
			'go install', 'go test', 'go fmt', 'go vet', 'go tool'
		]
		self.settings = sublime.load_settings('GoSublime-GsShell.sublime-settings')

	def on_done(self, s):
		s = s.strip()
		if s:
			self.settings.set('last_command', s)
			sublime.save_settings('GoSublime-GsShell.sublime-settings')
		self.view.window().run_command("exec", { 'kill': True })
		self.view.window().run_command("exec", {
			'shell': True,
			'env': gs.env(),
			'cmd': [s],
			'file_regex': '^(.+\.go):([0-9]+):(?:([0-9]+):)?\s*(.*)',
		})

	def on_change(self, s):
		if self.panel:
			size = self.view.size()
{'fraction_non_alphanumeric': 0.20780012187690433, 'fraction_numerical': 0.004875076173065204, 'mean_word_length': 3.9757575757575756, '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': '5118936', 'n_tokens_mistral': 712, 'n_tokens_neox': 638, 'n_words': 134}