<commit_before><?php

namespace Scheb\Tombstone\Analyzer\TestApplication\Tombstone;

use Scheb\Tombstone\Analyzer\Log\LogReaderInterface;
use Scheb\Tombstone\Analyzer\VampireIndex;

class LogProvider implements LogReaderInterface
{
    public function collectVampires(VampireIndex $vampireIndex): void
    {
    }
}<commit_msg>Add a custom provided vampire<commit_after><?php

namespace Scheb\Tombstone\Analyzer\TestApplication\Tombstone;

use Scheb\Tombstone\Analyzer\Log\LogReaderInterface;
use Scheb\Tombstone\Analyzer\VampireIndex;
use Scheb\Tombstone\Tracing\TraceProvider;
use Scheb\Tombstone\Vampire;

class LogProvider implements LogReaderInterface
{
    public function collectVampires(VampireIndex $vampireIndex): void
    {
        $trace = TraceProvider::getTraceHere(0);
        $vampire = Vampire::createFromCall(['customProvided'], $trace, []);
        $vampireIndex->addVampire($vampire);
    }
}
{'fraction_non_alphanumeric': 0.09978070175438597, 'fraction_numerical': 0.0010964912280701754, 'mean_word_length': 5.615942028985507, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '4222882', 'n_tokens_mistral': 297, 'n_tokens_neox': 295, 'n_words': 46}