<commit_before>#pragma once

#include "cpp17.h"

#include <utility>
#include <type_traits>

namespace utils {

template<typename...>
struct type_list {};

template<typename L1, typename L2>
struct Combiner : L1, L2
{
  constexpr Combiner(L1 l1, L2 l2) : L1(std::move(l1)), L2(std::move(l2)) {}

  using L1::operator();
  using L2::operator();
};

// TODO: Replace with C++17 class template deduction
template<typename L1, typename L2>
constexpr auto make_combiner(L1 &&l1, L2 &&l2)
{
  return Combiner<std::decay_t<L1>, std::decay_t<L2>>{std::forward<L1>(l1), std::forward<L2>(l2)};
}

template<class Class, typename... T>
struct DelayedImpl
{
  using type = Class;
};

template<class Class, typename... T>
using Delayed = typename DelayedImpl<Class, T...>::type;

template<typename... T, typename Obj>
decltype(auto) delayed(Obj &&obj, ...)
{
  return std::forward<Obj>(obj);
}

template<typename... Ts>
constexpr auto always_true = true;

template<template<typename...> class T, typename... Us>
constexpr auto pack_size(T<Us...>)
{
  return sizeof...(Us);
}

} // namespace utils

#define CONCAT2(x, y) x ## y
#define CONCAT(x, y) CONCAT2(x, y)<commit_msg>Added utils::remove_cvref_t C++20 type trait.<commit_after>#pragma once

#include "cpp17.h"

#include <utility>
#include <type_traits>

namespace utils {

template<typename...>
struct type_list {};

template<typename L1, typename L2>
struct Combiner : L1, L2
{
  constexpr Combiner(L1 l1, L2 l2) : L1(std::move(l1)), L2(std::move(l2)) {}

  using L1::operator();
  using L2::operator();
};

// TODO: Replace with C++17 class template deduction
template<typename L1, typename L2>
constexpr auto make_combiner(L1 &&l1, L2 &&l2)
{
  return Combiner<std::decay_t<L1>, std::decay_t<L2>>{std::forward<L1>(l1), std::forward<L2>(l2)};
}

template<class Class, typename... T>
struct DelayedImpl
{
  using type = Class;
};

template<class Class, typename... T>
using Delayed = typename DelayedImpl<Class, T...>::type;

template<typename... T, typename Obj>
decltype(auto) delayed(Obj &&obj, ...)
{
  return std::forward<Obj>(obj);
}

template<typename... Ts>
constexpr auto always_true = true;

template<template<typename...> class T, typename... Us>
constexpr auto pack_size(T<Us...>)
{
  return sizeof...(Us);
}

//! C++20 type trait (from cppreference.com)
template<typename T>
struct remove_cvref
{
  using type = std::remove_cv_t<std::remove_reference_t<T>>;
};

template<typename T>
using remove_cvref_t = typename remove_cvref<T>::type;

} // namespace utils

#define CONCAT2(x, y) x ## y
#define CONCAT(x, y) CONCAT2(x, y)
{'fraction_non_alphanumeric': 0.1730023273855702, 'fraction_numerical': 0.026377036462373934, 'mean_word_length': 5.025700934579439, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 46, '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': '1164426', 'n_tokens_mistral': 992, 'n_tokens_neox': 957, 'n_words': 237}