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

@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= repository.gwt_rpc.rpc_request_builder_name %>
  extends com.google.gwt.user.client.rpc.RpcRequestBuilder
{
  @javax.annotation.Nonnull
  private final String _baseUrl;
  @javax.annotation.Nonnull
  private final org.realityforge.gwt.keycloak.Keycloak _keycloak;

  public <%= repository.gwt_rpc.rpc_request_builder_name %>( @javax.inject.Named( "<%= repository.name %>.BaseURL") @javax.annotation.Nonnull final String baseUrl, @javax.annotation.Nonnull final org.realityforge.gwt.keycloak.Keycloak keycloak )
  {
    _baseUrl = java.util.Objects.requireNonNull( baseUrl );
    _keycloak = java.util.Objects.requireNonNull( keycloak );
  }

  @Override
  protected void doFinish( final com.google.gwt.http.client.RequestBuilder rb )
  {
    super.doFinish( rb );
    rb.setHeader( "Authorization", "Bearer " + _keycloak.getToken() );
    rb.setHeader( MODULE_BASE_HEADER, _baseUrl );
  }
}<commit_msg>Remove unused javax.inject annotation<commit_after>/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.gwt_rpc.qualified_rpc_request_builder_name) %>;

@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= repository.gwt_rpc.rpc_request_builder_name %>
  extends com.google.gwt.user.client.rpc.RpcRequestBuilder
{
  @javax.annotation.Nonnull
  private final String _baseUrl;
  @javax.annotation.Nonnull
  private final org.realityforge.gwt.keycloak.Keycloak _keycloak;

  public <%= repository.gwt_rpc.rpc_request_builder_name %>( @javax.annotation.Nonnull final String baseUrl, @javax.annotation.Nonnull final org.realityforge.gwt.keycloak.Keycloak keycloak )
  {
    _baseUrl = java.util.Objects.requireNonNull( baseUrl );
    _keycloak = java.util.Objects.requireNonNull( keycloak );
  }

  @Override
  protected void doFinish( final com.google.gwt.http.client.RequestBuilder rb )
  {
    super.doFinish( rb );
    rb.setHeader( "Authorization", "Bearer " + _keycloak.getToken() );
    rb.setHeader( MODULE_BASE_HEADER, _baseUrl );
  }
}
{'fraction_non_alphanumeric': 0.12233347845015237, 'fraction_numerical': 0.0, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '1788716', 'n_tokens_mistral': 797, 'n_tokens_neox': 770, 'n_words': 128}