<commit_before>$( document ).ready(function() {
/* remove temporarily as we don't have funder templates 
removed by wshi on Feb 9, 2015
	$("#project_funder_id").change(function () {
		update_template_options();
		update_guidance_options();
		if ($(this).val().length > 0) {
			$("#other-funder-name").hide();
			$("#project_funder_name").val("");
		}
		else {
			$("#other-funder-name").show();
		}
		$("#institution-control-group").show();
		$("#create-plan-button").show();
		$("#confirm-funder").text($("#project_funder_id").select2('data').text);
	});

	$("#no-funder").click(function(e) {
		e.preventDefault();
		$("#project_funder_id").select2("val", "");
		update_template_options();
		update_guidance_options();
		$("#institution-control-group").show();
		$("#create-plan-button").show();
		$("#other-funder-name").show();
		$("#confirm-funder").text("None");
	});

	$("#project_funder_name").change(function(){
		$("#confirm-funder").text($(this).val());
	});
*/
	$("#project_institution_id").change(function () {
                $("#confirm-funder").text("None");
                $("#project_funder_id").select2("val", "");
                $("#create-plan-button").show();
		update_template_options();
		update_guidance_options();
		$("#confirm-institution").text($("#project_institution_id").select2('data').text);
	});

	$("#no-institution").click(function() {
		$("#project_institution_id").select2("val", "");
		update_template_options();
		update_guidance_options();
		$("#confirm-institution").text("None");
	});

	$("#project_dmptemplate_id").change(function (f) {
		update_guidance_options();
		$("#confirm-template").text($("#project_dmptemplate_id :selected").text());
	});<commit_msg>added function to allow create button to fetch the correct version of template<commit_after>$( document ).ready(function() {
/* remove temporarily as we don't have funder templates 
removed by wshi on Feb 9, 2015
	$("#project_funder_id").change(function () {
		update_template_options();
		update_guidance_options();
		if ($(this).val().length > 0) {
			$("#other-funder-name").hide();
			$("#project_funder_name").val("");
		}
		else {
			$("#other-funder-name").show();
		}
		$("#institution-control-group").show();
		$("#create-plan-button").show();
		$("#confirm-funder").text($("#project_funder_id").select2('data').text);
	});

	$("#no-funder").click(function(e) {
		e.preventDefault();
		$("#project_funder_id").select2("val", "");
		update_template_options();
		update_guidance_options();
		$("#institution-control-group").show();
		$("#create-plan-button").show();
		$("#other-funder-name").show();
		$("#confirm-funder").text("None");
	});

	$("#project_funder_name").change(function(){
		$("#confirm-funder").text($(this).val());
	});
*/
	$("#project_institution_id").change(function () {
                $("#confirm-funder").text("None");
                $("#project_funder_id").select2("val", "");
                $("#create-plan-button").show();
		update_template_options();
		update_guidance_options();
		$("#confirm-institution").text($("#project_institution_id").select2('data').text);
	});

	$("#no-institution").click(function() {
		$("#project_institution_id").select2("val", "");
		update_template_options();
		update_guidance_options();
		$("#confirm-institution").text("None");
	});

        $("#create-plan-button").click(function() {
                update_template_options();
                update_guidance_options();
        });

	$("#project_dmptemplate_id").change(function (f) {
		update_guidance_options();
		$("#confirm-template").text($("#project_dmptemplate_id :selected").text());
	});
{'fraction_non_alphanumeric': 0.2399338113623828, 'fraction_numerical': 0.006067291781577496, 'mean_word_length': 4.907166123778501, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5880258', 'n_tokens_mistral': 1210, 'n_tokens_neox': 1175, 'n_words': 133}