<commit_before>'use strict';

var $ = require('jquery');
var ko = require('knockout');

ko.punches.enableAll();

var Projects = require('js/myProjects.js').MyProjects;
var LinkObject = require('js/myProjects.js').LinkObject;
var InstitutionNodes = require('js/institutionNodes.js');
var m = require('mithril'); // exposes mithril methods, useful for redraw etc.


$(document).ready(function() {
    var institutionId = window.contextVars.institution.id;
    new InstitutionNodes('#inst', window.contextVars);
    m.mount(document.getElementById('fileBrowser'), m.component(Projects, {
        wrapperSelector : '#fileBrowser',
        systemCollections:[
            new LinkObject('collection', { path : 'institutions/' + institutionId + '/nodes/', query : { 'related_counts' : true, 'page[size]'  : 12, 'embed' : 'contributors', 'filter[parent]' : 'null'}, systemCollection : 'nodes'}, 'All Projects'),
            new LinkObject('collection', { path : 'institutions/' + institutionId + '/registrations/', query : { 'related_counts' : true, 'page[size]'  : 12, 'embed' : 'contributors', 'filter[parent]' : 'null'}, systemCollection : 'registrations'}, 'All Registrations'),
        ],
        initialBreadcrumbs: [new LinkObject('collection', { path : 'users/me/nodes/', query : { 'related_counts' : 'children', 'embed' : 'contributors' }, systemCollection : 'nodes'}, 'All Projects')],
        viewOnly: true,
        projectOrganizerOptions: {
            resolveToggle: function(){
                return '';
            }<commit_msg>clean up institution-page imports<commit_after>'use strict';

var $ = require('jquery');
var ko = require('knockout');

ko.punches.enableAll();

var _myProjects = require('js/myProjects.js');
var Projects = _myProjects.MyProjects;
var LinkObject = _myProjects.LinkObject;
var InstitutionNodes = require('js/institutionNodes.js');
var m = require('mithril'); // exposes mithril methods, useful for redraw etc.


$(document).ready(function() {
    var institutionId = window.contextVars.institution.id;
    new InstitutionNodes('#inst', window.contextVars);
    m.mount(document.getElementById('fileBrowser'), m.component(Projects, {
        wrapperSelector : '#fileBrowser',
        systemCollections:[
            new LinkObject('collection', { path : 'institutions/' + institutionId + '/nodes/', query : { 'related_counts' : true, 'page[size]'  : 12, 'embed' : 'contributors', 'filter[parent]' : 'null'}, systemCollection : 'nodes'}, 'All Projects'),
            new LinkObject('collection', { path : 'institutions/' + institutionId + '/registrations/', query : { 'related_counts' : true, 'page[size]'  : 12, 'embed' : 'contributors', 'filter[parent]' : 'null'}, systemCollection : 'registrations'}, 'All Registrations'),
        ],
        initialBreadcrumbs: [new LinkObject('collection', { path : 'users/me/nodes/', query : { 'related_counts' : 'children', 'embed' : 'contributors' }, systemCollection : 'nodes'}, 'All Projects')],
        viewOnly: true,
        projectOrganizerOptions: {
            resolveToggle: function(){
                return '';
            }
{'fraction_non_alphanumeric': 0.1641503372952136, 'fraction_numerical': 0.00256986829424992, 'mean_word_length': 4.079934747145187, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1204930', 'n_tokens_mistral': 913, 'n_tokens_neox': 873, 'n_words': 200}