<commit_before>// Copyright (c) 2012 <NAME> and MIPT students. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/file_utils.h"

#include <string>

#include "base/common.h"

bool ReadFileToString(const std::string &filename, std::string *contents) {
  CHECK(contents != NULL);

  FILE *fp = fopen(filename.c_str(), "r");
  if (fp == NULL)
    return false;<commit_msg>Add a missing #include<commit_after>// Copyright (c) 2012 <NAME> and MIPT students. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/file_utils.h"

#include <unistd.h>

#include <string>

#include "base/common.h"

bool ReadFileToString(const std::string &filename, std::string *contents) {
  CHECK(contents != NULL);

  FILE *fp = fopen(filename.c_str(), "r");
  if (fp == NULL)
    return false;
{'fraction_non_alphanumeric': 0.13424947145877378, 'fraction_numerical': 0.008456659619450317, 'mean_word_length': 4.146739130434782, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6844060', 'n_tokens_mistral': 314, 'n_tokens_neox': 300, 'n_words': 110}