<commit_before>﻿angular.module('DexCompleteService', [
        'ngCookies'
])
    .factory('DexComplete', ['$cookieStore', '$http', function ($cookieStore, $http) {
        var address = 'http://localhost:58496';
        var _user = {};

        return {
            Users: {
                Login: function (params, onComplete) {
                    $http.post(address + "/api/v1/user/login", { username: params.username, password: <PASSWORD> }).success(function (summary) {
                        if (summary.Status == 0) {
                            $cookieStore.put('user', { Username: summary.Value.Username, Token: summary.Value.Token });
                            onComplete({ Result: 0 });
                        }
                        else
                            onComplete({ Result: 1, Message: summary.Message });
                    });

                },

                Register: function (params, onComplete) {
                    $http.post(address + "/api/v1/user/register",<commit_msg>Fixed issue with address not pointing to correct address<commit_after>﻿angular.module('DexCompleteService', [
        'ngCookies'
])
    .factory('DexComplete', ['$cookieStore', '$http', function ($cookieStore, $http) {
        var address = '';
        var _user = {};

        return {
            Users: {
                Login: function (params, onComplete) {
                    $http.post(address + "/api/v1/user/login", { username: params.username, password: params.password }).success(function (summary) {
                        if (summary.Status == 0) {
                            $cookieStore.put('user', { Username: summary.Value.Username, Token: summary.Value.Token });
                            onComplete({ Result: 0 });
                        }
                        else
                            onComplete({ Result: 1, Message: summary.Message });
                    });

                },

                Register: function (params, onComplete) {
                    $http.post(address + "/api/v1/user/register",
{'fraction_non_alphanumeric': 0.13239573229873908, 'fraction_numerical': 0.0072744907856450046, 'mean_word_length': 1.4915458937198067, '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': '7650215', 'n_tokens_mistral': 524, 'n_tokens_neox': 488, 'n_words': 106}