<commit_before>import ua from 'vigour-ua'

export default (t, id, val, stamp, useragent) => {
  useragent = ua(useragent)
  val.device = useragent.device
  val.platform = useragent.platform
  val.browser = useragent.browser
  val.debug = val.context || 'no-context'
  t.set({ clients: { [id]: val } }, stamp)
  return t.clients[id]
}<commit_msg>remove debug Please enter the commit message for your changes. Lines starting<commit_after>import ua from 'vigour-ua'

export default (t, id, val, stamp, useragent) => {
  useragent = ua(useragent)
  val.device = useragent.device
  val.platform = useragent.platform
  val.browser = useragent.browser
  t.set({ clients: { [id]: val } }, stamp)
  return t.clients[id]
}
{'fraction_non_alphanumeric': 0.13342696629213482, 'fraction_numerical': 0.0, 'mean_word_length': 4.204379562043796, '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': '5133225', 'n_tokens_mistral': 243, 'n_tokens_neox': 240, 'n_words': 66}