<commit_before>#include "domain.h"
#include "data.h"
#include <iostream>

using namespace std;
domain::domain()
{


}

void domain::list()
{
    data dat;
    vector<Person> persons;
    dat.read(persons);
    cout << "===== List =====" << endl;
    for(unsigned int i = 0; i < persons.size(); i++) {
        cout << persons[i].getFirstname() << "\t "
             << persons[i].getLastname() << "\t"
             << persons[i].getSex() << "\t"
             << persons[i].getBirth() << "\t"
             << persons[i].getDeath() << endl;
    }
    cout << "================" << endl;;
}

void domain::add()
{
    string firstname, lastname, sex, death;
    int birth;
    cout << "Enter first and last name: ";
    cin >> firstname;
    cin >> lastname;
    cout << "Enter sex: ";<commit_msg>breytingar<commit_after>#include "domain.h"
#include "data.h"
#include <iostream>

using namespace std;
domain::domain()
{


}

void domain::list()
{
    data dat;
    vector<Person> persons;
    dat.read(persons);
    cout << "===== List =====" << endl;
    for(unsigned int i = 0; i < persons.size(); i++) {
        cout << persons[i].getFirstname() << "\t"
             << persons[i].getLastname() << "\t"
             << persons[i].getSex() << "\t"
             << persons[i].getBirth() << "\t"
             << persons[i].getDeath() << endl;
    }
    cout << "================" << endl;;
}

void domain::add()
{
    string firstname, lastname, sex, death;
    int birth;
    cout << "Enter first and last name: ";
    cin >> firstname;
    cin >> lastname;
    cout << "Enter sex: ";
{'fraction_non_alphanumeric': 0.22151898734177214, 'fraction_numerical': 0.0012658227848101266, 'mean_word_length': 2.529017857142857, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 15, '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': '6296678', 'n_tokens_mistral': 532, 'n_tokens_neox': 521, 'n_words': 124}