<commit_before><commit_msg>adds new interface.<commit_after><?php

declare(strict_types=1);

namespace App\Repository;

/**
 * Interface for repositories that can bulk-import data.
 *
 * Interface DataImportRepositoryInterface
 * @package App\Repository
 */
interface DataImportRepositoryInterface
{
    /**
     * Imports a given set of records into their corresponding database table(s).
     *
     * @param array $data An associative array containing the data records to import.
     * @param string|null $type The type of data that's being imported.
     * @param string|null $now The current time and date as an ANSI SQL compatible string representation.
     */
    public function import(array $data, string $type = null, string $now = null): void;

    /**
     * Checks whether the targeted database table(s) contain data or not.
     * @return bool
     */
    public function hasData(): bool;
}
{'fraction_non_alphanumeric': 0.08940397350993377, 'fraction_numerical': 0.0011037527593818985, 'mean_word_length': 3.512437810945274, 'pattern_counts': {'":': 0, '<': 4, '<?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': '4765029', 'n_tokens_mistral': 239, 'n_tokens_neox': 231, 'n_words': 94}