<commit_before>extern crate crc;

use std::io::{ BufRead, BufReader, Read };
use std::fs::File;
use std::path::Path;

use self::crc::{crc32, Hasher32};

pub fn verify_file_crc32(file: &File) -> u32
{
    let mut digest = crc32::Digest::new(crc32::IEEE);

    for line in file.bytes() {
        digest.write(&[line.unwrap()]);
    }

    digest.sum32()
}<commit_msg>Format code.<commit_after>extern crate crc;

use std::io::{ BufRead, BufReader, Read };
use std::fs::File;
use std::path::Path;
use self::crc::{crc32, Hasher32};

pub fn verify_file_crc32(file: &File) -> u32
{
    let mut digest = crc32::Digest::new(crc32::IEEE);

    for line in file.bytes() {
        digest.write(&[line.unwrap()]);
    }

    return digest.sum32();
}
{'fraction_non_alphanumeric': 0.18478260869565216, 'fraction_numerical': 0.03804347826086957, 'mean_word_length': 4.153846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3374758', 'n_tokens_mistral': 302, 'n_tokens_neox': 280, 'n_words': 62}