<commit_before>'use strict';
/*global utils, app*/

var lines;

$('#prior_lines_value').click(function() {
    lines = $('input[type=checkbox]:checked').map(function(_, el) {
        return $(el).val();
    }).get();
});

$(window).on('action:composer.submit', function(ev, data) {
    // data.composerEl is the dom element for the composer
    // data.action can be `topics.post`, `posts.reply` or `posts.edit`
    // data.composerData is the object that will be submitted to the server.

    // lets add our new field into the data to be submitted for new topics
    if (data.action === 'topics.post') {
		var age = data.composerEl.find('#age').val();
		var sex = data.composerEl.find('#sex').val();
		var ecog = data.composerEl.find('#ecog-ps').val();
		var abnormalFunc = data.composerEl.find('#abnormal-function').val();
		var abnormalLab = data.composerEl.find('#abnormal-labs').val();
		var addInfo = data.composerEl.find('#additional-info').val();
		var mutation = data.composerEl.find('#mutation-status').val();
		var priorLines = lines;
		var priorInterv = data.composerEl.find('#prior-intervention').val();
		var progression = data.composerEl.find('#progression-history').val();
		var questions = data.composerEl.find('#questions').val();
<commit_msg>Fix javascript<commit_after>'use strict';
/*global utils, app*/

$(window).on('action:composer.submit', function(ev, data) {
    // data.composerEl is the dom element for the composer
    // data.action can be `topics.post`, `posts.reply` or `posts.edit`
    // data.composerData is the object that will be submitted to the server.

    // lets add our new field into the data to be submitted for new topics
    if (data.action === 'topics.post') {
		var age = data.composerEl.find('#age').val();
		var sex = data.composerEl.find('#sex').val();
		var ecog = data.composerEl.find('#ecog-ps').val();
		var abnormalFunc = data.composerEl.find('#abnormal-function').val();
		var abnormalLab = data.composerEl.find('#abnormal-labs').val();
		var addInfo = data.composerEl.find('#additional-info').val();
		var mutation = data.composerEl.find('#mutation-status').val();
		
		var lines = [];
		
		lines = $('input[type=checkbox]:checked').map(function(){
      		return $(this).val();
    	}).get();

    	console.log("Lines: " + lines);

		var priorLines = lines.split(', ');
		var priorInterv = data.composerEl.find('#prior-intervention').val();
		var progression = data.composerEl.find('#progression-history').val();
		var questions = data.composerEl.find('#questions').val();

{'fraction_non_alphanumeric': 0.18224852071005918, 'fraction_numerical': 0.0, 'mean_word_length': 4.123232323232323, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2597131', 'n_tokens_mistral': 841, 'n_tokens_neox': 786, 'n_words': 187}