<commit_before>var selected_columns = 0;
var columns = [% columns_json %];
var columns_fields = [% columns_fields_json %];
var select2_options = [% select2_options_json %];

\$( '#select_format_form' ).submit(function( event ) {
  \$('#columns_fields_json').val(JSON.stringify(columns_fields));
});

function show_column_info(col) {

	\$('.column_info_row').hide();
	\$('#column_info_' + col).show();
}

\$('.column_row').click( function() {
	var col = this.id.replace(/column_/, '');
	show_column_info(col);
	\$(document).foundation('equalizer', 'reflow');
});

function init_select_field_option(col) {

	// Based on the field, display the different field options and instructions

	var column = columns[col];

	var field = columns_fields[column]["field"];

	var instructions = "";

	\$("#select_field_option_" + col).empty();

	if (field) {

		[% FOREACH tagtype IN ["sources_fields", "categories", "labels"] %] 

			if (field ==  "[% tagtype %]_specific") {

				var input = '<input id="select_field_option_tag_' + col + '" name="select_field_option_tag_' + col +  '" placeholder= [% lang("${tagtype}_s") %] style="width:150px;margin-bottom:0;height:28px;">';

				\$("#select_field_option_" + col).html(input);

				if (columns_fields[column]["tag"]) {
					\$('#select_field_option_tag_' + col).val(columns_fields[column]["tag"]);
				}

				\$('#select_field_option_tag_' + col)
				.on("change", function(e) {
					var id = e.target.id;
					var col = this.id.replace(/select_field_option_tag_/, '');
					var column = columns[col];
					columns_fields[column]["tag"] = \$(this).val();
				});

				instructions += "<p>[% lang('${tagtype}_specific_tag') %]</p>" + "<p>[% lang('${tagtype}_specific_tag_value') %]</p>";<commit_msg>Added quotes around placeholder<commit_after>var selected_columns = 0;
var columns = [% columns_json %];
var columns_fields = [% columns_fields_json %];
var select2_options = [% select2_options_json %];

\$( '#select_format_form' ).submit(function( event ) {
  \$('#columns_fields_json').val(JSON.stringify(columns_fields));
});

function show_column_info(col) {

	\$('.column_info_row').hide();
	\$('#column_info_' + col).show();
}

\$('.column_row').click( function() {
	var col = this.id.replace(/column_/, '');
	show_column_info(col);
	\$(document).foundation('equalizer', 'reflow');
});

function init_select_field_option(col) {

	// Based on the field, display the different field options and instructions

	var column = columns[col];

	var field = columns_fields[column]["field"];

	var instructions = "";

	\$("#select_field_option_" + col).empty();

	if (field) {

		[% FOREACH tagtype IN ["sources_fields", "categories", "labels"] %] 

			if (field ==  "[% tagtype %]_specific") {

				var input = '<input id="select_field_option_tag_' + col + '" name="select_field_option_tag_' + col +  '" placeholder= "[% lang("${tagtype}_s") %]" style="width:150px;margin-bottom:0;height:28px;">';

				\$("#select_field_option_" + col).html(input);

				if (columns_fields[column]["tag"]) {
					\$('#select_field_option_tag_' + col).val(columns_fields[column]["tag"]);
				}

				\$('#select_field_option_tag_' + col)
				.on("change", function(e) {
					var id = e.target.id;
					var col = this.id.replace(/select_field_option_tag_/, '');
					var column = columns[col];
					columns_fields[column]["tag"] = \$(this).val();
				});

				instructions += "<p>[% lang('${tagtype}_specific_tag') %]</p>" + "<p>[% lang('${tagtype}_specific_tag_value') %]</p>";
{'fraction_non_alphanumeric': 0.20561282932416952, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 4.900337837837838, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5220126', 'n_tokens_mistral': 1323, 'n_tokens_neox': 1175, 'n_words': 206}