<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 jim
 */
class Transactions extends CI_Model {

	// Constructor
	public function __construct()
	{
		parent::__construct();
	}

	public function getProducts(){
		return $this->session['products'];
	}

	public function setProducts($id, $value)
    {
        //get previous saved data
        $data = $this->session->products;

        //add new data
        $data[$id] = isset($data[$id]) ? $data[$id] += $value : $value;

        //save to session
        $this->session->set_userdata('products', $data);
	}

	public function getRecipes()
    {
        return $this->session['recipes'];
	}

	public function setRecipes($id, $value)
    {
        //get previous saved data
        $data = $this->session->recipes;

        //add new data
        $data[$id] = isset($data[$id]) ? $data[$id] += $value : $value;

        //save to session
        $this->session->set_userdata('recipes', $data);
	}
<commit_msg>Fixed conflict<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 jim
 */
class Transactions extends CI_Model {

	// Constructor
	public function __construct()
	{
		parent::__construct();
	}

	public function getProducts(){
		return $this->session->products;
	}

	public function setProducts($id, $value)
    {
        //get previous saved data
        $data = $this->session->products;

        //add new data
        $data[$id] = isset($data[$id]) ? $data[$id] += $value : $value;

        //save to session
        $this->session->set_userdata('products', $data);
	}

	public function getRecipes()
    {
        return $this->session->recipes;
	}

	public function setRecipes($id, $value)
    {
        //get previous saved data
        $data = $this->session->recipes;

        //add new data
        $data[$id] = isset($data[$id]) ? $data[$id] += $value : $value;

        //save to session
        $this->session->set_userdata('recipes', $data);
	}

{'fraction_non_alphanumeric': 0.15104398045313194, 'fraction_numerical': 0.0, 'mean_word_length': 2.679738562091503, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '2252193', 'n_tokens_mistral': 716, 'n_tokens_neox': 687, 'n_words': 199}