<commit_before><div class="row form-group">
  <div class="col-sm-12 col-md-2 form-label">
    <label class="form-control-static">Command</label>
  </div>

  <div class="col-sm-12 col-md-8">
    {{input-command class="form-control" type="text" changed=(action (mut instance.command)) initialValue=instance.command placeholder="e.g. /usr/sbin/httpd -f httpd.conf"}}
  </div>
</div>
<div class="row form-group">
  <div class="col-sm-12 col-md-2 form-label">
    <label class="form-control-static">Entry Point</label>
  </div>
  <div class="col-sm-12 col-md-4">
    {{input-command class="form-control" type="text" changed=(action (mut instance.entryPoint)) initialValue=instance.entryPoint placeholder="e.g. /bin/sh -c"}}
  </div>
  <div class="col-sm-12 col-md-1 form-label" style="text-align: left">
    <label class="form-control-static">User</label>
  </div>
  <div class="col-sm-12 col-md-3">
    {{input type="text" value=instance.user classNames="form-control" placeholder="e.g. apache"}}
  </div>
</div>

<div class="row">
  <div class="col-sm-12 col-md-2 form-label">
    <label>Console</label>
  </div>

  <div class="col-xs-12 col-sm-6 col-md-4">
    <div class="radio small">
      <label>{{radio-button selection=terminal value="both"}} Interactive &amp; TTY <span class="text-muted">(-i -t)</span></label>
    </div>
  </div>
  <div class="col-xs-12 col-sm-6 col-md-4">
    <div class="radio small">
      <label>{{radio-button selection=terminal value="interactive"}} Interactive <span class="text-muted">(-i)</span></label>
    </div>
  </div>
</div>
<div class="row form-group">
  <div class="hidden-xs hidden-sm col-md-2 form-label">&nbsp;</div>
  <div class="col-xs-12 col-sm-6 col-md-4">
    <div class="radio small">
      <label>{{radio-button selection=terminal value="terminal"}} TTY <span class="text-muted">(-t)</span></label>
    </div>
  </div>
  <div class="col-xs-12 col-sm-6 col-md-4">
    <div class="radio small">
      <label>{{radio-button selection=terminal value="none"}} None</label>
    </div>
  </div>
</div>

{{#if isService}}
  <div class="row">
    <div class="col-sm-12 col-md-2 form-label">
      <label>Auto Restart</label>
    </div>

    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=startOnce value=false}} Always</label>
      </div>
    </div>
    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=startOnce value=true}} Never (Start Once)</label>
      </div>
    </div>
  </div>
{{else}}
  <div class="row">
    <div class="col-sm-12 col-md-2 form-label">
      <label>Auto Restart</label>
    </div>

    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=restart value="no"}} Never</label>
      </div>
    </div>
    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=restart value="on-failure"}} On failure <span class="text-muted">(non-0 exit code)</span>, forever</label>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="hidden-xs hidden-sm col-md-2 form-label">&nbsp;</div>
    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=restart value="always"}} Always</label>
      </div>
    </div>
    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=restart value="on-failure-cond"}} <span class="with-input">On failure, up to {{input type="number" min=1 safeStyle="width: 60px; padding: 0 2px; display: inline-block;" class="form-control input-sm" value=restartLimit}} time{{if (eq restartLimit "1") '' 's'}}</span></label>
      </div>
    </div>
  </div>
{{/if}}

<div class="row">
  <div class="col-sm-12 col-md-2 form-label">
    <label class="form-control-static">Environment Vars</label>
  </div>

  <div class="col-sm-12 col-md-8">
    {{form-key-value
      initialMap=instance.environment
      changed=(action (mut instance.environment))
      nameLabel="Environment Variable"
      keyLabel="Variable"
      keyPlaceholder="e.g. FOO"
      valuePlaceholder="e.g. bar"<commit_msg>fix empty env var values<commit_after><div class="row form-group">
  <div class="col-sm-12 col-md-2 form-label">
    <label class="form-control-static">Command</label>
  </div>

  <div class="col-sm-12 col-md-8">
    {{input-command class="form-control" type="text" changed=(action (mut instance.command)) initialValue=instance.command placeholder="e.g. /usr/sbin/httpd -f httpd.conf"}}
  </div>
</div>
<div class="row form-group">
  <div class="col-sm-12 col-md-2 form-label">
    <label class="form-control-static">Entry Point</label>
  </div>
  <div class="col-sm-12 col-md-4">
    {{input-command class="form-control" type="text" changed=(action (mut instance.entryPoint)) initialValue=instance.entryPoint placeholder="e.g. /bin/sh -c"}}
  </div>
  <div class="col-sm-12 col-md-1 form-label" style="text-align: left">
    <label class="form-control-static">User</label>
  </div>
  <div class="col-sm-12 col-md-3">
    {{input type="text" value=instance.user classNames="form-control" placeholder="e.g. apache"}}
  </div>
</div>

<div class="row">
  <div class="col-sm-12 col-md-2 form-label">
    <label>Console</label>
  </div>

  <div class="col-xs-12 col-sm-6 col-md-4">
    <div class="radio small">
      <label>{{radio-button selection=terminal value="both"}} Interactive &amp; TTY <span class="text-muted">(-i -t)</span></label>
    </div>
  </div>
  <div class="col-xs-12 col-sm-6 col-md-4">
    <div class="radio small">
      <label>{{radio-button selection=terminal value="interactive"}} Interactive <span class="text-muted">(-i)</span></label>
    </div>
  </div>
</div>
<div class="row form-group">
  <div class="hidden-xs hidden-sm col-md-2 form-label">&nbsp;</div>
  <div class="col-xs-12 col-sm-6 col-md-4">
    <div class="radio small">
      <label>{{radio-button selection=terminal value="terminal"}} TTY <span class="text-muted">(-t)</span></label>
    </div>
  </div>
  <div class="col-xs-12 col-sm-6 col-md-4">
    <div class="radio small">
      <label>{{radio-button selection=terminal value="none"}} None</label>
    </div>
  </div>
</div>

{{#if isService}}
  <div class="row">
    <div class="col-sm-12 col-md-2 form-label">
      <label>Auto Restart</label>
    </div>

    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=startOnce value=false}} Always</label>
      </div>
    </div>
    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=startOnce value=true}} Never (Start Once)</label>
      </div>
    </div>
  </div>
{{else}}
  <div class="row">
    <div class="col-sm-12 col-md-2 form-label">
      <label>Auto Restart</label>
    </div>

    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=restart value="no"}} Never</label>
      </div>
    </div>
    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=restart value="on-failure"}} On failure <span class="text-muted">(non-0 exit code)</span>, forever</label>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="hidden-xs hidden-sm col-md-2 form-label">&nbsp;</div>
    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=restart value="always"}} Always</label>
      </div>
    </div>
    <div class="col-xs-12 col-sm-6 col-md-4">
      <div class="radio small">
        <label>{{radio-button selection=restart value="on-failure-cond"}} <span class="with-input">On failure, up to {{input type="number" min=1 safeStyle="width: 60px; padding: 0 2px; display: inline-block;" class="form-control input-sm" value=restartLimit}} time{{if (eq restartLimit "1") '' 's'}}</span></label>
      </div>
    </div>
  </div>
{{/if}}

<div class="row">
  <div class="col-sm-12 col-md-2 form-label">
    <label class="form-control-static">Environment Vars</label>
  </div>

  <div class="col-sm-12 col-md-8">
    {{form-key-value
      initialMap=instance.environment
      changed=(action (mut instance.environment))
      nameLabel="Environment Variable"
      keyLabel="Variable"
      keyPlaceholder="e.g. FOO"
      valuePlaceholder="e.g. bar"
      allowEmptyValue=true
{'fraction_non_alphanumeric': 0.20391192316701803, 'fraction_numerical': 0.019208245490747247, 'mean_word_length': 3.38347022587269, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 251, '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': '6633011', 'n_tokens_mistral': 3106, 'n_tokens_neox': 3005, 'n_words': 634}