<commit_before>$(document).ready(function() {
    var droppedDown = false;
    var fileType = true;
	var converting = false;
	
	var fileTypes = ["wmv", "m4v", "mp4", "mp3"];

		
    if(typeof FileActions !== 'undefined') {
        var infoIconPath = OC.imagePath('convert','convert.svg');

        FileActions.register('file', 'Convert', OC.PERMISSION_UPDATE, infoIconPath, function(fileName) {
            var extension = fileName.substring(fileName.length - 5);
			
            if(scanFiles.scanning) { return; } 

            var directory = $('#dir').val();
            directory = (directory === "/") ? directory : directory + "/";

            var filePath = directory + fileName; 
            var message = t('convert', "Select file type:");

            //Build dropdown menu
            var html = '<div id="dropdown" class="drop">\n\
                            <p id="message">' + message + '</p>\n\
                            <div id="submit">\n\
                                <input id="fileType" style="width:220px" type="text" />\n\
                                <input id="execute" type="button" value="' + 'Convert' + '" />\n\
                            </div>\n\
                        </div>';

            if(fileName) {
                $('tr').filterAttr('data-file',fileName).addClass('mouseOver');<commit_msg>Dropdown<commit_after>$(document).ready(function() {
    var droppedDown = false;
    var fileType = true;
	var converting = false;
	
	var fileTypes = ["'wmv'", "'m4v'", "'mp4'", "'mp3'"];

		
    if(typeof FileActions !== 'undefined') {
        var infoIconPath = OC.imagePath('convert','convert.svg');

        FileActions.register('file', 'Convert', OC.PERMISSION_UPDATE, infoIconPath, function(fileName) {
            var extension = fileName.substring(fileName.length - 5);
			
            if(scanFiles.scanning) { return; } 

            var directory = $('#dir').val();
            directory = (directory === "/") ? directory : directory + "/";

            var filePath = directory + fileName; 
            var message = t('convert', "Select file type:");

            //Build dropdown menu
            var html = '<div id="dropdown" class="drop">\n\
                            <p id="message">' + message + '</p>\n\
                            <div id="submit">\n\
                                <input id="fileType" style="width:220px" type="text" />\n\
                                <input id="execute" type="button" value="' + 'Convert' + '" />\n\
                            </div>\n\
                        </div>';

            if(fileName) {
                $('tr').filterAttr('data-file',fileName).addClass('mouseOver');
{'fraction_non_alphanumeric': 0.16635583737411413, 'fraction_numerical': 0.005221932114882507, 'mean_word_length': 1.7564234326824255, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5343874', 'n_tokens_mistral': 752, 'n_tokens_neox': 712, 'n_words': 157}