<commit_before>//
// @file main.cc
// @brief
// @author
// @date 2019-10-13 17:41:15
// Copyright 2019
//
#include <stdio.h>
#include <windows.h>

#define show(EXPRESSION) (_show(#EXPRESSION, (EXPRESSION)))
void _show(const char* text, unsigned __int64 p) {
  printf("%s\n", text);
  printf("  0x%I64x\n", p);
  printf("\n");
}

int main(int argc, char* argv[]) {
  (void)argc;
  (void)argv;

  printf("\n");
  printf("++++++++++ Type ++++++++\n");

  // synonym of unsigned __int64.
  ULONGLONG a;
  show(a = 0x0123456789abcdef);
  printf("\n");

  // Union including ULONGLONG.
  ULARGE_INTEGER b;
  show(b.QuadPart = a);
  show(b.LowPart);
  show(b.HighPart);
  printf("\n");

  // FILETIME structure.
  FILETIME c;
  show(c.dwLowDateTime = (DWORD)(a & 0xffffffff));
  show(c.dwHighDateTime = (DWORD)(a >> 32));
  show(((unsigned __int64)c.dwHighDateTime << 32) | c.dwLowDateTime);
  show((unsigned)(c.dwHighDateTime << 32) | c.dwLowDateTime);
  show((c.dwHighDateTime << 32) | c.dwLowDateTime);
  printf("\n");

  printf("++++++++++ Addition ++++++++\n");
  unsigned int p = 0x10000000;
  unsigned int q = 0xffffffff;

  printf("p = 0x%8x\n", p);
  printf("q = 0x%8x\n", q);
  printf("\n");

  show(p + q);
  show((unsigned __int64)p + q);
  show((unsigned __int64)(p + q));
  show((unsigned __int64)p + (unsigned __int64)q);

  printf("********** Multiply ********\n");
  unsigned int r = 0x80000000;
  unsigned int s = 2;
  printf("r = 0x%8x\n", r);
  printf("s = %d\n", s);
  printf("\n");

  show(r * s);
  show((unsigned __int64)r * s);
  show((unsigned __int64)(r * s));
  show((unsigned __int64)r * (unsigned __int64)s);

  return 0;
}
<commit_msg>Header comment fixed<commit_after>//
// @file main.cc
// @brief Test for unsigned __int64 type.
// @author <NAME>
// @date 2019-10-13 17:41:15
// Copyright 2019 <NAME>
//
#include <stdio.h>
#include <windows.h>

#define show(EXPRESSION) (_show(#EXPRESSION, (EXPRESSION)))
void _show(const char* text, unsigned __int64 p) {
  printf("%s\n", text);
  printf("  0x%I64x\n", p);
  printf("\n");
}

int main(int argc, char* argv[]) {
  (void)argc;
  (void)argv;

  printf("\n");
  printf("++++++++++ Type ++++++++\n");

  // synonym of unsigned __int64.
  ULONGLONG a;
  show(a = 0x0123456789abcdef);
  printf("\n");

  // Union including ULONGLONG.
  ULARGE_INTEGER b;
  show(b.QuadPart = a);
  show(b.LowPart);
  show(b.HighPart);
  printf("\n");

  // FILETIME structure.
  FILETIME c;
  show(c.dwLowDateTime = (DWORD)(a & 0xffffffff));
  show(c.dwHighDateTime = (DWORD)(a >> 32));
  show(((unsigned __int64)c.dwHighDateTime << 32) | c.dwLowDateTime);
  show((unsigned)(c.dwHighDateTime << 32) | c.dwLowDateTime);
  show((c.dwHighDateTime << 32) | c.dwLowDateTime);
  printf("\n");

  printf("++++++++++ Addition ++++++++\n");
  unsigned int p = 0x10000000;
  unsigned int q = 0xffffffff;

  printf("p = 0x%8x\n", p);
  printf("q = 0x%8x\n", q);
  printf("\n");

  show(p + q);
  show((unsigned __int64)p + q);
  show((unsigned __int64)(p + q));
  show((unsigned __int64)p + (unsigned __int64)q);

  printf("********** Multiply ********\n");
  unsigned int r = 0x80000000;
  unsigned int s = 2;
  printf("r = 0x%8x\n", r);
  printf("s = %d\n", s);
  printf("\n");

  show(r * s);
  show((unsigned __int64)r * s);
  show((unsigned __int64)(r * s));
  show((unsigned __int64)r * (unsigned __int64)s);

  return 0;
}

{'fraction_non_alphanumeric': 0.22456244437852269, 'fraction_numerical': 0.0539899139721151, 'mean_word_length': 3.810271041369472, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, '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': '6244680', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1308, 'n_words': 297}