<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Author: arnej

package jvm

import (
	"os"

	"github.com/vespa-engine/vespa/client/go/prog"
	"github.com/vespa-engine/vespa/client/go/trace"
	"github.com/vespa-engine/vespa/client/go/util"
)

func RunApplicationContainer(extraArgs []string) int {
	trace.AdjustVerbosity(0)
	container := NewApplicationContainer(extraArgs)
	container.Exec()
	// unreachable:
	return 1
}<commit_msg>use TRACE_JVM_STARTUP / DEBUG_JVM_STARTUP to trigger logging<commit_after>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Author: arnej

package jvm

import (
	"os"

	"github.com/vespa-engine/vespa/client/go/prog"
	"github.com/vespa-engine/vespa/client/go/trace"
	"github.com/vespa-engine/vespa/client/go/util"
)

func RunApplicationContainer(extraArgs []string) int {
	if doTrace := os.Getenv("TRACE_JVM_STARTUP"); doTrace != "" {
		trace.AdjustVerbosity(1)
	}
	if doDebug := os.Getenv("DEBUG_JVM_STARTUP"); doDebug != "" {
		trace.AdjustVerbosity(2)
	}
	container := NewApplicationContainer(extraArgs)
	container.Exec()
	// unreachable:
	return 1
}
{'fraction_non_alphanumeric': 0.12860676009892827, 'fraction_numerical': 0.00741962077493817, 'mean_word_length': 4.594470046082949, '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': '1637330', 'n_tokens_mistral': 439, 'n_tokens_neox': 425, 'n_words': 90}