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

DOMAIN = 'GsEV'

class EV(sublime_plugin.EventListener):
	def on_pre_save(self, view):
		view.run_command('gs_fmt')
		sublime.set_timeout(lambda: do_set_syntax(view), 0)

	def on_post_save(self, view):
		try:
			ev.sig_sav(view)
		except AttributeError:
			pass

		sublime.set_timeout(lambda: do_post_save(view), 0)

	def on_close(self, view):
		sublime.set_timeout(do_sync_active_view, 0)

	def on_activated(self, view):
		sublime.set_timeout(do_sync_active_view, 0)
		sublime.set_timeout(lambda: do_set_syntax(view), 0)<commit_msg>* trigger the activated signal<commit_after>from gosubl import ev
from gosubl import gs
import gstest
import sublime
import sublime_plugin

DOMAIN = 'GsEV'

class EV(sublime_plugin.EventListener):
	def on_pre_save(self, view):
		view.run_command('gs_fmt')
		sublime.set_timeout(lambda: do_set_syntax(view), 0)

	def on_post_save(self, view):
		try:
			ev.sig_sav(view)
		except AttributeError:
			pass

		sublime.set_timeout(lambda: do_post_save(view), 0)

	def on_close(self, view):
		sublime.set_timeout(do_sync_active_view, 0)

	def on_activated(self, view):
		try:
			ev.sig_act(view)
		except AttributeError:
			pass

		sublime.set_timeout(do_sync_active_view, 0)
		sublime.set_timeout(lambda: do_set_syntax(view), 0)
{'fraction_non_alphanumeric': 0.09956076134699854, 'fraction_numerical': 0.007320644216691069, 'mean_word_length': 5.835, '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': '1573236', 'n_tokens_mistral': 587, 'n_tokens_neox': 522, 'n_words': 106}