<commit_before>//make this global in case someone needs to remove the Oform instance
w.optly.mrkt.activeModals = {};

var contactSalesHelperInst = window.optly.mrkt.form.contactSales({formId: 'contact-sales-form'});

w.optly.mrkt.activeModals.contactSales = new Oform({

  selector: 'form#contact-sales-form'

});

var contactSalesForm = w.optly.mrkt.activeModals.contactSales;

contactSalesForm.on('before', function(){

  d.body.classList.add('contact-sales-submit');

  w.optly.mrkt.Oform.before();

  w.analytics.track('contact sales submit', {
    category: 'forms',
    label: w.optly.mrkt.utils.trimTrailingSlash(w.location.pathname)
  });

  contactSalesHelperInst.removeErrors();
  contactSalesHelperInst.processingAdd();

  return true;

}).on('validationError', function(element){

  w.optly.mrkt.Oform.validationError(element);

}).on('success', function(){
  contactSalesHelperInst.success();
<commit_msg>Fix formatting.<commit_after>//make this global in case someone needs to remove the Oform instance
w.optly.mrkt.activeModals = {};

var contactSalesHelperInst = window.optly.mrkt.form.contactSales({formId: 'contact-sales-form'});

w.optly.mrkt.activeModals.contactSales = new Oform({

  selector: 'form#contact-sales-form'

});

var contactSalesForm = w.optly.mrkt.activeModals.contactSales;

contactSalesForm.on('before', function(){

  d.body.classList.add('contact-sales-submit');

  w.optly.mrkt.Oform.before();

  w.analytics.track('contact sales submit', {
    category: 'forms',
    label: w.optly.mrkt.utils.trimTrailingSlash(w.location.pathname)
  });

  contactSalesHelperInst.removeErrors();
  contactSalesHelperInst.processingAdd();

  return true;

}).on('validationError', function(element){

  w.optly.mrkt.Oform.validationError(element);

}).on('success', function(){

  contactSalesHelperInst.success();

{'fraction_non_alphanumeric': 0.14953779227841218, 'fraction_numerical': 0.0, 'mean_word_length': 5.301369863013699, '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': '4666833', 'n_tokens_mistral': 632, 'n_tokens_neox': 593, 'n_words': 93}