<commit_before><!DOCTYPE html>
<!--
 * Copyright IBM Corp. 2014
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 -->
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>CF Manifest Generator</title>

    <!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

    <!-- Custom styles for this template -->
    <link href="http://getbootstrap.com/examples/jumbotron-narrow/jumbotron-narrow.css" rel="stylesheet">
    
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/typeahead.css">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>

    <div class="container">
      <div class="header">
        <ul class="nav nav-pills pull-right">
          <li class="active"><a href="index.html">Home</a></li>
          <li><a href="about.html">About</a></li>
        </ul>
        <h3 class="text-muted">CF Manifest Generator</h3>
      </div>

      <div class="jumbotron">
        <h1>Manifests Are Wicked Awesome!</h1>
        <p class="lead">We all start off with simple cf push commands.  The next thing you know you need a drink after you type it out.  What happened?
        No fear manifests can simplify things again!</p>
      </div>
      
      <h2>Usage</h2>
      <p>Fill out the form below and click the generate button to quickly construct your manifest.  Click the 
      Generate button to see what the manifest file will look like.  Once you are satisfied, click Download
      to save your generated manifest file.  Shazam!  Your cf push commands are
      manageable again.</p>
      <p>If you need help put, focus in any field to open the tooltip.  If you need more help see the
      Cloud Foundry <a href="http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html" target="_blank">documentation</a> on manifests.</p>
      
      <h2>Get Started!</h2>
      <form class="form-horizontal" action="download" method="post">
        <div class="form-group">
      	  <label id="appNameLabel" class="col-sm-2 control-label">App Name</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputAppName" name="appName" placeholder="My App" 
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="The name of your application.  This is the only required attribute.">
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
              <label>
                <input type="checkbox" id="appAsHost" checked
                data-container="body" data-toggle="popover" data-placement="right" data-trigger="hover" 
                data-content="Check this to use the app name as the host name"> Use app name as host name
              </label>
            </div>
          </div>
        </div>
        <div class="form-group" style="display:none;" id="hostFormGroup">
          <label class="col-sm-2 control-label">Host</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputHost" name="host" placeholder="myapp"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specify a host if you do not want to use the app name as the host.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Domain</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputDomain" name="domain" placeholder="myapp.com"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specify a domain if you want to use something other than the default.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Memory</label>
          <div class="col-sm-10">
            <select id="inputMemory" class="form-control" name="memory"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specify the amount of memory your app needs to run.">
              <option value="128">128MB</option>
              <option value="256">256MB</option>
              <option value="512">512MB</option>
              <option value="640">640MB</option>
              <option value="768">768MB</option>
              <option value="896">896MB</option>
              <option value="1024">1024MB</option>
              <option value="1152">1152MB</option>
              <option value="1280">1280MB</option>
              <option value="1408">1408MB</option>
              <option value="1536">1536MB</option>
              <option value="1664">1664MB</option>
              <option value="1792">1792MB</option>
              <option value="1920">1920MB</option>
              <option value="2048">2048MB</option>
            </select>
            <div class="alert alert-danger" id="memoryAlert" style="display: none">
  				<strong>Warning!</strong> This field must only contain numbers.
			</div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Instances</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputInstances" placeholder="1" name="instances"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specifies the number of app instances you want to start upon push.">
            <div class="alert alert-danger" id="instancesAlert" style="display: none">
  			  <strong>Warning!</strong> This field must only contain numbers.
		    </div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Buildpack</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputBuildpack" name="buildpack" placeholder="https://github.com/me/mybuildpack.git"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="The buildpack to use to run the application.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Path</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputPath" placeholder="target/myapp.jar" name="path"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="The path to the application to push.  This is generally not necessary when you run cf push from the directory where an application is located.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Timeout</label>
          <div class="col-sm-10">
            <div class="input-group">
              <input class="form-control" id="inputTimeout" placeholder="60" name="timeout"
              data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
              data-content="Specify the timeout attribute to give your application more time to start.  By default every application is given 60 seconds.  The timeout cannot be more than 180 seconds.">
              <span class="input-group-addon">Seconds</span>
            </div>
            <div class="alert alert-danger" id="timeoutAlert" style="display: none">
  				<strong>Warning!</strong> This field must only contain numbers.
			</div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Command</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputCommand" placeholder="node app.js" name="command"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specify a custom start command for your application.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Services</label>
          <div class="col-sm-10">
              <input class="form-control" id="inputServiceName" placeholder="service-name"
              data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
              data-content="Specify the name of the services you would like bound when the application is pushed.">
              <div class="addBtn">
                <button class="btn btn-success" id="serviceAddBtn" type="button" disabled="disabled">Add</button>
              </div>
          </div>
        </div>
        <div class="form-group" id="servicesFormGroup" style="display: none;">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
          	 <input class="form-control" id="inputServicesFinal" name="services" style="display:none;">
            <div id="services"></div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Environment Variables</label>
          <div class="col-sm-10">
          	<div class="input-group">
          	  <div class="row">
                <div class="col-sm-6">
                  <div class="input-group">
                    <span class="input-group-addon">Name</span>
                    <input class="form-control" id="inputEnvName" placeholder="my-env">
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="input-group">
                    <span class="input-group-addon">Value</span>
                    <input class="form-control" id="inputEnvValue" placeholder="my-env-value"
                    data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
                    data-content="Environment variables you would like pushed with your app.">
                  </div>
                </div>
              </div>
              <div class="row addBtn">
                <div class="col-sm-10">
                  <button class="btn btn-success" id="envAddBtn" disabled="disabled">Add</button>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="form-group" id="envVarFormGroup" style="display: none;">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <input class="form-control" id="inputEnvValFinal" name="envVars" style="display:none;">
            <div id="envVars"></div>
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
              <label>
                <input type="checkbox" id="route" name="route"
                data-container="body" data-toggle="popover" data-placement="right" data-trigger="hover" 
                data-content="Sepcifies if you would like your application to have no route."> No Route
              </label>
            </div>
          </div>
        </div>
        
        <div class="form-group">
        	<div class="row">
          <div class="col-sm-offset-2 col-sm-1">
            <button id="generateBtn" class="btn btn-lg btn-primary" disabled="disabled">Generate</button>
          </div>
          <div class="col-sm-offset-2 col-sm-1">
            <button id="downloadBtn" class="btn btn-lg btn-primary" type="submit" disabled="disabled">Download</button>
          </div>
          </div>
        </div>
      </form>

      <div id="yamlContainer" style="display: none;" class="row">
      	<h1>Generated Manifest</h1>
        <pre id="yaml">
        </pre>
      </div>

      <div class="footer">
      </div>
    </div> <!-- /container -->

    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
   	<!-- Latest compiled and minified JavaScript -->
	<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.10.2/typeahead.bundle.js"></script>
	<script src="js/app.js"></script>
  </body>
</html>
<commit_msg>Changed generate button to preview<commit_after><!DOCTYPE html>
<!--
 * Copyright IBM Corp. 2014
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 -->
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>CF Manifest Generator</title>

    <!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

    <!-- Custom styles for this template -->
    <link href="http://getbootstrap.com/examples/jumbotron-narrow/jumbotron-narrow.css" rel="stylesheet">
    
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/typeahead.css">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>

    <div class="container">
      <div class="header">
        <ul class="nav nav-pills pull-right">
          <li class="active"><a href="index.html">Home</a></li>
          <li><a href="about.html">About</a></li>
        </ul>
        <h3 class="text-muted">CF Manifest Generator</h3>
      </div>

      <div class="jumbotron">
        <h1>Manifests Are Wicked Awesome!</h1>
        <p class="lead">We all start off with simple cf push commands.  The next thing you know you need a drink after you type it out.  What happened?
        No fear manifests can simplify things again!</p>
      </div>
      
      <h2>Usage</h2>
      <p>Fill out the form below and click the generate button to quickly construct your manifest.  Click the 
      Generate button to see what the manifest file will look like.  Once you are satisfied, click Download
      to save your generated manifest file.  Shazam!  Your cf push commands are
      manageable again.</p>
      <p>If you need help put, focus in any field to open the tooltip.  If you need more help see the
      Cloud Foundry <a href="http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html" target="_blank">documentation</a> on manifests.</p>
      
      <h2>Get Started!</h2>
      <form class="form-horizontal" action="download" method="post">
        <div class="form-group">
      	  <label id="appNameLabel" class="col-sm-2 control-label">App Name</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputAppName" name="appName" placeholder="My App" 
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="The name of your application.  This is the only required attribute.">
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
              <label>
                <input type="checkbox" id="appAsHost" checked
                data-container="body" data-toggle="popover" data-placement="right" data-trigger="hover" 
                data-content="Check this to use the app name as the host name"> Use app name as host name
              </label>
            </div>
          </div>
        </div>
        <div class="form-group" style="display:none;" id="hostFormGroup">
          <label class="col-sm-2 control-label">Host</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputHost" name="host" placeholder="myapp"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specify a host if you do not want to use the app name as the host.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Domain</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputDomain" name="domain" placeholder="myapp.com"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specify a domain if you want to use something other than the default.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Memory</label>
          <div class="col-sm-10">
            <select id="inputMemory" class="form-control" name="memory"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specify the amount of memory your app needs to run.">
              <option value="128">128MB</option>
              <option value="256">256MB</option>
              <option value="512">512MB</option>
              <option value="640">640MB</option>
              <option value="768">768MB</option>
              <option value="896">896MB</option>
              <option value="1024">1024MB</option>
              <option value="1152">1152MB</option>
              <option value="1280">1280MB</option>
              <option value="1408">1408MB</option>
              <option value="1536">1536MB</option>
              <option value="1664">1664MB</option>
              <option value="1792">1792MB</option>
              <option value="1920">1920MB</option>
              <option value="2048">2048MB</option>
            </select>
            <div class="alert alert-danger" id="memoryAlert" style="display: none">
  				<strong>Warning!</strong> This field must only contain numbers.
			</div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Instances</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputInstances" placeholder="1" name="instances"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specifies the number of app instances you want to start upon push.">
            <div class="alert alert-danger" id="instancesAlert" style="display: none">
  			  <strong>Warning!</strong> This field must only contain numbers.
		    </div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Buildpack</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputBuildpack" name="buildpack" placeholder="https://github.com/me/mybuildpack.git"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="The buildpack to use to run the application.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Path</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputPath" placeholder="target/myapp.jar" name="path"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="The path to the application to push.  This is generally not necessary when you run cf push from the directory where an application is located.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Timeout</label>
          <div class="col-sm-10">
            <div class="input-group">
              <input class="form-control" id="inputTimeout" placeholder="60" name="timeout"
              data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
              data-content="Specify the timeout attribute to give your application more time to start.  By default every application is given 60 seconds.  The timeout cannot be more than 180 seconds.">
              <span class="input-group-addon">Seconds</span>
            </div>
            <div class="alert alert-danger" id="timeoutAlert" style="display: none">
  				<strong>Warning!</strong> This field must only contain numbers.
			</div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Command</label>
          <div class="col-sm-10">
            <input class="form-control" id="inputCommand" placeholder="node app.js" name="command"
            data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
            data-content="Specify a custom start command for your application.">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Services</label>
          <div class="col-sm-10">
              <input class="form-control" id="inputServiceName" placeholder="service-name"
              data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
              data-content="Specify the name of the services you would like bound when the application is pushed.">
              <div class="addBtn">
                <button class="btn btn-success" id="serviceAddBtn" type="button" disabled="disabled">Add</button>
              </div>
          </div>
        </div>
        <div class="form-group" id="servicesFormGroup" style="display: none;">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
          	 <input class="form-control" id="inputServicesFinal" name="services" style="display:none;">
            <div id="services"></div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Environment Variables</label>
          <div class="col-sm-10">
          	<div class="input-group">
          	  <div class="row">
                <div class="col-sm-6">
                  <div class="input-group">
                    <span class="input-group-addon">Name</span>
                    <input class="form-control" id="inputEnvName" placeholder="my-env">
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="input-group">
                    <span class="input-group-addon">Value</span>
                    <input class="form-control" id="inputEnvValue" placeholder="my-env-value"
                    data-container="body" data-toggle="popover" data-placement="right" data-trigger="focus" 
                    data-content="Environment variables you would like pushed with your app.">
                  </div>
                </div>
              </div>
              <div class="row addBtn">
                <div class="col-sm-10">
                  <button class="btn btn-success" id="envAddBtn" disabled="disabled">Add</button>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="form-group" id="envVarFormGroup" style="display: none;">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <input class="form-control" id="inputEnvValFinal" name="envVars" style="display:none;">
            <div id="envVars"></div>
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
              <label>
                <input type="checkbox" id="route" name="route"
                data-container="body" data-toggle="popover" data-placement="right" data-trigger="hover" 
                data-content="Sepcifies if you would like your application to have no route."> No Route
              </label>
            </div>
          </div>
        </div>
        
        <div class="form-group">
        	<div class="row">
          <div class="col-sm-offset-2 col-sm-1">
            <button id="generateBtn" class="btn btn-lg btn-primary" disabled="disabled">Preview</button>
          </div>
          <div class="col-sm-offset-2 col-sm-1">
            <button id="downloadBtn" class="btn btn-lg btn-primary" type="submit" disabled="disabled">Download</button>
          </div>
          </div>
        </div>
      </form>

      <div id="yamlContainer" style="display: none;" class="row">
      	<h1>Generated Manifest</h1>
        <pre id="yaml">
        </pre>
      </div>

      <div class="footer">
      </div>
    </div> <!-- /container -->

    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
   	<!-- Latest compiled and minified JavaScript -->
	<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.10.2/typeahead.bundle.js"></script>
	<script src="js/app.js"></script>
  </body>
</html>

{'fraction_non_alphanumeric': 0.14981078875120576, 'fraction_numerical': 0.016101506269941383, 'mean_word_length': 2.3257248611967922, 'pattern_counts': {'":': 0, '<': 571, '<?xml version=': 0, '>': 571, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1671354', 'n_tokens_mistral': 7989, 'n_tokens_neox': 7594, 'n_words': 1914}