<commit_before>/**
 *
 */
package com.google.gdt.eclipse.swtbot;

import com.google.gwt.eclipse.testing.GwtRuntimeTestUtilities;

import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;

public class SwtBotProjectCreation {

  /**
   * Create a basic GWT Java project.
   */
  public static void createJavaStandardProject(SWTWorkbenchBot bot, String projectName, String packageName)
      throws Exception {
    // TODO remove this and use the default sdk
    GwtRuntimeTestUtilities.addDefaultRuntime();

    // Given a gwt sdk is setup
    SwtBotSdkActions.setupGwtSdk(bot);

    // And given a project is created
    SwtBotProjectActions.createWebAppProject(bot, projectName, packageName, true, true);

    // And wait for the project to finish setting up
    SwtBotWorkbenchActions.waitForIdle(bot);
  }

  /**
   * Create a GWT project from Maven Archetype.
   *
   * Archetype: https://github.com/branflake2267/Archetypes/tree/master/archetypes/gwt-basic
   */
  public static void createMavenGwtProjectIsCreated1(SWTWorkbenchBot bot, String projectName, String packageName) {
    // And create a maven project using an archetype
    String groupId = projectName;
    String artifactId = projectName;
    String archetypeGroupId = "com.github.branflake2267.archetypes";
    String archetypeArtifactId = "gwt-gpe-test-gwt27-archetype";
    String archetypeVersion = "1.0-SNAPSHOT";
    String archetypeUrl = "https://oss.sonatype.org/content/repositories/snapshots";

    SwtBotProjectActions.createMavenProjectFromArchetype(bot, groupId, artifactId, packageName,
        archetypeGroupId, archetypeArtifactId, archetypeVersion, archetypeUrl);<commit_msg>Revert archetype. Updated archetypes repo. <commit_after>/**
 *
 */
package com.google.gdt.eclipse.swtbot;

import com.google.gwt.eclipse.testing.GwtRuntimeTestUtilities;

import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;

public class SwtBotProjectCreation {

  /**
   * Create a basic GWT Java project.
   */
  public static void createJavaStandardProject(SWTWorkbenchBot bot, String projectName, String packageName)
      throws Exception {
    // TODO remove this and use the default sdk
    GwtRuntimeTestUtilities.addDefaultRuntime();

    // Given a gwt sdk is setup
    SwtBotSdkActions.setupGwtSdk(bot);

    // And given a project is created
    SwtBotProjectActions.createWebAppProject(bot, projectName, packageName, true, true);

    // And wait for the project to finish setting up
    SwtBotWorkbenchActions.waitForIdle(bot);
  }

  /**
   * Create a GWT project from Maven Archetype.
   *
   * Archetype: https://github.com/branflake2267/Archetypes/tree/master/archetypes/gwt-basic
   */
  public static void createMavenGwtProjectIsCreated1(SWTWorkbenchBot bot, String projectName, String packageName) {
    // And create a maven project using an archetype
    String groupId = projectName;
    String artifactId = projectName;
    String archetypeGroupId = "com.github.branflake2267.archetypes";
    String archetypeArtifactId = "gwt-test-gwt27-archetype";
    String archetypeVersion = "1.0-SNAPSHOT";
    String archetypeUrl = "https://oss.sonatype.org/content/repositories/snapshots";

    SwtBotProjectActions.createMavenProjectFromArchetype(bot, groupId, artifactId, packageName,
        archetypeGroupId, archetypeArtifactId, archetypeVersion, archetypeUrl);
{'fraction_non_alphanumeric': 0.08626865671641791, 'fraction_numerical': 0.007761194029850746, 'mean_word_length': 4.179289026275116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '425225', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1027, 'n_words': 236}