<commit_before><?php
/**
 * Top
 *
 * @author: <NAME>
 */
namespace Minds\Core\Search\SortingAlgorithms;

class TopV2 implements SortingAlgorithm
{
    /**
     * @return bool
     */
    public function isTimestampConstrain(): bool
    {
        return false; // Old period-based algorithms shouldn't be constrained
    }

    /**
     * @param string $period
     * @return $this
     */
    public function setPeriod($period)
    {
        return $this;
    }

    /**
     * @return array
     */
    public function getQuery()
    {
        return [
            'bool' => [
                'must' => [
                    [
                        'range' => [
                            "votes:up:synced" => [
                                'gte' => strtotime("midnight 90 days ago", time()),
                            ],
                        ],
                    ],<commit_msg>(chore): unrestrict topv2 algoithm to all time to see how performance is<commit_after><?php
/**
 * Top
 *
 * @author: <NAME>
 */
namespace Minds\Core\Search\SortingAlgorithms;

class TopV2 implements SortingAlgorithm
{
    /**
     * @return bool
     */
    public function isTimestampConstrain(): bool
    {
        return false; // Old period-based algorithms shouldn't be constrained
    }

    /**
     * @param string $period
     * @return $this
     */
    public function setPeriod($period)
    {
        return $this;
    }

    /**
     * @return array
     */
    public function getQuery()
    {
        return [
            'bool' => [
                'must' => [
                    // [
                    //     'range' => [
                    //         "votes:up:synced" => [
                    //             'gte' => strtotime("midnight 90 days ago", time()),
                    //         ],
                    //     ],
                    // ],
{'fraction_non_alphanumeric': 0.12593783494105038, 'fraction_numerical': 0.0037513397642015005, 'mean_word_length': 1.1734575087310826, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1199176', 'n_tokens_mistral': 518, 'n_tokens_neox': 490, 'n_words': 111}