<commit_before><head>
	<title>Service of Services</title>
  <link rel="stylesheet" href="css/stylesheet.css">
  <meta charset="utf-8">
	<script>
	  function sendEdit() {
	    fetch("http://localhost:{{.Port}}/edit", {
	      method: 'Post'
	    })
	    .then(r => r.json())
	    .then( s => {
	      if (s !== null) {
	        alert(s.Error);
	        window.location.reload();
	      }
	      else {
	        window.location.reload();
	      }
	    })
	    .catch(err => alert(err))
	  }
	  function sendSubmit() {
	    username = document.getElementById("user").value
	    dirserver = document.getElementById("dir").value
	    storeserver = document.getElementById("store").value
	    secretseed = document.getElementById("seed").value
	    fetch("http://localhost:{{.Port}}/submit", {
	      method: 'Post',
	      headers: {
	  			'Accept': 'application/json',
	  			'Content-Type': 'application/json'
	  		},
	  		body: JSON.stringify({
	  			User:  username,
	  			Dir:   dirserver,
	        Store: storeserver,
	        Seed:  secretseed
	  		})
	    })
	    .then(r => r.json())
	    .then( s => {
	      if (s !== null) {
	        alert(s.Error);
	        window.location.reload();
	      }
	      else {
	        window.location.reload();
	      }
	    })
	    .catch(err => alert(err))
	  }

	  function setFieldsOnLoad(config) {
	    if (config) {
	      disableFields();
	    }
	    else {
	      enableFields();
	    }
	  }

	  function enableFields() {
	    fields = document.getElementsByClassName("text");
	    for(let field of fields) {
	      field.removeAttribute("disabled")
	    }
	    document.getElementById("button").setAttribute("value", "Submit");
	    document.getElementById("button").setAttribute("onclick", "sendSubmit()");
	  }
	  function disableFields() {
	    fields = document.getElementsByClassName("text");
	    for(let field of fields) {
	      field.setAttribute("disabled", "true")
	    }
	    document.getElementById("button").setAttribute("value", "Edit");
	    document.getElementById("button").setAttribute("onclick", "sendEdit()");
	  }
	</script>
</head>
<body onload="setFieldsOnLoad({{.Configured}})">
	<div class="banner">
      <h1><a href="http://localhost:8000" target="_blank" class="bannerbtn">Service of Services</a></h1>
  </div>
	<div class="content">
	  <!-- Copy to local variables -->
	  {{$user := .User}}
	  {{$dir := .Dir}}
	  {{$store := .Store}}
	  {{$seed := .Seed}}
	  <div class="center">
			<h2 class="centernarrow">Upspin Config Settings</h2>
			<div class="card">
				<h3 class="label">Username</h3>
				<input type="text" id="user"  class="form" value="{{$user}}">
				<h3 class="label">Dir Server</h3>
				<input type="text" id="dir"   class="form" value="{{$dir}}">
				<h3 class="label">Store Server</h3>
	      <input type="text" id="store" class="form" value="{{$store}}">
				<h3 class="label">Secret Seed</h3>
	      <input type="text" id="seed"  class="form" value="{{$seed}}">
			</div>
			<input type="submit" id="button" class="button submitbtn">
			<!--
			  <table class="center">
			    <tr>
			      <th>Username</th>
			      <th>Dir Server</th>
			      <th>Store Server</th>
			      <th>Secret Seed</th>
			      <th></th>
			    </tr>
			    <tr>
			      <td><input type="text" id="user"  class="text" value="{{$user}}"></td>
			      <td><input type="text" id="dir"   class="text" value="{{$dir}}"></td>
			      <td><input type="text" id="store" class="text" value="{{$store}}"></td>
			      <td><input type="text" id="seed"  class="text" value="{{$seed}}"></td>
			      <td><input type="submit" id="button" class="btn"></td>
			    </tr>
			  </table>
			-->
			</div>
		</div>
	</div>
</body><commit_msg>update to match css style guide<commit_after><head>
  <title>Service of Services</title>
  <link rel="stylesheet" href="css/stylesheet.css">
  <meta charset="utf-8">
  <script>
    function sendEdit() {
      fetch("http://localhost:{{.Port}}/edit", {
        method: 'Post'
      })
      .then(r => r.json())
      .then( s => {
        if (s !== null) {
          alert(s.Error);
          window.location.reload();
        }
        else {
          window.location.reload();
        }
      })
      .catch(err => alert(err))
    }
    function sendSubmit() {
      username = document.getElementById("user").value
      dirserver = document.getElementById("dir").value
      storeserver = document.getElementById("store").value
      secretseed = document.getElementById("seed").value
      fetch("http://localhost:{{.Port}}/submit", {
        method: 'Post',
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify({
          User:  username,
          Dir:   dirserver,
          Store: storeserver,
          Seed:  secretseed
        })
      })
      .then(r => r.json())
      .then( s => {
        if (s !== null) {
          alert(s.Error);
          window.location.reload();
        }
        else {
          window.location.reload();
        }
      })
      .catch(err => alert(err))
    }

    function setFieldsOnLoad(config) {
      if (config) {
        disableFields();
      }
      else {
        enableFields();
      }
    }

    function enableFields() {
      fields = document.getElementsByClassName("text");
      for(let field of fields) {
        field.removeAttribute("disabled")
      }
      document.getElementById("button").setAttribute("value", "Submit");
      document.getElementById("button").setAttribute("onclick", "sendSubmit()");
    }
    function disableFields() {
      fields = document.getElementsByClassName("text");
      for(let field of fields) {
        field.setAttribute("disabled", "true")
      }
      document.getElementById("button").setAttribute("value", "Edit");
      document.getElementById("button").setAttribute("onclick", "sendEdit()");
    }
  </script>
</head>
<body onload="setFieldsOnLoad({{.Configured}})">
  <div class="banner">
      <h1><a href="http://localhost:8000" target="_blank" class="bannerbtn">Service of Services</a></h1>
  </div>
  <div class="content">
    <!-- Copy to local variables -->
    {{$user := .User}}
    {{$dir := .Dir}}
    {{$store := .Store}}
    {{$seed := .Seed}}
    <div class="center">
      <h2 class="centernarrow">Upspin Config Settings</h2>
      <div class="card">
        <h3 class="label">Username</h3>
        <input type="text" id="user"  class="form" value="{{$user}}">
        <h3 class="label">Dir Server</h3>
        <input type="text" id="dir"   class="form" value="{{$dir}}">
        <h3 class="label">Store Server</h3>
        <input type="text" id="store" class="form" value="{{$store}}">
        <h3 class="label">Secret Seed</h3>
        <input type="text" id="seed"  class="form" value="{{$seed}}">
      </div>
      <input type="submit" id="button" class="button submitbtn">
      <!--
        <table class="center">
          <tr>
            <th>Username</th>
            <th>Dir Server</th>
            <th>Store Server</th>
            <th>Secret Seed</th>
            <th></th>
          </tr>
          <tr>
            <td><input type="text" id="user"  class="text" value="{{$user}}"></td>
            <td><input type="text" id="dir"   class="text" value="{{$dir}}"></td>
            <td><input type="text" id="store" class="text" value="{{$store}}"></td>
            <td><input type="text" id="seed"  class="text" value="{{$seed}}"></td>
            <td><input type="submit" id="button" class="btn"></td>
          </tr>
        </table>
      -->
      </div>
    </div>
  </div>
</body>
{'fraction_non_alphanumeric': 0.19729765184310638, 'fraction_numerical': 0.0044601862783680965, 'mean_word_length': 2.4357818837314107, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 157, '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': '2849787', 'n_tokens_mistral': 2522, 'n_tokens_neox': 2346, 'n_words': 440}