<commit_before><?php
declare(strict_types = 1);

namespace Embed\Detectors;

class ProviderName extends Detector
{
    private static array $suffixes;

    public function detect(): string
    {
        $oembed = $this->extractor->getOEmbed();
        $metas = $this->extractor->getMetas();

        return $oembed->str('provider_name')
            ?: $metas->str('og:site_name', 'dcterms.publisher')
            ?: ucfirst($this->fallback());
    }

    private function fallback(): string
    {<commit_msg>A few more ways to get publisher<commit_after><?php
declare(strict_types = 1);

namespace Embed\Detectors;

class ProviderName extends Detector
{
    private static array $suffixes;

    public function detect(): string
    {
        $oembed = $this->extractor->getOEmbed();
        $metas = $this->extractor->getMetas();

        return $oembed->str('provider_name')
            ?: $metas->str(
                'og:site_name', 
                'dcterms.publisher',
                'publisher',
                'article:publisher'
            )
            ?: ucfirst($this->fallback());
    }

    private function fallback(): string
    {
{'fraction_non_alphanumeric': 0.13501742160278746, 'fraction_numerical': 0.0017421602787456446, 'mean_word_length': 2.419642857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '5807062', 'n_tokens_mistral': 358, 'n_tokens_neox': 329, 'n_words': 69}