<commit_before>from gosubl import gs
import gstest
import sublime
import sublime_plugin

DOMAIN = 'GsEV'

class EV(sublime_plugin.EventListener):
	def on_pre_save(self, view):
		sublime.set_timeout(lambda: do_set_gohtml_syntax(view), 0)

	def on_post_save(self, view):
		sublime.set_timeout(lambda: do_post_save(view), 0)

	def on_activated(self, view):
		sublime.set_timeout(lambda: do_sync_active_view(view), 0)
		sublime.set_timeout(lambda: do_set_gohtml_syntax(view), 0)<commit_msg>* make sure we're syncing with the actual active_view and not some widget's view<commit_after>from gosubl import gs
import gstest
import sublime
import sublime_plugin

DOMAIN = 'GsEV'

class EV(sublime_plugin.EventListener):
	def on_pre_save(self, view):
		sublime.set_timeout(lambda: do_set_gohtml_syntax(view), 0)

	def on_post_save(self, view):
		sublime.set_timeout(lambda: do_post_save(view), 0)

	def on_activated(self, view):
		sublime.set_timeout(lambda: do_sync_active_view(view.window().active_view()), 0)
		sublime.set_timeout(lambda: do_set_gohtml_syntax(view), 0)
{'fraction_non_alphanumeric': 0.10263653483992467, 'fraction_numerical': 0.007532956685499058, 'mean_word_length': 7.436507936507937, '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': '5534662', 'n_tokens_mistral': 429, 'n_tokens_neox': 393, 'n_words': 82}