<commit_before><?php

namespace Oro\Bundle\ApiBundle\Form\DataTransformer;

use Symfony\Component\Form\DataTransformerInterface;

final class NullTransformer implements DataTransformerInterface
{
    /** @var NullTransformer|null */
    private static $instance;

    private function __construct()
    {
    }

    /**
     * @return NullTransformer
     */
    public static function getInstance()
    {
        if (null === self::$instance) {
            self::$instance = new self();
        }

        return self::$instance;
    }

    /**
     * {@inheritdoc}
     */
    public function transform($value)
    {
        return $value;<commit_msg>Add comment for private constructor<commit_after><?php

namespace Oro\Bundle\ApiBundle\Form\DataTransformer;

use Symfony\Component\Form\DataTransformerInterface;

final class NullTransformer implements DataTransformerInterface
{
    /** @var NullTransformer|null */
    private static $instance;

    /**
     * A private constructor to prevent create an instance of this class explicitly
     */
    private function __construct()
    {
    }

    /**
     * @return NullTransformer
     */
    public static function getInstance()
    {
        if (null === self::$instance) {
            self::$instance = new self();
        }

        return self::$instance;
    }

    /**
     * {@inheritdoc}
     */
    public function transform($value)
    {
        return $value;
{'fraction_non_alphanumeric': 0.1092436974789916, 'fraction_numerical': 0.0, 'mean_word_length': 2.4853658536585366, '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': '2369805', 'n_tokens_mistral': 382, 'n_tokens_neox': 380, 'n_words': 91}