<commit_before>import sublime
import subprocess, re, os, threading, tempfile, datetime, uuid
from subprocess import Popen, PIPE

try:
	STARTUP_INFO = subprocess.STARTUPINFO()
	STARTUP_INFO.dwFlags |= subprocess.STARTF_USESHOWWINDOW
	STARTUP_INFO.wShowWindow = subprocess.SW_HIDE
except (AttributeError):
	STARTUP_INFO = None

_sem = threading.Semaphore()
_settings = {
	"env": {},
	"gscomplete_enabled": False,
	"gocode_cmd": "",
	"fmt_enabled": False,
	"fmt_tab_indent": True,
	"fmt_tab_width": 8,
	"gslint_enabled": False,
	"comp_lint_enabled": False,
	"gslint_timeout": 0,
	"autocomplete_snippets": False,
	"autocomplete_tests": False,
	"margo_cmd": [],
	"margo_addr": ""
}

NAME = 'GoSublime'

GLOBAL_SNIPPET_PACKAGE = [
	(u'package\tpackage [name] \u0282', 'package ${1:NAME}'),
	(u'package main\tpackage main \u0282', 'package main\n\nfunc main() {\n\t$0\n}\n')
]
GLOBAL_SNIPPET_IMPORT = (u'import\timport (...) \u0282', 'import (\n\t"$1"\n)')
GLOBAL_SNIPPETS = [
	GLOBAL_SNIPPET_IMPORT,
	(u'func\tfunc {...} \u0282', 'func ${1:name}($2)$3 {\n\t$0\n}'),
	(u'func\tfunc ([receiver]) {...} \u0282', 'func (${1:receiver} ${2:type}) ${3:name}($4)$5 {\n\t$0\n}'),
	(u'func handler\thttp.HandlerFunc {...} \u0282', 'func ${1:name}(rw http.ResponseWriter, req *http.Request) {\n\t$0\n}'),
	(u'func main\tfunc main {...} \u0282', 'func main() {\n\t$0\n}\n'),
	(u'var\tvar (...) \u0282', 'var (\n\t$1\n)'),
	(u'const\tconst (...) \u0282', 'const (\n\t$1\n)'),
]

LOCAL_SNIPPETS = [
	(u'func\tfunc{...}() \u0282', 'func($1) {\n\t$0\n}($2)'),<commit_msg>* add on_save setting stub<commit_after>import sublime
import subprocess, re, os, threading, tempfile, datetime, uuid
from subprocess import Popen, PIPE

try:
	STARTUP_INFO = subprocess.STARTUPINFO()
	STARTUP_INFO.dwFlags |= subprocess.STARTF_USESHOWWINDOW
	STARTUP_INFO.wShowWindow = subprocess.SW_HIDE
except (AttributeError):
	STARTUP_INFO = None

_sem = threading.Semaphore()
_settings = {
	"env": {},
	"gscomplete_enabled": False,
	"gocode_cmd": "",
	"fmt_enabled": False,
	"fmt_tab_indent": True,
	"fmt_tab_width": 8,
	"gslint_enabled": False,
	"comp_lint_enabled": False,
	"gslint_timeout": 0,
	"autocomplete_snippets": False,
	"autocomplete_tests": False,
	"margo_cmd": [],
	"margo_addr": "",
	"on_save": [],
}

NAME = 'GoSublime'

GLOBAL_SNIPPET_PACKAGE = [
	(u'package\tpackage [name] \u0282', 'package ${1:NAME}'),
	(u'package main\tpackage main \u0282', 'package main\n\nfunc main() {\n\t$0\n}\n')
]
GLOBAL_SNIPPET_IMPORT = (u'import\timport (...) \u0282', 'import (\n\t"$1"\n)')
GLOBAL_SNIPPETS = [
	GLOBAL_SNIPPET_IMPORT,
	(u'func\tfunc {...} \u0282', 'func ${1:name}($2)$3 {\n\t$0\n}'),
	(u'func\tfunc ([receiver]) {...} \u0282', 'func (${1:receiver} ${2:type}) ${3:name}($4)$5 {\n\t$0\n}'),
	(u'func handler\thttp.HandlerFunc {...} \u0282', 'func ${1:name}(rw http.ResponseWriter, req *http.Request) {\n\t$0\n}'),
	(u'func main\tfunc main {...} \u0282', 'func main() {\n\t$0\n}\n'),
	(u'var\tvar (...) \u0282', 'var (\n\t$1\n)'),
	(u'const\tconst (...) \u0282', 'const (\n\t$1\n)'),
]

LOCAL_SNIPPETS = [
	(u'func\tfunc{...}() \u0282', 'func($1) {\n\t$0\n}($2)'),
{'fraction_non_alphanumeric': 0.2340153452685422, 'fraction_numerical': 0.04028132992327366, 'mean_word_length': 4.926136363636363, 'pattern_counts': {'":': 27, '<': 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': '7604434', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1386, 'n_words': 236}