<commit_before>#include <iostream>
#include <string>
#include <vector>

using std::string;
using std::vector;
using std::cout;
using std::cin;
using std::endl;
using std::istream;

struct Entry
{
  string name;
  int phone;
};

auto operator>>(istream& in, Entry& entry) -> istream&
{
  in >> entry.name >> entry.phone;
  return in;
}

auto print(vector<Entry> const & phone_book) -> void
{
  for (int i = 0; i != phone_book.size(); ++i)
    cout << phone_book[i].name << ": " << phone_book[i].phone << endl;
}

auto print2(vector<Entry> const & phone_book) -> void
{
  for (auto const & entry : phone_book)
    cout << entry.name << ": " << entry.phone << endl;
}

auto read() -> vector<Entry>
{
  auto books = vector<Entry> { };
  for (Entry e; cin >> e;)
    books.push_back(e);
  return books;
}

auto main() -> int
{
  auto phone_book = vector<Entry>
  { 
    { "<NAME>",     111222333 },
    { "<NAME>", 222333444 },
    { "<NAME>",  333444555 }
  };
  
  print(phone_book);
  print2(phone_book);
  
  auto phone_book2 = read();
  print(phone_book2);<commit_msg>Use Bjarne and Herb in samples<commit_after>#include <iostream>
#include <string>
#include <vector>

using std::string;
using std::vector;
using std::cout;
using std::cin;
using std::endl;
using std::istream;

struct Entry
{
  string name;
  int phone;
};

auto operator>>(istream& in, Entry& entry) -> istream&
{
  in >> entry.name >> entry.phone;
  return in;
}

auto print(vector<Entry> const & phone_book) -> void
{
  for (int i = 0; i != phone_book.size(); ++i)
    cout << phone_book[i].name << ": " << phone_book[i].phone << endl;
}

auto print2(vector<Entry> const & phone_book) -> void
{
  for (auto const & entry : phone_book)
    cout << entry.name << ": " << entry.phone << endl;
}

auto read() -> vector<Entry>
{
  auto books = vector<Entry> { };
  for (Entry e; cin >> e;)
    books.push_back(e);
  return books;
}

auto main() -> int
{
  auto phone_book = vector<Entry>
  { 
    { "<NAME>",      111222333 },
    { "<NAME>", 222333444 },
    { "<NAME>",       333444555 }
  };
  
  print(phone_book);
  print2(phone_book);
  
  auto phone_book2 = read();
  print(phone_book2);
{'fraction_non_alphanumeric': 0.17878647522000926, 'fraction_numerical': 0.029643353404353867, 'mean_word_length': 3.5, 'pattern_counts': {'":': 4, '<': 57, '<?xml version=': 0, '>': 51, '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': '722404', 'n_tokens_mistral': 831, 'n_tokens_neox': 794, 'n_words': 198}