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

Firebug.FireOutliner = extend(Firebug.Module, 
{ 
	refresh: function() 
	{ 
		FirebugContext.getPanel("FireOutliner").showOutline()
	} 
}); 


function FireOutlinerPanel() {}
FireOutlinerPanel.prototype = extend(Firebug.Panel, 
{ 
    name: "FireOutliner", 
    title: "Outline", 
    searchable: false, 
    editable: false,
	
	show: function(state)
	{
		this.showToolbarButtons("fbH5OButtons", true);
	},
		
	hide: function()
	{
		this.showToolbarButtons("fbH5OButtons", false);
	},

	showOutline: function() {
      this.panelNode.innerHTML = HTML5Outline(this.context.window.document.body).asHTML();
    }
}); 


Firebug.registerModule(Firebug.FireOutliner); 
Firebug.registerPanel(FireOutlinerPanel); 

}});<commit_msg>Automatically update the outline when activating the "Outline" panel<commit_after>FBL.ns(function() { with (FBL) {

Firebug.FireOutliner = extend(Firebug.Module, 
{ 
	refresh: function() 
	{ 
		FirebugContext.getPanel("FireOutliner").updateView()
	} 
}); 


function FireOutlinerPanel() {}
FireOutlinerPanel.prototype = extend(Firebug.Panel, 
{ 
    name: "FireOutliner", 
    title: "Outline", 
    searchable: false, 
    editable: false,
	
	show: function(state)
	{
		this.showToolbarButtons("fbH5OButtons", true);
		this.updateView();
	},
		
	hide: function()
	{
		this.showToolbarButtons("fbH5OButtons", false);
	},

	updateView: function() {
		this.panelNode.innerHTML = HTML5Outline(this.context.window.document.body).asHTML();
    }
}); 


Firebug.registerModule(Firebug.FireOutliner); 
Firebug.registerPanel(FireOutlinerPanel); 

}});
{'fraction_non_alphanumeric': 0.14603960396039603, 'fraction_numerical': 0.0037128712871287127, 'mean_word_length': 4.634146341463414, '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': '6609967', 'n_tokens_mistral': 601, 'n_tokens_neox': 555, 'n_words': 77}