<commit_before>$('.dropdown-toggle').dropdown();
$(
	function(){
		var form = $('#switchVersionForm')
		var switchButton = $('#switchButton')
		$(switchButton).click(
			function(){ //listen for click event
			showNameModal(function(){$(form).submit();});
			})
	}
)
// modal for user s name
var showNameModal = function(callback) {
	callback: callback;
    $("#myModal").bind("show", function() {
        $("#myModal a.primary").click(function(e) {
            var modalSwitcherPass = $("#modalSwitcherPass")[0]
            if (modalSwitcherPass.value !== "") {
	            var switcherPass = $("#switcherPass")[0]
	            switcherPass.value = modalSwitcherPass.value
	            $("#myModal").modal('hide');
	            callback();
        	}
        });
        $("#myModal a.inverse").click(function(e) {
	        $("#myModal").modal('hide');
        });
    });
 
    // remove the event listeners when the dialog is hidden
    $("#myModal").bind("hide", function() {
        // remove event listeners on the buttons
        $("#myModal a.btn").unbind();
    });
 
    $("#myModal").modal({
      "backdrop"  : "static",
      "keyboard"  : true,
      "show"      : true    // this parameter ensures the modal is shown immediately<commit_msg>name refactoring<commit_after>$('.dropdown-toggle').dropdown();
$(
	function(){
		var form = $('#switchVersionForm')
		var switchButton = $('#switchButton')
		$(switchButton).click(
			function(){ //listen for click event
			showPasswordModal(function(){$(form).submit();});
			})
	}
)
// modal for user s password
var showPasswordModal = function(callback) {
	callback: callback;
    $("#myModal").bind("show", function() {
        $("#myModal a.primary").click(function(e) {
            var modalSwitcherPass = $("#modalSwitcherPass")[0]
            if (modalSwitcherPass.value !== "") {
	            var switcherPass = $("#switcherPass")[0]
	            switcherPass.value = modalSwitcherPass.value
	            $("#myModal").modal('hide');
	            callback();
        	}
        });
        $("#myModal a.inverse").click(function(e) {
	        $("#myModal").modal('hide');
        });
    });
 
    // remove the event listeners when the dialog is hidden
    $("#myModal").bind("hide", function() {
        // remove event listeners on the buttons
        $("#myModal a.btn").unbind();
    });
 
    $("#myModal").modal({
      "backdrop"  : "static",
      "keyboard"  : true,
      "show"      : true    // this parameter ensures the modal is shown immediately
{'fraction_non_alphanumeric': 0.1820340324495449, 'fraction_numerical': 0.0015829046299960427, 'mean_word_length': 2.5807365439093486, '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': '3866239', 'n_tokens_mistral': 726, 'n_tokens_neox': 713, 'n_words': 156}