<commit_before>package entry

import (
	"testing"
)

func TestAlbLogParser(t *testing.T) {
	cases := []struct {
		line, datetime string
	}{
		{
			"http 2017-09-09T00:55:00.228196Z app/albname/12a34bc6d78e9f0 172.16.58.3:57965 192.168.131.118:80 0.020 0.019 0.001 200 200 623 111603 \"GET http://wwww.host.com:80/path/?a=1&b=2&c=3 HTTP/1.1\" \"Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1\" - - arn:aws:elasticloadbalancing:ap-northeast-1:123456789012:targetgroup/albname/abcdefgh12345678 \"Root=1-11111be1-1110300f111111111aa1a1aa\"",
			"2017-09-09T00:55:00.228196Z",
		},
	}

	for _, c := range cases {
		entry, err := Parse(c.line)
		if err != nil {
			t.Fatalf("parse error:%#v\n", err)
		}
		if entry.RequestTime.Format(alblogTimeFormat) != c.datetime {
			t.Fatalf("parse error Time:%v\n", entry.RequestTime)
		}
	}
}
<commit_msg>fix test of entry<commit_after>package entry

import (
	"testing"
)

func TestAlbLogParser(t *testing.T) {
	cases := []struct {
		line, datetime string
	}{
		{
			"http 2017-09-09T00:55:00.228196Z app/albname/12a34bc6d78e9f0 172.16.58.3:57965 192.168.131.118:80 0.020 0.019 0.001 200 200 623 111603 \"GET http://wwww.host.com:80/path/?a=1&b=2&c=3 HTTP/1.1\" \"Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1\" - - arn:aws:elasticloadbalancing:ap-northeast-1:123456789012:targetgroup/albname/abcdefgh12345678 \"Root=1-11111be1-1110300f111111111aa1a1aa\"",
			"2017-09-09T00:55:00.228196Z",
		},
	}

	for _, c := range cases {
		entry, err := ParseALBLog(c.line)
		if err != nil {
			t.Fatalf("parse error:%#v\n", err)
		}
		if entry.RequestTime.Format(logTimeFormat) != c.datetime {
			t.Fatalf("parse error Time:%v\n", entry.RequestTime)
		}
	}
}

{'fraction_non_alphanumeric': 0.16747181964573268, 'fraction_numerical': 0.19108964036500267, 'mean_word_length': 3.9574468085106385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 2, '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': '1957559', 'n_tokens_mistral': 1052, 'n_tokens_neox': 801, 'n_words': 137}