<commit_before>package pod

import (
	"strconv"
	"strings"

	"github.com/containerum/chkit/pkg/model"
)

var (
	_ model.TableRenderer = new(Pod)
)

func (pod *Pod) RenderTable() string {
	return model.RenderTable(pod)
}

func (_ *Pod) TableHeaders() []string {
	return []string{"Name", "Host", "Phase", "Restarts", "Age", "Containers"}
}

func (pod *Pod) TableRows() [][]string {
	return [][]string{
		{
			pod.Name,
			pod.Hostname,
			pod.Status.Phase,
			strconv.Itoa(pod.Status.RestartCount),
			model.TimestampFormat(pod.Status.StartedAt),
			strings.Join(pod.Containers, "\n"),
		},
	}
}<commit_msg>add check on zero time<commit_after>package pod

import (
	"strconv"
	"strings"

	"github.com/containerum/chkit/pkg/model"
)

var (
	_ model.TableRenderer = new(Pod)
)

func (pod *Pod) RenderTable() string {
	return model.RenderTable(pod)
}

func (_ *Pod) TableHeaders() []string {
	return []string{"Name", "Host", "Phase", "Restarts", "Age", "Containers"}
}

func (pod *Pod) TableRows() [][]string {
	age := "unknown"
	if pod.Status.StartedAt.Unix() != 0 {
		age = model.TimestampFormat(pod.Status.StartedAt)
	}
	return [][]string{
		{
			pod.Name,
			pod.Hostname,
			pod.Status.Phase,
			strconv.Itoa(pod.Status.RestartCount),
			age,
			strings.Join(pod.Containers, "\n"),
		},
	}
}
{'fraction_non_alphanumeric': 0.1812548412083656, 'fraction_numerical': 0.000774593338497289, 'mean_word_length': 4.188755020080321, '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': '893598', 'n_tokens_mistral': 526, 'n_tokens_neox': 492, 'n_words': 93}