<commit_before>package org.ihtsdo.otf.mapping.mojo;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.ihtsdo.otf.mapping.jpa.services.WorkflowServiceJpa;
import org.ihtsdo.otf.mapping.services.WorkflowService;

/**
 * Admin tool to convert old user error objects into feedback objects
 * 
 * Sample execution:
 * 
 * <pre>
 *     <profile>
 *       <id>ImportUserErrors</id>
 *       <build>
 *         <plugins>
 *           <plugin>
 *             <groupId>org.ihtsdo.otf.mapping</groupId>
 *             <artifactId>mapping-admin-mojo</artifactId>
 *             <version>${project.version}</version>
 *             <executions>
 *               <execution>
 *                 <id>import-user-errors</id>
 *                 <phase>package</phase>
 *                 <goals>
 *                   <goal>import-user-errors</goal>
 *                 </goals>
 *               </execution>
 *             </executions>
 *           </plugin>
 *         </plugins>
 *       </build>
 *     </profile> 
 * </pre>
 * 
 * @goal import-user-errors
 * @phase package
 */
public class UserErrorImportMojo extends AbstractMojo {


  /**
   * Executes the plugin.
   * 
   * @throws MojoExecutionException the mojo execution exception
   */
  @Override
  public void execute() throws MojoExecutionException {
    getLog().info("Starting conversion of user errors into feedback");


    try {

      WorkflowService workflowService = new WorkflowServiceJpa();
      workflowService.setTransactionPerOperation(false);
      workflowService.beginTransaction();
      
      workflowService.convertUserErrors();
      
      //workflowService.commit();

      getLog().info("done ...");
      workflowService.close();
      workflowService.close();

    } catch (Exception e) {
      e.printStackTrace();
      throw new MojoExecutionException("Performing map group QA failed.", e);
    }

  }
}<commit_msg>MAP-723: Adding commit after initial testing.<commit_after>package org.ihtsdo.otf.mapping.mojo;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.ihtsdo.otf.mapping.jpa.services.WorkflowServiceJpa;
import org.ihtsdo.otf.mapping.services.WorkflowService;

/**
 * Admin tool to convert old user error objects into feedback objects
 * 
 * Sample execution:
 * 
 * <pre>
 *     <profile>
 *       <id>ImportUserErrors</id>
 *       <build>
 *         <plugins>
 *           <plugin>
 *             <groupId>org.ihtsdo.otf.mapping</groupId>
 *             <artifactId>mapping-admin-mojo</artifactId>
 *             <version>${project.version}</version>
 *             <executions>
 *               <execution>
 *                 <id>import-user-errors</id>
 *                 <phase>package</phase>
 *                 <goals>
 *                   <goal>import-user-errors</goal>
 *                 </goals>
 *               </execution>
 *             </executions>
 *           </plugin>
 *         </plugins>
 *       </build>
 *     </profile> 
 * </pre>
 * 
 * @goal import-user-errors
 * @phase package
 */
public class UserErrorImportMojo extends AbstractMojo {


  /**
   * Executes the plugin.
   * 
   * @throws MojoExecutionException the mojo execution exception
   */
  @Override
  public void execute() throws MojoExecutionException {
    getLog().info("Starting conversion of user errors into feedback");


    try {

      WorkflowService workflowService = new WorkflowServiceJpa();
      workflowService.setTransactionPerOperation(false);
      workflowService.beginTransaction();
      
      workflowService.convertUserErrors();
      
      workflowService.commit();

      getLog().info("done ...");
      workflowService.close();
      workflowService.close();

    } catch (Exception e) {
      e.printStackTrace();
      throw new MojoExecutionException("Performing map group QA failed.", e);
    }

  }
}
{'fraction_non_alphanumeric': 0.12315896394108684, 'fraction_numerical': 0.0007618080243778568, 'mean_word_length': 2.239309210526316, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '3405655', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1097, 'n_words': 207}