<commit_before><?php

namespace Bootstrap\Components\AppzioUiKit\Text;

trait uiKitInformationTile
{

    public function uiKitInformationTile($content = '', $params = array(), $style = array())
    {
        $icon = isset($params['icon']) ? $params['icon'] : null;
        $subtitle = isset($params['subtitle']) ? $params['subtitle'] : null;
        $onclick = isset($params['onclick']) ? $params['onclick'] : null;

        return $this->getComponentColumn(array(
            $this->getTileIcon($icon),
            $this->getTileTitle($content),
            $this->getTileSubtitle($subtitle)
        ), array(
            'onclick' => $onclick
        ), array_merge(array(
            'background-color' => '#f6f6f6',
            'text-align' => 'center',
            'padding' => '20 10 20 10',
            'margin' => '10 5 10 5',
            'height' => '170',
            'width' => '170'
        ), $style));
    }

    protected function getTileIcon($icon)
    {
        return $this->getComponentImage($icon, array(), array(
            'width' => 40,
            'margin' => '0 0 20 0'
        ));
    }

    protected function getTileTitle($title)
    {
        return $this->getComponentText($title, array(), array(
            'text-align' => 'center',
            'font-weight' => 'bold',
            'font-size' => 24,
            'margin' => '0 0 10 0'
        ));
    }

    protected function getTileSubtitle($subtitle)
    {
        return $this->getComponentText($subtitle, array(), array(
            'text-align' => 'center',
            'color' => '#969a9d',
            'font-size' => '14'
        ));
    }
}<commit_msg>refactored ui kit information tile<commit_after><?php

namespace Bootstrap\Components\AppzioUiKit\Text;

trait uiKitInformationTile
{

    public function uiKitInformationTile($content = '', $params = array(), $style = array())
    {
        $icon = isset($params['icon']) ? $params['icon'] : null;
        $subtitle = isset($params['subtitle']) ? $params['subtitle'] : null;
        $onclick = isset($params['onclick']) ? $params['onclick'] : null;

        return $this->getComponentColumn(array(
            $this->getTileIcon($icon),
            $this->getTileTitle($content),
            $this->getTileSubtitle($subtitle)
        ), array(
            'onclick' => $onclick
        ), array_merge(array(
            'background-color' => '#f6f6f6',
            'text-align' => 'center',
            'padding' => '20 10 20 10',
            'margin' => '10 5 10 5',
            'height' => '170',
            'width' => '170'
        ), $style));
    }

    protected function getTileIcon($icon)
    {
        return $this->getComponentImage($icon, array(
            'style' => 'uikit_information_title_image'
        ));
    }

    protected function getTileTitle($title)
    {
        return $this->getComponentText($title, array(
            'style' => 'uikit_information_title_title'
        ));
    }

    protected function getTileSubtitle($subtitle)
    {
        return $this->getComponentText($subtitle, array(
            'style' => 'uikit_information_title_subtitle'
        ));
    }
}
{'fraction_non_alphanumeric': 0.16301239275500476, 'fraction_numerical': 0.020972354623450904, 'mean_word_length': 2.1765893037336026, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '7584435', 'n_tokens_mistral': 976, 'n_tokens_neox': 925, 'n_words': 177}