<commit_before>﻿//var contextMenuClickedFor = "";

(function (angular) {
    var ngContextMenu = angular.module('directive.contextMenu', []);
    ngContextMenu.directive('cellHighlight', function () {
        return {
            restrict: 'C',
            link: function postLink(scope, iElement, iAttrs) {
                iElement.find('td')
                  .mouseover(function () {
                      $(this).parent('tr').css('opacity', '0.7');
                  }).mouseout(function () {
                      $(this).parent('tr').css('opacity', '1.0');
                  });
            }
        };
    });

    ngContextMenu.directive('context', [

      function () {
          return {
              restrict: 'A',
              scope: '@&',
              compile: function compile(tElement, tAttrs, transclude) {
                  return {
                      post: function postLink(scope, iElement, iAttrs, controller) {
                          var ul = $('#' + iAttrs.context),
                            last = null;
                          eventFor = "";
                          ul.css({
                              'display': 'none'
                          });




                          $(iElement).bind('contextmenu', function (event) {

                              console.log("Log from app.js contextMenu");
                              //contextMenuClickedFor = event.currentTarget;
                              if (!scope.$$phase) {
                                  scope.$apply();
                              }

                              //This is to pass back to the controller as to which row was the right clicked on
                              ul.find("li").each(function () {
                                  if (this.id != "") {
                                      $('#' + this.id).attr('parentRowId', event.currentTarget.id);
                                  }
                              });

                              //This function takes care of setting up the individual menu elements for this row
                              scope.contextMenuSetup(event.currentTarget.id);<commit_msg>Commenting console.log statement for debugging<commit_after>﻿//var contextMenuClickedFor = "";

(function (angular) {
    var ngContextMenu = angular.module('directive.contextMenu', []);
    ngContextMenu.directive('cellHighlight', function () {
        return {
            restrict: 'C',
            link: function postLink(scope, iElement, iAttrs) {
                iElement.find('td')
                  .mouseover(function () {
                      $(this).parent('tr').css('opacity', '0.7');
                  }).mouseout(function () {
                      $(this).parent('tr').css('opacity', '1.0');
                  });
            }
        };
    });

    ngContextMenu.directive('context', [

      function () {
          return {
              restrict: 'A',
              scope: '@&',
              compile: function compile(tElement, tAttrs, transclude) {
                  return {
                      post: function postLink(scope, iElement, iAttrs, controller) {
                          var ul = $('#' + iAttrs.context),
                            last = null;
                          eventFor = "";
                          ul.css({
                              'display': 'none'
                          });




                          $(iElement).bind('contextmenu', function (event) {

                              //console.log("Log from app.js contextMenu");
                              //contextMenuClickedFor = event.currentTarget;
                              if (!scope.$$phase) {
                                  scope.$apply();
                              }

                              //This is to pass back to the controller as to which row was the right clicked on
                              ul.find("li").each(function () {
                                  if (this.id != "") {
                                      $('#' + this.id).attr('parentRowId', event.currentTarget.id);
                                  }
                              });

                              //This function takes care of setting up the individual menu elements for this row
                              scope.contextMenuSetup(event.currentTarget.id);
{'fraction_non_alphanumeric': 0.11609800778566522, 'fraction_numerical': 0.0018319212273872224, 'mean_word_length': 1.0316279069767442, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3426908', 'n_tokens_mistral': 994, 'n_tokens_neox': 954, 'n_words': 203}