<commit_before>
// **Materialize initializers and bits**
//-------------------------------------------------------
$(document).ready(function(){
            $('ul.tabs').tabs();
          });


//-------------------------------------------------------

//login validation


function validation() {
  var giturl = document.getElementById("giturl").value;
  console.log(giturl);
  var apikey = document.getElementById("apikey").value;
  console.log(apikey);
  if (giturl === '' || apikey === '') {
    console.log("Please fill all fields...!!!!!!");
    return false;
  }
  else {
    return true;
  }
}<commit_msg>added validation for org and repo forms<commit_after>
// **Materialize initializers and bits**
//-------------------------------------------------------
$(document).ready(function(){
            $('ul.tabs').tabs();
          });


//-------------------------------------------------------

//login validation


function validation() {
  var giturl = document.getElementById("giturl").value;
  console.log(giturl);
  var apikey = document.getElementById("apikey").value;
  console.log(apikey);
  if (giturl === '' || apikey === '') {
    console.log("Please fill all fields...!!!!!!");
    return false;
  }
  else {
    return true;
  }
}


function validationOrg() {
  var orgUrl = document.getElementById("orgUrl").value;
  var apikey = document.getElementById("apikeyOrg").value;
  if (orgUrl === '' || apikey === '') {
    console.log("Please fill all fields...!!!!!!");
    return false;
  }
  else {
    return true;
  }
}

function validationRepo() {
  var repoUrl = document.getElementById("repoUrl").value;
  var apikey = document.getElementById("apikeyrepo").value;
  if (repoUrl === '' || apikey === '') {
    console.log("Please fill all fields...!!!!!!");
    return false;
  }
  else {
    return true;
  }
}
{'fraction_non_alphanumeric': 0.2875816993464052, 'fraction_numerical': 0.0, 'mean_word_length': 2.0313531353135312, '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': '2926345', 'n_tokens_mistral': 500, 'n_tokens_neox': 492, 'n_words': 108}