<commit_before><?php

namespace BNETDocs\Controllers;

use \BNETDocs\Libraries\VersionInfo;
use \BNETDocs\Models\Legal as LegalModel;
use \CarlBennett\MVC\Libraries\Common;
use \CarlBennett\MVC\Libraries\Controller;
use \CarlBennett\MVC\Libraries\Router;
use \CarlBennett\MVC\Libraries\View;
use \DateTime;
use \DateTimeZone;

class Legal extends Controller {

  public function &run(Router &$router, View &$view, array &$args) {

    $model                  = new LegalModel();
    $model->license         = file_get_contents("../LICENSE.txt");
    $model->license_version = VersionInfo::$version->bnetdocs[3];
    $model->license_version = explode(' ', $model->license_version);

    $model->license_version[1] = new DateTime(
      $model->license_version[1], new DateTimeZone('Etc/UTC')
    );

    $view->render($model);

    $model->_responseCode = 200;
    $model->_responseHeaders["Content-Type"] = $view->getMimeType();
    $model->_responseTTL = 0;

    return $model;

  }

}<commit_msg>Improve readability of source file<commit_after><?php

namespace BNETDocs\Controllers;

use \BNETDocs\Libraries\VersionInfo;
use \BNETDocs\Models\Legal as LegalModel;
use \CarlBennett\MVC\Libraries\Common;
use \CarlBennett\MVC\Libraries\Controller;
use \CarlBennett\MVC\Libraries\Router;
use \CarlBennett\MVC\Libraries\View;
use \DateTime;
use \DateTimeZone;

class Legal extends Controller {

  public function &run( Router &$router, View &$view, array &$args ) {

    $model                  = new LegalModel();
    $model->license         = file_get_contents( '../LICENSE.txt' );
    $model->license_version = VersionInfo::$version->bnetdocs[3];
    $model->license_version = explode( ' ', $model->license_version );

    $model->license_version[1] = new DateTime(
      $model->license_version[1], new DateTimeZone( 'Etc/UTC' )
    );

    $view->render( $model );

    $model->_responseCode = 200;
    $model->_responseHeaders[ 'Content-Type' ] = $view->getMimeType();
    $model->_responseTTL = 0;

    return $model;

  }

}
{'fraction_non_alphanumeric': 0.1488417939871858, 'fraction_numerical': 0.006899950714637753, 'mean_word_length': 3.776470588235294, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '7627640', 'n_tokens_mistral': 690, 'n_tokens_neox': 661, 'n_words': 125}