<commit_before>//===--- CandidateUtilities.cpp - Utilities Information About A Candidate ---===//
//
// This file is part of the Election Method Mathematics
// Application (EMMA) project.
//
// Copyright (c) 2015 - 2016 <NAME> and the EMMA project authors
// Licensed under the GNU Affero General Public License, version 3.0.
//
// See the file called "LICENSE" included with this distribution
// for license information.
//
//===----------------------------------------------------------------------===//
//
// A collection of utilities, actual and perceived, of a
// particular Candidate to a particular Voter
//
//===----------------------------------------------------------------------===//

#include <iostream>
#include "CandidateUtilities.h"
#include "Pseudorandom.h"

namespace Simulation {
  CandidateUtilities::CandidateUtilities() {
    initializeActualUtility();
    initializePerceivedUtility();
  }

  Utility CandidateUtilities::getActualUtility() const {
    return actual;
  }

  Utility CandidateUtilities::getPerceivedUtility() const {
    return perceived;
  }

  void CandidateUtilities::initializeActualUtility() {
    actual = Pseudorandom::normallyDistributedDouble();
  }

  void CandidateUtilities::initializePerceivedUtility() {
    perceived = Pseudorandom::normallyDistributedDouble();
  }
}<commit_msg>removing extraneous header<commit_after>//===--- CandidateUtilities.cpp - Utilities Information About A Candidate ---===//
//
// This file is part of the Election Method Mathematics
// Application (EMMA) project.
//
// Copyright (c) 2015 - 2016 <NAME> and the EMMA project authors
// Licensed under the GNU Affero General Public License, version 3.0.
//
// See the file called "LICENSE" included with this distribution
// for license information.
//
//===----------------------------------------------------------------------===//
//
// A collection of utilities, actual and perceived, of a
// particular Candidate to a particular Voter
//
//===----------------------------------------------------------------------===//

#include "CandidateUtilities.h"
#include "Pseudorandom.h"

namespace Simulation {
  CandidateUtilities::CandidateUtilities() {
    initializeActualUtility();
    initializePerceivedUtility();
  }

  Utility CandidateUtilities::getActualUtility() const {
    return actual;
  }

  Utility CandidateUtilities::getPerceivedUtility() const {
    return perceived;
  }

  void CandidateUtilities::initializeActualUtility() {
    actual = Pseudorandom::normallyDistributedDouble();
  }

  void CandidateUtilities::initializePerceivedUtility() {
    perceived = Pseudorandom::normallyDistributedDouble();
  }
}
{'fraction_non_alphanumeric': 0.2156567557395559, 'fraction_numerical': 0.007527286413248024, 'mean_word_length': 2.5677852348993286, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6318703', 'n_tokens_mistral': 660, 'n_tokens_neox': 662, 'n_words': 190}