<commit_before>/**
 * Encode link-grammar for solving with the SAT solver...
 */
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <iterator>
using std::cout;
using std::cerr;
using std::endl;
using std::vector;

extern "C" {
#include "sat-encoder.h"
}
#include "core/Solver.h"
#undef assert

#include "sat-encoder.hpp"
#include "variables.hpp"
#include "word-tag.hpp"
#include "matrix-ut.hpp"
#include "clock.hpp"
#include "fast-sprintf.hpp"

extern "C" {
#include "analyze-linkage.h"      // for compute_link_names()
#include "build-disjuncts.h"      // for build_disjuncts_for_exp()
#include <dict-api.h>             // for print_expression()
#include "linkage.h"
#include "post-process.h"
#include "preparation.h"
#include "score.h"               // for linkage_score()
//#include "utilities.h"         // XXX do we need it?
#include "wordgraph.h"           // for empty_word()
}

// Macro DEBUG_print is used to dump to stdout information while debugging
#ifdef SAT_DEBUG
#define DEBUG_print(x) (cout << x << endl)
#else
#define DEBUG_print(x)
#endif

#define D_SAT 5<commit_msg>sat-encoder.cpp: #include "dict-api.h" instead of <dict-api.h><commit_after>/**
 * Encode link-grammar for solving with the SAT solver...
 */
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <iterator>
using std::cout;
using std::cerr;
using std::endl;
using std::vector;

extern "C" {
#include "sat-encoder.h"
}
#include "core/Solver.h"
#undef assert

#include "sat-encoder.hpp"
#include "variables.hpp"
#include "word-tag.hpp"
#include "matrix-ut.hpp"
#include "clock.hpp"
#include "fast-sprintf.hpp"

extern "C" {
#include "analyze-linkage.h"      // for compute_link_names()
#include "build-disjuncts.h"      // for build_disjuncts_for_exp()
#include "dict-api.h"             // for print_expression()
#include "linkage.h"
#include "post-process.h"
#include "preparation.h"
#include "score.h"               // for linkage_score()
//#include "utilities.h"         // XXX do we need it?
#include "wordgraph.h"           // for empty_word()
}

// Macro DEBUG_print is used to dump to stdout information while debugging
#ifdef SAT_DEBUG
#define DEBUG_print(x) (cout << x << endl)
#else
#define DEBUG_print(x)
#endif

#define D_SAT 5
{'fraction_non_alphanumeric': 0.1544885177453027, 'fraction_numerical': 0.0008350730688935282, 'mean_word_length': 3.9300411522633745, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 21, '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': '6187750', 'n_tokens_mistral': 863, 'n_tokens_neox': 842, 'n_words': 230}