<commit_before><?xml version="1.0" encoding="UTF-8"?>
<tns:ServerRuntime
   xmlns:tns="http://eclipse.org/jst/server/generic/ServerTypeDefinition"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://eclipse.org/jst/server/generic/ServerTypeDefinition ServerTypeDefinitionSchema.xsd"
   name="GCloud" version="v94.0.0">

  <property id="cloudSdkDirectory"
      label="Directory where gcloud is installed"
      type="directory"
      context="runtime"
      default="/usr/local/google/google-cloud-sdk" />
  <property id="appEngineSdkDirectory"
      label="Directory that contains App Engine SDK"
      type="directory"
      context="runtime"
      default="/usr/local/google/appengine-java-sdk" />  
   <!-- TODO we may not need this; check -->
  <property id="serverRootDirectory"
      label="Server Root"
      type="directory"
      context="server"
      default="/usr/local/www" />
  <!-- TODO figure out how to point this at the current project -->
  <property id="webappDirectory"
      label="Web app directory (parent of WEB-INF)"
      type="directory"
      context="server"
      default="/usr/local/www/WebContent" />
  <property id="autoDeployDirectory"
      label="Where should the app live?"
      type="directory"
      context="server"
      default="/tmp/autodeploy" />
  <property id="port"
      label="Server Port"
      type="string"
      context="server"
      default="8080" />
  <property id="debugPort"
      label="Debug Port"
      type="string"
      context="server"
      default="9009" />
    
  <port>
    <no>${port}</no>
    <name>Http</name>
    <protocol>http</protocol>
  </port>

  <module>
    <type>jst.web</type>
    <publishDir>${autoDeployDirectory}</publishDir>
    <publisherReference>org.eclipse.jst.server.generic.antpublisher</publisherReference>
  </module>

    <project>
      <classpathReference>appengine</classpathReference>
    </project>
    
  <classpath id="appengine">
    <!-- todo do we need to add every jar from the sdk here? -->
    <archive path="${appEngineSdkDirectory}/lib/shared/servlet-api.jar"/>
    <archive path="${appEngineSdkDirectory}/lib/shared/jsp-api.jar"/>
    <archive path="${appEngineSdkDirectory}/lib/appengine-tools-api.jar"/>
  </classpath>

  <!-- should we use com.google.appengine.tools.KickStart instead? -->
  <start>
    <external>"${appEngineSdkDirectory}/bin/dev_appserver.sh" "--port=${port}" "${webappDirectory}"</external>
   <!-- TODO we may not need this; check -->
    <workingDirectory>${serverRootDirectory}</workingDirectory>
    <debugPort>${debugPort}</debugPort>
  </start>

  <!-- TODO what do we use here? -->
  <stop>
    <external>"ls" "${serverRootDirectory}"</external><commit_msg>Fixes #32 - Switch to gcloud<commit_after><?xml version="1.0" encoding="UTF-8"?>
<tns:ServerRuntime
   xmlns:tns="http://eclipse.org/jst/server/generic/ServerTypeDefinition"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://eclipse.org/jst/server/generic/ServerTypeDefinition ServerTypeDefinitionSchema.xsd"
   name="GCloud" version="v94.0.0">

  <property id="cloudSdkDirectory"
      label="Directory where gcloud is installed"
      type="directory"
      context="runtime"
      default="/usr/local/google/google-cloud-sdk" />
   <!-- TODO we may not need this; check -->
  <property id="serverRootDirectory"
      label="Server Root"
      type="directory"
      context="server"
      default="/usr/local/www" />
  <!-- TODO figure out how to point this at the current project -->
  <property id="webappDirectory"
      label="Web app directory (parent of WEB-INF)"
      type="directory"
      context="server"
      default="/usr/local/www/WebContent" />
  <property id="autoDeployDirectory"
      label="Where should the app live?"
      type="directory"
      context="server"
      default="/tmp/autodeploy" />
  <property id="port"
      label="Server Port"
      type="string"
      context="server"
      default="8080" />
  <property id="debugPort"
      label="Debug Port"
      type="string"
      context="server"
      default="9009" />
    
  <port>
    <no>${port}</no>
    <name>Http</name>
    <protocol>http</protocol>
  </port>

  <module>
    <type>jst.web</type>
    <publishDir>${autoDeployDirectory}</publishDir>
    <publisherReference>org.eclipse.jst.server.generic.antpublisher</publisherReference>
  </module>

    <project>
      <classpathReference>appengine</classpathReference>
    </project>
    
  <start>
    <external>"${cloudSdkDirectory}/bin/dev_appserver.py" --port ${port} "${webappDirectory}"</external>
   <!-- TODO we may not need this; check -->
    <workingDirectory>${serverRootDirectory}</workingDirectory>
    <debugPort>${debugPort}</debugPort>
  </start>

  <!-- TODO what do we use here? -->
  <stop>
    <external>"ls" "${serverRootDirectory}"</external>
{'fraction_non_alphanumeric': 0.15990990990990991, 'fraction_numerical': 0.0085995085995086, 'mean_word_length': 3.4530537830446675, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 2, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, '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': '5565257', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1484, 'n_words': 273}