<commit_before><?php

namespace App\Controllers;

use \Abimo\Factory;
use App\Models\UrlModel;
use App\Models\BusinessModel;

class FrontController
{
    /**
     * @var string
     */
    private $table;

    /**
     * @var string
     */
    private $action;

    /**
     * @var string
     */
    private $id;

    /**
     * @var Factory
     */
    private $factory;

    /**
     * @var BusinessModel
     */
    private $businessModel;

    /**
     * @var UrlModel
     */
    private $urlModel;

    /**
     * FrontController constructor.
     */
    public function __construct()
    {
        $this->factory = new Factory();
        $this->urlModel = new UrlModel();
        $this->businessModel = new BusinessModel() ;
    }

    /**
     * The main method called from router.
     *
     * @param null $table
     * @param null $action
     * @param null $id
     */
    public function main($table = null, $action = null, $id = null)<commit_msg>Frontcontroller class: relaxing visibility limitations on properties for easier subclassing<commit_after><?php

namespace App\Controllers;

use \Abimo\Factory;
use App\Models\UrlModel;
use App\Models\BusinessModel;

class FrontController
{
    /**
     * @var string
     */
    protected $table;

    /**
     * @var string
     */
    protected $action;

    /**
     * @var string
     */
    protected $id;

    /**
     * @var Factory
     */
    protected $factory;

    /**
     * @var BusinessModel
     */
    protected $businessModel;

    /**
     * @var UrlModel
     */
    protected $urlModel;

    /**
     * FrontController constructor.
     */
    public function __construct()
    {
        $this->factory = new Factory();
        $this->urlModel = new UrlModel();
        $this->businessModel = new BusinessModel() ;
        
    }

    /**
     * The main method called from router.
     *
     * @param null $table
     * @param null $action
     * @param null $id
     */
    public function main($table = null, $action = null, $id = null)
{'fraction_non_alphanumeric': 0.12901631240731587, 'fraction_numerical': 0.0, 'mean_word_length': 1.8709219858156028, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4494023', 'n_tokens_mistral': 610, 'n_tokens_neox': 595, 'n_words': 152}