<commit_before>package zwo

import (
	"fmt"
	"github.com/dynport/dgtk/godocker"
	"github.com/dynport/gologger"
	"github.com/dynport/zwo/host"
	"strings"
)

type dockerClient struct {
	baseImage  string
	tag        string
	host       *host.Host
	dockerHost *godocker.DockerHost

	dockerfile string
}

func newDockerClient(host *host.Host) (client *dockerClient, e error) {
	dh, e := godocker.NewDockerHostViaTunnel(host.IPAddress(), host.User())
	if e != nil {
		return nil, e
	}
	if host.Docker.WithRegistry {
		dh.Registry = host.IPAddress() + ":5000"
	}
	return &dockerClient{host: host, dockerHost: dh}, nil
}

func (dc *dockerClient) provisionImage(tag string, packages ...Compiler) (imageId string, e error) {<commit_msg>adopted changes of basic library<commit_after>package zwo

import (
	"fmt"
	"github.com/dynport/dgtk/dockerclient"
	"github.com/dynport/gologger"
	"github.com/dynport/zwo/host"
	"strings"
)

type dockerClient struct {
	baseImage  string
	tag        string
	host       *host.Host
	dockerHost *dockerclient.DockerHost

	dockerfile string
}

func newDockerClient(host *host.Host) (client *dockerClient, e error) {
	dh, e := dockerclient.NewViaTunnel(host.IPAddress(), host.User())
	if e != nil {
		return nil, e
	}
	if host.Docker.WithRegistry {
		dh.Registry = host.IPAddress() + ":5000"
	}
	return &dockerClient{host: host, dockerHost: dh}, nil
}

func (dc *dockerClient) provisionImage(tag string, packages ...Compiler) (imageId string, e error) {
{'fraction_non_alphanumeric': 0.12627291242362526, 'fraction_numerical': 0.005431093007467753, 'mean_word_length': 4.2831541218638, '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': '1430395', 'n_tokens_mistral': 555, 'n_tokens_neox': 521, 'n_words': 124}