<commit_before><?php
/*
    Dodgson part of the Condorcet PHP Class

    By <NAME> - MIT LICENSE (Please read LICENSE.txt)
    https://github.com/julien-boudry/Condorcet
*/
declare(strict_types=1);

namespace Condorcet\Algo\Methods;

use Condorcet\Algo\Methods\PairwiseStatsBased_Core;
use Condorcet\Algo\MethodInterface;

// DODGSON Tideman is an approximation for Dodgson method | https://www.maa.org/sites/default/files/pdf/cmj_ftp/CMJ/September%202010/3%20Articles/6%2009-229%20Ratliff/Dodgson_CMJ_Final.pdf
class DodgsonTidemanApproximation extends PairwiseStatsBased_Core implements MethodInterface
{
    // Method Name
    public const METHOD_NAME = ['DodgsonTidemanApproximation','Dodgson Tideman Approximation','Dodgson Tideman','DodgsonTideman'];

    protected $_countType = 'sum_defeat_margin';


/////////// COMPUTE ///////////

    //:: DODGSON ALGORITHM. :://

    protected function looking (array $challenge) : int
    {
        return min($challenge);
    }

}<commit_msg>Ranema Dodgson Tideman approximation default name (backward compatible change)<commit_after><?php
/*
    Dodgson part of the Condorcet PHP Class

    By <NAME> - MIT LICENSE (Please read LICENSE.txt)
    https://github.com/julien-boudry/Condorcet
*/
declare(strict_types=1);

namespace Condorcet\Algo\Methods;

use Condorcet\Algo\Methods\PairwiseStatsBased_Core;
use Condorcet\Algo\MethodInterface;

// DODGSON Tideman is an approximation for Dodgson method | https://www.maa.org/sites/default/files/pdf/cmj_ftp/CMJ/September%202010/3%20Articles/6%2009-229%20Ratliff/Dodgson_CMJ_Final.pdf
class DodgsonTidemanApproximation extends PairwiseStatsBased_Core implements MethodInterface
{
    // Method Name
    public const METHOD_NAME = ['Dodgson Tideman Approximation','DodgsonTidemanApproximation','Dodgson Tideman','DodgsonTideman'];

    protected $_countType = 'sum_defeat_margin';


/////////// COMPUTE ///////////

    //:: DODGSON ALGORITHM. :://

    protected function looking (array $challenge) : int
    {
        return min($challenge);
    }

}
{'fraction_non_alphanumeric': 0.12322738386308069, 'fraction_numerical': 0.019559902200488997, 'mean_word_length': 4.027027027027027, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '7479998', 'n_tokens_mistral': 746, 'n_tokens_neox': 681, 'n_words': 130}