<commit_before>package com.lightningrod.app;

import com.lightningrod.dropbox.DBApi;
import com.lightningrod.io.Backup;
import com.lightningrod.io.FileMonitorAdvanced;
import java.io.File;

/**
 *
 * @author kevin
 */
public class LightningRod {
        private static String root_drive;
        private static String root_path;
        
        /**
	 * @param args
	 */
	public static void main(String[] args) {
		String pwd = new File(".").getAbsolutePath();
                root_drive = String.valueOf(pwd.charAt(0));
                if (!(root_drive.equals("/")))
                    root_drive = root_drive + ":" + File.separator;
                
                root_path = root_drive + DBApi.ROOT_FOLDER;
            
                //backup Dropbox folder if it exists
                if (new File(root_path).exists()) {
                    String new_dir_base = DBApi.ROOT_FOLDER + "_backup";
                    String new_dir = new_dir_base;
                    int counter = 0;
                    while(!Backup.backupFolder(root_path, new_dir)) {
                        counter++;
                        new_dir = new_dir_base + counter;
                    }
                    //TODO Warn user that Dropbox folder was backed up.
                }
                
                //create file monitoring objects
                FileMonitorAdvanced monitor = new FileMonitorAdvanced (3000L, 5000L,
                new File(root_path));
                
                //create db api object
		DBApi db = new DBApi(root_drive, monitor);
                
		//login
		if (!db.login()) {
                    //login failed
                    return;
		} else {
                    //download entire Dropbox folder, add file monitors
                    db.treeDir(db.getRoot());

                    //start file monitoring timer
                    monitor.addListener(monitor);
                    monitor.startTimer();
                    
                    //TODO start Dropbox sync timer
                    
                    while(true);
                }

		db.logout();
	}
}<commit_msg>ready to test command line lightning rod<commit_after>package com.lightningrod.app;

import com.lightningrod.dropbox.DBApi;
import com.lightningrod.dropbox.DBSync;
import com.lightningrod.io.Backup;
import com.lightningrod.io.FileMonitorAdvanced;
import java.io.File;

/**
 *
 * @author kevin
 */
public class LightningRod {
        private static String root_drive;
        private static String root_path;
        
        /**
	 * @param args
	 */
	public static void main(String[] args) {
		String pwd = new File(".").getAbsolutePath();
                root_drive = String.valueOf(pwd.charAt(0));
                if (!(root_drive.equals("/")))
                    root_drive = root_drive + ":" + File.separator;
                
                root_path = root_drive + DBApi.ROOT_FOLDER;
            
                //backup Dropbox folder if it exists
                if (new File(root_path).exists()) {
                    String new_dir_base = DBApi.ROOT_FOLDER + "_backup";
                    String new_dir = new_dir_base;
                    int counter = 0;
                    while(!Backup.backupFolder(root_path, new_dir)) {
                        counter++;
                        new_dir = new_dir_base + counter;
                    }
                    //TODO Warn user that Dropbox folder was backed up.
                }
                
                //create file monitoring object
                FileMonitorAdvanced monitor = new FileMonitorAdvanced (3000L, 5000L,
                new File(root_path));
                
                //create Dropbox sync monitoring object
                DBSync sync = new DBSync(monitor, 3000L);
                
                //create db api object
		DBApi db = new DBApi(root_drive, monitor);
                
		//login
		if (!db.login()) {
                    //login failed
                    return;
		} else {
                    //download entire Dropbox folder, add file monitors
                    db.treeDir(db.getRoot());

                    //start file monitoring timer
                    monitor.addListener(monitor);
                    monitor.startTimer();
                    
                    //start Dropbox sync timer
                    sync.startTimer();
                    while(true);
                }

		//db.logout();
	}
}
{'fraction_non_alphanumeric': 0.08794421952316689, 'fraction_numerical': 0.005398110661268556, 'mean_word_length': 1.2758444216990787, 'pattern_counts': {'":': 2, '<': 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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6190802', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1078, 'n_words': 272}