<commit_before>package chreader_test

import (
	"fmt"
	"github.com/Symantec/scotty/lib/httputil"
	"github.com/Symantec/uhura/chreader"
	. "github.com/smartystreets/goconvey/convey"
	"net/url"
	"strconv"
	"testing"
	"time"
)

const (
	kEntriesPerPage = 100
	kAssetId        = "assetId"
	kApiKey         = "apiKey"
)

var (
	kTimeRangeValues = map[string]time.Duration{
		"yesterday":    -24 * time.Hour,
		"last_2_days":  -2 * 24 * time.Hour,
		"last_7_days":  -7 * 24 * time.Hour,
		"last_14_days": -14 * 24 * time.Hour,
		"last_31_days": -31 * 24 * time.Hour,
	}
	kMidnight = time.Date(2017, 6, 20, 0, 0, 0, 0, time.UTC)
	kNow      = time.Date(2017, 6, 26, 12, 0, 0, 0, time.UTC)
)

// fake CH implementation. Returns entries every hour on the hour.
// Returned entries have a time but no data.
type fakeCHType struct {
	// The current time.
	CurrentTime time.Time

	// expected API key
	ApiKey string

	// expected asset Id
	AssetId string
}
<commit_msg>Fix timestamp in reader_test.go<commit_after>package chreader_test

import (
	"fmt"
	"github.com/Symantec/scotty/lib/httputil"
	"github.com/Symantec/uhura/chreader"
	. "github.com/smartystreets/goconvey/convey"
	"net/url"
	"strconv"
	"testing"
	"time"
)

const (
	kEntriesPerPage = 100
	kAssetId        = "assetId"
	kApiKey         = "apiKey"
)

var (
	kTimeRangeValues = map[string]time.Duration{
		"yesterday":    -24 * time.Hour,
		"last_2_days":  -2 * 24 * time.Hour,
		"last_7_days":  -7 * 24 * time.Hour,
		"last_14_days": -14 * 24 * time.Hour,
		"last_31_days": -31 * 24 * time.Hour,
	}
	kMidnight = time.Date(2017, 6, 20, 0, 0, 0, 0, time.UTC)
	kNow      = time.Date(2017, 6, 20, 12, 0, 0, 0, time.UTC)
)

// fake CH implementation. Returns entries every hour on the hour.
// Returned entries have a time but no data.
type fakeCHType struct {
	// The current time.
	CurrentTime time.Time

	// expected API key
	ApiKey string

	// expected asset Id
	AssetId string
}

{'fraction_non_alphanumeric': 0.1383419689119171, 'fraction_numerical': 0.049740932642487044, 'mean_word_length': 3.1349036402569594, 'pattern_counts': {'":': 10, '<': 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': '7113691', 'n_tokens_mistral': 874, 'n_tokens_neox': 783, 'n_words': 191}