<commit_before><template>
  <v-container fixed fluid>
    <h2>Sign Up</h2>

    <section>
      <form v-on:submit="submit">
        <input v-model="email" type="email" placeholder="email" required>
        <br>
        <input v-model="password" type="password" placeholder="password" required>
        <br>
        <input v-model="displayName" type="text" placeholder="displayName" required>
        <br>
        <input type="submit" value="Submit">
      </form>
    </section>
  </v-container>
</template>

<script>
  export default {
    data() {
      return {
        email: '',
        password: '',
        displayName: '',
      }
    },

    methods: {
      async submit() {
        const response = await fetch("/users", {
          method: "POST",
          body: JSON.stringify({
            email: this.email,
            password: <PASSWORD>,
            displayName: this.displayName
          })
        })

        if (response.status === 201) {
          this.$store.commit("logIn", await response.json())
        } else if (response.status === 400) { // eslint-disable-line no-empty
        }
      }
    }<commit_msg>navigate away from sign up on success<commit_after><template>
  <v-container fixed fluid>
    <h2>Sign Up</h2>

    <section>
      <form v-on:submit="submit">
        <input v-model="email" type="email" placeholder="email" required>
        <br>
        <input v-model="password" type="password" placeholder="password" required>
        <br>
        <input v-model="displayName" type="text" placeholder="displayName" required>
        <br>
        <input type="submit" value="Submit">
      </form>
    </section>
  </v-container>
</template>

<script>
  export default {
    data() {
      return {
        email: '',
        password: '',
        displayName: '',
      }
    },

    methods: {
      async submit() {
        const response = await fetch("/users", {
          method: "POST",
          body: JSON.stringify({
            email: this.email,
            password: <PASSWORD>,
            displayName: this.displayName
          })
        })

        if (response.status === 201) {
          this.$store.commit("logIn", await response.json())
          this.$router.push("/")
        } else if (response.status === 400) { // eslint-disable-line no-empty
        }
      }
    }
{'fraction_non_alphanumeric': 0.15259322760394342, 'fraction_numerical': 0.006858122588941277, 'mean_word_length': 1.9284818067754077, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '5428229', 'n_tokens_mistral': 687, 'n_tokens_neox': 667, 'n_words': 149}