<commit_before># This file is managed by Puppet and local changes
# may be overwritten

[Unit]
Description=Daemon for <%= @title %>
After=docker.service
Requires=docker.service

[Service]
<%- if @username -%>User=<%= @username %><%- end -%>
TimeoutStartSec=0
ExecStartPre=-/usr/bin/<%= @docker_command %> kill <%= @sanitised_title %>
ExecStartPre=-/usr/bin/<%= @docker_command %> rm <%= @sanitised_title %>
ExecStartPre=/usr/bin/<%= @docker_command %> pull <%= @image %>
ExecStart=/usr/bin/<%= @docker_command %> run \
        <% if @username %>-u '<%= @username %>' <% end %> \
        <% if @hostname %>-h '<%= @hostname %>'<% end %> \
        <% if @disable_network %>-n false<% end %> \
        <% if @privileged %>--privileged<% end %> \
        <% if @detach %>--detach=true<% end %> \
        <% if @dns %><% @dns_array.each do |address| %> \
            --dns <%= address %><% end %> \
        <% end %> \
        <% if @dns_search %><% @dns_search_array.each do |domain| %> \
            --dns-search <%= domain %><% end %> \
        <% end %> \
        <% if @env %><% @env_array.each do |env| %> \
            -e <%= env %><% end %> \
        <% end %> \
        <% if @ports %><% @ports_array.each do |port| %> \
            -p <%= port %><% end %> \
        <% end %> \
        <% if @expose %><% @expose_array.each do |expose_port| %> \
            --expose=<%= expose_port %><% end %> \
        <% end %> \
        <% if @volumes %><% @volumes_array.each do |volume| %> \<commit_msg>Set enviornment for  /root/.docker.cfg support<commit_after># This file is managed by Puppet and local changes
# may be overwritten

[Unit]
Description=Daemon for <%= @title %>
After=docker.service
Requires=docker.service

[Service]
<%- if @username -%>User=<%= @username %><%- end -%>
TimeoutStartSec=0
Environment="HOME=/root"
ExecStartPre=-/usr/bin/<%= @docker_command %> kill <%= @sanitised_title %>
ExecStartPre=-/usr/bin/<%= @docker_command %> rm <%= @sanitised_title %>
ExecStartPre=/usr/bin/<%= @docker_command %> pull <%= @image %>
ExecStart=/usr/bin/<%= @docker_command %> run \
        <% if @username %>-u '<%= @username %>' <% end %> \
        <% if @hostname %>-h '<%= @hostname %>'<% end %> \
        <% if @disable_network %>-n false<% end %> \
        <% if @privileged %>--privileged<% end %> \
        <% if @detach %>--detach=true<% end %> \
        <% if @dns %><% @dns_array.each do |address| %> \
            --dns <%= address %><% end %> \
        <% end %> \
        <% if @dns_search %><% @dns_search_array.each do |domain| %> \
            --dns-search <%= domain %><% end %> \
        <% end %> \
        <% if @env %><% @env_array.each do |env| %> \
            -e <%= env %><% end %> \
        <% end %> \
        <% if @ports %><% @ports_array.each do |port| %> \
            -p <%= port %><% end %> \
        <% end %> \
        <% if @expose %><% @expose_array.each do |expose_port| %> \
            --expose=<%= expose_port %><% end %> \
        <% end %> \
        <% if @volumes %><% @volumes_array.each do |volume| %> \
{'fraction_non_alphanumeric': 0.2288801571709234, 'fraction_numerical': 0.0006548788474132286, 'mean_word_length': 2.263888888888889, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '5097476', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1035, 'n_words': 233}