<commit_before>
'use strict';

//npm imports
import $ from 'jquery';
import Emitter from 'tiny-emitter/instance';

class tabs__trigger {
	constructor({trigger, index, tabs}){
		this.index = index;
		this.tabs = tabs;
		this.activeClass = '-active';

		this.$trigger = $(trigger);
		this.$content = this.tabs.$content.eq(index);

		this.name = this.$trigger.text().toLowerCase();

		this.$trigger.keyup(key => {
			const isKey = keys => keys.indexOf(key.which) > -1;
			const isNext = isKey([39]);
			const isPrev = isKey([37]);

			if (isNext){
				this.tabs.switchTo(this.index + 1, false);
			} else if (isPrev) {
				this.tabs.switchTo(this.index - 1, false);
			}
		})

		// this.$trigger.click((e)=>{
		// 	e.preventDefault();
		// 	this.activate();

		// 	if (this.tabs.is_defaultSwitcher) {
		// 		this.signal();
		// 	}
		// });
	}
	activate(isRemote = true){
		this.deactivate_others();
		this.$trigger
			.addClass(this.activeClass)
			.attr('tabindex', 0)
			.attr('aria-selected', 'true');
		this.$content.show();<commit_msg>re-enabling the tabs click functionality<commit_after>
'use strict';

//npm imports
import $ from 'jquery';
import Emitter from 'tiny-emitter/instance';

class tabs__trigger {
	constructor({trigger, index, tabs}){
		this.index = index;
		this.tabs = tabs;
		this.activeClass = '-active';

		this.$trigger = $(trigger);
		this.$content = this.tabs.$content.eq(index);

		this.name = this.$trigger.text().toLowerCase();

		this.$trigger.keyup(key => {
			const isKey = keys => keys.indexOf(key.which) > -1;
			const isNext = isKey([39]);
			const isPrev = isKey([37]);

			if (isNext){
				this.tabs.switchTo(this.index + 1, false);
			} else if (isPrev) {
				this.tabs.switchTo(this.index - 1, false);
			}
		})

		this.$trigger.click((e)=>{
			e.preventDefault();
			this.activate();

			if (this.tabs.is_defaultSwitcher) {
				this.signal();
			}
		});
	}
	activate(isRemote = true){
		this.deactivate_others();
		this.$trigger
			.addClass(this.activeClass)
			.attr('tabindex', 0)
			.attr('aria-selected', 'true');
		this.$content.show();
{'fraction_non_alphanumeric': 0.18701923076923077, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 3.3444676409185803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2461905', 'n_tokens_mistral': 847, 'n_tokens_neox': 726, 'n_words': 139}