<commit_before>package com.inepex.ineForm.client.util;

import java.util.Date;

import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.inepex.ineFrame.shared.util.DateFormatter;
import com.inepex.ineFrame.shared.util.DateProvider;

@Singleton
public class GwtDateFormatter implements DateFormatter {

	DateProvider dateProvider;
	
	@Inject
	public GwtDateFormatter(DateProvider dateProvider) {
		this.dateProvider = dateProvider;
	}

	@Override
	public String format(String pattern, Long dateInUtc) {
		Date date = dateProvider.getDate(dateInUtc);
		return DateTimeFormat.getFormat(pattern).format(date);
	}

	@Override
	public Long parseUiDate(String format, String localDateString) {
		return dateProvider.whatMeansTyped(DateTimeFormat.getFormat(format).parse(localDateString).getTime()).getTime();
	}

}<commit_msg>making field private<commit_after>package com.inepex.ineForm.client.util;

import java.util.Date;

import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.inepex.ineFrame.shared.util.DateFormatter;
import com.inepex.ineFrame.shared.util.DateProvider;

@Singleton
public class GwtDateFormatter implements DateFormatter {

	private final DateProvider dateProvider;
	
	@Inject
	public GwtDateFormatter(DateProvider dateProvider) {
		this.dateProvider = dateProvider;
	}

	@Override
	public String format(String pattern, Long dateInUtc) {
		Date date = dateProvider.getDate(dateInUtc);
		return DateTimeFormat.getFormat(pattern).format(date);
	}

	@Override
	public Long parseUiDate(String format, String localDateString) {
		return dateProvider.whatMeansTyped(DateTimeFormat.getFormat(format).parse(localDateString).getTime()).getTime();
	}

}
{'fraction_non_alphanumeric': 0.09850581073602656, 'fraction_numerical': 0.002213613724405091, 'mean_word_length': 6.319838056680162, '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': '3111769', 'n_tokens_mistral': 571, 'n_tokens_neox': 549, 'n_words': 102}