<commit_before>import Default from './autocomplete/default'
import Work from './autocomplete/work'

export default class Autocomplete {
  // This is the initial setup for the form.
  setup (options) {
    var data = options.data
    var element = options.element
    switch (data.autocomplete) {
      case 'work':
        new Work(
          element,
          data.autocompleteUrl,
          data.user,
          data.id
        )
        break
      default:
        new Default(element, data.autocompleteUrl)
        break
    }
  }
}
<commit_msg>The Work constructor only takes three arguments<commit_after>import Default from './autocomplete/default'
import Work from './autocomplete/work'

export default class Autocomplete {
  // This is the initial setup for the form.
  setup (options) {
    var data = options.data
    var element = options.element
    switch (data.autocomplete) {
      case 'work':
        new Work(
          element,
          data.autocompleteUrl,
          data.id
        )
        break
      default:
        new Default(element, data.autocompleteUrl)
        break
    }
  }
}
{'fraction_non_alphanumeric': 0.08258527827648116, 'fraction_numerical': 0.0, 'mean_word_length': 2.0631868131868134, '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': '1075432', 'n_tokens_mistral': 310, 'n_tokens_neox': 297, 'n_words': 93}