<commit_before>package miniassert

import (
  "testing"
  "fmt"
  "reflect"
)

type suiteInterface interface {
  Errorf(t *testing.T, message string, args ...interface{})
  LastErrorMessage() string
  Reset()
}

type suite struct {
  lastError string
}

func (s *suite) Errorf(t *testing.T, message string, args ...interface{}) {
  s.lastError = fmt.Sprintf(message, args...)
  t.Error(s.lastError)
}

func (s *suite) Reset() {
  s.lastError = ""
}

func (s suite) LastErrorMessage() string {
  return s.lastError
}

var testSuite suiteInterface

func init() {
  testSuite = &suite{}
}

func True(t *testing.T, value interface{}) {
  testSuite.Reset()<commit_msg>added file and line after error message<commit_after>package miniassert

import (
  "fmt"
  "runtime"
  "testing"
  "reflect"
)

type suiteInterface interface {
  Errorf(t *testing.T, message string, args ...interface{})
  LastErrorMessage() string
  Reset()
}

type suite struct {
  lastError string
}

func (s *suite) Errorf(t *testing.T, message string, args ...interface{}) {
  s.lastError = fmt.Sprintf(message, args...)
  text := s.lastError
  _, file, line, ok := runtime.Caller(2)
  if ok {
    text = fmt.Sprintf("%s, in %s:%d", text, file, line)
  }
  t.Error(text)
}

func (s *suite) Reset() {
  s.lastError = ""
}

func (s suite) LastErrorMessage() string {
  return s.lastError
}

var testSuite suiteInterface

func init() {
  testSuite = &suite{}
}

func True(t *testing.T, value interface{}) {
  testSuite.Reset()
{'fraction_non_alphanumeric': 0.14755197853789404, 'fraction_numerical': 0.0006706908115358819, 'mean_word_length': 3.797427652733119, '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': '4166683', 'n_tokens_mistral': 511, 'n_tokens_neox': 508, 'n_words': 143}