<commit_before>package main

import (
	"flag"
	"github.com/gorilla/websocket"
	"github.com/olorin/nagiosplugin"
	"log"
	"net/url"
)

var addr = flag.String("addr", "echo.websocket.org", "http service address")

func main() {
	flag.Parse()

	u := url.URL{Scheme: "wss", Host: *addr, Path: "/"}

	// Initialize the check - this will return an UNKNOWN result
	// until more results are added.<commit_msg>added flags for all URL components (scheme+path)<commit_after>package main

import (
	"flag"
	"github.com/gorilla/websocket"
	"github.com/olorin/nagiosplugin"
	"log"
	"net/url"
)

var scheme = flag.String("scheme", "wss", "Websocket scheme (default to secure)")
var addr = flag.String("addr", "echo.websocket.org", "http service address")
var path = flag.String("path", "/", "URI path")

func main() {
	flag.Parse()

	u := url.URL{Scheme: *scheme, Host: *addr, Path: *path}

	// Initialize the check - this will return an UNKNOWN result
	// until more results are added.
{'fraction_non_alphanumeric': 0.1596292481977343, 'fraction_numerical': 0.0, 'mean_word_length': 4.282608695652174, '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': '25645', 'n_tokens_mistral': 348, 'n_tokens_neox': 335, 'n_words': 96}