<commit_before>/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.gwt_rpc.qualified_async_callback_adapter_name) %>;

@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "unchecked", "rawtypes" } )
public abstract class <%= repository.gwt_rpc.async_callback_adapter_name %><T,N>
  implements com.google.gwt.user.client.rpc.AsyncCallback<T>
{
  @javax.annotation.Nullable
  private final com.google.gwt.user.client.rpc.AsyncCallback _globalCallback;
  @javax.annotation.Nullable
  private final <%= repository.gwt.qualified_async_callback_name %><N> _callback;
  @javax.annotation.Nullable
  private final <%= repository.gwt.qualified_async_error_callback_name %> _errorCallback;

  public <%= repository.gwt_rpc.async_callback_adapter_name %>( @javax.annotation.Nullable final com.google.gwt.user.client.rpc.AsyncCallback globalCallback, @javax.annotation.Nullable final <%= repository.gwt.qualified_async_callback_name %><N> callback, @javax.annotation.Nullable final <%= repository.gwt.qualified_async_error_callback_name %> errorCallback )
  {
    _globalCallback = globalCallback;
    _callback = callback;
    _errorCallback = errorCallback;
  }

  public void onFailure( final java.lang.Throwable caught )
  {
    if ( null != _errorCallback )
    {
      _errorCallback.onFailure( caught );
    }
    if ( null != _globalCallback )
    {
      _globalCallback.onFailure( caught );
    }
  }

  public void onSuccess( final T result )
  {
    if ( null != _callback )
    {
      _callback.onSuccess( convert( result ) );
    }
    if ( null != _globalCallback )
    {
      _globalCallback.onSuccess( result );
    }
  }

  protected abstract N convert( final T result );
}<commit_msg>Add some accessors<commit_after>/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.gwt_rpc.qualified_async_callback_adapter_name) %>;

@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "unchecked", "rawtypes" } )
public abstract class <%= repository.gwt_rpc.async_callback_adapter_name %><T,N>
  implements com.google.gwt.user.client.rpc.AsyncCallback<T>
{
  @javax.annotation.Nullable
  private final com.google.gwt.user.client.rpc.AsyncCallback _globalCallback;
  @javax.annotation.Nullable
  private final <%= repository.gwt.qualified_async_callback_name %><N> _callback;
  @javax.annotation.Nullable
  private final <%= repository.gwt.qualified_async_error_callback_name %> _errorCallback;

  public <%= repository.gwt_rpc.async_callback_adapter_name %>( @javax.annotation.Nullable final com.google.gwt.user.client.rpc.AsyncCallback globalCallback, @javax.annotation.Nullable final <%= repository.gwt.qualified_async_callback_name %><N> callback, @javax.annotation.Nullable final <%= repository.gwt.qualified_async_error_callback_name %> errorCallback )
  {
    _globalCallback = globalCallback;
    _callback = callback;
    _errorCallback = errorCallback;
  }

  public void onFailure( final java.lang.Throwable caught )
  {
    if ( null != _errorCallback )
    {
      _errorCallback.onFailure( caught );
    }
    if ( null != _globalCallback )
    {
      _globalCallback.onFailure( caught );
    }
  }

  public void onSuccess( final T result )
  {
    if ( null != _callback )
    {
      _callback.onSuccess( convert( result ) );
    }
    if ( null != _globalCallback )
    {
      _globalCallback.onSuccess( result );
    }
  }

  @javax.annotation.Nullable
  public final <%= repository.gwt.qualified_async_callback_name %><N> getCallback()
  {
    return _callback;
  }

  @javax.annotation.Nullable
  public final <%= repository.gwt.qualified_async_error_callback_name %> getErrorCallback()
  {
    return _errorCallback;
  }

  protected abstract N convert( final T result );
}
{'fraction_non_alphanumeric': 0.1127580730545262, 'fraction_numerical': 0.0, 'mean_word_length': 4.212413793103448, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, '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': '6077571', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1135, 'n_words': 213}