<commit_before>_ = require('lodash')

NETWORK_WIFI = 'wifi'
NETWORK_ETHERNET = 'ethernet'

NETWORK_TYPES = [
	NETWORK_WIFI
	NETWORK_ETHERNET
]

VALID_OPTIONS = [
	'network'
	'appId'
	'wifiSsid'
	'wifiKey'
]

###*
# Create a set of connection parameters
# @name ConnectionParams
# @memberof module:resin/connection
# @public<commit_msg>Add TODO about ConnectionParams access right<commit_after>_ = require('lodash')

NETWORK_WIFI = 'wifi'
NETWORK_ETHERNET = 'ethernet'

NETWORK_TYPES = [
	NETWORK_WIFI
	NETWORK_ETHERNET
]

VALID_OPTIONS = [
	'network'
	'appId'
	'wifiSsid'
	'wifiKey'
]

# TODO: Evaluate if we can make this class private.
# In that case we make the functions that currently
# accept a ConnectionParams instance accept a plain object
# and we attempt to instantiate a ConnectionParams instance
# with that object right afterwards (with errors being thrown)
# and propagated to the client.

###*
# Create a set of connection parameters
# @name ConnectionParams
# @memberof module:resin/connection
# @public
{'fraction_non_alphanumeric': 0.09117647058823529, 'fraction_numerical': 0.0, 'mean_word_length': 5.341614906832298, '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': '638088', 'n_tokens_mistral': 349, 'n_tokens_neox': 350, 'n_words': 102}