<commit_before>#ifndef FILE_SEARCHER_H
#define FILE_SEARCHER_H

#include "util.h"
#include "regexw.h"

typedef struct ps_search_task{
    /*Gibt Bereich an, in dem gesucht werden soll, in Byte*/
    unsigned long offset, size;
    /*Laenge des Dateinamens*/
    unsigned int filename_len;
    /*Datei, die durchsucht werden soll*/
    char filename[];
} ps_search_task_t;

typedef struct ps_searcher_t
{
    ps_regex_t* regex;

    ps_search_task_t* task;

} ps_searcher_t;

ps_status_t
ps_file_searcher_create(ps_searcher_t** seacher,
                        char* search,
                        ps_search_task_t* task);

ps_status_t
ps_file_searcher_free(ps_searcher_t** searcher);

int
ps_file_searcher_search(ps_searcher_t* seacher);


ps_status_t<commit_msg>translated german to englisch documentitation<commit_after>#ifndef FILE_SEARCHER_H
#define FILE_SEARCHER_H

#include "util.h"
#include "regexw.h"

typedef struct ps_search_task{
    /*Defines the area to search in*/
    unsigned long offset, size;
    /*Length of filename*/
    unsigned int filename_len;
    /*Filename of the file, that should be searched*/
    char filename[];
} ps_search_task_t;

typedef struct ps_searcher_t
{
    ps_regex_t* regex;

    ps_search_task_t* task;

} ps_searcher_t;

ps_status_t
ps_file_searcher_create(ps_searcher_t** seacher,
                        char* search,
                        ps_search_task_t* task);

ps_status_t
ps_file_searcher_free(ps_searcher_t** searcher);

int
ps_file_searcher_search(ps_searcher_t* seacher);


ps_status_t
{'fraction_non_alphanumeric': 0.07896440129449839, 'fraction_numerical': 0.0, 'mean_word_length': 3.7423312883435584, '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': '2054701', 'n_tokens_mistral': 563, 'n_tokens_neox': 566, 'n_words': 124}