<commit_before>define([
	"firebugsnippets/lib/dynamicLoader",
	"firebugsnippets/window/store",
	"firebug/lib/lib",
	"firebugsnippets/window/options",
	"firebugsnippets/lib/consoleDebug",
],
function(DynamicLoader, Store, FBL, Options, console)
{
	var $j;
	var that;
	var myCodeMirror;
	function SnippetsWindowEdit(win, idSnippet, conf)
	{
		that = this;
		this.window = win;
		this.document = this.window.document;
		this.idSnippet = idSnippet;
		this.conf = conf;

		this.baseruta = "chrome://firebugsnippets/skin/";
		var rutaLib = "chrome://firebugsnippets/content/lib/"
		
		var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
			.getService(Components.interfaces.nsIXULAppInfo);
		
		var arrJS, rutaCodemirror;		
		if(parseInt(appInfo.version)<=43)
		{
			rutaCodemirror = "chrome://browser/content/devtools/codemirror/";
			arrJS = [	
				rutaLib+"jquery.min.js",
				rutaLib+"jqueryInitializer.js",
				rutaCodemirror+"codemirror.js",
				rutaCodemirror+"dialog.js",
				rutaCodemirror+"searchcursor.js",
				rutaCodemirror+"search.js",
				rutaCodemirror+"activeline.js",
				rutaLib+"codemirror/addon/search/match-highlighter.js",
				rutaCodemirror+"matchbrackets.js",
				rutaCodemirror+"javascript.js",
				rutaCodemirror+"foldcode.js",
				rutaCodemirror+"foldgutter.js",
				rutaCodemirror+"brace-fold.js",
				rutaCodemirror+"comment-fold.js",
				rutaLib+"codeMirrorInitializer.js",
			];
		}
		else
		{
			rutaCodemirror = "chrome://devtools/content/sourceeditor/codemirror/";
			arrJS = [	
				rutaLib+"jquery.min.js",
				rutaLib+"jqueryInitializer.js",
				rutaCodemirror+"codemirror.js",
				rutaCodemirror+"dialog/dialog.js",
				rutaCodemirror+"search/searchcursor.js",
				rutaCodemirror+"search/search.js",
				rutaCodemirror+"selection/active-line.js",
				rutaLib+"codemirror/addon/search/match-highlighter.js",
				rutaCodemirror+"edit/matchbrackets.js",
				rutaCodemirror+"mode/javascript.js",
				rutaCodemirror+"fold/foldcode.js",
				rutaCodemirror+"fold/foldgutter.js",
				rutaCodemirror+"fold/brace-fold.js",
				rutaCodemirror+"fold/comment-fold.js",
				rutaLib+"codeMirrorInitializer.js",
			];
		}

		var dynamicLoader = new DynamicLoader(
		that.window,
		arrJS,
		[
			rutaCodemirror+"codemirror.css",
			rutaLib+"codemirror/addon/fold/foldgutter.css",
			rutaLib+"codemirror/codemirror_myConfigStyles.css",
		],
		function(){
			$j = that.window.initJQuery(that.window);
			myCodeMirror = that.window.initCodemirror(that.window, $j);
			
			var resizeTimer;
			$j(that.window).bind("resize",function(){				
				clearTimeout(resizeTimer);
				resizeTimer = setTimeout(saveDimWindow, 250);					
			});
		});
		dynamicLoader.load();
	}<commit_msg>Issue #3: Compatibility with FF46<commit_after>define([
	"firebugsnippets/lib/dynamicLoader",
	"firebugsnippets/window/store",
	"firebug/lib/lib",
	"firebugsnippets/window/options",
	"firebugsnippets/lib/consoleDebug",
],
function(DynamicLoader, Store, FBL, Options, console)
{
	var $j;
	var that;
	var myCodeMirror;
	function SnippetsWindowEdit(win, idSnippet, conf)
	{
		that = this;
		this.window = win;
		this.document = this.window.document;
		this.idSnippet = idSnippet;
		this.conf = conf;

		this.baseruta = "chrome://firebugsnippets/skin/";
		var rutaLib = "chrome://firebugsnippets/content/lib/"
		
		var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
			.getService(Components.interfaces.nsIXULAppInfo);
		
		var arrJS, rutaCodemirror;
		var subFolder1 = parseInt(appInfo.version)>=46?"lib/":"";
		var subFolder2 = parseInt(appInfo.version)>=46?"addon/":"";
		
		if(parseInt(appInfo.version)<=43)
		{
			rutaCodemirror = "chrome://browser/content/devtools/codemirror/";
			arrJS = [	
				rutaLib+"jquery.min.js",
				rutaLib+"jqueryInitializer.js",
				rutaCodemirror+"codemirror.js",
				rutaCodemirror+"dialog.js",
				rutaCodemirror+"searchcursor.js",
				rutaCodemirror+"search.js",
				rutaCodemirror+"activeline.js",
				rutaLib+"codemirror/addon/search/match-highlighter.js",
				rutaCodemirror+"matchbrackets.js",
				rutaCodemirror+"javascript.js",
				rutaCodemirror+"foldcode.js",
				rutaCodemirror+"foldgutter.js",
				rutaCodemirror+"brace-fold.js",
				rutaCodemirror+"comment-fold.js",
				rutaLib+"codeMirrorInitializer.js",
			];
		}
		else
		{
			rutaCodemirror = "chrome://devtools/content/sourceeditor/codemirror/";
			arrJS = [	
				rutaLib+"jquery.min.js",
				rutaLib+"jqueryInitializer.js",
				rutaCodemirror+subFolder1+"codemirror.js",
				rutaCodemirror+subFolder2+"dialog/dialog.js",
				rutaCodemirror+subFolder2+"search/searchcursor.js",
				rutaCodemirror+subFolder2+"search/search.js",
				rutaCodemirror+subFolder2+"selection/active-line.js",
				rutaLib+"codemirror/addon/search/match-highlighter.js",
				rutaCodemirror+subFolder2+"edit/matchbrackets.js",
				rutaCodemirror+"mode/javascript.js",
				rutaCodemirror+subFolder2+"fold/foldcode.js",
				rutaCodemirror+subFolder2+"fold/foldgutter.js",
				rutaCodemirror+subFolder2+"fold/brace-fold.js",
				rutaCodemirror+subFolder2+"fold/comment-fold.js",
				rutaLib+"codeMirrorInitializer.js",
			];
		}

		var dynamicLoader = new DynamicLoader(
		that.window,
		arrJS,
		[
			rutaCodemirror+subFolder1+"codemirror.css",
			rutaLib+"codemirror/addon/fold/foldgutter.css",
			rutaLib+"codemirror/codemirror_myConfigStyles.css",
		],
		function(){
			$j = that.window.initJQuery(that.window);
			myCodeMirror = that.window.initCodemirror(that.window, $j);
			
			var resizeTimer;
			$j(that.window).bind("resize",function(){				
				clearTimeout(resizeTimer);
				resizeTimer = setTimeout(saveDimWindow, 250);					
			});
		});
		dynamicLoader.load();
	}
{'fraction_non_alphanumeric': 0.14782762274814554, 'fraction_numerical': 0.00565171317555634, 'mean_word_length': 4.445192307692308, 'pattern_counts': {'":': 2, '<': 5, '<?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': '3859452', 'n_tokens_mistral': 2565, 'n_tokens_neox': 2132, 'n_words': 218}