<commit_before>// VVVV.js -- Visual Web Client Programming
// (c) 2011 <NAME>
// VVVV.js is freely distributable under the MIT license.
// Additional authors of sub components are mentioned at the specific code locations.


/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 NODE: Mouse (System Global)
 Author(s): <NAME>
 Original Node Author(s): VVVV Group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

VVVV.Nodes.MouseGlobal = function(id, graph) {
  this.constructor(id, "Mouse (System Global)", graph);
  
  this.meta = {
    authors: ['<NAME>'],
    original_authors: ['VVVV Group'],
    credits: [],
    compatibility_issues: ['Cyclic mode not supported', 'No Mouse Wheel pin', 'No Left Button Pin', 'No Right Button Pin', 'No Middle Button Pin']
  };
  
  this.auto_evaluate = true;
  
  var xOut = this.addOutputPin("X", [0], this);
  var yOut = this.addOutputPin("Y", [0], this);
  
  var x = 0;
  var y = 0;
  
  $(document).mousemove(function(e) {
    x = e.pageX*2/parseInt($('body').css('width')) - 1;
    y = e.pageY*2/parseInt($('body').css('height')) -1;
  });

  this.evaluate = function() {
    
    if (xOut.getValue(0)!=x)
      xOut.setValue(0, x);
    if (yOut.getValue(0)!=y)
      yOut.setValue(0, y);
  }

}
VVVV.Nodes.MouseGlobal.prototype = new VVVV.Core.Node();


/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 NODE: ShellExecute (Windows)
 Author(s): <NAME>
 Original Node Author(s): VVVV Group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

VVVV.Nodes.ShellExecute = function(id, graph) {
  this.constructor(id, "ShellExecute (Windows)", graph);
  
  this.meta = {<commit_msg>inverts Mouse (Global)'s Y coordinate, so it matches VVVV<commit_after>// VVVV.js -- Visual Web Client Programming
// (c) 2011 <NAME>
// VVVV.js is freely distributable under the MIT license.
// Additional authors of sub components are mentioned at the specific code locations.


/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 NODE: Mouse (System Global)
 Author(s): <NAME>
 Original Node Author(s): VVVV Group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

VVVV.Nodes.MouseGlobal = function(id, graph) {
  this.constructor(id, "Mouse (System Global)", graph);
  
  this.meta = {
    authors: ['<NAME>'],
    original_authors: ['VVVV Group'],
    credits: [],
    compatibility_issues: ['Cyclic mode not supported', 'No Mouse Wheel pin', 'No Left Button Pin', 'No Right Button Pin', 'No Middle Button Pin']
  };
  
  this.auto_evaluate = true;
  
  var xOut = this.addOutputPin("X", [0], this);
  var yOut = this.addOutputPin("Y", [0], this);
  
  var x = 0;
  var y = 0;
  
  $(document).mousemove(function(e) {
    x = e.pageX*2/parseInt($('body').css('width')) - 1;
    y = e.pageY*2/parseInt($('body').css('height'))*-1 -1;
  });

  this.evaluate = function() {
    
    if (xOut.getValue(0)!=x)
      xOut.setValue(0, x);
    if (yOut.getValue(0)!=y)
      yOut.setValue(0, y);
  }

}
VVVV.Nodes.MouseGlobal.prototype = new VVVV.Core.Node();


/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 NODE: ShellExecute (Windows)
 Author(s): <NAME>
 Original Node Author(s): VVVV Group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

VVVV.Nodes.ShellExecute = function(id, graph) {
  this.constructor(id, "ShellExecute (Windows)", graph);
  
  this.meta = {
{'fraction_non_alphanumeric': 0.33652530779753764, 'fraction_numerical': 0.009028727770177838, 'mean_word_length': 4.539393939393939, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4907973', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1079, 'n_words': 272}