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

@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "PMD.UnusedPrivateField" } )
@javax.enterprise.context.ApplicationScoped
public final class <%= repository.syncrecord.sync_record_locks_name %>
{
<% repository.syncrecord.sync_methods.collect{|m|m.syncrecord.lock_name}.uniq.each do |lock_name|
-%>
  public static final String <%= Domgen::Naming.uppercase_constantize(lock_name.to_s.gsub('.','_')) %> = "<%= lock_name %>";
<% end %>
<% repository.syncrecord.sync_methods.collect{|m|m.syncrecord.lock_name}.uniq.each do |lock_name|
-%>
  @javax.inject.Named( <%= Domgen::Naming.uppercase_constantize(lock_name.to_s.gsub('.','_')) %> )
  @javax.enterprise.inject.Produces
  private java.util.concurrent.locks.Lock _<%= Domgen::Naming.camelize(lock_name.to_s.gsub('.','')) %> = new java.util.concurrent.locks.ReentrantLock( true );
<% end %>
}
<commit_msg>Ensure locks are application scoped<commit_after>/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.syncrecord.qualified_sync_record_locks_name) %>;

@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "PMD.UnusedPrivateField" } )
@javax.enterprise.context.ApplicationScoped
public final class <%= repository.syncrecord.sync_record_locks_name %>
{
<% repository.syncrecord.sync_methods.collect{|m|m.syncrecord.lock_name}.uniq.each do |lock_name|
-%>
  public static final String <%= Domgen::Naming.uppercase_constantize(lock_name.to_s.gsub('.','_')) %> = "<%= lock_name %>";
<% end %>
<% repository.syncrecord.sync_methods.collect{|m|m.syncrecord.lock_name}.uniq.each do |lock_name|
-%>
  @javax.inject.Named( <%= Domgen::Naming.uppercase_constantize(lock_name.to_s.gsub('.','_')) %> )
  @javax.enterprise.inject.Produces
  @javax.enterprise.context.ApplicationScoped
  private java.util.concurrent.locks.Lock _<%= Domgen::Naming.camelize(lock_name.to_s.gsub('.','')) %> = new java.util.concurrent.locks.ReentrantLock( true );
<% end %>
}

{'fraction_non_alphanumeric': 0.17635843660629172, 'fraction_numerical': 0.0, 'mean_word_length': 6.364912280701755, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '7056936', 'n_tokens_mistral': 774, 'n_tokens_neox': 735, 'n_words': 87}