<commit_before>Template['subscribe'].events({
  'submit .subscribe.form': function(e, tpl) {
		e.preventDefault();

		console.log('mailchimp form submitted');

    var params = {
      name: tpl.$('input[name=name]').val(),
      email: tpl.$('input[name=email]').val(),
      c: 'JSON_CALLBACK',
      u: tpl.$('input[name=mailchimpAPI]').val(),
      id: tpl.$('input[name=mailchimpID]').val()
    };

    console.log(params);
	}
});<commit_msg>created post url with username and dc hidden field values<commit_after>Template['subscribe'].events({
  'submit .subscribe.form': function(e, tpl) {
		e.preventDefault();

    var username = tpl.$('input[name=mailchimpUsername]').val(),
        dc = tpl.$('input[name=mailchimpDC]').val(),
        url = '//' + username + '.' + dc + '.list-manage.com/subscribe/post-json',
        params = {
          name: tpl.$('input[name=name]').val(),
          email: tpl.$('input[name=email]').val(),
          c: 'JSON_CALLBACK',
          u: tpl.$('input[name=mailchimpAPI]').val(),
          id: tpl.$('input[name=mailchimpID]').val()
        };

    console.log(params);
    console.log(url);
	}
});
{'fraction_non_alphanumeric': 0.21647677475898336, 'fraction_numerical': 0.0, 'mean_word_length': 3.183150183150183, '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': '5303799', 'n_tokens_mistral': 393, 'n_tokens_neox': 387, 'n_words': 59}