<commit_before><?php

# See application/core/MY_Model for this parent model
class Fixtures_model extends Crud_model
{

  public function __construct()
  {
    parent::__construct();
    $this->table = 'fixtures';

    $this->upload_dir = 'teams'; # REVIEW: Hmmm. Is this ok? Since there's no uploading, might as well use this (?)
    $this->full_up_path = base_url() . "uploads/" . $this->upload_dir . "/";
  }

  /**
  * Get all rows from the table
  * @return array
  */
  public function all()
  {
    $this->db->order_by('match_schedule', 'DESC');
    $res = $this->db->get($this->table)->result();
    $this->formatFields($res);

    return $res;
  }

  # Check if there is an ongoing match
  public function checkOngoing()
  {
<commit_msg>Add chat sort descending order<commit_after><?php

# See application/core/MY_Model for this parent model
class Fixtures_model extends Crud_model
{

  public function __construct()
  {
    parent::__construct();
    $this->table = 'fixtures';

    $this->upload_dir = 'teams'; # REVIEW: Hmmm. Is this ok? Since there's no uploading, might as well use this (?)
    $this->full_up_path = base_url() . "uploads/" . $this->upload_dir . "/";

    $this->db->order_by('match_schedule', 'DESC');

  }

  /**
  * Get all rows from the table
  * @return array
  */
  public function all()
  {
    $this->db->order_by('match_schedule', 'DESC');
    $res = $this->db->get($this->table)->result();
    $this->formatFields($res);

    return $res;
  }

  # Check if there is an ongoing match
  public function checkOngoing()
  {

{'fraction_non_alphanumeric': 0.15576923076923077, 'fraction_numerical': 0.0, 'mean_word_length': 3.348189415041783, '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': '2121818', 'n_tokens_mistral': 530, 'n_tokens_neox': 510, 'n_words': 136}