<commit_before>(function() {


var parser;

module('Kifu.Kif', {
  setup: function() {
    parser = Kifu.Kif(Kifu());
  }
});

test('parse info', 26, function() {
  var info = Kifu().info;

  // 対局ID
  info.kif = {id: 246};
  var line = '対局ID：246';
  ok(parser.parseByLine(line), line);
  same(parser.kifu.info, info, line+' info');

  // 開始日時
  info.start_time = new Date(2010, 9, 14, 9);
  var line = '開始日時：2010/10/14 9:00';
  ok(parser.parseByLine(line), line);
  same(parser.kifu.info, info, line+' info');

  // 終了日時
  info.end_time = new Date(2010, 9, 15, 18, 1);
  var line = '終了日時：2010/10/15 18:01';
  ok(parser.parseByLine(line), line);
  same(parser.kifu.info, info, line+' info');<commit_msg>fixed a bit<commit_after>(function() {


var parser;

module('Kifu.Kif', {
  setup: function() {
    parser = Kifu.Kif(Kifu());
  }
});

test('parse info', 26, function() {
  var info = Kifu().info;

  // 対局ID
  info.kif = {対局ID: '246'};
  var line = '対局ID：246';
  ok(parser.parseByLine(line), line);
  same(parser.kifu.info, info, line+' info');

  // 開始日時
  info.start_time = new Date(2010, 9, 14, 9);
  var line = '開始日時：2010/10/14 9:00';
  ok(parser.parseByLine(line), line);
  same(parser.kifu.info, info, line+' info');

  // 終了日時
  info.end_time = new Date(2010, 9, 15, 18, 1);
  var line = '終了日時：2010/10/15 18:01';
  ok(parser.parseByLine(line), line);
  same(parser.kifu.info, info, line+' info');
{'fraction_non_alphanumeric': 0.20454545454545456, 'fraction_numerical': 0.06960227272727272, 'mean_word_length': 3.619672131147541, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2708885', 'n_tokens_mistral': 692, 'n_tokens_neox': 623, 'n_words': 127}