<commit_before>package org.duracloud.sync.config;

import java.io.File;
import java.io.Serializable;
import java.util.List;

/**
 * Configuration for the Sync Tool
 *
 * @author: <NAME>
 * Date: Mar 25, 2010
 */
public class SyncToolConfig implements Serializable {

    private String host;
    private int port;
    private String context;
    private String username;
    private String password;
    private String spaceId;
    private File backupDir;
    private List<File> syncDirs;
    private long pollFrequency;
    private int numThreads;
    private long maxFileSize;
    private boolean syncDeletes;

    public String getPrintableConfig() {
        StringBuilder config = new StringBuilder();

        config.append("\n--------------------------------------\n");
        config.append(" Sync Tool Configuration");
        config.append("\n--------------------------------------\n");

        config.append("Sync Directories:\n");
        for(File dir : getSyncDirs()) {
            config.append("  ").append(dir.getAbsolutePath()).append("\n");
        }

        config.append("DuraStore Host: ");
        config.append(getHost()).append("\n");
        config.append("DuraStore Port: ");
        config.append(getPort()).append("\n");
        config.append("DuraStore Username: ");
        config.append(getUsername()).append("\n");
        config.append("DuraStore Password: ");
        config.append(getPassword()).append("\n");
        config.append("DuraCloud Space ID: ");
        config.append(getSpaceId()).append("\n");
        config.append("SyncTool Backup Directory: ");
        config.append(getBackupDir()).append("\n");
        config.append("SyncTool Poll Frequency: ");
        config.append(getPollFrequency());
        config.append("\n");
        config.append("SyncTool Threads: ");<commit_msg>Updates the sync tool to no longer print out the user's password along with other config properties.<commit_after>package org.duracloud.sync.config;

import java.io.File;
import java.io.Serializable;
import java.util.List;

/**
 * Configuration for the Sync Tool
 *
 * @author: <NAME>
 * Date: Mar 25, 2010
 */
public class SyncToolConfig implements Serializable {

    private String host;
    private int port;
    private String context;
    private String username;
    private String password;
    private String spaceId;
    private File backupDir;
    private List<File> syncDirs;
    private long pollFrequency;
    private int numThreads;
    private long maxFileSize;
    private boolean syncDeletes;

    public String getPrintableConfig() {
        StringBuilder config = new StringBuilder();

        config.append("\n--------------------------------------\n");
        config.append(" Sync Tool Configuration");
        config.append("\n--------------------------------------\n");

        config.append("Sync Directories:\n");
        for(File dir : getSyncDirs()) {
            config.append("  ").append(dir.getAbsolutePath()).append("\n");
        }

        config.append("DuraStore Host: ");
        config.append(getHost()).append("\n");
        config.append("DuraStore Port: ");
        config.append(getPort()).append("\n");
        config.append("DuraStore Username: ");
        config.append(getUsername()).append("\n");
        config.append("DuraCloud Space ID: ");
        config.append(getSpaceId()).append("\n");
        config.append("SyncTool Backup Directory: ");
        config.append(getBackupDir()).append("\n");
        config.append("SyncTool Poll Frequency: ");
        config.append(getPollFrequency());
        config.append("\n");
        config.append("SyncTool Threads: ");
{'fraction_non_alphanumeric': 0.17356731560186456, 'fraction_numerical': 0.003290375651220181, 'mean_word_length': 2.5486381322957197, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1919202', 'n_tokens_mistral': 968, 'n_tokens_neox': 935, 'n_words': 227}