<commit_before>/* DO NOT EDIT: File is auto-generated */
package <%= service.data_module.ejb.service_package %>;

@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
<% if service.jws.cxf_annotations? && service.tags[:Description] -%>
@org.apache.cxf.annotations.WSDLDocumentationCollection({
  @org.apache.cxf.annotations.WSDLDocumentation("<%= service.tags[:Description] %>")
})
<% end -%>
@javax.ejb.TransactionAttribute( javax.ejb.TransactionAttributeType.NEVER )
@javax.ejb.Startup
@javax.ejb.Singleton
@javax.ejb.ConcurrencyManagement( javax.ejb.ConcurrencyManagementType.BEAN )
@javax.jws.WebService( name= "<%= service.jws.web_service_name %>", serviceName = "<%= service.jws.web_service_name %>", portName = "<%= service.jws.port_name %>" )
public class <%= service.jws.boundary_implementation_name %>
{
  @javax.ejb.EJB
  private <%= service.ejb.qualified_boundary_interface_name %> _service;

<% service.methods.each do |method|
%>  @javax.jws.WebMethod( operationName = "<%= method.name %>" )
  <%= service.jws.cxf_annotations? && method.tags[:Description] ? "@org.apache.cxf.annotations.WSDLDocumentation(\"#{method.tags[:Description]}\")" : "" %>
  public <%= annotated_type(method.return_value, :ejb, :boundary) %> <%= Domgen::Naming.camelize(method.name) %>(<%= method.parameters.collect{|p| "final @javax.jws.WebParam( name = \"#{p.name}\", mode = javax.jws.WebParam.Mode.IN, header = false ) #{annotated_type(p, :ejb, :boundary)} #{p.name}" }.join(', ') %>)<%=
    method.exceptions.empty? ? '' : "\n    throws #{method.exceptions.collect{|e| e.ee.qualified_name}.join(', ')}"
%><%
   return_prefix = method.return_value.return_type != :void ? 'return ' : ''
%>
  {
    <%= return_prefix  %>_service.<%= Domgen::Naming.camelize(method.name) %>(<%= method.parameters.collect{|parameter| parameter.name}.join(', ') %>);
  }

<% end %>}
<commit_msg>Remove @EJB annotations to avoid the interface being published twice. Once as an EJB and once as a WebService<commit_after>/* DO NOT EDIT: File is auto-generated */
package <%= service.data_module.ejb.service_package %>;

@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
<% if service.jws.cxf_annotations? && service.tags[:Description] -%>
@org.apache.cxf.annotations.WSDLDocumentationCollection({
  @org.apache.cxf.annotations.WSDLDocumentation("<%= service.tags[:Description] %>")
})
<% end -%>
@javax.jws.WebService( name= "<%= service.jws.web_service_name %>", serviceName = "<%= service.jws.web_service_name %>", portName = "<%= service.jws.port_name %>" )
public class <%= service.jws.boundary_implementation_name %>
{
  @javax.ejb.EJB
  private <%= service.ejb.qualified_boundary_interface_name %> _service;

<% service.methods.each do |method|
%>  @javax.jws.WebMethod( operationName = "<%= method.name %>" )
  <%= service.jws.cxf_annotations? && method.tags[:Description] ? "@org.apache.cxf.annotations.WSDLDocumentation(\"#{method.tags[:Description]}\")" : "" %>
  public <%= annotated_type(method.return_value, :ejb, :boundary) %> <%= Domgen::Naming.camelize(method.name) %>(<%= method.parameters.collect{|p| "final @javax.jws.WebParam( name = \"#{p.name}\", mode = javax.jws.WebParam.Mode.IN, header = false ) #{annotated_type(p, :ejb, :boundary)} #{p.name}" }.join(', ') %>)<%=
    method.exceptions.empty? ? '' : "\n    throws #{method.exceptions.collect{|e| e.ee.qualified_name}.join(', ')}"
%><%
   return_prefix = method.return_value.return_type != :void ? 'return ' : ''
%>
  {
    <%= return_prefix  %>_service.<%= Domgen::Naming.camelize(method.name) %>(<%= method.parameters.collect{|parameter| parameter.name}.join(', ') %>);
  }

<% end %>}

{'fraction_non_alphanumeric': 0.20555097554273152, 'fraction_numerical': 0.0, 'mean_word_length': 5.476868327402135, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '1084441', 'n_tokens_mistral': 1329, 'n_tokens_neox': 1253, 'n_words': 176}