<commit_before>require 'roar/decorator'

class UserRepresenter < Roar::Decorator
  include Roar::JSON
  include Roar::JSON::HAL

  property :id
  property :name
  property :username
  property :email<commit_msg>Keeping API the same, except adding email for segment/intercom.<commit_after>require 'roar/decorator'

class UserRepresenter < Roar::Decorator
  include Roar::JSON
  include Roar::JSON::HAL

  property :id
  # We use the below hack until we decide what our strategy will be for real names, to keep the client behavior the same.
  property :username, as: "name"
  property :email
{'fraction_non_alphanumeric': 0.07979626485568761, 'fraction_numerical': 0.0, 'mean_word_length': 4.9, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5546556', 'n_tokens_mistral': 177, 'n_tokens_neox': 172, 'n_words': 64}