<commit_before>var $ = require('jquery')
annotator = require('annotator');
$ = annotator.$
var substitution = require('./substitution');


var jsonAnnotation = '{ "ranges" : [' +
'{ "start":"//div/p" , "end":"//div/p" },' +
'{ "startOffset":0 , "endOffset":5 }]}';

substitution.Substitution(jsonAnnotation, "this is a substitution text");



<commit_msg>Updated for our standard development environment<commit_after>var $ = require('jquery')
annotator = require('annotator');
$ = annotator.$
var substitution1 = require('./SubstituteAnnotation');
var substitution2 = require('./substitution');
var tags = require('../plugins/tags.coffee');

var css = require('./app.css');
// console.log(css);

OpenAnnotate = ("OpenAnnotate" in window) ? OpenAnnotate : {}

OpenAnnotate.Annotator = function (element) {
    var $ = jQuery, self = this

    this.annotator = $(element).annotator().data('annotator')
    this.currentUser = null

    this.options = {
        user: {}

    }

    $(element).annotator().annotator('addPlugin', 'Substitutions', 'bbk:english');
    $(element).annotator().annotator('addPlugin', 'Tags');



    jQuery(function ($) {
       $(element).annotator()
                .annotator('setupPlugins');
    });


    return this
}








{'fraction_non_alphanumeric': 0.18804780876494023, 'fraction_numerical': 0.0031872509960159364, 'mean_word_length': 3.9448818897637796, 'pattern_counts': {'":': 4, '<': 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': '6830241', 'n_tokens_mistral': 405, 'n_tokens_neox': 371, 'n_words': 72}