<commit_before>#include <jcaslib/path.h>
#include <string.h>
#include <stdio.h>
#include "license-header.h"

void
check_file (char *fpath, const char *check_ext)
{
    char *fext = path_filename_ext (fpath);
    if (memcmp (check_ext, fext, strlen (check_ext)) == 0)
        printf ("check: %s\n", fpath);
}<commit_msg>fix checking file extension<commit_after>#include <jcaslib/path.h>
#include <string.h>
#include <stdio.h>
#include "license-header.h"

void
check_file (char *fpath, const char *check_ext)
{
    char *fext = path_filename_ext (fpath);
    if ((strlen (check_ext) == strlen (fext))
        && (memcmp (check_ext, fext, strlen (check_ext)) == 0))
        printf ("check: %s\n", fpath);
}
{'fraction_non_alphanumeric': 0.16500711237553342, 'fraction_numerical': 0.002844950213371266, 'mean_word_length': 4.333333333333333, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1858597', 'n_tokens_mistral': 268, 'n_tokens_neox': 263, 'n_words': 67}