<commit_before>// TODO: 
// BUG: Notes now have a sessionId so the navigation widget will work when
// a note is loaded in issolation.  We are not updating this reference when
// the view is moved.

// Scroll when dragged to the bottom or top of the screen.


// Verify save lock works.
// Undo button.
// delete button.
// Indicate last selected with boundary/ background
//   hover exit should set values back to state of view.

// Shift for range selection.
// (maybe) Right click menu.
// View names should be editable.
// Drop position indicator could be improved.


// I am not so sure I like this closure pattern.
// I am trying to hide helper object, but
// I could just declare them inside the contructor.
// This pattern does not make any of the methods
// private.  I do not think it makes any instance
// variables private either.



// Closure namespace 
CollectionBrowser = (function (){

    var PROGRESS_COUNT = 0;

    var PushProgress = function() {
        $('body').css({'cursor':'progress'});
        PROGRESS_COUNT += 1;
    }

    var PopProgress = function() {
        PROGRESS_COUNT -= 1;
        if (PROGRESS_COUNT <= 0) {
            $('body').css({'cursor':'default'});
        }
    }


//==============================================================================
// History for undo<commit_msg>SAM order<commit_after>// TODO: 
// BUG: Notes now have a sessionId so the navigation widget will work when
// a note is loaded in issolation.  We are not updating this reference when
// the view is moved.

// Scroll when dragged to the bottom or top of the screen.


// Verify save lock works.
// Undo button.
// delete button.
// Indicate last selected with boundary/ background
//   hover exit should set values back to state of view.

// Shift for range selection.
// (maybe) Right click menu.
// View names should be editable.
// Drop position indicator could be improved.


// I am not so sure I like this closure pattern.
// I am trying to hide helper object, but
// I could just declare them inside the contructor.
// This pattern does not make any of the methods
// private.  I do not think it makes any instance
// variables private either.


window.SAM = window.SAM || {};


// Closure namespace 
CollectionBrowser = (function (){

    var PROGRESS_COUNT = 0;

    var PushProgress = function() {
        $('body').css({'cursor':'progress'});
        PROGRESS_COUNT += 1;
    }

    var PopProgress = function() {
        PROGRESS_COUNT -= 1;
        if (PROGRESS_COUNT <= 0) {
            $('body').css({'cursor':'default'});
        }
    }


//==============================================================================
// History for undo
{'fraction_non_alphanumeric': 0.1587183308494784, 'fraction_numerical': 0.0029806259314456036, 'mean_word_length': 2.7816901408450705, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7278949', 'n_tokens_mistral': 742, 'n_tokens_neox': 694, 'n_words': 318}