<commit_before>import sublime
import sublime_plugin
import gscommands
import gscommon as gs

DOMAIN = 'GsEV'

class EV(sublime_plugin.EventListener):
	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)

class GsOnLeftClick(sublime_plugin.TextCommand):
	def run(self, edit):
		if gs.is_go_source_view(self.view):
			self.view.run_command('gs_doc', {"mode": "goto"})
		elif self.view.score_selector(gs.sel(self.view).begin(), "text.9o") > 0:
			self.view.window().run_command("gs9o_open_selection")

class GsOnRightClick(sublime_plugin.TextCommand):
	def run(self, edit):
		if gs.is_go_source_view(self.view):
			self.view.run_command('gs_doc', {"mode": "hint"})

def do_post_save(view):
	if not gs.is_pkg_view(view):<commit_msg>* pass click events to gstest<commit_after>import gscommands
import gscommon as gs
import gstest
import sublime
import sublime_plugin

DOMAIN = 'GsEV'

class EV(sublime_plugin.EventListener):
	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)

class GsOnLeftClick(sublime_plugin.TextCommand):
	def run(self, edit):
		view = self.view
		if gs.is_go_source_view(view):
			if not gstest.handle_action(view, 'left-click'):
				view.run_command('gs_doc', {"mode": "goto"})
		elif view.score_selector(gs.sel(view).begin(), "text.9o") > 0:
			view.window().run_command("gs9o_open_selection")

class GsOnRightClick(sublime_plugin.TextCommand):
	def run(self, edit):
		view = self.view
		if gs.is_go_source_view(view):
			if not gstest.handle_action(view, 'right-click'):
				view.run_command('gs_doc', {"mode": "hint"})

def do_post_save(view):
	if not gs.is_pkg_view(view):
{'fraction_non_alphanumeric': 0.13680781758957655, 'fraction_numerical': 0.0054288816503800215, 'mean_word_length': 6.284584980237154, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 5, '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': '6967947', 'n_tokens_mistral': 757, 'n_tokens_neox': 706, 'n_words': 130}