<commit_before>(function(){

  'use strict';





  app.LoginView = Backbone.View.extend({

    el: '.login',

    // className: 'loginForm',

    template: $('#loginTemp').html(),

    events: {
      'click #subBtn': 'createUser'
    },

    initialize: function(){
      this.render();

    },

    render: function () {
      this.$el.html(this.template);
      console.log('render');
    },


    createUser: function(e){
      var self = this;
      e.preventDefault();


      var loginValUser = this.$el.find('input#username').val();
      var loginValPassword = this.$el.find('input#password').val();
      var loginValEmail = this.$el.find('input#email').val();


      var a = new app.UserLogin({ username: loginValUser, password: <PASSWORD>, email: loginValEmail });
      a.save().done(function(data){
        console.log(data);
        elem.reset();
      });



    },

  });

}());<commit_msg>form input finished<commit_after>(function(){

  'use strict';





  app.LoginView = Backbone.View.extend({

    el: '.login',

    // className: 'loginForm',

    template: $('#loginTemp').html(),

    events: {
      'click #subBtn': 'createUser'
    },

    initialize: function(){
      this.render();

    },

    render: function () {
      this.$el.html(this.template);
      console.log('render');
    },


    createUser: function(e){
      var self = this;
      e.preventDefault();


      var loginValUser = this.$el.find('input#username').val();
      var loginValPassword = this.$el.find('input#password').val();
      var loginValEmail = this.$el.find('input#email').val();
      var user = {user:{username: loginValUser, email: loginValEmail, password: loginValPassword}};

      var a = new app.UserLogin(user);
      a.save().done(function(data){
        console.log(data);
        elem.reset();
      });



    },

  });

}());
{'fraction_non_alphanumeric': 0.1836295099623048, 'fraction_numerical': 0.0, 'mean_word_length': 2.5593869731800765, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7367444', 'n_tokens_mistral': 595, 'n_tokens_neox': 553, 'n_words': 104}