<commit_before>/*

  Copyright 2013 <NAME> <<EMAIL>>

  Distributed under the MIT License.

  See accompanying file COPYING or copy at
  http://opensource.org/licenses/MIT

*/
/*
  Descrition:

  The main JS of Pronto Drive
*/

var LAST_SELECTED = null;
var TIMEOUT = 840000; // 14m
var TIMEOUT_ID;
var context;
var HOTKEYS_ENABLED = true;
window.addEvent('domready', function () {
    $$("body")[0].addClass("js");
    var progress = new Progress();
    reloadContent();
    resetTimeout();
    new PopUper($("rename"), $("RenameName"), {
	display: "inline",
	onShow: function () {
	    this.nameSpan = $("fileList").getElement("li.selected span.name");
	    this.newField.set("value", this.nameSpan.getElement("a").get("text"));
	    this.nameSpan.setStyle("display", "none");
	    this.frame.inject(this.nameSpan, "after");
	},
	onHide: function () {
 	    this.nameSpan.setStyle("display", "block");
	},
	onDone: function () {
	    this.nameSpan.getParent().getElement("span.check input").checked = true;
	}
    });
    new PopUper($("CreateDir"), $("NewName"), {
	display: "inline",
	onShow: function () {
	    if (! this.isVisible) {
		this.li = new Element("li", {"class": "folder"});
		this.li.inject($("fileList"), "top");
		this.frame.inject(this.li);
		this.isVisible = true;
	    }
	},
	onHide: function () {
	    if (this.isVisible) {<commit_msg>* Added delete confirmation<commit_after>/*

  Copyright 2013 <NAME> <<EMAIL>>

  Distributed under the MIT License.

  See accompanying file COPYING or copy at
  http://opensource.org/licenses/MIT

*/
/*
  Descrition:

  The main JS of Pronto Drive
*/

var LAST_SELECTED = null;
var TIMEOUT = 840000; // 14m
var TIMEOUT_ID;
var context;
var HOTKEYS_ENABLED = true;
window.addEvent('domready', function () {
    $$("body")[0].addClass("js");
    var progress = new Progress();
    reloadContent();
    resetTimeout();
    $("delete").addEvent("click", function(e) {
	if (! confirm("Are you sure you want to delete these items?")) {
	    e.preventDefault();
	}
    });
    new PopUper($("rename"), $("RenameName"), {
	display: "inline",
	onShow: function () {
	    this.nameSpan = $("fileList").getElement("li.selected span.name");
	    this.newField.set("value", this.nameSpan.getElement("a").get("text"));
	    this.nameSpan.setStyle("display", "none");
	    this.frame.inject(this.nameSpan, "after");
	},
	onHide: function () {
 	    this.nameSpan.setStyle("display", "block");
	},
	onDone: function () {
	    this.nameSpan.getParent().getElement("span.check input").checked = true;
	}
    });
    new PopUper($("CreateDir"), $("NewName"), {
	display: "inline",
	onShow: function () {
	    if (! this.isVisible) {
		this.li = new Element("li", {"class": "folder"});
		this.li.inject($("fileList"), "top");
		this.frame.inject(this.li);
		this.isVisible = true;
	    }
	},
	onHide: function () {
	    if (this.isVisible) {
{'fraction_non_alphanumeric': 0.18841082581540597, 'fraction_numerical': 0.009021512838306732, 'mean_word_length': 3.7339901477832513, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, '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': '2948228', 'n_tokens_mistral': 1018, 'n_tokens_neox': 960, 'n_words': 208}