<commit_before>// create ESC object and sensors
var oESC = require("../lib/esc");
var oMPU6050 = require("../lib/mpu6050");
var oMS5611 = require("../lib/ms5611");
// include networking components
var oNetwork = require("../lib/HandyJS/lib/network-p");

// initialize ESC's
console.log("[QUADCOPTER] initialize");
oESC.init([9,7,23,19]); // initialize ESC's on given GPIO's

// connect to server and identify
oNetwork.oSocket.connectWebSocket("192.168.1.16", 4444, function(){
  // connected to server
  console.log("[QUADCOPTER] connected to server");
}, function(oLastConnection, lFlags){
  // message from server
  console.log("[QUADCOPTER] message from server:\nlFlag -> " + lFlags);
  console.log(oLastConnection);
}, function(oErr){
  // error
  console.log(oErr);
});
oNetwork.oSocket.serverSend(JSON.stringify({init:true,sType:"quadcopter"}));

<commit_msg>transfer push<commit_after>// create ESC object and sensors
var oESC = require("../lib/esc");
var oMPU6050 = require("../lib/mpu6050");
var oMS5611 = require("../lib/ms5611");
// include networking components
var oNetwork = require("../lib/HandyJS/lib/network-p");

function Quadcopter(){

  // initialize quadcopter
  this.initialize = function(){
    // initialize ESC's
    console.log("[QUADCOPTER] initialize");
    oESC.init([9,7,23,19]); // initialize ESC's on given GPIO's
    // connect to server and identify
    oNetwork.oSocket.connectWebSocket("192.168.1.16", 4444, function(){
      // connected to server
      console.log("[QUADCOPTER] connected to server");
      oNetwork.oSocket.serverSend(JSON.stringify({init:true,sType:"quadcopter"}));
    }, function(oLastConnection, lFlags){
      // message from server
      console.log("[QUADCOPTER] message from server:\nlFlag -> " + lFlags);
      console.log(oLastConnection);
    }, function(oErr){
      // error
      console.log(oErr);
    });
  };

}

{'fraction_non_alphanumeric': 0.16923076923076924, 'fraction_numerical': 0.03713527851458886, 'mean_word_length': 3.9762532981530345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7442592', 'n_tokens_mistral': 652, 'n_tokens_neox': 601, 'n_words': 129}