<commit_before>var selectedNode = null;
var origStyle = null;
var origHref = null;


/**
 * RuleEditor
 */
var RuleEditor = function (rule, src, appliedRuleList) 
{
	this.rule = (rule)?rule:Rule.createInstance();
	this.src = src;
	this.appliedRuleList = appliedRuleList;
};
RuleEditor.prototype.initialize = function () 
{
	var nodes = document.body.getElementsByTagName('*');
	this.maxZIndex = RuleEditor.getMaxZIndex();
	stopBlockAction();
	
	for (var i=0; i<nodes.length;  i++) 
	{		
		var node = nodes[i];
		node.addEventListener('mouseover', this.getOnMouseoverAction(node), false);
		node.addEventListener('mouseout', this.getOnMouseoutAction(node), false);
		node.addEventListener('click', this.getOnClickAction(node), false);
		RuleElement.appendFunctions(node);
	}
	
	this.pathPickerDialog = new PathPickerDialog(this.maxZIndex + 2, this);
	this.ruleEditorDialog = new RuleEditorDialog(this.rule, this.src, this.maxZIndex + 1, this);
	this.ruleEditorDialog.refreshXPathSelectedStyles();
	this.ruleEditorDialog.refreshPathSections();
};

RuleEditor.prototype.getOnMouseoverAction = function (node) 
{
	var self = this;
	return function (event)
	{<commit_msg>Avoid z-index problem of Flash elements (@old rule creator dialog)<commit_after>var selectedNode = null;
var origStyle = null;
var origHref = null;


/**
 * RuleEditor
 */
var RuleEditor = function (rule, src, appliedRuleList) 
{
	this.rule = (rule)?rule:Rule.createInstance();
	this.src = src;
	this.appliedRuleList = appliedRuleList;
};
RuleEditor.prototype.initialize = function () 
{
	var nodes = document.body.getElementsByTagName('*');
	this.maxZIndex = RuleEditor.getMaxZIndex();
	stopBlockAction();
	
	for (var i=0; i<nodes.length;  i++) 
	{		
		var node = nodes[i];
		node.addEventListener('mouseover', this.getOnMouseoverAction(node), false);
		node.addEventListener('mouseout', this.getOnMouseoutAction(node), false);
		node.addEventListener('click', this.getOnClickAction(node), false);
		RuleElement.appendFunctions(node);
	}
	
	this.pathPickerDialog = new PathPickerDialog(this.maxZIndex + 2, this);
	this.ruleEditorDialog = new RuleEditorDialog(this.rule, this.src, this.maxZIndex + 1, this);
	this.ruleEditorDialog.refreshXPathSelectedStyles();
	this.ruleEditorDialog.refreshPathSections();
	CustomBlockerUtil.enableFlashZIndex();
};

RuleEditor.prototype.getOnMouseoverAction = function (node) 
{
	var self = this;
	return function (event)
	{
{'fraction_non_alphanumeric': 0.1336082474226804, 'fraction_numerical': 0.002474226804123711, 'mean_word_length': 5.738888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7443051', 'n_tokens_mistral': 800, 'n_tokens_neox': 769, 'n_words': 152}