<commit_before>// fileloc.cc            see license.txt for copyright and terms of use
// code for fileloc.h

#include "fileloc.h"       // this module
#include "flatten.h"       // Flatten

// -------------------- FileLocation -----------------------------
void FileLocation::xfer(Flatten &flat)
{
  flat.xferInt(line);
  flat.xferInt(col);
}


string FileLocation::toString() const
{
  if (validLoc()) {
    return stringc << "line " << line << ", col " << col;<commit_msg>added #include<string.h> because it is needed on Simon's machine<commit_after>// fileloc.cc            see license.txt for copyright and terms of use
// code for fileloc.h

#include "fileloc.h"       // this module
#include "flatten.h"       // Flatten
#include <string.h>

// -------------------- FileLocation -----------------------------
void FileLocation::xfer(Flatten &flat)
{
  flat.xferInt(line);
  flat.xferInt(col);
}


string FileLocation::toString() const
{
  if (validLoc()) {
    return stringc << "line " << line << ", col " << col;
{'fraction_non_alphanumeric': 0.22820763956904996, 'fraction_numerical': 0.0, 'mean_word_length': 2.144615384615385, 'pattern_counts': {'":': 0, '<': 21, '<?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': '5645877', 'n_tokens_mistral': 307, 'n_tokens_neox': 302, 'n_words': 83}