<commit_before>#include "LouvainSimplifier.h"

#include <Graph.h>
#include <Louvain.h>
#include <iostream>

using namespace std;

LouvainSimplifier::LouvainSimplifier(int _max_levels) : max_levels(_max_levels) {
  keepHashtags(true);
  keepLinks(true);
}

bool
LouvainSimplifier::apply(Graph & target_graph, time_t start_time, time_t end_time, float start_sentiment, float end_sentiment, Graph & source_graph, RawStatistics & stats) {<commit_msg>add languages<commit_after>#include "LouvainSimplifier.h"

#include <Graph.h>
#include <Louvain.h>
#include <iostream>

using namespace std;

LouvainSimplifier::LouvainSimplifier(int _max_levels) : max_levels(_max_levels) {
  keepHashtags(true);
  keepLinks(true);
  keepLang(true);
}

bool
LouvainSimplifier::apply(Graph & target_graph, time_t start_time, time_t end_time, float start_sentiment, float end_sentiment, Graph & source_graph, RawStatistics & stats) {
{'fraction_non_alphanumeric': 0.1087912087912088, 'fraction_numerical': 0.0, 'mean_word_length': 8.01980198019802, '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': '1972434', 'n_tokens_mistral': 333, 'n_tokens_neox': 326, 'n_words': 64}