<commit_before>
#include "pmlc/util/math/bignum.h"

#include <boost/math/common_factor_rt.hpp>

namespace pmlc::util::math {

Integer Floor(const Rational &x) {
  if (x < 0) {
    return (numerator(x) - denominator(x) + 1) / denominator(x);
  } else {
    return numerator(x) / denominator(x);
  }
}
<commit_msg>Update deprecated header loc (#1420)<commit_after>
#include "pmlc/util/math/bignum.h"

#include <boost/integer/common_factor_rt.hpp>

namespace pmlc::util::math {

Integer Floor(const Rational &x) {
  if (x < 0) {
    return (numerator(x) - denominator(x) + 1) / denominator(x);
  } else {
    return numerator(x) / denominator(x);
  }
}

{'fraction_non_alphanumeric': 0.16153846153846155, 'fraction_numerical': 0.012307692307692308, 'mean_word_length': 4.046511627906977, 'pattern_counts': {'":': 0, '<': 7, '<?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': '738680', 'n_tokens_mistral': 264, 'n_tokens_neox': 248, 'n_words': 50}