<commit_before>package com.percero.util;

import java.sql.Timestamp;
import java.util.Date;

public class DateUtils {

	public static java.sql.Date utilDateToSqlDate(java.util.Date utilDate) {
		if (utilDate != null) {
			return new java.sql.Date(utilDate.getTime());
		}
		else {
			return null;
		}
	}
	
	public static Date utilDateFromSqlTimestamp(Timestamp timestamp) {
		if (timestamp != null) {
			return new Date(timestamp.getTime());
		}
		return null;
	}

}<commit_msg>New date util function added<commit_after>package com.percero.util;

import java.sql.Timestamp;
import java.util.Date;

public class DateUtils {

	public static java.sql.Date utilDateToSqlDate(java.util.Date utilDate) {
		if (utilDate != null) {
			return new java.sql.Date(utilDate.getTime());
		}
		else {
			return null;
		}
	}
	
	public static Date utilDateFromSqlTimestamp(Timestamp timestamp) {
		if (timestamp != null) {
			return new Date(timestamp.getTime());
		}
		return null;
	}
    
    public static Timestamp sqlTimestampFromUtilDate(java.util.Date utilDate){
        if(utilDate!=null){
            return new Timestamp(utilDate.getTime());
        }
        return null;
    }

}
{'fraction_non_alphanumeric': 0.11158432708688246, 'fraction_numerical': 0.0, 'mean_word_length': 3.484732824427481, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2583', 'n_tokens_mistral': 408, 'n_tokens_neox': 374, 'n_words': 87}