<commit_before>package net.nemerosa.ontrack.extension.metrics.influxdb;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *
 */
@Data
@Component
@ConfigurationProperties(prefix = InfluxdbMetricsConfigProperties.PREFIX)
public class InfluxdbMetricsConfigProperties {

    /**
     * Property prefix
     */
    public static final String PREFIX = "ontrack.metrics.influxdb";

    /**
     * Criteria (host) prefix
     */
    public static final String HOST_PROPERTY = "ontrack.metrics.influxdb.host";

    /**
     * Host
     */
    private String host;

    /**
     * Port
     */
    private int port = 8083;

    /**
     * User
     */
    private String user = "root";

    /**
     * Password
     */
    private String password = "<PASSWORD>";

    /**
     * Database name
     */
    private String database = "ontrack";

    /**
     * Metrics refresh period (in seconds)
     */
    private int period = 60;

}<commit_msg>#257 Correction of default port for InfluxDB<commit_after>package net.nemerosa.ontrack.extension.metrics.influxdb;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *
 */
@Data
@Component
@ConfigurationProperties(prefix = InfluxdbMetricsConfigProperties.PREFIX)
public class InfluxdbMetricsConfigProperties {

    /**
     * Property prefix
     */
    public static final String PREFIX = "ontrack.metrics.influxdb";

    /**
     * Criteria (host) prefix
     */
    public static final String HOST_PROPERTY = "ontrack.metrics.influxdb.host";

    /**
     * Host
     */
    private String host;

    /**
     * Port
     */
    private int port = 8086;

    /**
     * User
     */
    private String user = "root";

    /**
     * Password
     */
    private String password = "<PASSWORD>";

    /**
     * Database name
     */
    private String database = "ontrack";

    /**
     * Metrics refresh period (in seconds)
     */
    private int period = 60;

}
{'fraction_non_alphanumeric': 0.11448931116389549, 'fraction_numerical': 0.007125890736342043, 'mean_word_length': 2.5041597337770383, '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': '5049950', 'n_tokens_mistral': 630, 'n_tokens_neox': 592, 'n_words': 138}