<commit_before>package <%= gwt_resource_package %>;

import com.kaboomerang.gwt.rest.client.resource.Resource;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONString;
<%- if properties.values.detect { |n| n == 'Date' || n == 'DateOnly' } -%>
import com.google.gwt.i18n.client.DateTimeFormat;
import java.util.Date;
<%- end -%>
import java.beans.PropertyChangeListener; 
import java.beans.PropertyChangeSupport;

/*
 * Generated Base Class. Do not edit.
 *
 * Place custom code in <%= gwt_resource_name %>.java
 *
 * Each migration will overwrite this file.
 *
 */

public class <%= gwt_resource_name %>Base implements Resource {
    protected PropertyChangeSupport changes = new PropertyChangeSupport(this);
<%- if properties.values.detect { |n| n == 'Date' } -%>
    protected DateTimeFormat dateTimeFormat = DateTimeFormat.getFormat("yyyy/MM/dd HH:mm:ss ZZZZ");
<%- end -%>
<%- if properties.values.detect { |n| n == 'DateOnly' } -%>
    protected DateTimeFormat dateOnlyFormat = DateTimeFormat.getFormat("yyyy/MM/dd");
<%- end -%>
<%- properties.keys.each do |k| -%>
    protected <%= properties[k].sub('Only', '') %> <%= k %>;
<%- end -%>
    
    public <%= gwt_resource_name %>Base() {}
    
    public void populateFromRepresentation(String representation) {
        JSONObject json = (JSONObject) JSONParser.parse(representation);
        
        for (String key : json.keySet()) {
            String key = (String) i.next();
            <commit_msg>Removed extraneous line in base resource template.<commit_after>package <%= gwt_resource_package %>;

import com.kaboomerang.gwt.rest.client.resource.Resource;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONString;
<%- if properties.values.detect { |n| n == 'Date' || n == 'DateOnly' } -%>
import com.google.gwt.i18n.client.DateTimeFormat;
import java.util.Date;
<%- end -%>
import java.beans.PropertyChangeListener; 
import java.beans.PropertyChangeSupport;

/*
 * Generated Base Class. Do not edit.
 *
 * Place custom code in <%= gwt_resource_name %>.java
 *
 * Each migration will overwrite this file.
 *
 */

public class <%= gwt_resource_name %>Base implements Resource {
    protected PropertyChangeSupport changes = new PropertyChangeSupport(this);
<%- if properties.values.detect { |n| n == 'Date' } -%>
    protected DateTimeFormat dateTimeFormat = DateTimeFormat.getFormat("yyyy/MM/dd HH:mm:ss ZZZZ");
<%- end -%>
<%- if properties.values.detect { |n| n == 'DateOnly' } -%>
    protected DateTimeFormat dateOnlyFormat = DateTimeFormat.getFormat("yyyy/MM/dd");
<%- end -%>
<%- properties.keys.each do |k| -%>
    protected <%= properties[k].sub('Only', '') %> <%= k %>;
<%- end -%>
    
    public <%= gwt_resource_name %>Base() {}
    
    public void populateFromRepresentation(String representation) {
        JSONObject json = (JSONObject) JSONParser.parse(representation);
        
        for (String key : json.keySet()) {
            
{'fraction_non_alphanumeric': 0.15414634146341463, 'fraction_numerical': 0.0013008130081300813, 'mean_word_length': 3.8213166144200628, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '2997780', 'n_tokens_mistral': 1007, 'n_tokens_neox': 944, 'n_words': 208}