<commit_before>import time

import requests
import requests.exceptions
import docker
import docker.errors

from puffin import app
from .db import db
from . import machine as machine_module
from . import compose
from . import network
from . import applications
from . import queue
from . import security
from . import backup
from .. import util


# How long to wait after creating an app, to allow dependencies startup
APPLICATION_SLEEP_AFTER_CREATE = 10

# How long wait for application startup
APPLICATION_CREATE_TIMEOUT = 60


def init():
    pass

def get_client():
    machine = machine_module.get_machine()
    client = docker.DockerClient(base_url=machine.url, tls=machine_module.get_tls_config(machine), version="auto")<commit_msg>Increase app startup timeout to 2min<commit_after>import time

import requests
import requests.exceptions
import docker
import docker.errors

from puffin import app
from .db import db
from . import machine as machine_module
from . import compose
from . import network
from . import applications
from . import queue
from . import security
from . import backup
from .. import util


# How long to wait after creating an app, to allow dependencies startup
APPLICATION_SLEEP_AFTER_CREATE = 10

# How long wait for application startup
APPLICATION_CREATE_TIMEOUT = 120


def init():
    pass

def get_client():
    machine = machine_module.get_machine()
    client = docker.DockerClient(base_url=machine.url, tls=machine_module.get_tls_config(machine), version="auto")
{'fraction_non_alphanumeric': 0.06, 'fraction_numerical': 0.006666666666666667, 'mean_word_length': 4.817829457364341, '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': '7620721', 'n_tokens_mistral': 431, 'n_tokens_neox': 403, 'n_words': 158}