<commit_before>package models

import (
	//        "github.com/coopernurse/gorp"
	//        "github.com/robfig/revel"
	"time"
	"strings"
	"fmt"
)

type QdbEntry struct {
	QuoteId int
	Quote   string
	Created int64
	Rating  int
	Author string
	//Tags string
}

func (q *QdbEntry) Clip() string {
	if len(q.Quote) > 256 {
		return q.Quote[:256] + "\r\n..."
	}

	if lines := strings.Split(q.Quote, "\n"); len(lines) > 20 {
		lines = lines[:20]
		lines = append(lines, "\r\n...")
		return strings.Join(lines, " ")
	}

	return q.Quote
}

func (q *QdbEntry) DisplayTime() string {
	t := time.Unix(0, q.Created)
	return fmt.Sprintf("%v %v", t.Month().String(), t.Day())
}<commit_msg>short month display<commit_after>package models

import (
	//        "github.com/coopernurse/gorp"
	//        "github.com/robfig/revel"
	"time"
	"strings"
	"fmt"
)

type QdbEntry struct {
	QuoteId int
	Quote   string
	Created int64
	Rating  int
	Author string
	//Tags string
}

func (q *QdbEntry) Clip() string {
	if len(q.Quote) > 256 {
		return q.Quote[:256] + "\r\n..."
	}

	if lines := strings.Split(q.Quote, "\n"); len(lines) > 20 {
		lines = lines[:20]
		lines = append(lines, "\r\n...")
		return strings.Join(lines, " ")
	}

	return q.Quote
}

func (q *QdbEntry) DisplayTime() string {
	t := time.Unix(0, q.Created)
	return fmt.Sprintf("%v %v", t.Month().String()[:3], t.Day())
}
{'fraction_non_alphanumeric': 0.184287812041116, 'fraction_numerical': 0.019823788546255508, 'mean_word_length': 3.0206489675516224, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3258233', 'n_tokens_mistral': 586, 'n_tokens_neox': 538, 'n_words': 126}