<commit_before><?php
namespace reconciliation_engine;

require 'identity/identity.php';
require 'weights/static_weight.php';
require 'stages/elastic_original.php';
require 'stages/elastic_name.php';
require 'stages/elastic_seventyfive.php';
require 'stages/original_length.php';
require 'stages/original_length_difference.php';
require 'stages/multi_stage.php';

/**
 * Name Reconciliation Engine (Main Class)
 *
 * This class provides the meat of the reconciliation engine. To run the
 * reconciliation engine, create an instance of this class and call the
 * reconcile method.
 *
 * @author <NAME>
 */
class reconciliation_engine {

    /**
     * @var array Raw test results directly from the tests.  This is going to be per
     * test, then per ID.  Later, they will be parsed into a per ID, per test.
     */
    private $raw_results;

    /**
     * @var array Array of tests to perform on the string.  These will have a listing in
     * the battery of tests.  A user may chose a list of tests, a preset list,
     * or write their own. 
     */ 
    private $tests;

    /**
     * @var array Full test results per id
     */
    private $results;

    /**
     * @var \weights\helpers\weight Instance of the weighting class to produce the final value of a
     * weighted result vector.
     */
    private $weight;

    /**
     * Constructor
     */
    public function __construct() {
        $this->raw_results = array();
        $this->tests = array();
        $this->results = array();
        $this->weight = new weights\static_weight();
        return;
    }

    /**
     * Destructor<commit_msg>Doc fix<commit_after><?php
namespace reconciliation_engine;

require 'identity/identity.php';
require 'weights/static_weight.php';
require 'stages/elastic_original.php';
require 'stages/elastic_name.php';
require 'stages/elastic_seventyfive.php';
require 'stages/original_length.php';
require 'stages/original_length_difference.php';
require 'stages/multi_stage.php';

/**
 * Name Reconciliation Engine (Main Class)
 *
 * This class provides the meat of the reconciliation engine. To run the
 * reconciliation engine, create an instance of this class and call the
 * reconcile method.
 *
 * @author <NAME>
 */
class reconciliation_engine {

    /**
     * @var array Raw test results directly from the tests.  This is going to be per
     * test, then per ID.  Later, they will be parsed into a per ID, per test.
     */
    private $raw_results;

    /**
     * @var array Array of tests to perform on the string.  These will have a listing in
     * the battery of tests.  A user may chose a list of tests, a preset list,
     * or write their own. 
     */ 
    private $tests;

    /**
     * @var array Full test results per id
     */
    private $results;

    /**
     * @var weights\helpers\weight Instance of the weighting class to produce the final value of a
     * weighted result vector.
     */
    private $weight;

    /**
     * Constructor
     */
    public function __construct() {
        $this->raw_results = array();
        $this->tests = array();
        $this->results = array();
        $this->weight = new weights\static_weight();
        return;
    }

    /**
     * Destructor
{'fraction_non_alphanumeric': 0.10269934843313683, 'fraction_numerical': 0.0, 'mean_word_length': 2.7271676300578034, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '4600390', 'n_tokens_mistral': 933, 'n_tokens_neox': 900, 'n_words': 330}