<commit_before>#include <iostream.h> 	// for cout
#include <iomanip.h> 	// for setw
#include <string>   	// for aFlock.h
#include <stdlib.h> 	// for system
#include <unistd.h> 	// for sleep
#include <Input/vjPosition/aFlock.h>

void main()
{
    
    const char* port = "/dev/ttyd3";
    const int baud = 38400;
    const int numBirds = 2;
    const char* calfile = "/home/users/allenb/Source/juggler/Data/calibration.table";
    const BIRD_HEMI hemi = LOWER_HEM;
    const BIRD_FILT filt = AC_NARROW;
    const int sync = 1;
    const int blocking = 0;
    const char report = 'R';
    const int transmitter = 3; 
    aFlock flock(   port, 
		    baud, 
		    sync, 
		    blocking, 
		    numBirds, 
		    transmitter, 
		    hemi, 
		    filt, 
		    report, 
		    calfile );
    
    // these are in the vjInput base class...
    flock.setBaudRate( baud );
    flock.setPort( port );
    
    char achar;
    cout << "U - Update\n"
       << "S - Start\n"
       << "X - Stop\n"
       << "Q - Quit\n"
       << "O - Output\n";
    
    do 
    {
	cin >> achar;
	
	cout << flush;
	switch (achar) 
	{
	case 'u':case 'U':  break;
	case 's':case 'S': flock.start(); 
			break;
	case 'x':case 'X': flock.stop(); 
			break;
	case 'o':case 'O': 
	    for(int z = 0; z < 10; z++)
	    {
		flock.sample();
		system("clear");  
		cout << "vjFlock------------------------------------------------------------" << endl 
		    << "Data: x:" << setw(10) << flock.xPos() << endl
		    << "      y:" << setw(10) << flock.yPos() << endl
		    << "      z:" << setw(10) << flock.zPos() << endl
		    << "    azi:" << setw(10) << flock.zRot() << endl  
		    << "   elev:" << setw(10) << flock.yRot() << endl 
		    << "   roll:" << setw(10) << flock.xRot() << endl << endl;
		sleep(2);
	    }
	    break;
	}
	cout << achar;
    } while ((achar != 'q') && (achar != 'Q'));
    
    flock.stop();
}<commit_msg>tested the new test driver, it works.<commit_after>
#include <iostream.h> 	// for cout
#include <iomanip.h> 	// for setw

#include <stdlib.h> 	// for system
#include <unistd.h> 	// for sleep

#include <Input/vjPosition/aFlock.h>

void main()
{
    
    const char* port = "/dev/ttyd3";
    const int baud = 38400;
    const int numBirds = 2;
    const char* calfile = "/home/users/allenb/Source/juggler/Data/calibration.table";
    const BIRD_HEMI hemi = LOWER_HEM;
    const BIRD_FILT filt = AC_NARROW;
    const int sync = 1;
    const int blocking = 0;
    const char report = 'R';
    const int transmitter = 3; 
    aFlock flock(   port, 
		    baud, 
		    sync, 
		    blocking, 
		    numBirds, 
		    transmitter, 
		    hemi, 
		    filt, 
		    report, 
		    calfile );
    
    // these are in the vjInput base class...
    flock.setBaudRate( baud );
    flock.setPort( port );
    
    char achar;
    
    do 
    {
	cout << "U - Update\n"
       << "S - Start\n"
       << "X - Stop\n"
       << "Q - Quit\n"
       << "O - Output\n";
       
	cin >> achar;
	
	cout << flush;
	switch (achar) 
	{
	case 'u':case 'U':  break;
	case 's':case 'S': flock.start(); 
			break;
	case 'x':case 'X': flock.stop(); 
			break;
	case 'o':case 'O': 
	    for(int z = 0; z < 10; z++)
	    {
		flock.sample();
		system("clear");  
		cout << "vjFlock------------------------------------------------------------" << endl 
		    << "Data: x:" << setw(10) << flock.xPos() << endl
		    << "      y:" << setw(10) << flock.yPos() << endl
		    << "      z:" << setw(10) << flock.zPos() << endl
		    << "    azi:" << setw(10) << flock.zRot() << endl  
		    << "   elev:" << setw(10) << flock.yRot() << endl 
		    << "   roll:" << setw(10) << flock.xRot() << endl << endl;
		sleep(2);
	    }
	    break;
	}
	
       
	cout << achar;
    } while ((achar != 'q') && (achar != 'Q'));
    
    flock.stop();
}
{'fraction_non_alphanumeric': 0.20869565217391303, 'fraction_numerical': 0.01370223978919631, 'mean_word_length': 1.7607272727272727, 'pattern_counts': {'":': 0, '<': 152, '<?xml version=': 0, '>': 18, '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': '2632988', 'n_tokens_mistral': 1601, 'n_tokens_neox': 1436, 'n_words': 345}