<commit_before>package moka

import (
	"reflect"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"

	"testing"
)

func TestMoka(t *testing.T) {
	RegisterFailHandler(Fail)
	RegisterDoublesFailHandler(Fail)
	RunSpecs(t, "Moka Suite")
}

type fakeInteraction struct {
	callCalled         bool
	receivedMethodName string
	receivedArgs       []interface{}
	returnValues       []interface{}
	matches            bool
	verifyCalled       bool
	verifyError        error
	checkTypeCalled    bool
	receivedType       reflect.Type
	checkTypeError     error
}

func newFakeInteraction(returnValues []interface{}, matches bool, verifyError error, checkTypeError error) *fakeInteraction {
	return &fakeInteraction{returnValues: returnValues, matches: matches, verifyError: verifyError, checkTypeError: checkTypeError}
}

func (i *fakeInteraction) call(methodName string, args []interface{}) ([]interface{}, bool) {
	i.callCalled = true
	i.receivedMethodName = methodName
	i.receivedArgs = args
	return i.returnValues, i.matches
}

func (i *fakeInteraction) verify() error {
	i.verifyCalled = true
	return i.verifyError
}

func (i *fakeInteraction) checkType(t reflect.Type) error {
	i.checkTypeCalled = true
	i.receivedType = t
	return i.checkTypeError
}

func (i *fakeInteraction) String() string {
	return "<the-interaction-string-representation>"
}

type fakeInteractionValidator struct {
	validationError error
}

func newFakeInteractionValidator(validationError error) fakeInteractionValidator {
	return fakeInteractionValidator{validationError: validationError}
}

func (v fakeInteractionValidator) validate(interaction interaction) error {
	return v.validationError
}
<commit_msg>Remove unused call to RegisterDoublesFailHandler in the test suite<commit_after>package moka

import (
	"reflect"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"

	"testing"
)

func TestMoka(t *testing.T) {
	RegisterFailHandler(Fail)
	RunSpecs(t, "Moka Suite")
}

type fakeInteraction struct {
	callCalled         bool
	receivedMethodName string
	receivedArgs       []interface{}
	returnValues       []interface{}
	matches            bool
	verifyCalled       bool
	verifyError        error
	checkTypeCalled    bool
	receivedType       reflect.Type
	checkTypeError     error
}

func newFakeInteraction(returnValues []interface{}, matches bool, verifyError error, checkTypeError error) *fakeInteraction {
	return &fakeInteraction{returnValues: returnValues, matches: matches, verifyError: verifyError, checkTypeError: checkTypeError}
}

func (i *fakeInteraction) call(methodName string, args []interface{}) ([]interface{}, bool) {
	i.callCalled = true
	i.receivedMethodName = methodName
	i.receivedArgs = args
	return i.returnValues, i.matches
}

func (i *fakeInteraction) verify() error {
	i.verifyCalled = true
	return i.verifyError
}

func (i *fakeInteraction) checkType(t reflect.Type) error {
	i.checkTypeCalled = true
	i.receivedType = t
	return i.checkTypeError
}

func (i *fakeInteraction) String() string {
	return "<the-interaction-string-representation>"
}

type fakeInteractionValidator struct {
	validationError error
}

func newFakeInteractionValidator(validationError error) fakeInteractionValidator {
	return fakeInteractionValidator{validationError: validationError}
}

func (v fakeInteractionValidator) validate(interaction interaction) error {
	return v.validationError
}

{'fraction_non_alphanumeric': 0.0882440035534498, 'fraction_numerical': 0.0, 'mean_word_length': 4.978761061946902, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3782193', 'n_tokens_mistral': 1013, 'n_tokens_neox': 1006, 'n_words': 253}