<commit_before># A presenter value object that provides convenience methods to access all the
# data needed to render a portfolio.
class Portfolio
  include ValueObject.new(:user, :header, :user_repos, :other_repos)

  def name
    user.name<commit_msg>Use a generic header for portfolios where none is provided<commit_after># A presenter value object that provides convenience methods to access all the
# data needed to render a portfolio.
class Portfolio
  include ValueObject.new(:user, :header, :user_repos, :other_repos)

  def initialize(*)
    super
    self.header ||= Header.generic(user)
  end

  def name
    user.name
{'fraction_non_alphanumeric': 0.06995230524642289, 'fraction_numerical': 0.0, 'mean_word_length': 4.526315789473684, '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': '319483', 'n_tokens_mistral': 178, 'n_tokens_neox': 170, 'n_words': 72}