<commit_before>{% load i18n l10n sekizai_tags admin_static cms_js_tags cms_admin cms_tags %}{% load url from future %}
{% language request.toolbar.toolbar_language %}
{% addtoblock "js" %}
<script type="text/javascript">
	var _jQuery = window.jQuery || undefined;
	var _$ = window.$ || undefined;
</script>
{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "admin/js/jquery.min.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/libs/class.min.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/jquery.ui.custom.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/jquery.ui.nestedsortable.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.base.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.modal.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.toolbar.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.placeholders.js" %}"></script>{% endaddtoblock %}

{% addtoblock "css" %}<link rel="stylesheet" href="{% static "cms/css/plugins/cms.toolbar.css" %}" />{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href="{% static "cms/css/plugins/cms.placeholders.css" %}" />{% endaddtoblock %}
{% addtoblock "js" %}
<script>
(function($) {
// CMS.$ will be passed for $
$(document).ready(function () {
	// this is a global shared settings
	CMS.config = {
		'debug': {% if debug %}true{% else %}false{% endif %},
		'csrf': '{{ csrf_token }}',
		'lang': {
			'move_warning': '{% trans "The selected element can not be moved to the desired location." %}',
			'delete_request': '{% trans "Are you sure you want to delete this plugin?" %}',
			'cancel': '{% trans "Cancel" %}',
			'debug': '{% blocktrans %}Development version using django CMS {{ cms_version }}{% endblocktrans %}',
			'text': '{% trans "Text" %}'
		},
		'urls': {
			'static': '/static/'
		}
	};

	// initialize toolbar and pass required options
	CMS.API.Toolbar = new CMS.Toolbar('#cms_toolbar', {
		'csrf': '{{ csrf_token }}',
		'authenticated': {% if user.is_authenticated %}true{% else %}false{% endif %},
		'debug': {% if debug %}true{% else %}false{% endif %},
		'settings': {
			'version': '{{ cms_version }}',
			'toolbar': 'expanded',
			'mode': 'edit'
		},
		'urls': {
			'settings': '',
			'static': '{{ STATIC_URL }}'
		},
		'clipboard': '{{ request.toolbar.clipboard.pk|unlocalize }}',
		'lang': {
			'move_warning': {% javascript_string %}{% trans "The selected element can not be moved to the desired location." %}{% end_javascript_string %},
			'delete_request': {% javascript_string %}{% trans "Are you sure you want to delete this plugin?" %}{% end_javascript_string %},
			'cancel': {% javascript_string %}{% trans "Cancel" %}{% end_javascript_string %},
			'debug': {% javascript_string %}{% blocktrans %}Development version using django CMS {{ cms_version }}{% endblocktrans %}{% end_javascript_string %},
			'text': '{% trans "Text" %}' // for detecting the text plugin
		}
	});

	// initialize placeholder helpers
	CMS.API.Placeholders = new CMS.Placeholders('.cms_placeholder', '.cms_plugin');
<commit_msg>move more settings into CMS.config and added sideframe<commit_after>{% load i18n l10n sekizai_tags admin_static cms_js_tags cms_admin cms_tags %}{% load url from future %}
{% language request.toolbar.toolbar_language %}
{% addtoblock "js" %}
<script type="text/javascript">
	var _jQuery = window.jQuery || undefined;
	var _$ = window.$ || undefined;
</script>
{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "admin/js/jquery.min.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/libs/class.min.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/jquery.ui.custom.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/jquery.ui.nestedsortable.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.base.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.modal.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.sideframe.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.toolbar.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static "cms/js/plugins/cms.placeholders.js" %}"></script>{% endaddtoblock %}

{% addtoblock "css" %}<link rel="stylesheet" href="{% static "cms/css/plugins/cms.toolbar.css" %}" />{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href="{% static "cms/css/plugins/cms.placeholders.css" %}" />{% endaddtoblock %}
{% addtoblock "js" %}
<script>
(function($) {
// CMS.$ will be passed for $
$(document).ready(function () {
	// this is a global shared settings
	CMS.config = {
		'auth': {% if user.is_authenticated %}true{% else %}false{% endif %},
		'debug': {% if debug %}true{% else %}false{% endif %},
		'csrf': '{{ csrf_token }}',
		'lang': {
			'cancel': '{% trans "Cancel" %}',
			'debug': '{% blocktrans %}Development version using django CMS {{ cms_version }}{% endblocktrans %}',
			'text': '{% trans "Text" %}'
		},
		'urls': {
			'settings': '', // url to save settings
			'static': '{{ STATIC_URL }}'
		},
		'settings': {
			'version': '{{ cms_version }}',
			'toolbar': 'expanded',
			'mode': 'edit'
		}
	};

	// initialize toolbar and pass required options
	CMS.API.Toolbar = new CMS.Toolbar('#cms_toolbar', {
		'clipboard': '{{ request.toolbar.clipboard.pk|unlocalize }}'
	});

	// initialize placeholder helpers
	CMS.API.Placeholders = new CMS.Placeholders('.cms_placeholder', '.cms_plugin');

{'fraction_non_alphanumeric': 0.2190172731846386, 'fraction_numerical': 0.001341606573872212, 'mean_word_length': 4.82421875, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5380415', 'n_tokens_mistral': 2292, 'n_tokens_neox': 2052, 'n_words': 480}