<commit_before><template>
<v-container fluid>
   <v-layout row wrap justify-center>
     <v-flex xs12 sm4>
      <h1 class="logo">Free Meal</h1>
       <v-card>
         <v-toolbar dark class="blue lighten-1">
           <v-toolbar-title>Sign in</v-toolbar-title>
         </v-toolbar>
         <v-card-text>
         <form @submit.prevent="onSubmit">
           <v-container fluid>
             <v-layout row wrap>
               <v-flex xs12>
                 <v-text-field
                   label="E-mail"
                   v-model="email"
                   :error-messages="errors.email"
                   prepend-icon="person"
                 ></v-text-field>
               </v-flex>
               <v-flex xs12>
                <v-text-field
                   name="pass"
                   label="Password"
                   hint="At least 8 characters"
                   v-model="pass"
                   min="5"
                   prepend-icon="lock"
                   :error-messages="errors.password"
                   :append-icon="p ? 'visibility_off' : 'visibility'"
                   :type="p ? 'password' : 'text'"
                   :append-icon-cb="() => (p = !p)"
                 ></v-text-field>
               </v-flex>
               <v-flex xs12>
                 <v-layout row wrap>
                   <v-flex xs6>
                     <v-checkbox value="remember" v-model="remember" label="Remember me"></v-checkbox>
                   </v-flex>
                   <v-flex xs6>
                     <v-btn flat class="normal-btn" to="/forget">Lost Password?</v-btn>
                   </v-flex>
                 </v-layout>
               </v-flex>
               <v-flex xs12>
                 <v-btn primary type="submit" dark light :loading="loading" block>Sign In</v-btn>
               </v-flex>
               <v-flex xs12>
                <v-divider class="m-20"></v-divider>
               </v-flex>
               <v-flex xs12>
                <v-btn secondary flat block to="/signup">Dont't have account ? create account</v-btn>
               </v-flex>
             </v-layout>
           </v-container>
           </form>
         </v-card-text>
       </v-card>
     </v-flex>
     <app-snackbar :data="data"></app-snackbar>
   </v-layout>
 </v-container>
</template>
<script>
  const URL = 'http://codedegg.com/api/'
  import Snackbar from '../Snackbar'
  export default {
    components: {
      'app-snackbar': Snackbar
    },
    data () {
      return {
        email: '',
        pass: '',
        status: 'error',
        snackbar: false,
        message: '',
        loading: false,
        remember: true,
        errors: [],
        data: {
          message: '',
          model: false,
          context: 'error'
        },
        photo: this.myCroppa,
        p: false
      }
    },
    methods: {
      onSubmit () {
        this.loading = true
        this.$http.post(URL+'signin',
            { email: this.email, password: this.pass },
            )
            .then(
              (response) => {
                if (response.status === 201) {
                  this.data = {
                    model: true,
                    context: 'success',
                    message: 'Please wait your account is loading'
                  }
                  this.loading = false
                  const token = response.data.token
                  this.$auth.setToken(token)
                  this.getProfile()
                }<commit_msg>Update Signin.vue<commit_after><template>
<v-container fluid>
   <v-layout row wrap justify-center>
     <v-flex xs12 sm4>
      <h1 class="logo">Free Meal</h1>
       <v-card>
         <v-toolbar dark class="blue lighten-1">
           <v-toolbar-title>Sign in</v-toolbar-title>
         </v-toolbar>
         <v-card-text>
         <form @submit.prevent="onSubmit">
           <v-container fluid>
             <v-layout row wrap>
               <v-flex xs12>
                 <v-text-field
                   label="E-mail"
                   v-model="email"
                   :error-messages="errors.email"
                   prepend-icon="person"
                 ></v-text-field>
               </v-flex>
               <v-flex xs12>
                <v-text-field
                   name="pass"
                   label="Password"
                   hint="At least 8 characters"
                   v-model="pass"
                   min="5"
                   prepend-icon="lock"
                   :error-messages="errors.password"
                   :append-icon="p ? 'visibility_off' : 'visibility'"
                   :type="p ? 'password' : 'text'"
                   :append-icon-cb="() => (p = !p)"
                 ></v-text-field>
               </v-flex>
               <v-flex xs12>
                 <v-layout row wrap>
                   <v-flex xs6>
                     <v-checkbox value="remember" v-model="remember" label="Remember me"></v-checkbox>
                   </v-flex>
                   <v-flex xs6>
                     <v-btn flat class="normal-btn" to="/forget">Lost Password?</v-btn>
                   </v-flex>
                 </v-layout>
               </v-flex>
               <v-flex xs12>
                 <v-btn primary type="submit" dark light :loading="loading" block>Sign In</v-btn>
               </v-flex>
               <v-flex xs12>
                <v-divider class="m-20"></v-divider>
               </v-flex>
               <v-flex xs12>
                <v-btn secondary flat block to="/signup">Dont't have account ? create account</v-btn>
               </v-flex>
             </v-layout>
           </v-container>
           </form>
         </v-card-text>
       </v-card>
     </v-flex>
     <app-snackbar :data="data"></app-snackbar>
   </v-layout>
 </v-container>
</template>
<script>
  const URL = 'http://codedegg.com/api/'
  import Snackbar from '../Snackbar'
  export default {
    components: {
      'app-snackbar': Snackbar
    },
    data () {
      return {
        email: '',
        pass: '',
        status: 'error',
        snackbar: false,
        message: '',
        loading: false,
        remember: true,
        errors: [],
        data: {
          message: '',
          model: false,
          context: 'error'
        },
        photo: this.myCroppa,
        p: false
      }
    },
    methods: {
      onSubmit () {
        this.loading = true
        this.$http.post(URL + 'signin',
            { email: this.email, password: <PASSWORD> },
            )
            .then(
              (response) => {
                if (response.status === 201) {
                  this.data = {
                    model: true,
                    context: 'success',
                    message: 'Please wait your account is loading'
                  }
                  this.loading = false
                  const token = response.data.token
                  this.$auth.setToken(token)
                  this.getProfile()
                }
{'fraction_non_alphanumeric': 0.13693950177935943, 'fraction_numerical': 0.0076868327402135235, 'mean_word_length': 1.08982748364069, 'pattern_counts': {'":': 0, '<': 122, '<?xml version=': 0, '>': 126, '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': '5977508', 'n_tokens_mistral': 2073, 'n_tokens_neox': 1934, 'n_words': 390}