<commit_before>package main

import (
  "testing"
)

func TestIsErrorStatus(t *testing.T) {
  // normal url
  url := "http://www.adventar.org/calendars/888"
  result := IsErrorStatus(url)
  if false != result {
    t.Errorf("result is %v", result)
    t.Fail()
  }

  // error url
  url = "http://www.adventar.org/calendars/88"
  result = IsErrorStatus(url)
  if true != result {
    t.Errorf("result is %v", result)
    t.Fail()
  }
}

func TestIsErrorNumber(t *testing.T) {
  // normal
  number := "10"
  result := IsErrorNumber(number)
  if false != result {
    t.Errorf("number is %s %v", number, result)
    t.Fail()
  }

  // illegal
  number = "123ab"
  result = IsErrorNumber(number)
  if true != result {
    t.Errorf("number is %s %v", number, result)
    t.Fail()
  }
}

func TestScraping(t *testing.T) {
  url := "http://www.adventar.org/calendars/888"
  result := Scraping(url)
  title := "Aizu Advent Calendar 2015"
  if result.Title != title {
    t.Errorf("Return title is %s", result.Title)
    t.Fail()
  }
}<commit_msg>change statement check<commit_after>package main

import (
  "testing"
)

func TestIsErrorStatus(t *testing.T) {
  // normal url
  url := "http://www.adventar.org/calendars/888"
  result := IsErrorStatus(url)
  if true == result {
    t.Errorf("result is %v", result)
    t.Fail()
  }

  // error url
  url = "http://www.adventar.org/calendars/88"
  result = IsErrorStatus(url)
  if false == result {
    t.Errorf("result is %v", result)
    t.Fail()
  }
}

func TestIsErrorNumber(t *testing.T) {
  // normal
  number := "10"
  result := IsErrorNumber(number)
  if true == result {
    t.Errorf("number is %s %v", number, result)
    t.Fail()
  }

  // illegal
  number = "123ab"
  result = IsErrorNumber(number)
  if false == result {
    t.Errorf("number is %s %v", number, result)
    t.Fail()
  }
}

func TestScraping(t *testing.T) {
  url := "http://www.adventar.org/calendars/888"
  result := Scraping(url)
  title := "Aizu Advent Calendar 2015"
  if result.Title != title {
    t.Errorf("Return title is %s", result.Title)
    t.Fail()
  }
}
{'fraction_non_alphanumeric': 0.16291327264015332, 'fraction_numerical': 0.01629132726401533, 'mean_word_length': 2.917448405253283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '6833061', 'n_tokens_mistral': 809, 'n_tokens_neox': 777, 'n_words': 180}