<commit_before>/*******************************************************************************
 * Use bag checkbox has been clicked.
 ******************************************************************************/
function clickUseBag(index) {
  var useBag = document.getElementById("useBagConstraint("+index+")").checked;
  if (document.getElementById("attributeOps("+index+")") && document.getElementById("attributeOps("+index+")") != undefined)
      document.getElementById("attributeOps("+index+")").disabled=useBag;
  if (document.getElementById("attributeOptions("+index+")")) {
    document.getElementById("attributeOptions("+index+")").disabled=useBag;
  }
  // if attributeValues is a radio button
  if (document.getElementById("attributeValues("+index+")")[0]) {
    document.getElementById("attributeValues("+index+")")[0].disabled=useBag;
    document.getElementById("attributeValues("+index+")")[1].disabled=useBag;
  }
  if (document.getElementById("multiValues("+index+")")) {
    document.getElementById("multiValues("+index+")").disabled=useBag;
  }
  if (document.getElementById("extraValues("+index+")")) {
    document.getElementById("extraValues("+index+")").disabled=useBag;
  }
  document.getElementById("attributeValues("+index+")").disabled=useBag;
  document.getElementById("bag("+index+")").disabled=!useBag;
  document.getElementById("bagOp("+index+")").disabled=!useBag;
}

function forwardToLinks() {
  // needed validation that bag is not used, validation is performed in the<commit_msg>Fixed a bug (in the template form) that didn't disable the operator false in a when th user select the bag constraint. <commit_after>/*******************************************************************************
 * Use bag checkbox has been clicked.
 ******************************************************************************/
function clickUseBag(index) {
  var useBag = document.getElementById("useBagConstraint("+index+")").checked;
  if (document.getElementById("attributeOps("+index+")") && document.getElementById("attributeOps("+index+")") != undefined)
      document.getElementById("attributeOps("+index+")").disabled=useBag;
  if (document.getElementById("attributeOptions("+index+")")) {
    document.getElementById("attributeOptions("+index+")").disabled=useBag;
  }

  var attributeValuesElements = document.getElementsByName("attributeValues("+index+")");
  //if attributeValues is a radio button
  if(attributeValuesElements[0].type == 'radio') {
    attributeValuesElements[0].disabled=useBag;
    attributeValuesElements[1].disabled=useBag;
  } else {
     document.getElementById("attributeValues("+index+")").disabled=useBag;
  }
  if (document.getElementById("multiValues("+index+")")) {
    document.getElementById("multiValues("+index+")").disabled=useBag;
  }
  if (document.getElementById("extraValues("+index+")")) {
    document.getElementById("extraValues("+index+")").disabled=useBag;
  }

  document.getElementById("bag("+index+")").disabled=!useBag;
  document.getElementById("bagOp("+index+")").disabled=!useBag;
}

function forwardToLinks() {
  // needed validation that bag is not used, validation is performed in the
{'fraction_non_alphanumeric': 0.25661209068010077, 'fraction_numerical': 0.001889168765743073, 'mean_word_length': 7.75206611570248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1788702', 'n_tokens_mistral': 815, 'n_tokens_neox': 796, 'n_words': 131}