<commit_before>
#include "stdafx.h"
#include "toc.h"
#include "util.h"
#include "wkhtmltopdf_cmd.h"
#include "log.h"

static void skip_bin_data(FILE*);

/*
 * NOTE: This method is unreliable. See this StackOverflow question:
 * http://stackoverflow.com/questions/14644353/
 *
 * This procedure reads the PDF with the given name and hopefully
 * returns the number of pages it has. It searches for "/Count " in the
 * file and assumes the following number is the number of pages. This
 * will not work for every PDF (as noted above), but it seems to work
 * with the PDFs generated PDFs from wkhtmltopdf. If the procedure
 * succeeds (i.e. finds a number which may be the number of pages as
 * determined by the method explained above), and the number of pages in
 * stored in the value pointed to by pages. Otherwise, execution is<commit_msg>Fix a typo<commit_after>
#include "stdafx.h"
#include "toc.h"
#include "util.h"
#include "wkhtmltopdf_cmd.h"
#include "log.h"

static void skip_bin_data(FILE*);

/*
 * NOTE: This method is unreliable. See this StackOverflow question:
 * http://stackoverflow.com/questions/14644353/
 *
 * This procedure reads the PDF with the given name and hopefully
 * returns the number of pages it has. It searches for "/Count " in the
 * file and assumes the following number is the number of pages. This
 * will not work for every PDF (as noted above), but it seems to work
 * with the PDFs generated PDFs from wkhtmltopdf. If the procedure
 * succeeds (i.e. finds a number which may be the number of pages as
 * determined by the method explained above), the number of pages is
 * stored in the value pointed to by pages. Otherwise, execution is
{'fraction_non_alphanumeric': 0.07871198568872988, 'fraction_numerical': 0.009540846750149075, 'mean_word_length': 4.054216867469879, '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': '989981', 'n_tokens_mistral': 497, 'n_tokens_neox': 470, 'n_words': 240}