<commit_before>package io

import (
	"runtime/debug"
)

type VersionInfo struct {
	GoVersion  string
	VcsVersion string
	BuildTime  string
}

func Version() VersionInfo {
	var vi VersionInfo
	bi, ok := debug.ReadBuildInfo()
	if !ok {
		return vi
	}
	vi.GoVersion = bi.GoVersion
	for _, setting := range bi.Settings {
		if setting.Key == "vcs.revision" {
			vi.VcsVersion = setting.Value
		}
		if setting.Key == "vcs.time" {
			vi.BuildTime = setting.Value
		}
	}
	return vi<commit_msg>perish version<commit_after>package io

import (
	"runtime/debug"
	"time"
)

type VersionInfo struct {
	GoVersion  string
	VcsVersion string
	VcsTime    time.Time
}

func Version() VersionInfo {
	var vi VersionInfo
	bi, ok := debug.ReadBuildInfo()
	if !ok {
		return vi
	}
	vi.GoVersion = bi.GoVersion
	for _, setting := range bi.Settings {
		if setting.Key == "vcs.revision" {
			vi.VcsVersion = setting.Value
		}
		if setting.Key == "vcs.time" {
			vi.VcsTime, _ = time.Parse("2006-01-02T15:04:05Z", setting.Value)
			vi.VcsTime = vi.VcsTime.Local()
		}
	}
	return vi
{'fraction_non_alphanumeric': 0.11954459203036052, 'fraction_numerical': 0.013282732447817837, 'mean_word_length': 3.3775933609958506, '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': '3163436', 'n_tokens_mistral': 424, 'n_tokens_neox': 395, 'n_words': 92}