<commit_before><template>
  <div>
    <a class="github-fork-ribbon" href="https://github.com/groupwrite-io/groupwrite.io" title="Fork me on GitHub">Fork me on GitHub</a>
    <div class="center home">
      <h1>groupwrite.io</h1>

      <p>Pick a username</p>
      <form onsubmit="return false">
        <input id="choosenickname" placeholder="Anonymous" v-model="sharedState.myNickname" autofocus/>
        <button id="write-btn" v-on:click="login">Write!</button>
      </form>
    </div>
</template>

<script>
  var VueRouter = require('vue-router')
  var router = new VueRouter()
  import store from './store'

  export default {
    name: 'HomePage',

    data() {
      return {
        sharedState: store.state
      }
    },
    created: function () {
      this.sharedState.myNickname = ''
      this.sharedState.players = []
    },
    methods: {
      login: function () {
        const uuidV4 = require('uuid/v4')
        this.sharedState.playerId = uuidV4()
        console.log(`New player (${this.sharedState.myNickname}, ${this.sharedState.playerId})`)

        var request = require('superagent')
        request.post('/api/user/login')
          .set('Accept', 'application/json')
          .send({ playerId: this.sharedState.playerId })
          .send({ nickname: this.sharedState.myNickname })
          .end((err, state) => {
            // handle login failure
            // https://github.com/groupwrite-io/groupwrite.io/issues/58
            if (err) {
              window.alert(err + '\r\n' + state.text)
            } else {
              router.replace('/queue')
            }
          })

        // debugger
        // this.$root.global.myNickname = this.nickname
      }
    }
  }

</script>

<style>
  body {
    padding: 50px;
    font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
    /* width: 121px; */
  }
  
  input {
    padding: 3px;
  }
  
  a {
    color: #00B7FF;
  }
</style><commit_msg>Added legal notice to homepage<commit_after><template>
  <div>
    <a class="github-fork-ribbon" href="https://github.com/groupwrite-io/groupwrite.io" title="Fork me on GitHub">Fork me on GitHub</a>
    <div class="center home">
      <h1>groupwrite.io</h1>

      <p>Pick a username</p>
      <form onsubmit="return false">
        <input id="choosenickname" placeholder="Anonymous" v-model="sharedState.myNickname" autofocus/>
        <button id="write-btn" v-on:click="login">Write!</button>
      </form>
    </div>
    <span id="legal-notice">
      * By clicking the above button you specifically give us the following permission, you grant us a non-exclusive, transferable, sub-licensable, royalty-free, worldwide license to use any IP content that you post on Grouwrite.io.
    </span>
</template>

<script>
  var VueRouter = require('vue-router')
  var router = new VueRouter()
  import store from './store'

  export default {
    name: 'HomePage',

    data() {
      return {
        sharedState: store.state
      }
    },
    created: function () {
      this.sharedState.myNickname = ''
      this.sharedState.players = []
    },
    methods: {
      login: function () {
        const uuidV4 = require('uuid/v4')
        this.sharedState.playerId = uuidV4()
        console.log(`New player (${this.sharedState.myNickname}, ${this.sharedState.playerId})`)

        var request = require('superagent')
        request.post('/api/user/login')
          .set('Accept', 'application/json')
          .send({ playerId: this.sharedState.playerId })
          .send({ nickname: this.sharedState.myNickname })
          .end((err, state) => {
            // handle login failure
            // https://github.com/groupwrite-io/groupwrite.io/issues/58
            if (err) {
              window.alert(err + '\r\n' + state.text)
            } else {
              router.replace('/queue')
            }
          })

        // debugger
        // this.$root.global.myNickname = this.nickname
      }
    }
  }

</script>

<style>
  body {
    padding: 50px;
    font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
    /* width: 121px; */
  }
  
  input {
    padding: 3px;
  }
  
  a {
    color: #00B7FF;
  }

  #legal-notice {
    font-size: 10px;
    position: absolute;
    bottom: 10px;
    left: 15px;
    color: #333;
    text-align: left;
  }
</style>
{'fraction_non_alphanumeric': 0.1491187384044527, 'fraction_numerical': 0.010435992578849721, 'mean_word_length': 2.1830258302583028, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 47, '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': '7121095', 'n_tokens_mistral': 1435, 'n_tokens_neox': 1372, 'n_words': 287}