<commit_before><script>
    export default {
        deep: true,
        twoWay: true,
        bind: function(){
            // Setup State
            this.state = {
                model: this.arg,
                id: this.expression,
                field: this.el.name,
                value: this.el.value
            };
            
            var self = this;

            var isUniqueCheck = function(){
                client({ path: '/validate/', entity: self.state }).then(
                    function (response, status, request) {
                        if (response.entity!="1")
                            self.el._vueFormCtrl.setVadility(false);
                    },
                    function (response, status, request) {
                        if (status === 401)
                            self.$dispatch('userHasLoggedOut')
                    }
                )
            };


            this.handler = function () {
              // set data back to the vm.
              // If the directive is bound as v-example="a.b.c",
              // this will attempt to set `vm.a.b.c` with the
              // given value.
              this.set(this.el.value)
              
              this.state.value = this.el.value;

              setTimeout( (function(){ 
                  if (this.el.classList.contains('vf-valid'))
                    isUniqueCheck(this.el.value)
               }).bind(this), 100);

            }.bind(this)
            this.el.addEventListener('input', this.handler)
        },
        unbind: function () {
            this.el.removeEventListener('input', this.handler)
        }
    }
</script><commit_msg>Removed trailing /, in the ajax call<commit_after><script>
    export default {
        deep: true,
        twoWay: true,
        bind: function(){
            // Setup State
            this.state = {
                model: this.arg,
                id: this.expression,
                field: this.el.name,
                value: this.el.value
            };
            
            var self = this;

            var isUniqueCheck = function(){
                client({ path: '/validate', entity: self.state }).then(
                    function (response, status, request) {
                        if (response.entity!="1")
                            self.el._vueFormCtrl.setVadility(false);
                    },
                    function (response, status, request) {
                        if (status === 401)
                            self.$dispatch('userHasLoggedOut')
                    }
                )
            };


            this.handler = function () {
              // set data back to the vm.
              // If the directive is bound as v-example="a.b.c",
              // this will attempt to set `vm.a.b.c` with the
              // given value.
              this.set(this.el.value)
              
              this.state.value = this.el.value;

              setTimeout( (function(){ 
                  if (this.el.classList.contains('vf-valid'))
                    isUniqueCheck(this.el.value)
               }).bind(this), 100);

            }.bind(this)
            this.el.addEventListener('input', this.handler)
        },
        unbind: function () {
            this.el.removeEventListener('input', this.handler)
        }
    }
</script>
{'fraction_non_alphanumeric': 0.11359570661896243, 'fraction_numerical': 0.0041741204531902205, 'mean_word_length': 1.0519877675840978, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5440505', 'n_tokens_mistral': 858, 'n_tokens_neox': 802, 'n_words': 184}