<commit_before><?php

namespace RpsCompetition\Frontend\Shortcodes\CategoryWinners;

use RpsCompetition\Db\QueryMiscellaneous;
use RpsCompetition\Photo\Helper as PhotoHelper;

/**
 * Class CategoryWinnersModel
 *
 * @author    <NAME>
 * @copyright Copyright (c) 2015, AVH Software
 * @package   RpsCompetition\Frontend\Shortcodes\CategoryWinners
 */
class CategoryWinnersModel
{
    private $photo_helper;
    private $query_miscellaneous;

    /**
     * Constructor
     *
     * @param QueryMiscellaneous $query_miscellaneous
     * @param PhotoHelper        $photo_helper
     */
    public function __construct(QueryMiscellaneous $query_miscellaneous, PhotoHelper $photo_helper)
    {

        $this->query_miscellaneous = $query_miscellaneous;
        $this->photo_helper = $photo_helper;
    }

    /**
     * Collect needed data to render the Category Winners
     *
     * @param string $class
     * @param array  $entries
     * @param string $thumb_size
     *
     * @return array
     */
    public function getAllData($class, $entries, $thumb_size)
    {
        $data = [];
        $data['class'] = $class;
        $data['records'] = $entries;
        $data['thumb_size'] = $thumb_size;
        $data['images'] = [];
        foreach ($data['records'] as $recs) {
            $data['images'][] = $this->photo_helper->dataPhotoGallery($recs, $data['thumb_size']);
        }

        return $data;
    }

    /**
     * Collect needed data to render the Category Winners
     *
     * @param string $class
     * @param array  $entries
     * @param string $thumb_size
     *
     * @return array
     */
    public function getCategoryWinners($class, $entries, $thumb_size)
    {
        $data = [];
        $data['class'] = $class;
        $data['records'] = $entries;
        $data['thumb_size'] = $thumb_size;
        $data['images'] = [];
        foreach ($data['records'] as $recs) {
            $data['images'][] = $this->photo_helper->dataPhotoGallery($recs, $data['thumb_size']);<commit_msg>Remove unused method<commit_after><?php

namespace RpsCompetition\Frontend\Shortcodes\CategoryWinners;

use RpsCompetition\Db\QueryMiscellaneous;
use RpsCompetition\Photo\Helper as PhotoHelper;

/**
 * Class CategoryWinnersModel
 *
 * @author    <NAME>
 * @copyright Copyright (c) 2015, AVH Software
 * @package   RpsCompetition\Frontend\Shortcodes\CategoryWinners
 */
class CategoryWinnersModel
{
    private $photo_helper;
    private $query_miscellaneous;

    /**
     * Constructor
     *
     * @param QueryMiscellaneous $query_miscellaneous
     * @param PhotoHelper        $photo_helper
     */
    public function __construct(QueryMiscellaneous $query_miscellaneous, PhotoHelper $photo_helper)
    {

        $this->query_miscellaneous = $query_miscellaneous;
        $this->photo_helper = $photo_helper;
    }

    /**
     * Collect needed data to render the Category Winners
     *
     * @param string $class
     * @param array  $entries
     * @param string $thumb_size
     *
     * @return array
     */
    public function getCategoryWinners($class, $entries, $thumb_size)
    {
        $data = [];
        $data['class'] = $class;
        $data['records'] = $entries;
        $data['thumb_size'] = $thumb_size;
        $data['images'] = [];
        foreach ($data['records'] as $recs) {
            $data['images'][] = $this->photo_helper->dataPhotoGallery($recs, $data['thumb_size']);
{'fraction_non_alphanumeric': 0.12906057945566285, 'fraction_numerical': 0.002341235001463272, 'mean_word_length': 2.8577878103837473, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2407877', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1013, 'n_words': 208}