<commit_before>package main

import (
	"context"
	"fmt"
	"os"

	"github.com/docker/engine-api/client"
)

func main() {
	cli, err := client.NewEnvClient()
	quitOnErr(err)
	ver, err := cli.ServerVersion(context.Background())
	quitOnErr(err)
	fmt.Println("Was able to connect to docker daemon")
	fmt.Println(ver)
}

func quitOnErr(err error) {
	if err != nil {
		fmt.Printf("error ocurred: %v", err)
		os.Exit(1)
	}
}
<commit_msg>Create and start a container<commit_after>package main

import (
	"context"
	"fmt"
	"os"

	"github.com/docker/engine-api/client"
	"github.com/docker/engine-api/types"
	"github.com/docker/engine-api/types/container"
	"github.com/docker/engine-api/types/strslice"
)

func main() {
	// Create docker client
	cli, err := client.NewEnvClient()
	quitOnErr(err)

	// Let's see if we can even talk to it
	ver, err := cli.ServerVersion(context.Background())
	quitOnErr(err)
	fmt.Println("Was able to connect to docker daemon")
	fmt.Println(ver)

	// Let's create a container
	cmd := strslice.StrSlice{"echo", "hello", "world"}
	containerConf := &container.Config{
		Image: "busybox",
		Cmd:   cmd,
	}
	resp, err := cli.ContainerCreate(context.Background(), containerConf, nil, nil, "")
	quitOnErr(err)
	err = cli.ContainerStart(context.Background(), resp.ID, types.ContainerStartOptions{})
	quitOnErr(err)
	fmt.Println("Was able to run a container")
}

func quitOnErr(err error) {
	if err != nil {
		fmt.Printf("error ocurred: %v", err)
		os.Exit(1)
	}
}

{'fraction_non_alphanumeric': 0.15546503733876443, 'fraction_numerical': 0.0013577732518669382, 'mean_word_length': 4.3992673992674, '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': '5650473', 'n_tokens_mistral': 575, 'n_tokens_neox': 550, 'n_words': 123}