<commit_before>#include <cstdint>
#include <iostream>

template <typename T> requires std::integral<T> T succ(const T from) {
  return from + static_cast<T>(1);
}

int main(int argc, char *argv[]) {
  constexpr uint16_t value = 1;
  std::cout << succ(value) << "\n";
  std::cout << succ(static_cast<long long>(2)) << "\n";
  int32_t n = 3;
  std::cout << succ(n) << "\n";
  return 0;
}

/*
Local Variables:
mode: c++
coding: utf-8-dos
tab-width: nil
c-file-style: "stroustrup"
Last:
*/<commit_msg>Compare Rust code with C++ code<commit_after>#include <cstdint>
#include <iostream>

template <typename T> requires std::integral<T> T succ(T x) {
  return x + static_cast<T>(1);
}

int main(int argc, char *argv[]) {
  constexpr uint16_t value = 1;
  std::cout << succ(value) << "\n";
  std::cout << succ(static_cast<long long>(2)) << "\n";
  int32_t n = 3;
  std::cout << succ(n) << "\n";
  return 0;
}

/*
Local Variables:
mode: c++
coding: utf-8-dos
tab-width: nil
c-file-style: "stroustrup"
Last:
*/
{'fraction_non_alphanumeric': 0.196, 'fraction_numerical': 0.02, 'mean_word_length': 4.296296296296297, 'pattern_counts': {'":': 0, '<': 39, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5438748', 'n_tokens_mistral': 413, 'n_tokens_neox': 393, 'n_words': 106}