<commit_before><?php

/**
 * This is a "CMS" model for quotes, but with bogus hard-coded data,
 * so that we don't have to worry about any database setup.
 * This would be considered a "mock database" model.
 *
 * @author Gerard
 */
define('REST_SERVER', 'http://backend-bakery.local');      // the REST server host
define('REST_PORT', $_SERVER['SERVER_PORT']);       // the port you are running the server on

class Supplies extends MY_Model {
    // Constructor
     function __construct()
    {
        parent::__construct();
        //*** Explicitly load the REST libraries.
        $this->load->library(['curl', 'format', 'rest']);
    }
    /**
     * Returns all the ports from the xml file
     * @return the ports
     */
    function getPorts()
    {
        $ports = array();
        foreach ($this->xml->ports->children() as $port)
        {
            $ports[(string) $port['code']] = $port->__toString();
        }
        return $ports;
    }
    function rules() {
        $config = [<commit_msg>changed path<commit_after><?php

/**
 * This is a "CMS" model for quotes, but with bogus hard-coded data,
 * so that we don't have to worry about any database setup.
 * This would be considered a "mock database" model.
 *
 * @author Gerard
 */
define('REST_SERVER', 'http://backend.local');      // the REST server host
define('REST_PORT', $_SERVER['SERVER_PORT']);       // the port you are running the server on

class Supplies extends MY_Model {
    // Constructor
     function __construct()
    {
        parent::__construct();
        //*** Explicitly load the REST libraries.
        $this->load->library(['curl', 'format', 'rest']);
    }
    /**
     * Returns all the ports from the xml file
     * @return the ports
     */
    function getPorts()
    {
        $ports = array();
        foreach ($this->xml->ports->children() as $port)
        {
            $ports[(string) $port['code']] = $port->__toString();
        }
        return $ports;
    }
    function rules() {
        $config = [
{'fraction_non_alphanumeric': 0.1442021803766105, 'fraction_numerical': 0.0, 'mean_word_length': 2.3594009983361066, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3689438', 'n_tokens_mistral': 586, 'n_tokens_neox': 570, 'n_words': 187}