<commit_before><commit_msg>Javascript file to enable/disable form fields in queryBuilder.<commit_after>      // ***********************************************************
      // * Disables form fields based on user toggle
      // ***********************************************************
      
   function swapInputs(open) {
   
		var constraints = new Array("attribute","subclass","loop","bags","empty"); 
		for (var i = 0; i < constraints.length; i++)
		{     
			//alert(" *** " + constraints[i]);	
			if(document.getElementById(constraints[i] + 'Submit')) {
				if (constraints[i] == open) {
					document.getElementById(constraints[i] + 'Submit').disabled = false;
    		  		document.getElementById(constraints[i] + 'Toggle').src = 'images/disclosed.gif';
				} else {
		      		document.getElementById(constraints[i] + 'Submit').disabled = true;
    		  		document.getElementById(constraints[i] + 'Toggle').src = 'images/undisclosed.gif';
				}
			}
		}        
	}
		
{'fraction_non_alphanumeric': 0.25816326530612244, 'fraction_numerical': 0.0010204081632653062, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6957793', 'n_tokens_mistral': 304, 'n_tokens_neox': 267, 'n_words': 48}