<commit_before><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * History is a model with access to all the transactions of Jambul Robotics
 * since opening/reopening. A transaction has a unique transactionID, a
 * transactionType: Purchase, Assembly or Shipment,a description, a cost, and a
 * date when the transaction occurred. 
 *
 * @author chach
 */
class Transaction extends CI_Model{
    /*
     * Mock data for the use of assignment 1.
     */
    var $data = array(
        array('transactionID' => 1, 'transactionType' => 'Purchase',
            'description' => 'Purchased box of 10 parts', 'cost' => 100.00,
            'date' => '2/11/2017', 'time' => '7:00pm')
    );
    
    /*
     * Constructor for a History, calls the parent constructor.
     */
    public function __construct() {
        parent::__construct();
    }
    
    /*<commit_msg>Added more sample data to the Transaction  model<commit_after><?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * History is a model with access to all the transactions of Jambul Robotics
 * since opening/reopening. A transaction has a unique transactionID, a
 * transactionType: Purchase, Assembly or Shipment,a description, a cost, and a
 * date when the transaction occurred. 
 *
 * @author chach
 */
class Transaction extends CI_Model{
    /*
     * Mock data for the use of assignment 1.
     */
    var $data = array(
        array('transactionID' => 1, 'transactionType' => 'Purchase',
            'description' => 'Purchased box of 10 parts', 'cost' => 100.00,
            'date' => '2/11/2017', 'time' => '7:00pm'),
        array('transactionID' => 2, 'transactionType' => 'Assembly',
            'description' => 'Assembled A-line household bot', 'cost' => 0.00,
            'date' => '2/12/2017', 'time' => '4:01pm'),
        array('transactionID' => 3, 'transactionType' => 'Assembly',
            'description' => 'Assembled combination household bot',
            'cost' => 0.00, 'date' => '2/12/2017', 'time' => '4:02pm'),
        array('transactionID' => 4, 'transactionType' => 'Shipment',
            'description' => 'Shipped A-line household bot', 'cost' => 50.00,
            'date' => '2/12/2017', 'time' => '4:03pm'),
        array('transactionID' => 5, 'transactionType' => 'Shipment',
            'description' => 'Shipped combination household bot',
            'cost' => 25.00, 'date' => '2/12/2017', 'time' => '4:04pm'),
        array('transactionID' => 6, 'transactionType' => 'Purchase',
            'description' => 'Purchased box of 10 parts', 'cost' => 100.00,
            'date' => '2/12/2017', 'time' => '4:05pm')
    );
    
    /*
     * Constructor for a History, calls the parent constructor.
     */
    public function __construct() {
        parent::__construct();
    }
    
    /*
{'fraction_non_alphanumeric': 0.14396887159533073, 'fraction_numerical': 0.03696498054474708, 'mean_word_length': 2.7079326923076925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '227669', 'n_tokens_mistral': 962, 'n_tokens_neox': 890, 'n_words': 301}