<commit_before>var mouseXPosition = 0;
var mouseYPosition = 0;

function keyPress(e) {
    // this would test for whichever key is 40 and the ctrl key at the same time
    if (e.keyCode == 88) {
      var hoveredElement = document.elementFromPoint(mouseXPosition, mouseYPosition);
      var storyElement = findParentWithClass(hoveredElement, 'story model item');
      if(storyElement != null){
        if(storyIsOpen(storyElement)){
          var cTag = $(storyElement).attr('data-cid');
          var num = 3;
          var pointsSelectorId = '#' + num + '_story_estimate_dropdown_' + cTag;
          $(pointsSelectorId)[0].click();
        }
        else {

        }
      }
    }
}

function storyIsOpen(storyElement){
  var children = storyElement.children;
  var storyOpen = false;

  for(var i = 0; !storyOpen && i < children.length; i++){
    var child = children[i];<commit_msg>Add mappings for other pointings and require control key conjunction press<commit_after>var mouseXPosition = 0;
var mouseYPosition = 0;

var keyCodeCommandMapping = {
  48: 0,
  49: 1,
  50: 2,
  51: 3,
  52: 4,
  53: 5,
  54: 6,
  55: 7,
  56: 8,
  192: -1
}

function keyPress(e) {
    // this would test for whichever key is 40 and the ctrl key at the same time
    // 48 (0) --> 56 (8), 192 (`)
    if(e.keyCode in keyCodeCommandMapping && e.ctrlKey){
      var numPoints = keyCodeCommandMapping[e.keyCode];

      var hoveredElement = document.elementFromPoint(mouseXPosition, mouseYPosition);
      var storyElement = findParentWithClass(hoveredElement, 'story model item');
      if(storyElement != null){
        if(storyIsOpen(storyElement)){
          var cTag = $(storyElement).attr('data-cid');
          var pointsSelectorId = '#' + numPoints + '_story_estimate_dropdown_' + cTag;
          $(pointsSelectorId)[0].click();
        }
        else {

        }
      }
    }
}

function storyIsOpen(storyElement){
  var children = storyElement.children;
  var storyOpen = false;

  for(var i = 0; !storyOpen && i < children.length; i++){
    var child = children[i];
{'fraction_non_alphanumeric': 0.12009685230024213, 'fraction_numerical': 0.026634382566585957, 'mean_word_length': 2.890772128060264, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '652762', 'n_tokens_mistral': 684, 'n_tokens_neox': 634, 'n_words': 179}