<commit_before>/*
 * Copyright (c) 2010 Digital Bazaar, Inc. All rights reserved.
 */
#include "monarch/data/TemplateInputStream.h"

#include "monarch/io/FileInputStream.h"
#include "monarch/net/Url.h"
#include "monarch/rt/Exception.h"
#include "monarch/util/StringTools.h"

using namespace std;
using namespace monarch::data;
using namespace monarch::io;
using namespace monarch::net;
using namespace monarch::rt;
using namespace monarch::util;

#define EOL                '\n'
#define START_CONSTRUCT    "{"
#define END_CONSTRUCT      "}"
#define END_CONSTRUCT_CHAR '}'
#define END_LITERAL        "{:end}"
#define START_COMMENT      "*"
#define START_COMMENT_CHAR '*'
#define END_COMMENT        "*}"
#define END_COMMENT_LEN    2
#define START_COMMAND      ":"
#define START_COMMAND_CHAR ':'

#define START_VARIABLE "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
#define START_PIPE     "|"

#define BUFFER_SIZE   20//2048
#define MAX_BUFFER    0xFFFFFFFF<commit_msg>Fixed buffer size.<commit_after>/*
 * Copyright (c) 2010 Digital Bazaar, Inc. All rights reserved.
 */
#include "monarch/data/TemplateInputStream.h"

#include "monarch/io/FileInputStream.h"
#include "monarch/net/Url.h"
#include "monarch/rt/Exception.h"
#include "monarch/util/StringTools.h"

using namespace std;
using namespace monarch::data;
using namespace monarch::io;
using namespace monarch::net;
using namespace monarch::rt;
using namespace monarch::util;

#define EOL                '\n'
#define START_CONSTRUCT    "{"
#define END_CONSTRUCT      "}"
#define END_CONSTRUCT_CHAR '}'
#define END_LITERAL        "{:end}"
#define START_COMMENT      "*"
#define START_COMMENT_CHAR '*'
#define END_COMMENT        "*}"
#define END_COMMENT_LEN    2
#define START_COMMAND      ":"
#define START_COMMAND_CHAR ':'

#define START_VARIABLE "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
#define START_PIPE     "|"

#define BUFFER_SIZE   2048
#define MAX_BUFFER    0xFFFFFFFF
{'fraction_non_alphanumeric': 0.11635058944131214, 'fraction_numerical': 0.011276268580215274, 'mean_word_length': 4.641618497109826, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '2468416', 'n_tokens_mistral': 702, 'n_tokens_neox': 660, 'n_words': 149}