<commit_before>define [
  "common/base",
  "server/serverutils",
  "common/socket",
  "common/load_models",
  "backbone",
  "common/has_properties"
], (base, serverutils, socket, load_models, Backbone, HasProperties) ->

  #not proud of this refactor... but we can make it better later
  Deferreds = {}
  Promises = {}
  exports = {}
  WebSocketWrapper = socket.WebSocketWrapper
  submodels = socket.submodels
  Deferreds._doc_loaded = $.Deferred()
  Deferreds._doc_requested = $.Deferred()
  Promises.doc_loaded = Deferreds._doc_loaded.promise()
  Promises.doc_requested = Deferreds._doc_requested.promise()
  Promises.doc_promises = {};

  # these get set out later<commit_msg>Remove self import from server/serverutils<commit_after>define [
  "common/base",
  "common/socket",
  "common/load_models",
  "backbone",
  "common/has_properties"
], (base, socket, load_models, Backbone, HasProperties) ->

  #not proud of this refactor... but we can make it better later
  Deferreds = {}
  Promises = {}
  exports = {}
  WebSocketWrapper = socket.WebSocketWrapper
  submodels = socket.submodels
  Deferreds._doc_loaded = $.Deferred()
  Deferreds._doc_requested = $.Deferred()
  Promises.doc_loaded = Deferreds._doc_loaded.promise()
  Promises.doc_requested = Deferreds._doc_requested.promise()
  Promises.doc_promises = {};

  # these get set out later
{'fraction_non_alphanumeric': 0.12148148148148148, 'fraction_numerical': 0.0, 'mean_word_length': 4.469635627530365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6878392', 'n_tokens_mistral': 445, 'n_tokens_neox': 440, 'n_words': 93}