<commit_before><j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
  <l:layout title="${it.displayName}">
    <st:include page="sidepanel.jelly" />
    <l:main-panel>
      <!-- temporarily offline switch -->
      <div style="float:right">
        <form method="get" action="toggleOffline">
          <j:if test="${it.temporarilyOffline}">
            <input type="submit" value="This node is back online"  />
          </j:if>
          <j:if test="${!it.temporarilyOffline}">
            <input type="submit" value="Mark this node temporarily offline"  />
          </j:if>
        </form>
      </div>

      <h1>
        <img src="${imagesURL}/48x48/${it.icon}" width="48" height="48" />
        ${it.caption}
      </h1>

      <j:choose>
        <j:when test="${it.jnlpAgent}">
          <j:choose>
            <j:when test="${app.slaveAgentPort==-1}">
              <img src="${imagesURL}/32x32/error.gif"/>
              <span class="error">
                TCP port for JNLP slave agentsis is disabled.
                <a href="${rootURL}/configure">Go to system config screen and change it</a>.
              </span>
            </j:when>
            <j:when test="${it.offline &amp;&amp; !it.temporarilyOffline}">
              <l:isAdmin>
                <p>
                  <a href="slave-agent.jnlp">
                    <img src="${imagesURL}/webstart.gif" alt="launch agent" />
                    Launch slave agent
                  </a>
                </p>
                <p>
                  (Click the above link from this slave computer to launch the slave agent via JNLP,
                  or from command-line run <nowrap><tt>javaws ${h.inferHudsonURL(request)}${it.url}slave-agent.jnlp</tt></nowrap>)
                </p>
              </l:isAdmin>
            </j:when>
            <j:otherwise>
              <p>
                Connected via JNLP agent.
              </p>
            </j:otherwise>
          </j:choose>
        </j:when>
        <j:otherwise>
          <j:if test="${it.offline &amp;&amp; !it.temporarilyOffline}">
            <p class="error">
              This node is offline because Hudson failed to launch the slave agent on it.
              <a href="log">See log for more details</a>
            </p>
            <l:isAdmin>
              <form method="get" action="launchSlaveAgent">
                <input type="submit" value="Launch slave agent"  />
              </form>
            </l:isAdmin>
          </j:if>
        </j:otherwise>
      </j:choose>

      <j:if test="${it.node.assignedLabels.size() gt 1}">
        <div>
          Labels:
          <j:forEach var="l" items="${it.node.assignedLabels}">
            <j:if test="${l!=it.node.selfLabel}">
              <a href="${rootURL}/label/${l.name}">${l.name}</a>
              <st:nbsp/>
            </j:if>
          </j:forEach>
        </div>
      </j:if>


      <h2>Projects tied on ${it.displayName}</h2>
      <j:set var="jobs" value="${it.tiedJobs}" />
      <j:choose>
        <j:when test="${empty(jobs)}">
          <p><commit_msg>use more YUI.<commit_after><j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
  <l:layout title="${it.displayName}">
    <st:include page="sidepanel.jelly" />
    <l:main-panel>
      <!-- temporarily offline switch -->
      <div style="float:right">
        <form method="get" action="toggleOffline">
          <j:if test="${it.temporarilyOffline}">
            <f:submit value="This node is back online"  />
          </j:if>
          <j:if test="${!it.temporarilyOffline}">
            <f:submit value="Mark this node temporarily offline"  />
          </j:if>
        </form>
      </div>

      <h1>
        <img src="${imagesURL}/48x48/${it.icon}" width="48" height="48" />
        ${it.caption}
      </h1>

      <j:choose>
        <j:when test="${it.jnlpAgent}">
          <j:choose>
            <j:when test="${app.slaveAgentPort==-1}">
              <img src="${imagesURL}/32x32/error.gif"/>
              <span class="error">
                TCP port for JNLP slave agentsis is disabled.
                <a href="${rootURL}/configure">Go to system config screen and change it</a>.
              </span>
            </j:when>
            <j:when test="${it.offline &amp;&amp; !it.temporarilyOffline}">
              <l:isAdmin>
                <p>
                  <a href="slave-agent.jnlp">
                    <img src="${imagesURL}/webstart.gif" alt="launch agent" />
                    Launch slave agent
                  </a>
                </p>
                <p>
                  (Click the above link from this slave computer to launch the slave agent via JNLP,
                  or from command-line run <nowrap><tt>javaws ${h.inferHudsonURL(request)}${it.url}slave-agent.jnlp</tt></nowrap>)
                </p>
              </l:isAdmin>
            </j:when>
            <j:otherwise>
              <p>
                Connected via JNLP agent.
              </p>
            </j:otherwise>
          </j:choose>
        </j:when>
        <j:otherwise>
          <j:if test="${it.offline &amp;&amp; !it.temporarilyOffline}">
            <p class="error">
              This node is offline because Hudson failed to launch the slave agent on it.
              <a href="log">See log for more details</a>
            </p>
            <l:isAdmin>
              <form method="get" action="launchSlaveAgent">
                <f:submit value="Launch slave agent" />
              </form>
            </l:isAdmin>
          </j:if>
        </j:otherwise>
      </j:choose>

      <j:if test="${it.node.assignedLabels.size() gt 1}">
        <div>
          Labels:
          <j:forEach var="l" items="${it.node.assignedLabels}">
            <j:if test="${l!=it.node.selfLabel}">
              <a href="${rootURL}/label/${l.name}">${l.name}</a>
              <st:nbsp/>
            </j:if>
          </j:forEach>
        </div>
      </j:if>


      <h2>Projects tied on ${it.displayName}</h2>
      <j:set var="jobs" value="${it.tiedJobs}" />
      <j:choose>
        <j:when test="${empty(jobs)}">
          <p>
{'fraction_non_alphanumeric': 0.17082806573957016, 'fraction_numerical': 0.005689001264222503, 'mean_word_length': 1.6481171548117155, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 163, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '6740629', 'n_tokens_mistral': 2056, 'n_tokens_neox': 1949, 'n_words': 402}