<commit_before>FBL.ns(function() { with (FBL) {
// ************************************************************************************************

/*============================================================================
  inspector
*===========================================================================*/
var pixelsPerInch, boxModel, boxModelStyle, boxMargin, boxMarginStyle, 
  boxPadding, boxPaddingStyle, boxContent, boxContentStyle, offlineFragment;

var IEStantandMode = document.all && document.compatMode == "CSS1Compat";
var resetStyle = "margin:0; padding:0; border: 0; position:absolute; overflow:hidden; display:block; z-index: 2147483500;";
var boxModelVisible = false;


var fbBtnInspect = null;
var outlineVisible = false;
var outlineElements = {};
var outline = {
    "fbOutlineT": "fbHorizontalLine",
    "fbOutlineL": "fbVerticalLine",
    "fbOutlineB": "fbHorizontalLine",
    "fbOutlineR": "fbVerticalLine"
};
var outlineStyle = { 
    fbHorizontalLine: "background: #3875D7; height: 2px;",
    fbVerticalLine: "background: #3875D7; width: 2px;"
}
  


FBL.offlineFragment = null;

Firebug.Inspector =
{  
  
    onReady: function()
    {
        offlineFragment = document.createDocumentFragment();
        this.calculatePixelsPerInch();
        this.createBoxModelInspector();
        this.createOutlineInspector();
    },
    
    onChromeReady: function()
    {
        fbBtnInspect = UI$("fbBtnInspect");
    },    
  
    startInspecting: function()
    {
        fbBtnInspect.href = "javascript:FB.stopInspecting(this)";
        fbBtnInspect.className = "fbBtnInspectActive";
        
        addEvent(document, "mousemove", Firebug.Inspector.onInspecting)
        addEvent(document, "mousedown", Firebug.Inspector.onInspectingClick)
    },
    
    stopInspecting: function()
    {
        fbBtnInspect.href = "javascript:FB.startInspecting(this)";
        fbBtnInspect.className = "";
        
        if (outlineVisible) this.hideOutline();
        removeEvent(document, "mousemove", Firebug.Inspector.onInspecting)
        removeEvent(document, "mousedown", Firebug.Inspector.onInspectingClick)
    },
    
    onInspectingClick: function(e)
    {
        e = e || event || window;
        var targ;
        
        if (e.target) targ = e.target;
        else if (e.srcElement) targ = e.srcElement;
        if (targ.nodeType == 3) // defeat Safari bug
            targ = targ.parentNode;
        
        Firebug.Console.log(targ);
        Firebug.Inspector.stopInspecting();
    },
    
    onInspecting: function(e)
    {
        e = e || event || window;
        var targ;
        
        if (e.target) targ = e.target;
        else if (e.srcElement) targ = e.srcElement;
        if (targ.nodeType == 3) // defeat Safari bug
            targ = targ.parentNode;
            
        var id = targ.id;
        if (id && /^fbOutline\w$/.test(id)) return;
        
        var nodeName = targ.nodeName.toLowerCase();
        if (" html head body ".indexOf(" "+nodeName+" ") != -1) { 
          return;
        }
        
        //Firebug.Console.log(targ);

        Firebug.Inspector.drawOutline(targ);      
    },<commit_msg>Fixed bug in inspector click handler.<commit_after>FBL.ns(function() { with (FBL) {
// ************************************************************************************************

/*============================================================================
  inspector
*===========================================================================*/
var pixelsPerInch, boxModel, boxModelStyle, boxMargin, boxMarginStyle, 
  boxPadding, boxPaddingStyle, boxContent, boxContentStyle, offlineFragment;

var IEStantandMode = document.all && document.compatMode == "CSS1Compat";
var resetStyle = "margin:0; padding:0; border: 0; position:absolute; overflow:hidden; display:block; z-index: 2147483500;";
var boxModelVisible = false;


var fbBtnInspect = null;
var outlineVisible = false;
var outlineElements = {};
var outline = {
    "fbOutlineT": "fbHorizontalLine",
    "fbOutlineL": "fbVerticalLine",
    "fbOutlineB": "fbHorizontalLine",
    "fbOutlineR": "fbVerticalLine"
};
var outlineStyle = { 
    fbHorizontalLine: "background: #3875D7; height: 2px;",
    fbVerticalLine: "background: #3875D7; width: 2px;"
}
  


FBL.offlineFragment = null;

Firebug.Inspector =
{  
  
    onReady: function()
    {
        offlineFragment = document.createDocumentFragment();
        this.calculatePixelsPerInch();
        this.createBoxModelInspector();
        this.createOutlineInspector();
    },
    
    onChromeReady: function()
    {
        fbBtnInspect = UI$("fbBtnInspect");
    },    
  
    startInspecting: function()
    {
        fbBtnInspect.href = "javascript:FB.stopInspecting(this)";
        fbBtnInspect.className = "fbBtnInspectActive";
        
        addEvent(document, "mousemove", Firebug.Inspector.onInspecting)
        addEvent(document, "click", Firebug.Inspector.onInspectingClick)
    },
    
    stopInspecting: function()
    {
        fbBtnInspect.href = "javascript:FB.startInspecting(this)";
        fbBtnInspect.className = "";
        
        if (outlineVisible) this.hideOutline();
        removeEvent(document, "mousemove", Firebug.Inspector.onInspecting)
        removeEvent(document, "click", Firebug.Inspector.onInspectingClick)
    },
    
    onInspectingClick: function(e)
    {
        e = e || event || window;
        var targ;
        
        if (e.target) targ = e.target;
        else if (e.srcElement) targ = e.srcElement;
        if (targ.nodeType == 3) // defeat Safari bug
            targ = targ.parentNode;
        
        Firebug.Console.log(targ);
        Firebug.Inspector.stopInspecting();
        
        cancelEvent(e, true);
        return false;
    },
    
    onInspecting: function(e)
    {
        e = e || event || window;
        var targ;
        
        if (e.target) targ = e.target;
        else if (e.srcElement) targ = e.srcElement;
        if (targ.nodeType == 3) // defeat Safari bug
            targ = targ.parentNode;
            
        var id = targ.id;
        if (id && /^fbOutline\w$/.test(id)) return;
        
        var nodeName = targ.nodeName.toLowerCase();
        if (" html head body ".indexOf(" "+nodeName+" ") != -1) { 
          return;
        }
        
        //Firebug.Console.log(targ);

        Firebug.Inspector.drawOutline(targ);      
    },
{'fraction_non_alphanumeric': 0.192122061342052, 'fraction_numerical': 0.009030048264051066, 'mean_word_length': 2.7788235294117647, 'pattern_counts': {'":': 8, '<': 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': '3424033', 'n_tokens_mistral': 1989, 'n_tokens_neox': 1911, 'n_words': 361}