<commit_before><?php

namespace Doctrine\Common\Annotations;

class Annotation
{
    public $value;
    private static $creationStack = array();

    public final function __construct(array $data)
    {
        $reflection = new \ReflectionClass($this);
        $class = $reflection->getName();
        if (isset(self::$creationStack[$class])) {
            trigger_error("Circular annotation reference on '$class'", E_USER_ERROR);
            return;
        }
        self::$creationStack[$class] = true;
        foreach ($data as $key => $value) {
            $this->$key = $value;
        }
        unset(self::$creationStack[$class]);
    }

    private function createName($target)
    {
        if ($target instanceof ReflectionMethod) {
            return $target->getDeclaringClass()->getName().'::'.$target->getName();
        } else if ($target instanceof ReflectionProperty) {
            return $target->getDeclaringClass()->getName().'::$'.$target->getName();
        } else {
            return $target->getName();
        }
    }

    //protected function checkConstraints($target) {}
}<commit_msg>[2.0] Removing old unused code from Addendum<commit_after><?php

namespace Doctrine\Common\Annotations;

class Annotation
{
    public $value;

    public final function __construct(array $data)
    {
        foreach ($data as $key => $value) {
            $this->$key = $value;
        }
    }
}
{'fraction_non_alphanumeric': 0.1425531914893617, 'fraction_numerical': 0.0014184397163120568, 'mean_word_length': 2.572151898734177, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3217436', 'n_tokens_mistral': 387, 'n_tokens_neox': 385, 'n_words': 87}