<commit_before>// ========================================================================== //
// This file is part of DO-CV, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2013 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.
// ========================================================================== //

#include <DO/Sara/Match.hpp>

using namespace std;
using namespace DO::Sara;


int main()
{
  Match m(make_index_match(0, 1000));
  cout << m.index_pair().transpose() << endl;

  return 0;
}<commit_msg>ENH: add one minimal test for the `Match` class.<commit_after>// ========================================================================== //
// This file is part of DO-CV, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2013 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.
// ========================================================================== //

#include <gtest/gtest.h>

#include <DO/Sara/Match.hpp>


using namespace std;
using namespace DO::Sara;


TEST(TestMatch, test_make_index_match)
{
  auto m = make_index_match(0, 1000);
  EXPECT_EQ(m.index_x(), 0);
  EXPECT_EQ(m.index_y(), 1000);
}

int main(int argc, char **argv)
{
  testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}
{'fraction_non_alphanumeric': 0.30475015422578655, 'fraction_numerical': 0.01974090067859346, 'mean_word_length': 4.132911392405063, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 12, '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': '2980247', 'n_tokens_mistral': 516, 'n_tokens_neox': 462, 'n_words': 167}