<commit_before>const {clipboard} = require('electron')
clipboard.writeText('Example String', 'selection')
console.log(clipboard.readText('selection'))

$('#submit-words').submit(function(event) {
  event.preventDefault();
  console.log("submitted")
  $.ajax({
    type: "POST",
    data: $('#submit-words').serialize()
  }).done(function(data) {
      console.log("Inside")
      console.log( $('#answer').val() )
      console.log( $('input').val() )

      clipboard.write({text: $('input').val() })
  }).fail(function(responseError){
    console.error(responseError)
  })

});
<commit_msg>Copy form that accepts new passwords into overlay div of add/update.<commit_after>const {clipboard} = require('electron')
clipboard.writeText('Example String', 'selection')
console.log(clipboard.readText('selection'))

$('#submit-words').submit(function(event) {
  event.preventDefault();
  console.log("submitted")
  console.log($('#submit-words').serialize())
  $.ajax({
    type: "POST",
    data: $('#submit-words').serialize()
  }).done(function(data) {
      console.log("Inside")
      // console.log( $('#answer').val() )
      console.log( $('input').val() )
      console.log('using $(body).find()')
      console.log( $('body').find( $('#submit-words').serialize() ) )

      clipboard.write({text: $('#answer').val() })
  }).fail(function(responseError){
    console.error(responseError)
  })

});

{'fraction_non_alphanumeric': 0.2211126961483595, 'fraction_numerical': 0.0, 'mean_word_length': 4.5019607843137255, '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': '3679022', 'n_tokens_mistral': 430, 'n_tokens_neox': 421, 'n_words': 66}