<commit_before>(function (ns, $)
{
    "use strict";

    //ns.Extesion.Handlers namespace hast be used



})(User1st.Web, uf$);<commit_msg>API function for adding a transparent button to DOM element<commit_after>(function (ns, $)
{
    "use strict";

    if (ns.Extensions.API.ApplyProxyTransparentButton)
        return;


    ns.Extensions.API.ApplyProxyTransparentButton = function (domElement, options)
    {
        
		if (options.isScreenReader || options.isKeyboardNav)
		{
			if($(domElement).parent().find(".user1st_btn_fake").length > 0)
				return;
		 
		 
			
			$(domElement).setAttr(ns.Consts.ignoreTabIndexAttrName, "1")
						.setAttr(ns.constants.elementStatusAttrName, ns.constants.elementStatus.forcedHidden)
						.setAttr("tabIndex", "-1")
						.setAttr("aria-hidden", "true");
			
			var fakeid = ns.getUniqueElementID();
			var fake = $("<a />")
						.css({
							"width" : ($(domElement).width() + 24).toString() + "px",
							"height": ($(domElement).height() + 12).toString() + "px",
							"background-color": "transparent",
							"z-index":"9999",
							"position":"absolute",
							"top": $(domElement).offset().top - 6,
							"left": $(domElement).offset().left + 6
							})
						.addClass("user1st_btn_fake")
						.setAttr("id", fakeid)
						.setAttr("tabIndex", "0")
						.setAttr("tootipstate", "0")
						.setAttr("aria-label", "more information tooltip")
						.setAttr("aria-haspopup", "true")
						.setAttr("href", "#/")    
						.setAttr(ns.Consts.avoidU1stAttrName, "2");
		
			$(fake)
			.bind("mouseover", function(ev){
				$.proxy(
				function()
				{
					ns.eventFire(this.element, "mouseover");
				}, 
				{
					fake: $(this),
					element: $(domElement)
				});
		
			})
			.bind("mouseout", function(){
				$.proxy(
				function()
				{
					ns.eventFire(this.element, "mouseout");
				}, 
				{
					fake: $(this),
					element: $(domElement)
				});
			});
		
			fake.insertAfter($(domElement));
			
			return fake;
		}
			   
    };

    ns.Extensions.Extesion.addAPIFunction("ApplyProxyTransparentButton",
                    ns.Extensions.API.ApplyProxyTransparentButton);



})(User1st.Web, uf$);
{'fraction_non_alphanumeric': 0.17988929889298894, 'fraction_numerical': 0.009686346863468635, 'mean_word_length': 2.676271186440678, 'pattern_counts': {'":': 6, '<': 4, '<?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': '2120095', 'n_tokens_mistral': 949, 'n_tokens_neox': 710, 'n_words': 113}