<commit_before>

#include "track.h"


namespace arghmm {


template <>
bool read_track_line<double>(const char *line, 
                     string &chrom, int &start, int &end, double &value)
{
    const int CHROM_NAME_LENGTH = 1000;
    char chrom2[CHROM_NAME_LENGTH+1];

    if (sscanf("%1000s\t%d\t%d\t%lf\n", chrom2, &start, &end, &value) != 4)
        return false;
    chrom = string(chrom2);
    return true;
}


template <>
bool read_track_line<int>(const char *line, 
                     string &chrom, int &start, int &end, int &value)
{
    const int CHROM_NAME_LENGTH = 1000;
    char chrom2[CHROM_NAME_LENGTH+1];

    if (sscanf("%1000s\t%d\t%d\t%d\n", chrom2, &start, &end, &value) != 4)
        return false;
    chrom = string(chrom2);
    return true;
}

<commit_msg>fixed track bug<commit_after>

#include "track.h"


namespace arghmm {


{'fraction_non_alphanumeric': 0.14002333722287047, 'fraction_numerical': 0.030338389731621937, 'mean_word_length': 2.9906976744186045, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2074438', 'n_tokens_mistral': 344, 'n_tokens_neox': 307, 'n_words': 76}