<commit_before>(function() {
	superselector = function()
	{
		if (!document.getElementById("superselect"))
		{
			this.message = "Ctrl + click an element on the page to generate a selector";
			this.pConfigOptions = ["Ignore all config"];
			this.config = this.pConfigOptions;
			
			this.ignoreClasses = "hover, mouseOver";
			this.ignoreIdPrefixes = "generic_";
			
			this.prevElement = null;
			this.prevElementBorder = null;
			
			this.initialize(this);
		}
	};

	superselector.prototype.handleClick = function(oEvent)
	{
		if(oEvent.ctrlKey) 
		{
			/* Update current values */
			this.message = document.getElementById("superselect_generated").innerHTML;
			this.pConfigOptions = "";
			this.ignoreClasses = document.getElementById("ignoreClasses").value;
			this.ignoreIdPrefixes = document.getElementById("ignoreIdPrefixes").value;
			
			var genConfig = new superselector.Config(this.ignoreClasses, this.ignoreIdPrefixes, this.configOptionIsSelected("ignoreAllConfig"));
			var elementTarget = new superselector.Target(oEvent.target, genConfig);
			document.getElementById("superselect_generated").innerHTML = (elementTarget.calculateSelector());
			this.highlight(oEvent.target);
			this.setActive('superselect_generatortab', 'superselect_generator')
		}
	};

	superselector.prototype.highlight = function(target)
	{
		if (this.prevElement != null)
		{
			this.prevElement.style.outline = this.prevElementBorder;
		}
		this.prevElement = target;
		this.prevElementBorder = target.style.outline;
		target.style.outline = "2px black dashed";
	};

	superselector.prototype.configOptionIsSelected = function(sConfigId)
	{
		if(document.getElementById(sConfigId).checked == true) 
		{ 
			return true;
		}
		return false;<commit_msg>updating styling for selected element<commit_after>(function() {
	superselector = function()
	{
		if (!document.getElementById("superselect"))
		{
			this.message = "Ctrl + click an element on the page to generate a selector";
			this.pConfigOptions = ["Ignore all config"];
			this.config = this.pConfigOptions;
			
			this.ignoreClasses = "hover, mouseOver";
			this.ignoreIdPrefixes = "generic_";
			
			this.prevElement = null;
			this.prevElementBorder = null;
			
			this.initialize(this);
		}
	};

	superselector.prototype.handleClick = function(oEvent)
	{
		if(oEvent.ctrlKey) 
		{
			/* Update current values */
			this.message = document.getElementById("superselect_generated").innerHTML;
			this.pConfigOptions = "";
			this.ignoreClasses = document.getElementById("ignoreClasses").value;
			this.ignoreIdPrefixes = document.getElementById("ignoreIdPrefixes").value;
			
			var genConfig = new superselector.Config(this.ignoreClasses, this.ignoreIdPrefixes, this.configOptionIsSelected("ignoreAllConfig"));
			var elementTarget = new superselector.Target(oEvent.target, genConfig);
			document.getElementById("superselect_generated").innerHTML = (elementTarget.calculateSelector());
			this.highlight(oEvent.target);
			this.setActive('superselect_generatortab', 'superselect_generator')
		}
	};

	superselector.prototype.highlight = function(target)
	{
		if (this.prevElement != null)
		{
			this.prevElement.style.outline = this.prevElementBorder;
		}
		this.prevElement = target;
		this.prevElementBorder = target.style.outline;
		target.style.outline = "1px black dashed";
	};

	superselector.prototype.configOptionIsSelected = function(sConfigId)
	{
		if(document.getElementById(sConfigId).checked == true) 
		{ 
			return true;
		}
		return false;
{'fraction_non_alphanumeric': 0.11986301369863013, 'fraction_numerical': 0.0005707762557077625, 'mean_word_length': 4.662358642972537, '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': '5692953', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1012, 'n_words': 173}