<commit_before>#!/bin/bash

# Require gcc 4.7+

SRCS="Acceptor.cc InetAddress.cc TcpStream.cc Socket.cc"

set -x
CC=${CC:-g++}

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS chargen.cc ../datetime/Timestamp.cc -o chargen -lpthread

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS discard.cc ../datetime/Timestamp.cc -o discard -lpthread

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS echo.cc -o echo -lpthread

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS echo_client.cc -o echo_client

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS netcat.cc -o netcat -lpthread

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS nodelay.cc -o nodelay

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS nodelay_server.cc -o nodelay_server

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS roundtrip_udp.cc -o roundtrip_udp -lpthread

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS sender.cc -o sender -lpthread

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS sudoku_stress.cc ../datetime/Timestamp.cc -o sudoku_stress -lpthread

$CC -std=c++11 -Wall -Wextra -g -O2 $SRCS ttcp.cc -o ttcp -lboost_program_options
<commit_msg>update tpc/build.sh<commit_after>#!/bin/bash

# Require gcc 4.7+

SRCS="Acceptor.cc InetAddress.cc TcpStream.cc Socket.cc"

set -x
CC=${CC:-g++}
CXXFLAGS="-std=c++11 -Wall -Wextra -g -O2"

$CC $CXXFLAGS $SRCS chargen.cc ../datetime/Timestamp.cc -o chargen -lpthread

$CC $CXXFLAGS $SRCS discard.cc ../datetime/Timestamp.cc -o discard -lpthread

$CC $CXXFLAGS $SRCS echo.cc -o echo -lpthread

$CC $CXXFLAGS $SRCS echo_client.cc -o echo_client

$CC $CXXFLAGS $SRCS netcat.cc -o netcat -lpthread

$CC $CXXFLAGS $SRCS nodelay.cc -o nodelay

$CC $CXXFLAGS $SRCS nodelay_server.cc -o nodelay_server

$CC $CXXFLAGS $SRCS roundtrip_udp.cc -o roundtrip_udp -lpthread

$CC $CXXFLAGS $SRCS sender.cc -o sender -lpthread

$CC $CXXFLAGS $SRCS sudoku_stress.cc ../datetime/Timestamp.cc -o sudoku_stress -lpthread

$CC $CXXFLAGS $SRCS ttcp.cc -o ttcp -lboost_program_options

{'fraction_non_alphanumeric': 0.15577626764244643, 'fraction_numerical': 0.020909566126502875, 'mean_word_length': 3.4824355971896956, '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': '6384073', 'n_tokens_mistral': 858, 'n_tokens_neox': 821, 'n_words': 226}