<commit_before>function renderDeploySummary (deployInfo) {
  var deploySummary = "";

  for (var serviceName in deployInfo.services) {
    var serviceHasToBeRendered = false;
    var masterSummary = "";
    var propertySummary = "";

    if (deployInfo.services.hasOwnProperty( serviceName )) {

      var perServiceInfo = deployInfo.services[serviceName];

      var configElementName = serviceName;
      var configElementIdName = configElementName + 'Id';

      if (perServiceInfo.isEnabled == false) {
          continue;
      }

      for (var componentIndex in perServiceInfo.components) {
        if (!perServiceInfo.components[componentIndex].isMaster) {
          continue;
        }
        var component = perServiceInfo.components[componentIndex];
        serviceHasToBeRendered = true;
        masterSummary += '<label for=' + component.componentName + 'Id>' + component.displayName + '</label>' +
                         '<input type=text name=' + component.componentName + 'Name id=' + component.componentName + 'Id readonly=readonly value=\"' + component.hostName + '\">';
      }

      for (var mPropertiesKey in perServiceInfo.properties) {
        if (perServiceInfo.properties[mPropertiesKey].type == "NODISPLAY") {
          continue;
        }
        serviceHasToBeRendered = true;

        readOnlyAttr = 'readonly=readonly';
        valueAttr = 'value=\"' + perServiceInfo.properties[mPropertiesKey].value;
        type = convertDisplayType(perServiceInfo.properties[mPropertiesKey].type;
        if (type == "checkbox") {
          readOnlyAttr = 'disabled="disabled"';
          var checkVal = perServiceInfo.properties[mPropertiesKey].value;
          if (checkVal) {
            valueAttr = 'checked=yes';
          }
          valueAttr = '';
        }

        propertySummary += '<div class="formElement">' +
                             '<label for=' + mPropertiesKey  + 'Id>' + perServiceInfo.properties[mPropertiesKey].displayName + '</label>' +
                             '<input type=' + type + ' name=' + mPropertiesKey + 'Name id=' + mPropertiesKey + 'Id ' + readOnlyAttr + ' ' + valueAttr + '>' +
                           '</div>';
      }
    }

    if (serviceHasToBeRendered) {
      deploySummary += '<fieldset>' + '<legend>' + perServiceInfo.displayName + '</legend>';
      deploySummary += masterSummary;
      deploySummary += propertySummary;
      deploySummary += '</fieldset><br/>';
    }
  }

  globalYui.log("Final HTML: " + globalYui.Lang.dump(deploySummary));
<commit_msg>Typo fix<commit_after>function renderDeploySummary (deployInfo) {
  var deploySummary = "";

  for (var serviceName in deployInfo.services) {
    var serviceHasToBeRendered = false;
    var masterSummary = "";
    var propertySummary = "";

    if (deployInfo.services.hasOwnProperty( serviceName )) {

      var perServiceInfo = deployInfo.services[serviceName];

      var configElementName = serviceName;
      var configElementIdName = configElementName + 'Id';

      if (perServiceInfo.isEnabled == false) {
          continue;
      }

      for (var componentIndex in perServiceInfo.components) {
        if (!perServiceInfo.components[componentIndex].isMaster) {
          continue;
        }
        var component = perServiceInfo.components[componentIndex];
        serviceHasToBeRendered = true;
        masterSummary += '<label for=' + component.componentName + 'Id>' + component.displayName + '</label>' +
                         '<input type=text name=' + component.componentName + 'Name id=' + component.componentName + 'Id readonly=readonly value=\"' + component.hostName + '\">';
      }

      for (var mPropertiesKey in perServiceInfo.properties) {
        if (perServiceInfo.properties[mPropertiesKey].type == "NODISPLAY") {
          continue;
        }
        serviceHasToBeRendered = true;

        readOnlyAttr = 'readonly=readonly';
        valueAttr = 'value=\"' + perServiceInfo.properties[mPropertiesKey].value;
        type = convertDisplayType(perServiceInfo.properties[mPropertiesKey].type);
        if (type == "checkbox") {
          readOnlyAttr = 'disabled="disabled"';
          var checkVal = perServiceInfo.properties[mPropertiesKey].value;
          if (checkVal) {
            valueAttr = 'checked=yes';
          }
          valueAttr = '';
        }

        propertySummary += '<div class="formElement">' +
                             '<label for=' + mPropertiesKey  + 'Id>' + perServiceInfo.properties[mPropertiesKey].displayName + '</label>' +
                             '<input type=' + type + ' name=' + mPropertiesKey + 'Name id=' + mPropertiesKey + 'Id ' + readOnlyAttr + ' ' + valueAttr + '>' +
                           '</div>';
      }
    }

    if (serviceHasToBeRendered) {
      deploySummary += '<fieldset>' + '<legend>' + perServiceInfo.displayName + '</legend>';
      deploySummary += masterSummary;
      deploySummary += propertySummary;
      deploySummary += '</fieldset><br/>';
    }
  }

  globalYui.log("Final HTML: " + globalYui.Lang.dump(deploySummary));

{'fraction_non_alphanumeric': 0.12687450670876085, 'fraction_numerical': 0.0, 'mean_word_length': 2.5950354609929076, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '4899642', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1326, 'n_words': 267}