<commit_before>function CMEFrontMatterDisplay(id, class_name, server, title, content,
	cancel_uri)
{
	this.id          = id;
	this.class_name  = class_name;
	this.server      = server;
	this.content     = content;
	this.title       = title;
	this.cancel_uri  = cancel_uri;
	this.scroll_top  = null;
	this.body_hidden = false;

	this.media_query = (window.matchMedia)
		? window.matchMedia('(min-width: 768px)')
		: { matches: false };

	YAHOO.util.Event.onDOMReady(this.init, this, true);
}

CMEFrontMatterDisplay.accept_text =
	'I Have Read the CME Information / Continue';

CMEFrontMatterDisplay.cancel_text =
	'Cancel and Return';

CMEFrontMatterDisplay.confirm_text =
	'Before you view %s, please attest to reading the following:';

CMEFrontMatterDisplay.prototype.init = function()
{
	this.header = document.createElement('div');
	this.header.className = 'cme-front-matter-display-header';
	this.header.appendChild(
		document.createTextNode(
			CMEFrontMatterDisplay.confirm_text.replace(/%s/, this.title)
		)
	);

	var continue_button = document.createElement('button');
	continue_button.type = 'button';
	continue_button.appendChild(
		document.createTextNode(CMEFrontMatterDisplay.accept_text)
	);
	continue_button.className =
		'btn btn-primary cme-front-matter-display-accept-button';

	YAHOO.util.Event.on(continue_button, 'click', function(e) {
		continue_button.disabled = true;
		this.submitCMEPiece();
	}, this, true);

	var cancel_button = document.createElement('button');
	cancel_button.type = 'button';
	cancel_button.appendChild(
		document.createTextNode(CMEFrontMatterDisplay.cancel_text)
	);
	cancel_button.className =
		'btn btn-warning cme-front-matter-display-cancel-button';

	YAHOO.util.Event.on(cancel_button, 'click', function(e) {
		var base = document.getElementsByTagName('base')[0];
		window.location = base.href + this.cancel_uri;
	}, this, true);

	this.footer = document.createElement('div');
	this.footer.className = 'cme-front-matter-display-footer';
	this.footer.appendChild(continue_button);
	this.footer.appendChild(cancel_button);

	var content = document.createElement('div');
	content.className = 'cme-front-matter-display-content';
	content.innerHTML = this.content;

	this.scroll_content = document.createElement('div');
	this.scroll_content.className = 'cme-front-matter-display-scroll-content';
	this.scroll_content.appendChild(content);
	this.scroll_content.style.height =
		(YAHOO.util.Dom.getViewportHeight() - 200) + 'px';

	var wrapper = document.createElement('div');
	wrapper.className = 'cme-front-matter-display-wrapper';
	wrapper.appendChild(this.header);
	wrapper.appendChild(this.scroll_content);
	wrapper.appendChild(this.footer);

	this.container = document.createElement('div');
	this.container.id = this.id;
	this.container.className = this.class_name;<commit_msg>Use default button.<commit_after>function CMEFrontMatterDisplay(id, class_name, server, title, content,
	cancel_uri)
{
	this.id          = id;
	this.class_name  = class_name;
	this.server      = server;
	this.content     = content;
	this.title       = title;
	this.cancel_uri  = cancel_uri;
	this.scroll_top  = null;
	this.body_hidden = false;

	this.media_query = (window.matchMedia)
		? window.matchMedia('(min-width: 768px)')
		: { matches: false };

	YAHOO.util.Event.onDOMReady(this.init, this, true);
}

CMEFrontMatterDisplay.accept_text =
	'I Have Read the CME Information / Continue';

CMEFrontMatterDisplay.cancel_text =
	'Cancel and Return';

CMEFrontMatterDisplay.confirm_text =
	'Before you view %s, please attest to reading the following:';

CMEFrontMatterDisplay.prototype.init = function()
{
	this.header = document.createElement('div');
	this.header.className = 'cme-front-matter-display-header';
	this.header.appendChild(
		document.createTextNode(
			CMEFrontMatterDisplay.confirm_text.replace(/%s/, this.title)
		)
	);

	var continue_button = document.createElement('button');
	continue_button.type = 'button';
	continue_button.appendChild(
		document.createTextNode(CMEFrontMatterDisplay.accept_text)
	);
	continue_button.className =
		'btn btn-primary cme-front-matter-display-accept-button';

	YAHOO.util.Event.on(continue_button, 'click', function(e) {
		continue_button.disabled = true;
		this.submitCMEPiece();
	}, this, true);

	var cancel_button = document.createElement('button');
	cancel_button.type = 'button';
	cancel_button.appendChild(
		document.createTextNode(CMEFrontMatterDisplay.cancel_text)
	);
	cancel_button.className =
		'btn btn-default cme-front-matter-display-cancel-button';

	YAHOO.util.Event.on(cancel_button, 'click', function(e) {
		var base = document.getElementsByTagName('base')[0];
		window.location = base.href + this.cancel_uri;
	}, this, true);

	this.footer = document.createElement('div');
	this.footer.className = 'cme-front-matter-display-footer';
	this.footer.appendChild(continue_button);
	this.footer.appendChild(cancel_button);

	var content = document.createElement('div');
	content.className = 'cme-front-matter-display-content';
	content.innerHTML = this.content;

	this.scroll_content = document.createElement('div');
	this.scroll_content.className = 'cme-front-matter-display-scroll-content';
	this.scroll_content.appendChild(content);
	this.scroll_content.style.height =
		(YAHOO.util.Dom.getViewportHeight() - 200) + 'px';

	var wrapper = document.createElement('div');
	wrapper.className = 'cme-front-matter-display-wrapper';
	wrapper.appendChild(this.header);
	wrapper.appendChild(this.scroll_content);
	wrapper.appendChild(this.footer);

	this.container = document.createElement('div');
	this.container.id = this.id;
	this.container.className = this.class_name;
{'fraction_non_alphanumeric': 0.1336039534062831, 'fraction_numerical': 0.0024708789269325803, 'mean_word_length': 5.254966887417218, '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': '7648597', 'n_tokens_mistral': 1913, 'n_tokens_neox': 1823, 'n_words': 285}