<commit_before>'use strict';

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Global Variables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Library for communicating with Sia-UI
const IPC = require('ipc');
// Library for arbitrary precision in numbers
const BigNumber = require('../../js/bignumber.min.js');
// Ensure precision
BigNumber.config({ DECIMAL_PLACES: 24 });
BigNumber.config({ EXPONENTIAL_AT: 1e+9 });
// Variable to store api result values
var hosting;
// Keeps track of if the view is shown
var updating;
// Host properties array
var hostProperties = [
	{
		'name': 'TotalStorage',
		'descr': 'Total storage',
		'unit': 'GB',
		// GB is 1e9 Bytes
		'conversion': new BigNumber('1e+9'),
	},{
		'name': 'MaxFilesize',
		'descr': 'Maximum filesize',
		'unit': 'MB',
		// MB is 1e6 Bytes
		'conversion': new BigNumber('1e+6'),
	},{
		'name': 'MaxDuration',
		'descr': 'Maximum lease duration',
		'unit': '~days',
		// 144 is the number of blocks in a day
		'conversion': new BigNumber(144),
	},{
		'name': 'Price',
		'descr': 'Price',<commit_msg>remove max duration as a field from the host<commit_after>'use strict';

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Global Variables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Library for communicating with Sia-UI
const IPC = require('ipc');
// Library for arbitrary precision in numbers
const BigNumber = require('../../js/bignumber.min.js');
// Ensure precision
BigNumber.config({ DECIMAL_PLACES: 24 });
BigNumber.config({ EXPONENTIAL_AT: 1e+9 });
// Variable to store api result values
var hosting;
// Keeps track of if the view is shown
var updating;
// Host properties array
var hostProperties = [
	{
		'name': 'TotalStorage',
		'descr': 'Total storage',
		'unit': 'GB',
		// GB is 1e9 Bytes
		'conversion': new BigNumber('1e+9'),
	},{
		'name': 'MaxFilesize',
		'descr': 'Maximum filesize',
		'unit': 'MB',
		// MB is 1e6 Bytes
		'conversion': new BigNumber('1e+6'),
	},{
		'name': 'Price',
		'descr': 'Price',
{'fraction_non_alphanumeric': 0.22003113648157757, 'fraction_numerical': 0.015568240788790867, 'mean_word_length': 4.26775956284153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4648039', 'n_tokens_mistral': 682, 'n_tokens_neox': 615, 'n_words': 195}