<commit_before><?php
/**
 * This file is part of GitterBot package.
 *
 * @author Serafim <<EMAIL>>
 * @date 11.10.2015 6:07
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace App\Subscribers\Achievements;

use App\Karma;
use App\Gitter\Achieve\AbstractAchieve;

/**
 * Class Karma100Achieve
 * @package App\Achieve
 */
class Karma100Achieve extends AbstractAchieve
{
    /**
     * @throws \LogicException
     */
    public function handle()
    {
        Karma::created(function (Karma $karma) {
            $count = $karma->target->karma;

            if ($count === 50) {
                $this
                    ->forUser($karma->target)
                    ->create(
                        'Сотня!',
                        'Наберите 100 кармы',
                        'https://raw.githubusercontent.com/SerafimArts/GitterBot/php_version/resources/achieve/karma-100.gif'
                    );
            }
        });
    }
}<commit_msg>fix achieve<commit_after><?php
/**
 * This file is part of GitterBot package.
 *
 * @author Serafim <<EMAIL>>
 * @date 11.10.2015 6:07
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace App\Subscribers\Achievements;

use App\Karma;
use App\Gitter\Achieve\AbstractAchieve;

/**
 * Class Karma100Achieve
 * @package App\Achieve
 */
class Karma100Achieve extends AbstractAchieve
{
    /**
     * @throws \LogicException
     */
    public function handle()
    {
        Karma::created(function (Karma $karma) {
            $count = $karma->target->karma;

            if ($count === 100) {
                $this
                    ->forUser($karma->target)
                    ->create(
                        'Сотня!',
                        'Наберите 100 кармы',
                        'https://raw.githubusercontent.com/SerafimArts/GitterBot/php_version/resources/achieve/karma-100.gif'
                    );
            }
        });
    }
}
{'fraction_non_alphanumeric': 0.1171387421987518, 'fraction_numerical': 0.024483917426788286, 'mean_word_length': 1.8162162162162163, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '2394992', 'n_tokens_mistral': 675, 'n_tokens_neox': 620, 'n_words': 137}