<commit_before>/*global winConfirm, btnConfirmOk */

define(function(require, exports, module) {
    main.consumes = [
        "Plugin", "c9", "util", "fs", "layout", "commands", "tree",
        "menus", "settings", "ui", "tabManager", "fs.cache.xml"
    ];
    main.provides = ["save"];
    return main;

    function main(options, imports, register) {
        var c9       = imports.c9;
        var util     = imports.util;
        var Plugin   = imports.Plugin;
        var settings = imports.settings;
        var ui       = imports.ui;
        var commands = imports.commands;
        var menus    = imports.menus;
        var fs       = imports.fs;
        var layout   = imports.layout;
        var tabs     = imports.tabManager;
        var tree     = imports.tree;
        var fsCache  = imports["fs.cache.xml"];
        
        var css           = require("text!./save.css");
        var saveAsMarkup  = require("text!./saveas.xml");
        var confirmMarkup = require("text!./confirm.xml");
        
        /***** Initialization *****/
        
        var plugin = new Plugin("Ajax.org", main.consumes);
        var emit   = plugin.getEmitter();
        
        var btnSave, winCloseConfirm, btnYesAll, btnNoAll, btnSaveAsCancel;
        var btnSaveCancel, btnSaveYes, btnSaveNo, saveStatus, btnSaveAsOK;
        var trSaveAs, winSaveAs, fileDesc, txtSaveAs, lblPath, btnCreateFolder;
        var chkShowFiles;
        
        var SAVING   = 0;
        var SAVED    = 1;<commit_msg>Fixed find in files, added tree api, renamed fs.cache.xml to fs.cache<commit_after>/*global winConfirm, btnConfirmOk */

define(function(require, exports, module) {
    main.consumes = [
        "Plugin", "c9", "util", "fs", "layout", "commands", "tree",
        "menus", "settings", "ui", "tabManager", "fs.cache"
    ];
    main.provides = ["save"];
    return main;

    function main(options, imports, register) {
        var c9       = imports.c9;
        var util     = imports.util;
        var Plugin   = imports.Plugin;
        var settings = imports.settings;
        var ui       = imports.ui;
        var commands = imports.commands;
        var menus    = imports.menus;
        var fs       = imports.fs;
        var layout   = imports.layout;
        var tabs     = imports.tabManager;
        var tree     = imports.tree;
        var fsCache  = imports["fs.cache"];
        
        var css           = require("text!./save.css");
        var saveAsMarkup  = require("text!./saveas.xml");
        var confirmMarkup = require("text!./confirm.xml");
        
        /***** Initialization *****/
        
        var plugin = new Plugin("Ajax.org", main.consumes);
        var emit   = plugin.getEmitter();
        
        var btnSave, winCloseConfirm, btnYesAll, btnNoAll, btnSaveAsCancel;
        var btnSaveCancel, btnSaveYes, btnSaveNo, saveStatus, btnSaveAsOK;
        var trSaveAs, winSaveAs, fileDesc, txtSaveAs, lblPath, btnCreateFolder;
        var chkShowFiles;
        
        var SAVING   = 0;
        var SAVED    = 1;
{'fraction_non_alphanumeric': 0.123768877216021, 'fraction_numerical': 0.003282994090610637, 'mean_word_length': 2.016831683168317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '2284969', 'n_tokens_mistral': 911, 'n_tokens_neox': 893, 'n_words': 225}