<commit_before><?php


class Grid_AccountsBase extends Grid{
	public $sno=1;
	public $order=null;
	public $opening_balance = 0;
	public $current_row_balance = 0;
	public $skip_var=null;
	function init(){
		parent::init();
		$this->order = $this->addOrder();
	}

	function addSno(){
		$this->addColumn('sno','s_no');
		$this->order->move('s_no','first');
	}

	function format_sno($field){
		if($this->model->loaded())
			$this->current_row[$field] = (($this->sno++) + ($_GET[$this->skip_var]));
		
		// $this->current_row[$field] = $this->skip_var;		
	}

	function init_voucherNo($field){
	}

	function format_voucherNo($field){
		$url = $this->api->url('voucher_print');
		$transaction_id = ($this->model instanceof Model_TransactionRow)? $this->model['transaction_id']: $this->model->id;
		$this->current_row_html[$field] = "<a href='#voucher' class='voucher' onclick='$(this).univ().frameURL(\"Transaction Voucher ". $this->model['voucher_no'] ." uuid:". $this->model->id ."\",\"" .
                    $url->set(array(
                        $field => $this->current_id,
                        'transaction_id'=>$transaction_id,
                        $this->name.'_'.$field => $this->current_id<commit_msg>Changed<commit_after><?php


class Grid_AccountsBase extends Grid{
	public $sno=1;
	public $order=null;
	public $opening_balance = 0;
	public $current_row_balance = 0;
	public $skip_var=null;
	function init(){
		parent::init();
		$this->order = $this->addOrder();
	}

	function addSno(){
		$this->addColumn('sno','s_no');
		$this->order->move('s_no','first');
	}

	function format_sno($field){
		// if($this->model->loaded())
			$this->current_row[$field] = (($this->sno++) + ($_GET[$this->skip_var]));
		
		// $this->current_row[$field] = $this->skip_var;		
	}

	function init_voucherNo($field){
	}

	function format_voucherNo($field){
		$url = $this->api->url('voucher_print');
		$transaction_id = ($this->model instanceof Model_TransactionRow)? $this->model['transaction_id']: $this->model->id;
		$this->current_row_html[$field] = "<a href='#voucher' class='voucher' onclick='$(this).univ().frameURL(\"Transaction Voucher ". $this->model['voucher_no'] ." uuid:". $this->model->id ."\",\"" .
                    $url->set(array(
                        $field => $this->current_id,
                        'transaction_id'=>$transaction_id,
                        $this->name.'_'.$field => $this->current_id
{'fraction_non_alphanumeric': 0.2080066033842344, 'fraction_numerical': 0.0024762690879075525, 'mean_word_length': 3.6615384615384614, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 61, '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': '3275863', 'n_tokens_mistral': 878, 'n_tokens_neox': 831, 'n_words': 121}