<commit_before>package se.marcuslonnberg.scaladocker.remote.api

import java.io.File

import akka.stream.scaladsl.{Sink, Source}
import akka.util.ByteString
import org.joda.time.{DateTime, Seconds}
import se.marcuslonnberg.scaladocker.remote.models._

import scala.concurrent.{ExecutionContext, Future, Promise}
import scala.util.{Failure, Success}

class DockerClient(connection: DockerConnection) {

  import connection._

  val container = new ContainerCommands(connection)

  val image = new ImageCommands(connection)

  val host = new HostCommands(connection)

  def ps(all: Boolean = false)(implicit ec: ExecutionContext): Future[Seq[ContainerStatus]] = listContainers(all)

  def listContainers(all: Boolean = false)(implicit ec: ExecutionContext): Future[Seq[ContainerStatus]] = container.list(all)

  def images(all: Boolean = false)(implicit ec: ExecutionContext): Future[Seq[Image]] = listImages(all)

  def listImages(all: Boolean = false)(implicit ec: ExecutionContext): Future[Seq[Image]] = image.list(all)

  def inspect(containerId: ContainerId)(implicit ec: ExecutionContext): Future[ContainerInfo] = container.get(containerId)

  def create(
    containerConfig: ContainerConfig,
    hostConfig: HostConfig = HostConfig(),<commit_msg>DockerClient should be a case class<commit_after>package se.marcuslonnberg.scaladocker.remote.api

import java.io.File

import akka.stream.scaladsl.{Sink, Source}
import akka.util.ByteString
import org.joda.time.{DateTime, Seconds}
import se.marcuslonnberg.scaladocker.remote.models._

import scala.concurrent.{ExecutionContext, Future, Promise}
import scala.util.{Failure, Success}

case class DockerClient(connection: DockerConnection) {

  import connection._

  val container = new ContainerCommands(connection)

  val image = new ImageCommands(connection)

  val host = new HostCommands(connection)

  def ps(all: Boolean = false)(implicit ec: ExecutionContext): Future[Seq[ContainerStatus]] = listContainers(all)

  def listContainers(all: Boolean = false)(implicit ec: ExecutionContext): Future[Seq[ContainerStatus]] = container.list(all)

  def images(all: Boolean = false)(implicit ec: ExecutionContext): Future[Seq[Image]] = listImages(all)

  def listImages(all: Boolean = false)(implicit ec: ExecutionContext): Future[Seq[Image]] = image.list(all)

  def inspect(containerId: ContainerId)(implicit ec: ExecutionContext): Future[ContainerInfo] = container.get(containerId)

  def create(
    containerConfig: ContainerConfig,
    hostConfig: HostConfig = HostConfig(),
{'fraction_non_alphanumeric': 0.10746740418806795, 'fraction_numerical': 0.0, 'mean_word_length': 6.469026548672566, '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': '5327676', 'n_tokens_mistral': 749, 'n_tokens_neox': 734, 'n_words': 173}