<commit_before>import sublime, sublime_plugin
from .edit import Edit

class PawnBuildPathCommand(sublime_plugin.TextCommand):
	def run(self, edit):
		self.view.window().show_input_panel("Set Pawn build path", "C:\\Pawno\\", self.onPawnPathDone, None, None)


	def onPawnPathDone(self, input):
		view = self.view.window().new_file()

		with Edit(view) as edit:
			edit.insert(0,
'{\n\
	"cmd": ["pawncc.exe", "$file", "-o$file_path\\\\\\\\$file_base_name", "-;+", "-(+", "-d3"],\n\
	"file_regex": "(.*?)[(]([0-9]*)[)]",\n\
	"selector": "source.pwn",\n\
	"working_dir": "'+input.replace("\\", "\\\\")+'"\n\
}')

		view.set_name("Pawn.sublime-build")
		view.run_command("save");<commit_msg>Updated build settings generator<commit_after>import sublime, sublime_plugin
from .edit import Edit

class PawnBuildPathCommand(sublime_plugin.TextCommand):
	def run(self, edit):
		self.view.window().show_input_panel("Set Pawn build path", "C:\\Pawno\\", self.onPawnPathDone, None, None)


	def onPawnPathDone(self, path):
		view = self.view.window().new_file()
		path = path.replace("\\", "/")

		with Edit(view) as edit:
			edit.insert(0,"""{
	"cmd": ["pawncc.exe", "$file", "-o$file_path/$file_base_name", "-;+", "-(+", "-d3"],
	"file_regex": "(.*?)\\\\(([0-9]*)[- 0-9]*\\\\)",
	"selector": "source.pwn",
	"working_dir": "%s"
}"""%(path))

		view.set_name("Pawn.sublime-build")
		view.run_command("save");
{'fraction_non_alphanumeric': 0.24820659971305595, 'fraction_numerical': 0.007173601147776184, 'mean_word_length': 4.6938775510204085, 'pattern_counts': {'":': 8, '<': 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': '180681', 'n_tokens_mistral': 582, 'n_tokens_neox': 548, 'n_words': 94}