<commit_before>package tunnel

import (
	"os"
	"path/filepath"
	"time"

	log "github.com/op/go-logging"

	"arvika.pulcy.com/developers/devtool/util"
)

const (
	registryTunnelSocket = "${HOME}/.ssh-pulcy-subliminl-registry"
	registryHost         = "arvika.subliminl.com"
	mongoTunnelSocket    = "${HOME}/.ssh-pulcy-mongo1-admin"
	mongoHost            = "mongo1.subliminl.com"
)

// Open an SSH tunnel to arvika-ssh
func OpenTunnel(log *log.Logger) error {
	links := []string{
		"-L5000:localhost:5000",
		"-L16012:localhost:16012",
		"-L16073:localhost:16073",
	}
	return openTunnel(log, registryTunnelSocket, registryHost, links...)
}

// Close any existing SSH tunnel to arvika-ssh
func CloseTunnel(log *log.Logger) error {
	return closeTunnel(log, registryTunnelSocket, registryHost)
}

// Open an SSH tunnel to mongo1.subliminl.com
func OpenMongoTunnel(log *log.Logger) error {
	links := []string{
		"-L27018:localhost:27017",
	}
	return openTunnel(log, mongoTunnelSocket, mongoHost, links...)
}<commit_msg>Fixed tunnel address<commit_after>package tunnel

import (
	"os"
	"path/filepath"
	"time"

	log "github.com/op/go-logging"

	"arvika.pulcy.com/developers/devtool/util"
)

const (
	registryTunnelSocket = "${HOME}/.ssh-pulcy-registry"
	registryHost         = "arvika.pulcy.com"
	mongoTunnelSocket    = "${HOME}/.ssh-pulcy-mongo1-admin"
	mongoHost            = "mongo1.subliminl.com"
)

// Open an SSH tunnel to arvika-ssh
func OpenTunnel(log *log.Logger) error {
	links := []string{
		"-L5000:localhost:5000",
		"-L16012:localhost:16012",
		"-L16073:localhost:16073",
	}
	return openTunnel(log, registryTunnelSocket, registryHost, links...)
}

// Close any existing SSH tunnel to arvika-ssh
func CloseTunnel(log *log.Logger) error {
	return closeTunnel(log, registryTunnelSocket, registryHost)
}

// Open an SSH tunnel to mongo1.subliminl.com
func OpenMongoTunnel(log *log.Logger) error {
	links := []string{
		"-L27018:localhost:27017",
	}
	return openTunnel(log, mongoTunnelSocket, mongoHost, links...)
}
{'fraction_non_alphanumeric': 0.141439205955335, 'fraction_numerical': 0.040694789081885854, 'mean_word_length': 4.25, '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': '3702001', 'n_tokens_mistral': 830, 'n_tokens_neox': 759, 'n_words': 144}