<commit_before><?php

use Firebase\Exception\InvalidArgumentException;
use Firebase\ServiceAccount;
use Firebase\V2;
use Firebase\V3;
use Psr\Http\Message\UriInterface;

/**
 * Convenience class to comfortably create new Firebase instances.
 */
final class Firebase
{
    /**
     * Creates a new Firebase V3 instance.
     *
     * @param string|ServiceAccount $serviceAccount Path to service account JSON config or a ServiceAccount instance
     * @param string|UriInterface|null $databaseUri Database URI
     *
     * @throws InvalidArgumentException
     *
     * @return V3\Firebase
     */
    public static function fromServiceAccount($serviceAccount, $databaseUri = null): V3\Firebase
    {
        return V3\Firebase::fromServiceAccount($serviceAccount, $databaseUri);
    }

    /**
     * Creates a new Firebase V2 instance.
     *
     * @param string|UriInterface $databaseUri Database URI as a string or an instance of UriInterface
     * @param string $secret
     *
     * @throws InvalidArgumentException
     *
     * @return V2\Firebase
     */
    public static function fromDatabaseUriAndSecret($databaseUri, string $secret): V2\Firebase
    {
        return V2\Firebase::fromDatabaseUriAndSecret($databaseUri, $secret);
    }<commit_msg>Use FQN for @throws tag<commit_after><?php

use Firebase\ServiceAccount;
use Firebase\V2;
use Firebase\V3;
use Psr\Http\Message\UriInterface;

/**
 * Convenience class to comfortably create new Firebase instances.
 */
final class Firebase
{
    /**
     * Creates a new Firebase V3 instance.
     *
     * @param string|ServiceAccount $serviceAccount Path to service account JSON config or a ServiceAccount instance
     * @param string|UriInterface|null $databaseUri Database URI
     *
     * @throws \Firebase\Exception\InvalidArgumentException
     *
     * @return V3\Firebase
     */
    public static function fromServiceAccount($serviceAccount, $databaseUri = null): V3\Firebase
    {
        return V3\Firebase::fromServiceAccount($serviceAccount, $databaseUri);
    }

    /**
     * Creates a new Firebase V2 instance.
     *
     * @param string|UriInterface $databaseUri Database URI as a string or an instance of UriInterface
     * @param string $secret
     *
     * @throws \Firebase\Exception\InvalidArgumentException
     *
     * @return V2\Firebase
     */
    public static function fromDatabaseUriAndSecret($databaseUri, string $secret): V2\Firebase
    {
        return V2\Firebase::fromDatabaseUriAndSecret($databaseUri, $secret);
    }
{'fraction_non_alphanumeric': 0.08806029353431179, 'fraction_numerical': 0.007933359777865925, 'mean_word_length': 3.2964224872231687, 'pattern_counts': {'":': 0, '<': 5, '<?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': '182838', 'n_tokens_mistral': 699, 'n_tokens_neox': 688, 'n_words': 194}