<commit_before>using System;
using System.Collections.Generic;
using System.Globalization;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using N2.Web;
using N2.Edit;
using System.Web;

namespace N2.Resources
{
	/// <summary>
	/// Methods to register styles and javascripts.
	/// </summary>
	public static class Register
	{
		/// <summary>
		/// Set the resource paths to the defaults. This happens BEFORE the config file is loaded, right at the app start-up. 
		/// </summary>
		static Register()
		{
			AngularJsRoot = DefaultAngularJsRoot;
			AngularStrapJsPath = DefaultAngularStrapJsRoot;
			BootstrapCssPath = DefaultBootstrapCssPath;
			BootstrapJsPath = DefaultBootstrapJsPath;
			BootstrapDatePickerJsPath = DefaultBootstrapDatePickerJsPath;
			BootstrapTimePickerJsPath = DefaultBootstrapTimePickerJsPath;
			BootstrapDatePickerCssPath = DefaultBootstrapDatePickerCssPath;
			BootstrapTimePickerCssPath = DefaultBootstrapTimePickerCssPath;
			BootstrapVersion = new Version(DefaultBootstrapVersion);
			CkEditorJsPath = DefaultCkEditorPath;
			FancyboxCssPath = DefaultFancyboxCssPath;
			FancyboxJsPath = DefaultFancyboxJsPath;
			IconsCssPath = DefaultIconsCssPath;
			JQueryJsPath = DefaultJQueryJsPath;
			JQueryUiPath = DefaultJQueryUiJsPath;
			JQueryPluginsPath = DefaultJQueryPluginsPath;
			PartsJsPath = DefaultPartsJsPath;
			PartsCssPath = DefaultPartsCssPath;
			AngularUiJsPath = DefaultAngularUiJsPath;
		}

		private static bool? _debug;
		/// <summary>Whether javascript resources should be uncompressed.</summary>
		public static bool Debug
		{
			get { return _debug ?? (HttpContext.Current != null && HttpContext.Current.IsDebuggingEnabled); }
			set { _debug = value; }
		}

		/// <summary>The jQuery version used by N2.</summary>
		public const string JQueryVersion = "1.12.3";
		public const string JQueryUiVersion = "1.11.4";
		public const string AngularJsVersion = "1.3.15";
		public const string CkEditorVersion = "4.5.4";
		public const string DefaultBootstrapVersion = "2.3.2";

		public const string DefaultFlagsCssPath = "{ManagementUrl}/Resources/icons/flags.css";
		public const string DefaultJQueryJsPath = "//code.jquery.com/jquery-" + JQueryVersion + ".min.js";
		public const string DefaultJQueryUiJsPath = "//code.jquery.com/ui/" + JQueryUiVersion + "/jquery-ui.min.js";
		public const string DefaultFancyboxJsPath = "//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js";
		public const string DefaultFancyboxCssPath = "//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css";
		public const string DefaultIconsCssPath = "//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css";
		public const string DefaultAngularJsRoot = "//cdnjs.cloudflare.com/ajax/libs/angular.js/" + AngularJsVersion + "/";
		public const string DefaultAngularStrapJsRoot = "//cdnjs.cloudflare.com/ajax/libs/angular-strap/0.7.4/angular-strap.min.js";
		public const string DefaultAngularUiJsPath = "//cdnjs.cloudflare.com/ajax/libs/angular-ui/0.4.0/angular-ui.min.js";
		public const string DefaultBootstrapJsPath =  "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/" + DefaultBootstrapVersion + "/js/bootstrap.min.js";
		public const string DefaultBootstrapCssPath = "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/" + DefaultBootstrapVersion + "/css/bootstrap.min.css";

		public const string DefaultBootstrapDatePickerJsPath = "{ManagementUrl}/Resources/bootstrap-components/bootstrap-datepicker.js";
		public const string DefaultBootstrapDatePickerCssPath = "{ManagementUrl}/Resources/bootstrap-components/bootstrap-datepicker.css";
		public const string DefaultBootstrapTimePickerJsPath = "{ManagementUrl}/Resources/bootstrap-components/bootstrap-timepicker.js";
		public const string DefaultBootstrapTimePickerCssPath = "{ManagementUrl}/Resources/bootstrap-components/bootstrap-timepicker.css";

		//public const string DefaultCkEditorPath = "{ManagementUrl}/Resources/ckeditor/ckeditor.js?v=" + JQueryVersion;
		public const string DefaultCkEditorPath = "//cdn.ckeditor.com/4.5.4/full/ckeditor.js";
        public const string DefaultJQueryPluginsPath = "{ManagementUrl}/Resources/Js/plugins.ashx?v=" + JQueryVersion;
		public const string DefaultPartsJsPath = "{ManagementUrl}/Resources/Js/parts.js?v=" + JQueryVersion;
		public const string DefaultPartsCssPath = "{ManagementUrl}/Resources/Css/parts.css?v=" + JQueryVersion;<commit_msg>Angular 1.5.5, CKEditor 4.5.8<commit_after>using System;
using System.Collections.Generic;
using System.Globalization;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using N2.Web;
using N2.Edit;
using System.Web;

namespace N2.Resources
{
	/// <summary>
	/// Methods to register styles and javascripts.
	/// </summary>
	public static class Register
	{
		/// <summary>
		/// Set the resource paths to the defaults. This happens BEFORE the config file is loaded, right at the app start-up. 
		/// </summary>
		static Register()
		{
			AngularJsRoot = DefaultAngularJsRoot;
			AngularStrapJsPath = DefaultAngularStrapJsRoot;
			BootstrapCssPath = DefaultBootstrapCssPath;
			BootstrapJsPath = DefaultBootstrapJsPath;
			BootstrapDatePickerJsPath = DefaultBootstrapDatePickerJsPath;
			BootstrapTimePickerJsPath = DefaultBootstrapTimePickerJsPath;
			BootstrapDatePickerCssPath = DefaultBootstrapDatePickerCssPath;
			BootstrapTimePickerCssPath = DefaultBootstrapTimePickerCssPath;
			BootstrapVersion = new Version(DefaultBootstrapVersion);
			CkEditorJsPath = DefaultCkEditorPath;
			FancyboxCssPath = DefaultFancyboxCssPath;
			FancyboxJsPath = DefaultFancyboxJsPath;
			IconsCssPath = DefaultIconsCssPath;
			JQueryJsPath = DefaultJQueryJsPath;
			JQueryUiPath = DefaultJQueryUiJsPath;
			JQueryPluginsPath = DefaultJQueryPluginsPath;
			PartsJsPath = DefaultPartsJsPath;
			PartsCssPath = DefaultPartsCssPath;
			AngularUiJsPath = DefaultAngularUiJsPath;
		}

		private static bool? _debug;
		/// <summary>Whether javascript resources should be uncompressed.</summary>
		public static bool Debug
		{
			get { return _debug ?? (HttpContext.Current != null && HttpContext.Current.IsDebuggingEnabled); }
			set { _debug = value; }
		}

		/// <summary>The jQuery version used by N2.</summary>
		public const string JQueryVersion = "1.12.3";
		public const string JQueryUiVersion = "1.11.4";
		public const string AngularJsVersion = "1.5.5";
		public const string CkEditorVersion = "4.5.8";
		public const string DefaultBootstrapVersion = "2.3.2";

		public const string DefaultFlagsCssPath = "{ManagementUrl}/Resources/icons/flags.css";
		public const string DefaultJQueryJsPath = "//code.jquery.com/jquery-" + JQueryVersion + ".min.js";
		public const string DefaultJQueryUiJsPath = "//code.jquery.com/ui/" + JQueryUiVersion + "/jquery-ui.min.js";
		public const string DefaultFancyboxJsPath = "//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js";
		public const string DefaultFancyboxCssPath = "//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css";
		public const string DefaultIconsCssPath = "//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css";
		public const string DefaultAngularJsRoot = "//cdnjs.cloudflare.com/ajax/libs/angular.js/" + AngularJsVersion + "/";
		public const string DefaultAngularStrapJsRoot = "//cdnjs.cloudflare.com/ajax/libs/angular-strap/0.7.4/angular-strap.min.js";
		public const string DefaultAngularUiJsPath = "//cdnjs.cloudflare.com/ajax/libs/angular-ui/0.4.0/angular-ui.min.js";
		public const string DefaultBootstrapJsPath =  "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/" + DefaultBootstrapVersion + "/js/bootstrap.min.js";
		public const string DefaultBootstrapCssPath = "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/" + DefaultBootstrapVersion + "/css/bootstrap.min.css";

		public const string DefaultBootstrapDatePickerJsPath = "{ManagementUrl}/Resources/bootstrap-components/bootstrap-datepicker.js";
		public const string DefaultBootstrapDatePickerCssPath = "{ManagementUrl}/Resources/bootstrap-components/bootstrap-datepicker.css";
		public const string DefaultBootstrapTimePickerJsPath = "{ManagementUrl}/Resources/bootstrap-components/bootstrap-timepicker.js";
		public const string DefaultBootstrapTimePickerCssPath = "{ManagementUrl}/Resources/bootstrap-components/bootstrap-timepicker.css";

		//public const string DefaultCkEditorPath = "{ManagementUrl}/Resources/ckeditor/ckeditor.js?v=" + JQueryVersion;
		public const string DefaultCkEditorPath = "//cdn.ckeditor.com/4.5.4/full/ckeditor.js";
        public const string DefaultJQueryPluginsPath = "{ManagementUrl}/Resources/Js/plugins.ashx?v=" + JQueryVersion;
		public const string DefaultPartsJsPath = "{ManagementUrl}/Resources/Js/parts.js?v=" + JQueryVersion;
		public const string DefaultPartsCssPath = "{ManagementUrl}/Resources/Css/parts.css?v=" + JQueryVersion;
{'fraction_non_alphanumeric': 0.1096702068194522, 'fraction_numerical': 0.009502515371716043, 'mean_word_length': 4.99597855227882, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2350830', 'n_tokens_mistral': 2961, 'n_tokens_neox': 2711, 'n_words': 526}