<commit_before>package ini

import (
	"errors"
	"fmt"
	"math"
	"reflect"
	"strconv"
	"strings"
	"time"
)

// Time formats supported in parsing time.
var timeFormats = []string{"2006-01-02 15:04", "2006-01-02 15:04:05"}

// SetReflectValue sets the value of reflected value.
func setReflectValue(f *reflect.Value, value string) error {
	// Test for time.Duration and time.Time first.
	// todo: improve this, this really shouldn't be the way to do it.
	if tStr := fmt.Sprintf("%v", f.Type()); tStr == "time.Duration" {
		duration, err := time.ParseDuration(value)
		if err != nil {<commit_msg>Add yyyy-mm-dd to scanning of time<commit_after>package ini

import (
	"errors"
	"fmt"
	"math"
	"reflect"
	"strconv"
	"strings"
	"time"
)

// Time formats supported in parsing time.
var timeFormats = []string{"2006-01-02", "2006-01-02 15:04",
	"2006-01-02 15:04:05"}

// SetReflectValue sets the value of reflected value.
func setReflectValue(f *reflect.Value, value string) error {
	// Test for time.Duration and time.Time first.
	// todo: improve this, this really shouldn't be the way to do it.
	if tStr := fmt.Sprintf("%v", f.Type()); tStr == "time.Duration" {
		duration, err := time.ParseDuration(value)
		if err != nil {
{'fraction_non_alphanumeric': 0.14860426929392448, 'fraction_numerical': 0.04926108374384237, 'mean_word_length': 3.9153225806451615, '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': '6727765', 'n_tokens_mistral': 475, 'n_tokens_neox': 424, 'n_words': 136}