<commit_before>#include "compiler/build_tables/parse_conflict_manager.h"
#include "compiler/parse_table.h"
#include "compiler/rules/built_in_symbols.h"
#include <utility>
#include <algorithm>

namespace tree_sitter {
namespace build_tables {

using std::find;
using std::get;
using std::make_tuple;
using std::string;
using std::tuple;
using std::vector;

ParseConflictManager::ParseConflictManager(const SyntaxGrammar &syntax_grammar,
                                 const LexicalGrammar &lexical_grammar) :
  syntax_grammar(syntax_grammar),
  lexical_grammar(lexical_grammar) {}

tuple<bool, ConflictType, string>
ParseConflictManager::resolve(const ParseAction &new_action,
                         const ParseAction &old_action,
                         const rules::Symbol &symbol) const {
  if (new_action.type < old_action.type) {
    auto opposite = resolve(old_action, new_action, symbol);
    return { !get<0>(opposite), get<1>(opposite), get<2>(opposite) };
  }
<commit_msg>Use make_tuple, not initializer list syntax<commit_after>#include "compiler/build_tables/parse_conflict_manager.h"
#include "compiler/parse_table.h"
#include "compiler/rules/built_in_symbols.h"
#include <utility>
#include <algorithm>

namespace tree_sitter {
namespace build_tables {

using std::find;
using std::get;
using std::make_tuple;
using std::string;
using std::tuple;
using std::vector;

ParseConflictManager::ParseConflictManager(const SyntaxGrammar &syntax_grammar,
                                 const LexicalGrammar &lexical_grammar) :
  syntax_grammar(syntax_grammar),
  lexical_grammar(lexical_grammar) {}

tuple<bool, ConflictType, string>
ParseConflictManager::resolve(const ParseAction &new_action,
                         const ParseAction &old_action,
                         const rules::Symbol &symbol) const {
  if (new_action.type < old_action.type) {
    auto opposite = resolve(old_action, new_action, symbol);
    return make_tuple(!get<0>(opposite), get<1>(opposite), get<2>(opposite));
  }

{'fraction_non_alphanumeric': 0.10796019900497512, 'fraction_numerical': 0.0029850746268656717, 'mean_word_length': 4.435135135135135, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5995191', 'n_tokens_mistral': 627, 'n_tokens_neox': 608, 'n_words': 123}