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

[Unit]
Description=Daemon for <%= @title %>
After=docker.service<% if @depends %><% @sanitised_depends_array.each do |d| %><%= " #{@service_prefix}#{d}.service" %><% end %><% end %>
Requires=docker.service<% if @depends %><% @sanitised_depends_array.each do |d| %><%= " #{@service_prefix}#{d}.service" %><% end %><% end %>

[Service]
Restart=on-failure
StartLimitInterval=20
StartLimitBurst=5
TimeoutStartSec=0
Environment="HOME=/root"
ExecStartPre=-/usr/bin/<%= @docker_command %> kill <%= @sanitised_title %>
ExecStartPre=-/usr/bin/<%= @docker_command %> rm -v <%= @sanitised_title %>
<%- if @pull_on_start %>ExecStartPre=/usr/bin/<%= @docker_command %> pull <%= @image %>
<% end -%>
ExecStart=/usr/bin/<%= @docker_command %> run \
        <%= @docker_run_flags %> \
        --name <%= @sanitised_title %> \
<%- if @log_driver %>        --log-driver=<%= @log_driver %> \
<% end -%>
<%- if @log_driver_opts %>        --log-opt <%= @log_driver_opts %> \
<% end -%>
<%- if @container_hostname %>        --hostname=<%= @container_hostname %> \
<% end -%>
<%- if @linked_container %>        --link=<%= @linked_container %> \
<% end -%>
<%- if @dns_servers %>        --dns=<%= @dns_servers %> \
<% end -%>
<%- if @dns_search_domain %>        --dns-search=<%= @dns_search_domain %> \
<% end -%>
        <%= @image %> \
        <% if @command %> <%= @command %><% end %>
<%- if @before_stop %>ExecStop=-<%= @before_stop %>
<% end -%>
ExecStop=-/usr/bin/<%= @docker_command %> stop <%= @sanitised_title %>

[Install]
WantedBy=multi-user.target
<commit_msg>Added nested if for log_driver=='none'<commit_after># This file is managed by Puppet and local changes
# may be overwritten

[Unit]
Description=Daemon for <%= @title %>
After=docker.service<% if @depends %><% @sanitised_depends_array.each do |d| %><%= " #{@service_prefix}#{d}.service" %><% end %><% end %>
Requires=docker.service<% if @depends %><% @sanitised_depends_array.each do |d| %><%= " #{@service_prefix}#{d}.service" %><% end %><% end %>

[Service]
Restart=on-failure
StartLimitInterval=20
StartLimitBurst=5
TimeoutStartSec=0
Environment="HOME=/root"
ExecStartPre=-/usr/bin/<%= @docker_command %> kill <%= @sanitised_title %>
ExecStartPre=-/usr/bin/<%= @docker_command %> rm -v <%= @sanitised_title %>
<%- if @pull_on_start %>ExecStartPre=/usr/bin/<%= @docker_command %> pull <%= @image %>
<% end -%>
ExecStart=/usr/bin/<%= @docker_command %> run \
        <%= @docker_run_flags %> \
        --name <%= @sanitised_title %> \
<%- if @log_driver %>        --log-driver=<%= @log_driver %> \
<% end -%>
<%- if @log_driver != 'none' %>
  <%- if @log_driver_opts %>        --log-opt <%= @log_driver_opts %> \
  <% end -%>
<% end -%>
<%- if @container_hostname %>        --hostname=<%= @container_hostname %> \
<% end -%>
<%- if @linked_container %>        --link=<%= @linked_container %> \
<% end -%>
<%- if @dns_servers %>        --dns=<%= @dns_servers %> \
<% end -%>
<%- if @dns_search_domain %>        --dns-search=<%= @dns_search_domain %> \
<% end -%>
        <%= @image %> \
        <% if @command %> <%= @command %><% end %>
<%- if @before_stop %>ExecStop=-<%= @before_stop %>
<% end -%>
ExecStop=-/usr/bin/<%= @docker_command %> stop <%= @sanitised_title %>

[Install]
WantedBy=multi-user.target

{'fraction_non_alphanumeric': 0.23401075911536162, 'fraction_numerical': 0.002390914524805738, 'mean_word_length': 3.7008426966292136, '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': '2640202', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1220, 'n_words': 226}