<commit_before>package com.proofpoint.http.server;

import com.google.common.base.Throwables;
import com.google.common.net.InetAddresses;
import com.google.inject.Inject;
import com.proofpoint.node.NodeInfo;

import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.URI;

public class HttpServerInfo
{
    private final URI httpUri;
    private final URI httpsUri;

    public HttpServerInfo()
    {
        this(new HttpServerConfig(), new NodeInfo());
    }

    @Inject
    public HttpServerInfo(HttpServerConfig config, NodeInfo nodeInfo)
    {
        if (config.isHttpEnabled()) {
            httpUri = buildUri("http", nodeInfo, config.getHttpPort());
        }
        else {
            httpUri = null;
        }

        if (config.isHttpsEnabled()) {
            httpsUri = buildUri("http", nodeInfo, config.getHttpsPort());<commit_msg>Fixed https uri to use https scheme<commit_after>package com.proofpoint.http.server;

import com.google.common.base.Throwables;
import com.google.common.net.InetAddresses;
import com.google.inject.Inject;
import com.proofpoint.node.NodeInfo;

import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.URI;

public class HttpServerInfo
{
    private final URI httpUri;
    private final URI httpsUri;

    public HttpServerInfo()
    {
        this(new HttpServerConfig(), new NodeInfo());
    }

    @Inject
    public HttpServerInfo(HttpServerConfig config, NodeInfo nodeInfo)
    {
        if (config.isHttpEnabled()) {
            httpUri = buildUri("http", nodeInfo, config.getHttpPort());
        }
        else {
            httpUri = null;
        }

        if (config.isHttpsEnabled()) {
            httpsUri = buildUri("https", nodeInfo, config.getHttpsPort());
{'fraction_non_alphanumeric': 0.10538243626062323, 'fraction_numerical': 0.0, 'mean_word_length': 3.0597701149425287, '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': '6989121', 'n_tokens_mistral': 521, 'n_tokens_neox': 518, 'n_words': 113}