<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <netinet/in.h>
#include <netinet/ip.h> //ip hdeader library (must come before ip_icmp.h)
#include <netinet/ip_icmp.h> //icmp header
#include <arpa/inet.h> //internet address library
#include <netdb.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/epoll.h>

#include "bencode.h"
#include "bt_lib.h"
#include "bt_setup.h"

sem_t sem;
char *file_info;
bt_args_t bt_args;


void _int_handler(int);
void _download(void *);

int main(int argc, char *argv[])
{

    be_node *node; // top node in the bencoding
    int i;

    parse_args(&bt_args, argc, argv);


    if (bt_args.verbose)
    {
        printf("Args:\n");
        printf("verbose: %d\n", bt_args.verbose);
        printf("save_file: %s\n", bt_args.save_file);
        printf("log_file: %s\n", bt_args.log_file);
        printf("torrent_file: %s\n", bt_args.torrent_file);
<commit_msg>Trying to use epoll<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <netinet/in.h>
#include <netinet/ip.h> //ip hdeader library (must come before ip_icmp.h)
#include <netinet/ip_icmp.h> //icmp header
#include <arpa/inet.h> //internet address library
#include <netdb.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/epoll.h>
#include <semaphore.h>

#include "bencode.h"
#include "bt_lib.h"
#include "bt_setup.h"

sem_t sem;
char *file_info;
bt_args_t bt_args;


void _int_handler(int);
void _download(void *);

int main(int argc, char *argv[])
{

    be_node *node; // top node in the bencoding
    int i;

    parse_args(&bt_args, argc, argv);


    if (bt_args.verbose)
    {
        printf("Args:\n");
        printf("verbose: %d\n", bt_args.verbose);
        printf("save_file: %s\n", bt_args.save_file);
        printf("log_file: %s\n", bt_args.log_file);
        printf("torrent_file: %s\n", bt_args.torrent_file);

{'fraction_non_alphanumeric': 0.16607951685958733, 'fraction_numerical': 0.0, 'mean_word_length': 3.860635696821516, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3264852', 'n_tokens_mistral': 803, 'n_tokens_neox': 786, 'n_words': 177}