<commit_before>package algolia

import (
	"time"

	"github.com/drinkin/di/env"
)

var (
	TaskWaitTimeout      = 5 * time.Second
	TaskWaitPollInterval = time.Millisecond * 200
)

// Indexable represents objects that can be saved to the search index.
type Indexable interface {
	// AlgoliaId returns a value that should be used for the `objectID`
	AlgoliaId() string

	// AlgoliaBeforeIndex is called for each item before indexing.
	// You should set the model's objectID here if you want to batchUpdate.
	AlgoliaBeforeIndex()
}

// A Client connects to the algolia service.<commit_msg>Increase wait timeout<commit_after>package algolia

import (
	"time"

	"github.com/drinkin/di/env"
)

var (
	TaskWaitTimeout      = 10 * time.Second
	TaskWaitPollInterval = time.Millisecond * 200
)

// Indexable represents objects that can be saved to the search index.
type Indexable interface {
	// AlgoliaId returns a value that should be used for the `objectID`
	AlgoliaId() string

	// AlgoliaBeforeIndex is called for each item before indexing.
	// You should set the model's objectID here if you want to batchUpdate.
	AlgoliaBeforeIndex()
}

// A Client connects to the algolia service.
{'fraction_non_alphanumeric': 0.07476635514018691, 'fraction_numerical': 0.0076465590484282074, 'mean_word_length': 3.8081632653061224, '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': '6135944', 'n_tokens_mistral': 375, 'n_tokens_neox': 354, 'n_words': 135}