<commit_before>// Copyright 2016 NetApp, Inc. All Rights Reserved.

package rest

import (
	"context"
	"net/http"
	"time"

	log "github.com/Sirupsen/logrus"
	"github.com/netapp/trident/config"
	"github.com/netapp/trident/core"
)

const httpTimeout = 10 * time.Second

var orchestrator core.Orchestrator

type APIServer struct {
	server *http.Server
}

func NewAPIServer(p core.Orchestrator, address, port string) *APIServer {

	orchestrator = p

	address_port := address + ":" + port<commit_msg>Increase REST timeout to resolve rare CI issues<commit_after>// Copyright 2016 NetApp, Inc. All Rights Reserved.

package rest

import (
	"context"
	"net/http"
	"time"

	log "github.com/Sirupsen/logrus"
	"github.com/netapp/trident/config"
	"github.com/netapp/trident/core"
)

const httpTimeout = 30 * time.Second

var orchestrator core.Orchestrator

type APIServer struct {
	server *http.Server
}

func NewAPIServer(p core.Orchestrator, address, port string) *APIServer {

	orchestrator = p

	address_port := address + ":" + port
{'fraction_non_alphanumeric': 0.111328125, 'fraction_numerical': 0.01171875, 'mean_word_length': 4.394736842105263, 'pattern_counts': {'":': 2, '<': 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': '7118961', 'n_tokens_mistral': 386, 'n_tokens_neox': 362, 'n_words': 90}