<commit_before><?php

/**
 * @link http://www.digitaldeals.cz/
 * @copyright Copyright (c) 2016 Digital Deals s.r.o.
 * @license http://www.digitaldeals.cz/license/
 * @author <NAME> <<EMAIL>>
 */

namespace dlds\giixer\components\helpers;

/**
 * This is simple element helper class defines HTML element manipulators
 */
class GxElementHelper
{

    /**
     * Retrieves formatted element id
     * @param string $id given id
     * @param boolean $withHash
     * @param string $suffix appended key
     */
    public static function getId($id, $withHash = true, $suffix = null)
    {
        if ($suffix) {
            $id = sprintf('%s-%s', $id, $suffix);
        }

        if ($withHash) {
            return sprintf('#%s', $id);
        }

        return $id;
    }

}<commit_msg>= changed GxElementHelper::getId > GxElementHelper::id<commit_after><?php

/**
 * @link http://www.digitaldeals.cz/
 * @copyright Copyright (c) 2016 Digital Deals s.r.o.
 * @license http://www.digitaldeals.cz/license/
 * @author <NAME> <<EMAIL>>
 */

namespace dlds\giixer\components\helpers;

/**
 * This is simple element helper class defines HTML element manipulators
 */
class GxElementHelper
{

    /**
     * Retrieves formatted element id
     * @param string $id given id
     * @param boolean $withHash
     * @param string $suffix appended key
     */
    public static function id($id, $withHash = true, $suffix = null)
    {
        if ($suffix) {
            $id = sprintf('%s-%s', $id, $suffix);
        }

        if ($withHash) {
            return sprintf('#%s', $id);
        }

        return $id;
    }

}
{'fraction_non_alphanumeric': 0.14640198511166252, 'fraction_numerical': 0.004962779156327543, 'mean_word_length': 2.3957894736842107, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2223566', 'n_tokens_mistral': 531, 'n_tokens_neox': 508, 'n_words': 137}