<commit_before>package main

import (
	"crypto/tls"
	"flag"
	"fmt"
	"net/http"
	"os"

	"github.com/cloudfoundry/noaa/consumer"
)

var (
	apiAddr     string
	insecure    bool
	username    string
	password    string
	appGuid     string
	riemannAddr string
	environment string

	interval  int
	eventsTtl float64
	queueSize int
)

func init() {
	flag.StringVar(&apiAddr, "api", "http://api.bosh-lite.com", "Address of the Cloud Foundry API")
	flag.BoolVar(&insecure, "insecure", false, "Please, please, don't!")
	flag.StringVar(&username, "username", "admin", "Cloud Foundry user")
	flag.StringVar(&password, "password", "<PASSWORD>", "Cloud Foundry password")
	flag.StringVar(&appGuid, "app-guid", "", "Cloud Foundry application GUID")

	flag.StringVar(&riemannAddr, "riemann", "127.0.0.1:5555", "Address of the Riemann endpoint")
	flag.StringVar(&environment, "environment", "", "Environment, e.g. test, staging, prod")

	flag.IntVar(&interval, "interval", 5, "Interval (in seconds) between reports")
	flag.Float64Var(&eventsTtl, "events-ttl", 30.0, "TTL for emitted events (in seconds)")
	flag.IntVar(&queueSize, "events-queue-size", 256, "Queue size for outgoing events")
}

func main() {
	flag.Parse()
	cf, err := NewCloudFoundry(Target{
		API:                       apiAddr,
		Username:                  username,<commit_msg>main: use https for default api schema<commit_after>package main

import (
	"crypto/tls"
	"flag"
	"fmt"
	"net/http"
	"os"

	"github.com/cloudfoundry/noaa/consumer"
)

var (
	apiAddr     string
	insecure    bool
	username    string
	password    string
	appGuid     string
	riemannAddr string
	environment string

	interval  int
	eventsTtl float64
	queueSize int
)

func init() {
	flag.StringVar(&apiAddr, "api", "https://api.bosh-lite.com", "Address of the Cloud Foundry API")
	flag.BoolVar(&insecure, "insecure", false, "Please, please, don't!")
	flag.StringVar(&username, "username", "admin", "Cloud Foundry user")
	flag.StringVar(&password, "password", "<PASSWORD>", "Cloud Foundry password")
	flag.StringVar(&appGuid, "app-guid", "", "Cloud Foundry application GUID")

	flag.StringVar(&riemannAddr, "riemann", "127.0.0.1:5555", "Address of the Riemann endpoint")
	flag.StringVar(&environment, "environment", "", "Environment, e.g. test, staging, prod")

	flag.IntVar(&interval, "interval", 5, "Interval (in seconds) between reports")
	flag.Float64Var(&eventsTtl, "events-ttl", 30.0, "TTL for emitted events (in seconds)")
	flag.IntVar(&queueSize, "events-queue-size", 256, "Queue size for outgoing events")
}

func main() {
	flag.Parse()
	cf, err := NewCloudFoundry(Target{
		API:                       apiAddr,
		Username:                  username,
{'fraction_non_alphanumeric': 0.14664179104477612, 'fraction_numerical': 0.015671641791044775, 'mean_word_length': 4.226120857699805, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5332451', 'n_tokens_mistral': 946, 'n_tokens_neox': 881, 'n_words': 235}