<commit_before>package main

import (
	"encoding/json"
	"time"
)

// See https://github.com/heroku/api-doc#apps
type App struct {
	ID     string
	Name   string
	Stack  string
	WebURL string `json:"web_url"`
	GitURL string `json:"git_url"`
	Owner  struct {
		Id    string
		Email string
	}
	RepoSize    *int       `json:"repo_size"`
	SlugSize    *int       `json:"slug_size"`
	CreatedAt   time.Time  `json:"created_at"`
	UpdatedAt   time.Time  `json:"updated_at"`
	ReleasedAt  *time.Time `json:"released_at"`
	Maintenance bool

	BuildpackProvidedDescription *NullString `json:"buildpack_provided_description"`
}

type Release struct {
	Name      string
	Descr     string
	User      string
	Commit    *string
	CreatedAt V2Time `json:"created_at"`
}

// Merely returns *c, or "0000000" if c is nil.
func GitRef(c *string) string {
	if c == nil {
		return "0000000"
	}
	return *c
}

type Resource struct {
	URL   *NullString
	Price struct {
		Unit  string
		Cents int
	}
	TermsOfService    bool   `json:"terms_of_service"`
	GroupDescription  string `json:"group_description"`
	Configured        bool
	State             string
	SSOURL            *NullString `json:"sso_url"`
	Attachable        bool
	Description       string
	ConsumesDynoHours bool
	Selective         bool
	Beta              bool
	Name              string
	Slug              string
}

type Attachment struct {
	ConfigVar string `json:"config_var"`
	App       struct {
		Owner string
		ID    string
		Name  string
	}
	Resource struct {
		Name       string
		Type       string
		ID         string
		Value      string
		SSOURL     *NullString `json:"sso_url"`
		BillingApp struct {
			Name  string
			ID    string
			Owner string
		} `json:"billing_app"`
	}
}

type LogSession struct {
	LogplexURL string `json:"logplex_url"`
	CreatedAt  time.Time
}

type v2 struct {
	v interface{}
}

// Called by APIReq. Causes Heroku to use its "v2" API.
func (v2) Accept() string {
	return "application/json"
}

func (v v2) UnmarshalJSON(p []byte) error {
	return json.Unmarshal(p, v.v)
}

var v2nil = &v2{&struct{}{}}

type V2Time struct {
	time.Time
}

const V2TimeFormat = "2006/01/02 15:04:05 -0700"<commit_msg>fix v2 requests expecting no response body<commit_after>package main

import (
	"encoding/json"
	"time"
)

// See https://github.com/heroku/api-doc#apps
type App struct {
	ID     string
	Name   string
	Stack  string
	WebURL string `json:"web_url"`
	GitURL string `json:"git_url"`
	Owner  struct {
		Id    string
		Email string
	}
	RepoSize    *int       `json:"repo_size"`
	SlugSize    *int       `json:"slug_size"`
	CreatedAt   time.Time  `json:"created_at"`
	UpdatedAt   time.Time  `json:"updated_at"`
	ReleasedAt  *time.Time `json:"released_at"`
	Maintenance bool

	BuildpackProvidedDescription *NullString `json:"buildpack_provided_description"`
}

type Release struct {
	Name      string
	Descr     string
	User      string
	Commit    *string
	CreatedAt V2Time `json:"created_at"`
}

// Merely returns *c, or "0000000" if c is nil.
func GitRef(c *string) string {
	if c == nil {
		return "0000000"
	}
	return *c
}

type Resource struct {
	URL   *NullString
	Price struct {
		Unit  string
		Cents int
	}
	TermsOfService    bool   `json:"terms_of_service"`
	GroupDescription  string `json:"group_description"`
	Configured        bool
	State             string
	SSOURL            *NullString `json:"sso_url"`
	Attachable        bool
	Description       string
	ConsumesDynoHours bool
	Selective         bool
	Beta              bool
	Name              string
	Slug              string
}

type Attachment struct {
	ConfigVar string `json:"config_var"`
	App       struct {
		Owner string
		ID    string
		Name  string
	}
	Resource struct {
		Name       string
		Type       string
		ID         string
		Value      string
		SSOURL     *NullString `json:"sso_url"`
		BillingApp struct {
			Name  string
			ID    string
			Owner string
		} `json:"billing_app"`
	}
}

type LogSession struct {
	LogplexURL string `json:"logplex_url"`
	CreatedAt  time.Time
}

type v2 struct {
	v interface{}
}

// Called by APIReq. Causes Heroku to use its "v2" API.
func (v2) Accept() string {
	return "application/json"
}

func (v v2) UnmarshalJSON(p []byte) error {
	return json.Unmarshal(p, v.v)
}

var v2nil = &v2{new(interface{})}

type V2Time struct {
	time.Time
}

const V2TimeFormat = "2006/01/02 15:04:05 -0700"
{'fraction_non_alphanumeric': 0.09293253786140432, 'fraction_numerical': 0.019045433685176687, 'mean_word_length': 2.793733681462141, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '4363388', 'n_tokens_mistral': 1595, 'n_tokens_neox': 1496, 'n_words': 417}