<commit_before>#include <iostream>
#include <string>
#include <cassert>
using namespace std;

/*
  You will have to implement a function that will use C++ string object
  in order to reverse  the letter in each word of a sentence.

  INFO:
  http://www.math.bas.bg/~nkirov/2012/WCP/STL/STL.pdf (string)
  http://anaturb.net/C/string_exapm.htm
  http://www.cprogramming.com/tutorial/string.html
  https://www.youtube.com/watch?v=2_znS5i92pM


  Example:
  I am born in a village => I ma nrob ni a egalliv
*/
string rev_sent(const string s)
{
    /* Write your code here */
    int i;
    const string s = string s();
    h=s.size();
    for (i = x - 1; i >= 0; i--)
	{
 		res[x-i-1] = w[i];
 		
 	}
 	res[x--] = w[i];
	return res;
    
}

int main(int argc, char** argv)
{
  unsigned int i;
  const string sentence_in[] = {
    "We are born in this village", "", "GitHub", "I", "wow wow wow", "Miami is a big city.",
    "My favourite pie remains the standard traditional meat pie.",
    "If you want a sit down meal in one of these cafes or bakeries, then that is no problem.",
    "You can order your pie with salad and chips and it will come on a plate.",
    "A meat pie tastes just as good when eaten with a knife and fork.",
    "A visit to the local cafe or bakery is a must in any small town in country Australia, \
or indeed in any suburb of a major city.",
    "When you visit, be sure to order a meat pie, a real taste of Australia."
  };
  const string sentence_out[] = {
    "eW era nrob ni siht egalliv", "", "buHtiG", "I", "wow wow wow", "imaiM si a gib ytic.",
    "yM etiruovaf eip sniamer eht dradnats lanoitidart taem eip.",
    "fI uoy tnaw a tis nwod laem ni eno fo eseht sefac ro seirekab, neht taht si on melborp.",
    "uoY nac redro ruoy eip htiw dalas dna spihc dna ti lliw emoc no a etalp.",
    "A taem eip setsat tsuj sa doog nehw netae htiw a efink dna krof.",
    "A tisiv ot eht lacol efac ro yrekab si a tsum ni yna llams nwot ni yrtnuoc ailartsuA, \
ro deedni ni yna brubus fo a rojam ytic.",
    "nehW uoy tisiv, eb erus ot redro a taem eip, a laer etsat fo ailartsuA."
  };

  for (i = 0; i < sizeof(sentence_in)/sizeof(sentence_in[0]); i++)<commit_msg>Update hw4.cpp<commit_after>#include <iostream>
#include <string>
#include <cassert>
using namespace std;

/*
  You will have to implement a function that will use C++ string object
  in order to reverse  the letter in each word of a sentence.

  INFO:
  http://www.math.bas.bg/~nkirov/2012/WCP/STL/STL.pdf (string)
  http://anaturb.net/C/string_exapm.htm
  http://www.cprogramming.com/tutorial/string.html
  https://www.youtube.com/watch?v=2_znS5i92pM


  Example:
  I am born in a village => I ma nrob ni a egalliv
*/
string rev_sent(const string s)
{
    /* Write your code here */
    
    
}

int main(int argc, char** argv)
{
  unsigned int i;
  const string sentence_in[] = {
    "We are born in this village", "", "GitHub", "I", "wow wow wow", "Miami is a big city.",
    "My favourite pie remains the standard traditional meat pie.",
    "If you want a sit down meal in one of these cafes or bakeries, then that is no problem.",
    "You can order your pie with salad and chips and it will come on a plate.",
    "A meat pie tastes just as good when eaten with a knife and fork.",
    "A visit to the local cafe or bakery is a must in any small town in country Australia, \
or indeed in any suburb of a major city.",
    "When you visit, be sure to order a meat pie, a real taste of Australia."
  };
  const string sentence_out[] = {
    "eW era nrob ni siht egalliv", "", "buHtiG", "I", "wow wow wow", "imaiM si a gib ytic.",
    "yM etiruovaf eip sniamer eht dradnats lanoitidart taem eip.",
    "fI uoy tnaw a tis nwod laem ni eno fo eseht sefac ro seirekab, neht taht si on melborp.",
    "uoY nac redro ruoy eip htiw dalas dna spihc dna ti lliw emoc no a etalp.",
    "A taem eip setsat tsuj sa doog nehw netae htiw a efink dna krof.",
    "A tisiv ot eht lacol efac ro yrekab si a tsum ni yna llams nwot ni yrtnuoc ailartsuA, \
ro deedni ni yna brubus fo a rojam ytic.",
    "nehW uoy tisiv, eb erus ot redro a taem eip, a laer etsat fo ailartsuA."
  };

  for (i = 0; i < sizeof(sentence_in)/sizeof(sentence_in[0]); i++)
{'fraction_non_alphanumeric': 0.10321969696969698, 'fraction_numerical': 0.005681818181818182, 'mean_word_length': 3.046934865900383, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '2098085', 'n_tokens_mistral': 1601, 'n_tokens_neox': 1532, 'n_words': 647}