<commit_before>
/****************************************************************************************

	Copyright (c) 2017, <NAME>.
	For conditions of distribution and use, see copyright notice in LICENSE

****************************************************************************************/

import axios from 'axios';

/****************************************************************************************/

var url = 'http://localhost:8080';

var account = {
	create: function(data) {
		return axios.post(url + '/api/account/create', data);
	},

	verify: function(data) {
		return axios.put(url + '/api/account/verify', data);
	},

	showStatus: function(id) {
		return axios.get(url + '/api/account/' + id + '/status');
	}
};

module.exports = {
	account: account
};<commit_msg>Front-end API dynamic origin url<commit_after>
/****************************************************************************************

	Copyright (c) 2017, <NAME>.
	For conditions of distribution and use, see copyright notice in LICENSE

****************************************************************************************/

import axios from 'axios';

/****************************************************************************************/

var origin = window.location.origin;

var account = {
	create: function(data) {
		return axios.post(origin + '/api/account/create', data);
	},

	verify: function(data) {
		return axios.put(origin + '/api/account/verify', data);
	},

	showStatus: function(id) {
		return axios.get(origin + '/api/account/' + id + '/status');
	}
};

module.exports = {
	account: account
};
{'fraction_non_alphanumeric': 0.4355638166047088, 'fraction_numerical': 0.007434944237918215, 'mean_word_length': 6.021739130434782, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6841422', 'n_tokens_mistral': 429, 'n_tokens_neox': 381, 'n_words': 98}