<commit_before>/**
 * Created by enthusiasm on 13.01.15.
 */

var arDrone = require('ar-drone');
var drone = arDrone.createClient();
drone.config('video:video_channel', 0);

module.exports = drone;


<commit_msg>tested control<commit_after>/**
 * Created by enthusiasm on 13.01.15.
 */

var arDrone = require('ar-drone');
var drone = arDrone.createClient();

// Streaming front-camera
drone.config('video:video_channel', 0);

// Streaming bottom-camera
drone.config('video:video_channel', 3);

module.exports = drone;


// starting the drone
drone.takeoff();


// flying on a fixed altitude
drone
 .after(1000, function() {
 	this.up(1);
 });


// landing the drone
drone
 .after(1000, function() {
 	this.stop();
 	this.land();
 });


/* Drone Commands

takeoff() 					- has the drone takeoff and hover above the ground

land() 						- has the drone land

up(speed) 					- has the drone gain altitude at a speed between 1 (max speed) and 0 (still).

down(speed) 				- makes the drone reduce altitude

clockwise(speed) 			- drone spins clockwise

counterClockwise(speed) 	- drone spins counter-clockwise

front(speed)/back(speed)	- changes the pitch causing horizontal movement

left(speed)/right(speed) 	- changes the roll causing horizontal movement

stop() 						- keeps the drone hovering in place
*/
{'fraction_non_alphanumeric': 0.1280674846625767, 'fraction_numerical': 0.019938650306748466, 'mean_word_length': 3.6607142857142856, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '297150', 'n_tokens_mistral': 481, 'n_tokens_neox': 415, 'n_words': 128}