<commit_before><!DOCTYPE HTML PUBLIC "-///W3C//DTD HTML 4.0 Transitional//EN">
<!--
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2009 <NAME>
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * NOTE: This file has been modified for use within Sakai as of September 2010,
 *       to allow both FCKeditor and CKEditor to use the plugin.
-->
<html>
<head>
        <!-- force IE to use IE9 rendering engine -->
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />

	<title>Server Browser</title>
	<link href="browser.css" type="text/css" rel="stylesheet" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript">

var oListManager = new Object() ;

oListManager.Clear = function()
{
	document.body.innerHTML = '' ;
}

function ProtectPath(path)
{
	path = path.replace( /\\/g, '\\\\') ;
	path = path.replace( /'/g, '\\\'') ;
	return path ;
}

function getGUID()
{
        return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
                var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
                return v.toString(16);
                });
}

function getToggle( guid, isEmpty, isOpen, toggleMethod )
{
	return (isEmpty ? 
		'<img src="images/spacer.gif" width="19" height="20" \/>' :
		'<img src="' + (isOpen ? 'images/collapse.gif' : 'images/expand.gif') + 
		'" width="19" height="20" id="img' +
		guid + '" onclick="' + toggleMethod + '(\'' + guid + '\')" \/>'
	       );
}

function getFldOpts( guid, folderPath, showByDefault )
{
	showByDefault = (showByDefault == null) ? false : showByDefault;

	// always show by default for touch-capable devices
	try {
		if (
		    (window.navigator && window.navigator.msMaxTouchPoints) ||
		    ('ontouchstart' in document.documentElement) ||
		    ('ontouchstart' in window) ||
		    (NW && NW.Event && NW.Event.isSupported('touchstart'))
		) {
			showByDefault = true;
		}
	} catch (e) { }

        return  '&nbsp;&nbsp;&nbsp;<span id="fldOpt' + guid + '" class="' + ( showByDefault ? 'optShow' : 'optHide' ) + '">' +
                '<a href="#" onclick="CreateFolder(\'' + ProtectPath( folderPath ) + '\', \'' + guid + '\');' +
                'showFldOpt(\'' + guid + '\', ' + showByDefault + ');return false;">' +
                '<img alt="" title="New Folder" alt="New Folder" src="images/FolderNew.gif" width="16" height="16" border="0"><\/a>' +
                '&nbsp;' + '<a href="#" onclick="UploadFile(\'' + ProtectPath( folderPath ) + '\', \'' + guid + '\');' +
                'showFldOpt(\'' + guid + '\', ' + showByDefault + ');return false;">' +
                '<img alt="" title="Upload File" alt="Upload File" src="images/UploadFile.gif" width="16" height="16" border="0"><\/a>' +
                '<\/span>';
}

oListManager.GetFolderRowHtml = function( folderName, folderUrl, folderPath, guid, isEmpty )
{
	// Build the link to view the folder.
	var sLink = '<a href="#" onclick="LinkItem(\'' + ProtectPath( folderUrl ) + '\', false);return false;">' ;

	var toggleExp = '<span id="tgl' + guid + '">' + getToggle(guid, isEmpty, false, 'toggleFld') + '<\/span>';

	return toggleExp + '&nbsp;' +
		'<span id="fldRow' + guid + '" onmouseover="showFldOpt(\'' + guid +
		'\', 1);" onmouseout="showFldOpt(\'' + guid + '\', 0);">' +
				(oConnector.ShowAllTypes ? sLink : '') +
				'<img alt="" src="images/Folder.gif" id="fld' + guid + '" width="16" height="16" border="0">' +
				(oConnector.ShowAllTypes ? '<\/a>' : '') + '&nbsp;' +
				(oConnector.ShowAllTypes ? sLink : '') + folderName +
		(oConnector.ShowAllTypes ? '<\/a>' : '') + 
		getFldOpts(guid, folderPath) + '<\/span><br\/>' ;
}

oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )
{
	// Build the link to view the file.
	var sLink = '<a href="#" onclick="LinkItem(\'' + ProtectPath( fileUrl ) + '\', false);return false;">' ;

	// Get the file icon.
	var sIcon = oIcons.GetIcon( fileName ) ;

	return '<img src="images/spacer.gif" width="19" height="20" \/>&nbsp;' + sLink +
				'<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"><\/a>&nbsp;' +
				sLink + fileName +
				'<\/a>' +
			'&nbsp;(' +
				fileSize +
		')<br\/>' ;
}

oListManager.GetItemRowHtml = function( itemName, itemUrl, pequals1, indentLevel, lineBreak)
{
        // Build the link to view the item.
	if (pequals1)
		var sLink = '<a href="#" onclick="LinkItem(\'' + ProtectPath( itemUrl ) + '\', true);return false;">' ;
	else
		var sLink = '<a href="#" onclick="LinkItem(\'' + ProtectPath( itemUrl ) + '\', false);return false;">' ;

        if (indentLevel === undefined)
                indentLevel = 0;

        if (lineBreak === undefined)
                lineBreak = false;

        var ind = "";
        for (var i = 0 ; i < indentLevel ; i++)
                ind = ind + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

        var lb = "";
        if (lineBreak)
                lb = lb + "<br/>";
<commit_msg>SAK-26282 fckeditor fix from <NAME><commit_after><!DOCTYPE HTML PUBLIC "-///W3C//DTD HTML 4.0 Transitional//EN">
<!--
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2009 <NAME>
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * NOTE: This file has been modified for use within Sakai as of September 2010,
 *       to allow both FCKeditor and CKEditor to use the plugin.
-->
<html>
<head>
        <!-- force IE to use IE9 rendering engine -->
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />

	<title>Server Browser</title>
	<link href="browser.css" type="text/css" rel="stylesheet" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript" src="/library/js/jquery/jquery-1.9.1.min.js"></script>
	<script type="text/javascript">

var oListManager = new Object() ;

oListManager.Clear = function()
{
	document.body.innerHTML = '' ;
}

function ProtectPath(path)
{
	path = path.replace( /\\/g, '\\\\') ;
	path = path.replace( /'/g, '\\\'') ;
	return path ;
}

function getGUID()
{
        return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
                var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
                return v.toString(16);
                });
}

function getToggle( guid, isEmpty, isOpen, toggleMethod )
{
	return (isEmpty ? 
		'<img src="images/spacer.gif" width="19" height="20" \/>' :
		'<img src="' + (isOpen ? 'images/collapse.gif' : 'images/expand.gif') + 
		'" width="19" height="20" id="img' +
		guid + '" onclick="' + toggleMethod + '(\'' + guid + '\')" \/>'
	       );
}

function getFldOpts( guid, folderPath, showByDefault )
{
	showByDefault = (showByDefault == null) ? false : showByDefault;

	// always show by default for touch-capable devices
	try {
		if (
		    (window.navigator && window.navigator.msMaxTouchPoints) ||
		    ('ontouchstart' in document.documentElement) ||
		    ('ontouchstart' in window) ||
		    (NW && NW.Event && NW.Event.isSupported('touchstart'))
		) {
			showByDefault = true;
		}
	} catch (e) { }

        return  '&nbsp;&nbsp;&nbsp;<span id="fldOpt' + guid + '" class="' + ( showByDefault ? 'optShow' : 'optHide' ) + '">' +
                '<a href="#" onclick="CreateFolder(\'' + ProtectPath( folderPath ) + '\', \'' + guid + '\');' +
                'showFldOpt(\'' + guid + '\', ' + showByDefault + ');return false;">' +
                '<img alt="" title="New Folder" alt="New Folder" src="images/FolderNew.gif" width="16" height="16" border="0"><\/a>' +
                '&nbsp;' + '<a href="#" onclick="UploadFile(\'' + ProtectPath( folderPath ) + '\', \'' + guid + '\');' +
                'showFldOpt(\'' + guid + '\', ' + showByDefault + ');return false;">' +
                '<img alt="" title="Upload File" alt="Upload File" src="images/UploadFile.gif" width="16" height="16" border="0"><\/a>' +
                '<\/span>';
}

oListManager.GetFolderRowHtml = function( folderName, folderUrl, folderPath, guid, isEmpty )
{
	// Build the link to view the folder.
	var sLink = '<a href="#" onclick="LinkItem(\'' + ProtectPath( folderUrl ) + '\', false);return false;">' ;

	var toggleExp = '<span id="tgl' + guid + '">' + getToggle(guid, isEmpty, false, 'toggleFld') + '<\/span>';

	return toggleExp + '&nbsp;' +
		'<span id="fldRow' + guid + '" onmouseover="showFldOpt(\'' + guid +
		'\', 1);" onmouseout="showFldOpt(\'' + guid + '\', 0);">' +
				(oConnector.ShowAllTypes ? sLink : '') +
				'<img alt="" src="images/Folder.gif" id="fld' + guid + '" width="16" height="16" border="0">' +
				(oConnector.ShowAllTypes ? '<\/a>' : '') + '&nbsp;' +
				(oConnector.ShowAllTypes ? sLink : '') + $('<p></p>').text(folderName).html() +
		(oConnector.ShowAllTypes ? '<\/a>' : '') + 
		getFldOpts(guid, folderPath) + '<\/span><br\/>' ;
}

oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )
{
	// Build the link to view the file.
	var sLink = '<a href="#" onclick="LinkItem(\'' + ProtectPath( fileUrl ) + '\', false);return false;">' ;

	// Get the file icon.
	var sIcon = oIcons.GetIcon( fileName ) ;

	return '<img src="images/spacer.gif" width="19" height="20" \/>&nbsp;' + sLink +
				'<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"><\/a>&nbsp;' +
				sLink + $('<p></p>').text(fileName).html() +
				'<\/a>' +
			'&nbsp;(' +
				fileSize +
		')<br\/>' ;
}

oListManager.GetItemRowHtml = function( itemName, itemUrl, pequals1, indentLevel, lineBreak)
{
        // Build the link to view the item.
	if (pequals1)
		var sLink = '<a href="#" onclick="LinkItem(\'' + ProtectPath( itemUrl ) + '\', true);return false;">' ;
	else
		var sLink = '<a href="#" onclick="LinkItem(\'' + ProtectPath( itemUrl ) + '\', false);return false;">' ;

        if (indentLevel === undefined)
                indentLevel = 0;

        if (lineBreak === undefined)
                lineBreak = false;

        var ind = "";
        for (var i = 0 ; i < indentLevel ; i++)
                ind = ind + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

        var lb = "";
        if (lineBreak)
                lb = lb + "<br/>";

{'fraction_non_alphanumeric': 0.20550828072101748, 'fraction_numerical': 0.013907951322170372, 'mean_word_length': 2.9587106120970663, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 94, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '2567562', 'n_tokens_mistral': 3963, 'n_tokens_neox': 3687, 'n_words': 867}