<commit_before>// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt

frappe.ui.form.Footer = Class.extend({
	init: function(opts) {
		var me = this;
		$.extend(this, opts);
		this.make();
		this.make_assignments();
		this.make_attachments();
		this.make_tags();
		this.make_comments();
		// render-complete
		$(this.frm.wrapper).on("render_complete", function() {
			me.refresh();
		})
	},
	make: function() {
		var me = this;
		this.wrapper = $('<div class="form-footer container">\
			<div class="after-save row">\
				<div class="col-md-8">\
					<div class="form-comments">\
					</div>\
				</div>\
				<div class="col-md-4">\
					<div class="form-tags">\
						<div style="height: 30px;"></div>\
						<h5 style="display: inline-block"><i class="icon-tag"></i> '+__("Tags")+'</h5>\
						<span class="tag-area"></span><br>\
					</div><br><br>\
					<div class="form-assignments" style="margin-bottom: 7px;">\
						<h5>\
							<i class="icon-flag"></i> '+__("Assigned To")+': \
							<button class="btn small btn-default pull-right"\
								style="margin-top:-7px;">'+__("Add")+'</button>\
						</h5>\
					</div><br><br>\
					<div class="form-attachments">\
						<h5>\
							<i class="icon-paper-clip"></i> '+__("Attachments")+':\
							<button class="btn small btn-default pull-right"\
								style="margin-top:-7px;">'+__("Add")+'</button>\
						</h5>\
					</div>\
				</div>\
			</div>\
			<div class="pull-right" style="padding: 7px; background-color: #eee; border-radius: 4px;">\
				<a onclick="scroll(0,0)"><i class="icon-chevron-up text-muted"></i></a></div>\
		</div>')
			.appendTo(this.parent);
		this.wrapper.find(".btn-save").click(function() {
			me.frm.save('Save', null, this);
		})

	},
	make_tags: function() {
		if (this.frm.meta.issingle) {
			this.wrapper.find(".form-tags").toggle(false);
			return;
		}

		this.frm.tags = new frappe.ui.TagEditor({<commit_msg>for push upstream<commit_after>// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt

frappe.ui.form.Footer = Class.extend({
	init: function(opts) {
		var me = this;
		$.extend(this, opts);
		this.make();
		this.make_assignments();
		this.make_attachments();
		this.make_tags();
		this.make_comments();
		// render-complete
		$(this.frm.wrapper).on("render_complete", function() {
			me.refresh();
		})
	},
	make: function() {
		var me = this;
		this.wrapper = $('<div class="form-footer container">\
			<div class="pull-right" style="padding: 7px; background-color: #eee; border-radius: 4px;">\
				<a onclick="scroll(0,0)"><i class="icon-chevron-up text-muted"></i></a></div>\
		</div>')
			.appendTo(this.parent);
		this.wrapper.find(".btn-save").click(function() {
			me.frm.save('Save', null, this);
		})

	},
	make_tags: function() {
		if (this.frm.meta.issingle) {
			this.wrapper.find(".form-tags").toggle(false);
			return;
		}

		this.frm.tags = new frappe.ui.TagEditor({
{'fraction_non_alphanumeric': 0.22270596115204286, 'fraction_numerical': 0.00971198928332217, 'mean_word_length': 3.2489331436699858, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 58, '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': '7043759', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1083, 'n_words': 196}