<commit_before>/** @jsx React.DOM */

define([
  "React",
], function(React) {

  function buildHref(host, port) {
    return "http://" + host + ":" + port;
  }

  function buildTaskAnchors(task) {
    var taskAnchors;
    var ports = task.get("ports");
    var portsLength = ports.length;

    if (portsLength > 1) {
      // Linkify each port with the hostname. The port is the text of the
      // anchor, but the href contains the hostname and port, a full link.
      taskAnchors =
        <span className="text-muted">
          {task.get("host")}:[{ports.map(function(p, index) {
            return (
              <span>
                <a key={p} className="text-muted" href={buildHref(task.get("host"), p)}>{p}</a>
                {index < portsLength - 1 ? ", " : ""}
              </span>
            );
          })}]
        </span>;
    } else if (portsLength === 1) {
      // Linkify the hostname + port since there is only one port.
      taskAnchors =
        <a className="text-muted" href={buildHref(task.get("host"), ports[0])}>
          {task.get("host")}:{ports[0]}
        </a>;
    } else {
      // Ain't no ports; don't linkify.
      taskAnchors = <span className="text-muted">{task.get("host")}</span>;
    }
<commit_msg>Moving key to correct element<commit_after>/** @jsx React.DOM */

define([
  "React",
], function(React) {

  function buildHref(host, port) {
    return "http://" + host + ":" + port;
  }

  function buildTaskAnchors(task) {
    var taskAnchors;
    var ports = task.get("ports");
    var portsLength = ports.length;

    if (portsLength > 1) {
      // Linkify each port with the hostname. The port is the text of the
      // anchor, but the href contains the hostname and port, a full link.
      taskAnchors =
        <span className="text-muted">
          {task.get("host")}:[{ports.map(function(p, index) {
            return (
              <span key={p}>
                <a className="text-muted" href={buildHref(task.get("host"), p)}>{p}</a>
                {index < portsLength - 1 ? ", " : ""}
              </span>
            );
          })}]
        </span>;
    } else if (portsLength === 1) {
      // Linkify the hostname + port since there is only one port.
      taskAnchors =
        <a className="text-muted" href={buildHref(task.get("host"), ports[0])}>
          {task.get("host")}:{ports[0]}
        </a>;
    } else {
      // Ain't no ports; don't linkify.
      taskAnchors = <span className="text-muted">{task.get("host")}</span>;
    }

{'fraction_non_alphanumeric': 0.16825396825396827, 'fraction_numerical': 0.003968253968253968, 'mean_word_length': 2.100861008610086, 'pattern_counts': {'":': 2, '<': 25, '<?xml version=': 0, '>': 25, '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': '981487', 'n_tokens_mistral': 827, 'n_tokens_neox': 807, 'n_words': 200}