<commit_before>package de.gesellix.docker.client

import spock.lang.Specification

class DockerRegistrySpec extends Specification {

    def "can determine registry url"() {
        given:
        def registry = new DockerRegistry(dockerClient: new DockerClientImpl(
                config: new DockerConfig(
                        dockerHost: "tcp://192.168.99.100:2376",
                        certPath: "/Users/${System.getProperty('user.name')}/.docker/machine/machines/default")
        ))
        registry.run()
        when:
        def registryUrl = registry.url()
        then:
        registryUrl =~ /^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|localhost:\d{1,5}\u0024/
        cleanup:
        registry.rm()
    }
}<commit_msg>this wasn't meant to run on the ci server<commit_after>package de.gesellix.docker.client

import spock.lang.IgnoreIf
import spock.lang.Specification

@IgnoreIf({ !System.env.DOCKER_HOST })
class DockerRegistrySpec extends Specification {

    def "can determine registry url"() {
        given:
        def registry = new DockerRegistry(dockerClient: new DockerClientImpl())
        registry.run()
        when:
        def registryUrl = registry.url()
        then:
        registryUrl =~ /^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|localhost:\d{1,5}\u0024/
        cleanup:
        registry.rm()
    }
}
{'fraction_non_alphanumeric': 0.1409295352323838, 'fraction_numerical': 0.03223388305847077, 'mean_word_length': 2.3883248730964466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6650523', 'n_tokens_mistral': 441, 'n_tokens_neox': 406, 'n_words': 79}