<commit_before>import {Mongo} from 'meteor/mongo';

export const Diagrams = new Mongo.Collection('diagrams');
Ground.Collection(Diagrams);

if (Meteor.isServer) {
    Meteor.publish('diagram', function(id) {
        check(id, String);
        console.log('Find diagram with id:', id);
        return Diagrams.find({_id: id});
    });

    Meteor.publish('diagrams', function() {
        return Diagrams.find({}); //, {fields: {'tangibles': 0}}
    });

    Diagrams.allow({
        insert: function(){
            return true;
        },
        update: function(){
            return true;
        },
        remove: function(){
            return true;
        }
    });
}

<commit_msg>Remove dead code.<commit_after>import {Mongo} from 'meteor/mongo';

export const Diagrams = new Mongo.Collection('diagrams');
Ground.Collection(Diagrams);

if (Meteor.isServer) {
    Meteor.publish('diagrams', function() {
        return Diagrams.find({});
    });

    Diagrams.allow({
        insert: function(){
            return true;
        },
        update: function(){
            return true;
        },
        remove: function(){
            return true;
        }
    });
}


{'fraction_non_alphanumeric': 0.15123194562446898, 'fraction_numerical': 0.0008496176720475786, 'mean_word_length': 2.1497326203208558, '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': '3812939', 'n_tokens_mistral': 368, 'n_tokens_neox': 349, 'n_words': 75}