<commit_before>#include "../inc/PreReader.h"

/**
 * @file PreReader.c
 *
 * Contains implementations of all the methods defined in PreReader.h (not yet though).
 *
 * @see PreReader.h
 */<commit_msg>Implemented prInit().<commit_after>#include "../inc/PreReader.h"

/**
 * @file PreReader.c
 *
 * Contains implementations of all the methods defined in PreReader.h (not yet though).
 *
 * @see PreReader.h
 */

void prInit(struct PreReader *this, FILE *file)
{
	if (this == NULL)
		return;
	if (file == NULL)
		return;

	this->file = file;
	this->read_pos = 0;
	this->write_pos = 0;
}
{'fraction_non_alphanumeric': 0.15437392795883362, 'fraction_numerical': 0.003430531732418525, 'mean_word_length': 3.5625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4637042', 'n_tokens_mistral': 210, 'n_tokens_neox': 202, 'n_words': 57}