<commit_before>// Copyright (c) 2015 kamyu. All rights reserved.

#include <iostream>
#include <string>

using std::cout;
using std::endl;
using std::string;

// Thread-Safe, Lazy Initilization
template<typename T>
class Singleton {
 public:
    /**
     * @return: The same instance of this class every time
     */
    static T& instance() {
        // C++ 11 thread-safe local-static-initialization.
        static T *val = new T();<commit_msg>Update singleton.cpp<commit_after>// Copyright (c) 2015 kamyu. All rights reserved.

#include <iostream>
#include <string>

using std::cout;
using std::endl;
using std::string;

// Thread-Safe, Lazy Initilization
template<typename T>
class Singleton {
 public:
    static T& instance() {
        // C++ 11 thread-safe local-static-initialization.
        static T *val = new T();
{'fraction_non_alphanumeric': 0.12953995157384987, 'fraction_numerical': 0.014527845036319613, 'mean_word_length': 3.375661375661376, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3783036', 'n_tokens_mistral': 267, 'n_tokens_neox': 251, 'n_words': 85}