<commit_before><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Step_model extends CI_Model {

    /**
     * Step fields
     */

    var $recipe_id = '';
    var $instructions = '';
    var $order = '';
}<commit_msg>Added get_recipe_entries()<commit_after><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Step_model extends CI_Model {

    /**
     * Step fields
     */

    var $recipe_id = '';
    var $instructions = '';
    var $order = '';

    function get_recipe_entries($recipe_id) {
        $query = $this->db->order_by('order', 'ASC')
                ->get_where('steps', array('recipe_id' => $recipe_id));
        $result = $query->result();
        return $result;
    } //end get_recipe_entries
} // end Step_model
{'fraction_non_alphanumeric': 0.16331658291457288, 'fraction_numerical': 0.0, 'mean_word_length': 2.8502415458937196, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '2210315', 'n_tokens_mistral': 254, 'n_tokens_neox': 246, 'n_words': 57}