<commit_before>// This file was generated by counterfeiter
package originfakes

import (
	"sync"

	"github.com/dpb587/metalink/origin"
)

type FakeOriginFactory struct {
	NewStub        func(string) (origin.Origin, error)
	newMutex       sync.RWMutex
	newArgsForCall []struct {
		arg1 string
	}
	newReturns struct {
		result1 origin.Origin
		result2 error
	}
	invocations      map[string][][]interface{}
	invocationsMutex sync.RWMutex
}

func (fake *FakeOriginFactory) New(arg1 string) (origin.Origin, error) {
	fake.newMutex.Lock()
	fake.newArgsForCall = append(fake.newArgsForCall, struct {
		arg1 string
	}{arg1})
	fake.recordInvocation("New", []interface{}{arg1})
	fake.newMutex.Unlock()
	if fake.NewStub != nil {
		return fake.NewStub(arg1)
	}
	return fake.newReturns.result1, fake.newReturns.result2
}

func (fake *FakeOriginFactory) NewCallCount() int {
	fake.newMutex.RLock()
	defer fake.newMutex.RUnlock()
	return len(fake.newArgsForCall)
}

func (fake *FakeOriginFactory) NewArgsForCall(i int) string {
	fake.newMutex.RLock()
	defer fake.newMutex.RUnlock()
	return fake.newArgsForCall[i].arg1
}

func (fake *FakeOriginFactory) NewReturns(result1 origin.Origin, result2 error) {
	fake.NewStub = nil
	fake.newReturns = struct {
		result1 origin.Origin
		result2 error
	}{result1, result2}
}

func (fake *FakeOriginFactory) Invocations() map[string][][]interface{} {
	fake.invocationsMutex.RLock()
	defer fake.invocationsMutex.RUnlock()
	fake.newMutex.RLock()
	defer fake.newMutex.RUnlock()
	return fake.invocations
}

func (fake *FakeOriginFactory) recordInvocation(key string, args []interface{}) {
	fake.invocationsMutex.Lock()
	defer fake.invocationsMutex.Unlock()
	if fake.invocations == nil {
		fake.invocations = map[string][][]interface{}{}
	}<commit_msg>regenerate fakes<commit_after>// This file was generated by counterfeiter
package originfakes

import (
	"sync"

	"github.com/dpb587/metalink/origin"
)

type FakeOriginFactory struct {
	CreateStub        func(string) (origin.Origin, error)
	createMutex       sync.RWMutex
	createArgsForCall []struct {
		arg1 string
	}
	createReturns struct {
		result1 origin.Origin
		result2 error
	}
	invocations      map[string][][]interface{}
	invocationsMutex sync.RWMutex
}

func (fake *FakeOriginFactory) Create(arg1 string) (origin.Origin, error) {
	fake.createMutex.Lock()
	fake.createArgsForCall = append(fake.createArgsForCall, struct {
		arg1 string
	}{arg1})
	fake.recordInvocation("Create", []interface{}{arg1})
	fake.createMutex.Unlock()
	if fake.CreateStub != nil {
		return fake.CreateStub(arg1)
	}
	return fake.createReturns.result1, fake.createReturns.result2
}

func (fake *FakeOriginFactory) CreateCallCount() int {
	fake.createMutex.RLock()
	defer fake.createMutex.RUnlock()
	return len(fake.createArgsForCall)
}

func (fake *FakeOriginFactory) CreateArgsForCall(i int) string {
	fake.createMutex.RLock()
	defer fake.createMutex.RUnlock()
	return fake.createArgsForCall[i].arg1
}

func (fake *FakeOriginFactory) CreateReturns(result1 origin.Origin, result2 error) {
	fake.CreateStub = nil
	fake.createReturns = struct {
		result1 origin.Origin
		result2 error
	}{result1, result2}
}

func (fake *FakeOriginFactory) Invocations() map[string][][]interface{} {
	fake.invocationsMutex.RLock()
	defer fake.invocationsMutex.RUnlock()
	fake.createMutex.RLock()
	defer fake.createMutex.RUnlock()
	return fake.invocations
}

func (fake *FakeOriginFactory) recordInvocation(key string, args []interface{}) {
	fake.invocationsMutex.Lock()
	defer fake.invocationsMutex.Unlock()
	if fake.invocations == nil {
		fake.invocations = map[string][][]interface{}{}
	}
{'fraction_non_alphanumeric': 0.12030905077262694, 'fraction_numerical': 0.011037527593818985, 'mean_word_length': 5.25, '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': '6707507', 'n_tokens_mistral': 1243, 'n_tokens_neox': 1240, 'n_words': 253}