<commit_before>package vcap

import (
	"encoding/json"
	"os"
	"strconv"
	"time"
)

type VCAP struct {
	Application struct {
		ID            string   `json:"application_id"`
		Name          string   `json:"application_name"`
		Version       string   `json:"application_version"`
		InstanceID    string   `json:"instance_id"`
		InstanceIndex int      `json:"instance_index"`
		Host          string   `json:"host"`
		Port          int      `json:"port"`
		Users         string   `json:"users"`
		URIs          []string `json:"application_uris"`
		Limits        struct {
			Memory int `json:"mem"`
			Disk   int `json:"disk"`
			Files  int `json:"fds"`
		} `json:"limits"`
		Started *time.Time `json:"started_at_timestamp"`
		State   *time.Time `json:"state_timestamp"`
	}
	Host string
	Port int<commit_msg>custom unmarshalling of timestamp<commit_after>package vcap

import (
	"encoding/json"
	"os"
	"strconv"
	"time"
)

type VCAP struct {
	Application struct {
		ID            string   `json:"application_id"`
		Name          string   `json:"application_name"`
		Version       string   `json:"application_version"`
		InstanceID    string   `json:"instance_id"`
		InstanceIndex int      `json:"instance_index"`
		Host          string   `json:"host"`
		Port          int      `json:"port"`
		Users         string   `json:"users"`
		URIs          []string `json:"application_uris"`
		Limits        struct {
			Memory int `json:"mem"`
			Disk   int `json:"disk"`
			Files  int `json:"fds"`
		} `json:"limits"`
		Started *Timestamp `json:"started_at_timestamp"`
		State   *Timestamp `json:"state_timestamp"`
	}
	Host string
	Port int
}

type Timestamp time.Time

func (t *Timestamp) String() string {
	return time.Time(*t).String()
}

func (t *Timestamp) UnmarshalJSON(b []byte) error {
	ts, err := strconv.ParseInt(tm, 10, 64)
	if err != nil {
		return err
	}

	*t = Timestamp(time.Unix(ts, 0))
	return nil
{'fraction_non_alphanumeric': 0.12736842105263158, 'fraction_numerical': 0.002631578947368421, 'mean_word_length': 2.9195876288659792, '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': '3411012', 'n_tokens_mistral': 665, 'n_tokens_neox': 615, 'n_words': 155}