<commit_before><?php
/**
 * Highlighter
 *
 * Copyright (C) 2016, Some right reserved.
 *
 * @author Kacper "Kadet" Donat <<EMAIL>>
 *
 * Contact with author:
 * Xmpp: <EMAIL>
 * E-mail: <EMAIL>
 *
 * From Kadet with love.
 */

namespace Kadet\Highlighter\Language;


use Kadet\Highlighter\Matcher\RegexMatcher;
use Kadet\Highlighter\Matcher\WordMatcher;
use Kadet\Highlighter\Parser\Token\Token;

class Java extends CSharp // evil
{
    public function setupRules()
    {
        parent::setupRules();

        $this->rules->rule('keyword')->setMatcher(new WordMatcher([
            'abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized',
            'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'else', 'import',
            'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'try', 'final',
            'interface', 'static', 'class', 'finally', 'strictfp', 'volatile', 'const', 'native', 'super', 'while'
        ]));

        $this->rules->rule('symbol.annotation')->setMatcher(new RegexMatcher('/(@[\w\.]+)\s*(?:(?P<arguments>\((?>[^()]+|(?&arguments))*\))?)/si', [
            1 => Token::NAME
        ]));
    }

    public function getIdentifier()
    {
        return 'java';
    }

    public static function getAliases()
    {
        return [
            'name'      => ['java'],
            'mime'      => ['text/x-java'],
            'extension' => ['*.java']        ];
    }
}<commit_msg>fix whitespace<commit_after><?php
/**
 * Highlighter
 *
 * Copyright (C) 2016, Some right reserved.
 *
 * @author Kacper "Kadet" Donat <<EMAIL>.net>
 *
 * Contact with author:
 * Xmpp: <EMAIL>
 * E-mail: <EMAIL>
 *
 * From Kadet with love.
 */

namespace Kadet\Highlighter\Language;


use Kadet\Highlighter\Matcher\RegexMatcher;
use Kadet\Highlighter\Matcher\WordMatcher;
use Kadet\Highlighter\Parser\Token\Token;

class Java extends CSharp // evil
{
    public function setupRules()
    {
        parent::setupRules();

        $this->rules->rule('keyword')->setMatcher(new WordMatcher([
            'abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized',
            'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'else', 'import',
            'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'try', 'final',
            'interface', 'static', 'class', 'finally', 'strictfp', 'volatile', 'const', 'native', 'super', 'while'
        ]));

        $this->rules->rule('symbol.annotation')->setMatcher(new RegexMatcher('/(@[\w\.]+)\s*(?:(?P<arguments>\((?>[^()]+|(?&arguments))*\))?)/si', [
            1 => Token::NAME
        ]));
    }

    public function getIdentifier()
    {
        return 'java';
    }

    public static function getAliases()
    {
        return [
            'name'      => ['java'],
            'mime'      => ['text/x-java'],
            'extension' => ['*.java']
        ];
    }
}
{'fraction_non_alphanumeric': 0.2122886866059818, 'fraction_numerical': 0.003250975292587776, 'mean_word_length': 2.855889724310777, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 35, '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': '6492223', 'n_tokens_mistral': 1008, 'n_tokens_neox': 966, 'n_words': 211}