anchor.diff:  
     lastCopyText: null,
   
  +  <% self.class.include Rails.application.routes.url_helpers %>
     <% @config ||= CodeOcean::Config.new(:code_ocean).read(erb: false) %>
  -  sendLearningAnalyticEvents: <%= @config['codeocean_events'] ? @config['codeocean_events']['enabled'] : false %>,
  -  learningAnalyticsURL: "<%= @config['codeocean_events'] ? @config['codeocean_events']['url'] : "" %>",
  +  sendEvents: <%= @config['codeocean_events'] ? @config['codeocean_events']['enabled'] : false %>,
  +  eventURL: "<%= @config['codeocean_events'] ? events_path : '' %>",
   
   
   configureEditors: function () {
  
positive.code:   handlePasteEvent: function (pasteObject) {
      var same = (this.lastCopyText === pasteObject.text);
  
      // if the text is not copied from within the editor (from any file), send an event to lanalytics
      if (!same) {
        this.publishCodeOceanEvent("codeocean_editor_paste", {
          text: pasteObject.text,
          codeocean_user_id: $('#editor').data('user-id'),
          exercise: $('#editor').data('exercise-id'),
          file_id: "1"
        });
      }
  
negative.code:     //panel.find('.row .col-sm-9').eq(4).find('a').attr('href', '#output-' + index);
    },
  
    publishCodeOceanEvent: function (payload) {
      if(this.sendEvents){
        $.ajax(this.eventURL, {
          type: 'POST',
          cache: false,
          dataType: 'JSON',
          data: {
            event: payload
          },
          success: _.noop,
          error: _.noop
        });
      }
    },
  
  