<commit_before><?php
declare(strict_types=1);
namespace Viserio\Component\Support;

use stdClass;

final class VarExporter
{
    /**
     * Private constructor; non-instantiable.
     *
     * @codeCoverageIgnore
     */
    private function __construct()
    {
    }

    /**
     * Converts the supplied value into a valid PHP representation.
     *
     * @param string|array|null|object $value
     *
     * @return string
     */
    public static function export($value): string
    {
        if ($value === null) {
            return 'null';
        }

        if (is_array($value)) {
            if (empty($value)) {
                return '[]';
            } elseif (count($value) === 1) {<commit_msg>Issue 521 (#526)<commit_after><?php
declare(strict_types=1);
namespace Viserio\Component\Support;

use stdClass;

final class VarExporter
{
    /**
     * Private constructor; non-instantiable.
     *
     * @codeCoverageIgnore
     */
    private function __construct()
    {
    }

    /**
     * Converts the supplied value into a valid PHP representation.
     *
     * @param mixed $value
     *
     * @return string
     */
    public static function export($value): string
    {
        if ($value === null) {
            return 'null';
        }

        if (is_array($value)) {
            if (empty($value)) {
                return '[]';
            } elseif (count($value) === 1) {
{'fraction_non_alphanumeric': 0.1282051282051282, 'fraction_numerical': 0.007122507122507123, 'mean_word_length': 1.920997920997921, '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': '6293799', 'n_tokens_mistral': 420, 'n_tokens_neox': 401, 'n_words': 98}