<commit_before>/* DO NOT EDIT: File is auto-generated */
package <%= struct.data_module.gwt.client_data_type_package %>;

<%= description_javadoc_for(struct, "") %>@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= struct.gwt.jso_name %>
  extends com.google.gwt.core.client.JavaScriptObject
  implements <%= struct.gwt.interface_name %>
{
<% struct.fields.select{|f|!f.collection?}.each do |field|
%>
  public native <%= annotated_type(field, :gwt, :boundary) %> <%= getter_prefix(field) %><%= field.name %>() /*-{ return this.<%= field.json.name %>;  }-*/;
  protected native void set<%= field.name %>( <%= annotated_type(field, :gwt, :boundary) %> value ) /*-{ this.<%= field.json.name %> = value;  }-*/;
<% end
%><% struct.fields.select{|f|f.collection?}.each do |field|
%>
  private native com.google.gwt.core.client.JavaScriptObject <%= getter_prefix(field) %><%= field.name %>0() /*-{ return this.<%= field.json.name %>;  }-*/;

  protected native void set<%= field.name %>( final com.google.gwt.core.client.JavaScriptObject value ) /*-{ this.<%= field.json.name %> = value;  }-*/;

  public final <%= annotated_type(field, :gwt, :boundary) %> <%= getter_prefix(field) %><%= field.name %>()
  {
    return org.realityforge.replicant.client.JsoUtil.toList( <%= getter_prefix(field) %><%= field.name %>0() );
  }
<% end
%>}<commit_msg>Add a constructor from a string<commit_after>/* DO NOT EDIT: File is auto-generated */
package <%= struct.data_module.gwt.client_data_type_package %>;

<%= description_javadoc_for(struct, "") %>@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= struct.gwt.jso_name %>
  extends com.google.gwt.core.client.JavaScriptObject
  implements <%= struct.gwt.interface_name %>
{
<% struct.fields.select{|f|!f.collection?}.each do |field|
%>
  public native <%= annotated_type(field, :gwt, :boundary) %> <%= getter_prefix(field) %><%= field.name %>() /*-{ return this.<%= field.json.name %>;  }-*/;
  protected native void set<%= field.name %>( <%= annotated_type(field, :gwt, :boundary) %> value ) /*-{ this.<%= field.json.name %> = value;  }-*/;
<% end
%><% struct.fields.select{|f|f.collection?}.each do |field|
%>
  private native com.google.gwt.core.client.JavaScriptObject <%= getter_prefix(field) %><%= field.name %>0() /*-{ return this.<%= field.json.name %>;  }-*/;

  protected native void set<%= field.name %>( final com.google.gwt.core.client.JavaScriptObject value ) /*-{ this.<%= field.json.name %> = value;  }-*/;

  public final <%= annotated_type(field, :gwt, :boundary) %> <%= getter_prefix(field) %><%= field.name %>()
  {
    return org.realityforge.replicant.client.JsoUtil.toList( <%= getter_prefix(field) %><%= field.name %>0() );
  }
<% end
%>
<% if struct.top_level? %>
  protected static <%= struct.gwt.qualified_jso_name %> as<%= struct.name %>( final String json )
  {
    return com.google.gwt.core.client.JsonUtils.safeEval( json );
  }
<% end
%>
}
{'fraction_non_alphanumeric': 0.21503957783641162, 'fraction_numerical': 0.0013192612137203166, 'mean_word_length': 4.616666666666666, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '3096903', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1022, 'n_words': 187}