<commit_before>#include "PrimeSieve.h"
#include <cassert>
#include <climits>
#include <ctime>
#include <iostream>
#include <list>
#include <utility>
#include <vector>
using namespace std;

static void AssertPrime(int k) {
  int mod_count = 0;
  int sqrt_k = (int)sqrt((double)k);
  for (int i = 2; i <= sqrt_k; i++) {
    assert(k % i != 0);
  }
}

void TestSmall() {
  int n = 100000;
  BitVec *b = SimpleSieve(n);
  for (int i = 2; i < n; i++) {
    if (IsPrime(b, i)) {
      AssertPrime(i);<commit_msg>add cmath header<commit_after>#include "PrimeSieve.h"
#include <cassert>
#include <climits>
#include <cmath>
#include <ctime>
#include <iostream>
#include <list>
#include <utility>
#include <vector>
using namespace std;

static void AssertPrime(int k) {
  int mod_count = 0;
  int sqrt_k = (int)sqrt((double)k);
  for (int i = 2; i <= sqrt_k; i++) {
    assert(k % i != 0);
  }
}

void TestSmall() {
  int n = 100000;
  BitVec *b = SimpleSieve(n);
  for (int i = 2; i < n; i++) {
    if (IsPrime(b, i)) {
      AssertPrime(i);
{'fraction_non_alphanumeric': 0.17344961240310078, 'fraction_numerical': 0.01937984496124031, 'mean_word_length': 3.8046511627906976, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 18, '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': '5155153', 'n_tokens_mistral': 445, 'n_tokens_neox': 410, 'n_words': 119}