<commit_before><?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://apps.axelor.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://apps.axelor.com/xml/ns/domain-models http://apps.axelor.com/xml/ns/domain-models/domain-models_0.9.xsd">
  
  <module name="account" package="com.axelor.apps.account.db"/>
  
  <entity name="MoveLine" lang="java">
  
    <many-to-one name="move" ref="Move" title="Move"/>
    <date name="date" title="Input Date"/>
    <date name="dueDate" title="Due Date"/>
    <decimal name="debit" title="Debit"/>
    <decimal name="credit" title="Credit"/>
    <many-to-one name="account" ref="Account" required="true" title="Account"/>
    <one-to-many name="reconcileList1" ref="Reconcile" title="Debit Reconcile list" mappedBy="debitMoveLine" readonly="false"/>
    <one-to-many name="reconcileList2" ref="Reconcile" title="Credit Reconcile List" mappedBy="creditMoveLine" readonly="false"/>
    <decimal name="amountPaid" title="Amount paid/reconciled" default="0.0" readonly="true"/>
    <many-to-one name="partner" ref="com.axelor.apps.base.db.Partner" title="Partner"/>
    <string name="counter" title="Line Nbr." help="This sequence is unique per Move, automatically reset to 1 for a new moveline"/>
    <many-to-one name="invoiceReject" ref="com.axelor.apps.account.db.Invoice" title="Invoice rejected"/>
    <boolean name="exportedDirectDebitOk" title="Exported Direct Debit" default="false"/>
    <many-to-one name="interbankCodeLine" ref="com.axelor.apps.account.db.InterbankCodeLine" title="Reject reason"/>
    <string name="description" title="Description"/>
    <many-to-many name="analyticAccountSet" ref="AnalyticAccount" title="Analytic account"/>
    <integer name="mailSelect" title="Mail status" default="0" selection="move.line.mail.select"/>
    <integer name="reimbursementStateSelect" title="Reimbursement status" default="0" selection="move.line.reimbursement.state.select"/>
    <boolean name="unrecocileMoveOk" title="Unreconciled move line" default="false"/>
    <string name="passageReason" title="Irrecoverable Shift Reason" readonly="true"/>
    <boolean name="usherPassageOk" title="Transfer(ed) to Usher "/>
    <many-to-one name="taxLine" ref="com.axelor.apps.account.db.TaxLine" title="Tax" />
   
    <decimal name="currencyRate" title="Currency Rate"/>
    <decimal name="currencyAmount" title="Amount in Currency"/>
    
    <!-- 	Field not displayed, used during the payment voucher input -->
	<decimal name="maxAmountToReconcile" title="Max Amount to reconcile"/>
	<many-to-one name="paymentScheduleLine" ref="com.axelor.apps.account.db.PaymentScheduleLine" title="Payment Schedule line"/>
	
	<!-- 	Field not displayed, used for direct debit only -->
	<decimal name="amountExportedInDirectDebit" title="Amount exported for direct debit"/>
	
	<!--  Field not displayed, used for account clearance -->
	<many-to-one name="accountClearance" ref="com.axelor.apps.account.db.AccountClearance" title="Account clearance"/>
	
	<integer name="irrecoverableStateSelect" title="Irrecoverable status" default="0" readonly="true" selection="iaccount.account.schedule.irrecoverable.state.select"/>
	<many-to-one name="managementObject" ref="com.axelor.apps.account.db.ManagementObject" title="Irrecoverable shift reason"/>
    
    <string name="name" title="Name" namecolumn="true">
    	<![CDATA[
    	if (move != null){
    		if (counter != null){
    			if (move.getReference() != null){
    				return move.getReference() + "-" + counter;
    			}
    			else return counter;
    		}
    		else return "-";
    	}
		else {
			if (counter != null) return counter;
		 	else return "-";
		 }<commit_msg>Pass String counter to Integer counter<commit_after><?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://apps.axelor.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://apps.axelor.com/xml/ns/domain-models http://apps.axelor.com/xml/ns/domain-models/domain-models_0.9.xsd">
  
  <module name="account" package="com.axelor.apps.account.db"/>
  
  <entity name="MoveLine" lang="java">
  
    <many-to-one name="move" ref="Move" title="Move"/>
    <date name="date" title="Input Date"/>
    <date name="dueDate" title="Due Date"/>
    <decimal name="debit" title="Debit"/>
    <decimal name="credit" title="Credit"/>
    <many-to-one name="account" ref="Account" required="true" title="Account"/>
    <one-to-many name="reconcileList1" ref="Reconcile" title="Debit Reconcile list" mappedBy="debitMoveLine" readonly="false"/>
    <one-to-many name="reconcileList2" ref="Reconcile" title="Credit Reconcile List" mappedBy="creditMoveLine" readonly="false"/>
    <decimal name="amountPaid" title="Amount paid/reconciled" default="0.0" readonly="true"/>
    <many-to-one name="partner" ref="com.axelor.apps.base.db.Partner" title="Partner"/>
    <integer name="counter" title="Line Nbr." help="This sequence is unique per Move, automatically reset to 1 for a new moveline"/>
    <many-to-one name="invoiceReject" ref="com.axelor.apps.account.db.Invoice" title="Invoice rejected"/>
    <boolean name="exportedDirectDebitOk" title="Exported Direct Debit" default="false"/>
    <many-to-one name="interbankCodeLine" ref="com.axelor.apps.account.db.InterbankCodeLine" title="Reject reason"/>
    <string name="description" title="Description"/>
    <many-to-many name="analyticAccountSet" ref="AnalyticAccount" title="Analytic account"/>
    <integer name="reimbursementStateSelect" title="Reimbursement status" default="0" selection="move.line.reimbursement.state.select"/>
    <string name="passageReason" title="Irrecoverable Shift Reason" readonly="true"/>
    <boolean name="usherPassageOk" title="Transfer(ed) to Usher "/>
    <many-to-one name="taxLine" ref="com.axelor.apps.account.db.TaxLine" title="Tax" />
   
    <decimal name="currencyRate" title="Currency Rate"/>
    <decimal name="currencyAmount" title="Amount in Currency"/>
    
    <!-- 	Field not displayed, used during the payment voucher input -->
	<decimal name="maxAmountToReconcile" title="Max Amount to reconcile"/>
	<many-to-one name="paymentScheduleLine" ref="com.axelor.apps.account.db.PaymentScheduleLine" title="Payment Schedule line"/>
	
	<!-- 	Field not displayed, used for direct debit only -->
	<decimal name="amountExportedInDirectDebit" title="Amount exported for direct debit"/>
	
	<!--  Field not displayed, used for account clearance -->
	<many-to-one name="accountClearance" ref="com.axelor.apps.account.db.AccountClearance" title="Account clearance"/>
	
	<integer name="irrecoverableStateSelect" title="Irrecoverable status" default="0" readonly="true" selection="iaccount.account.schedule.irrecoverable.state.select"/>
	<many-to-one name="managementObject" ref="com.axelor.apps.account.db.ManagementObject" title="Irrecoverable shift reason"/>
    
    <string name="name" title="Name" namecolumn="true">
    	<![CDATA[
    	if (move != null && move.getReference() != null){
    		return move.getReference() + "-" + Integer.toString(counter);
    	}
		else {
			return Integer.toString(counter);
		 }
{'fraction_non_alphanumeric': 0.1640418118466899, 'fraction_numerical': 0.004878048780487805, 'mean_word_length': 4.945318972659487, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 2, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, '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': '6946498', 'n_tokens_mistral': 2344, 'n_tokens_neox': 2231, 'n_words': 455}