<commit_before>
package forager.ui;

import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

import forager.client.Importer;
import forager.server.Overlord;

import galileo.net.NetworkDestination;

@Parameters(separators = "=", commandDescription = "Imports and submits "
        + "tasks to a server (from files or stdin)")
public class Import implements CommandLauncher {

    @Parameter(description = "file1 file2 ... fileN")
    private List<String> files = new ArrayList<>();

    @Parameter(names = { "-p", "--port" }, description = "Server port")
    private int port = Overlord.DEFAULT_PORT;

    @Parameter(names = { "-s", "--server" },
            description = "Server to submit imported tasks to")
    private String server = "localhost";

    @Override
    public void launch() throws Exception {
        Importer i = new Importer();
        if (files.size() > 0) {
            for (String file : files) {
                int numTasks = i.addTaskFile(file);
                System.out.println("Importing " + numTasks + " tasks "
                        + "from file: " + file);
            }<commit_msg>Update default port location<commit_after>
package forager.ui;

import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

import forager.client.Importer;
import forager.server.Overlord;

import galileo.net.NetworkDestination;

@Parameters(separators = "=", commandDescription = "Imports and submits "
        + "tasks to a server (from files or stdin)")
public class Import implements CommandLauncher {

    @Parameter(description = "file1 file2 ... fileN")
    private List<String> files = new ArrayList<>();

    @Parameter(names = { "-p", "--port" }, description = "Server port")
    private int port = Server.DEFAULT_PORT;

    @Parameter(names = { "-s", "--server" },
            description = "Server to submit imported tasks to")
    private String server = "localhost";

    @Override
    public void launch() throws Exception {
        Importer i = new Importer();
        if (files.size() > 0) {
            for (String file : files) {
                int numTasks = i.addTaskFile(file);
                System.out.println("Importing " + numTasks + " tasks "
                        + "from file: " + file);
            }
{'fraction_non_alphanumeric': 0.12089249492900608, 'fraction_numerical': 0.002434077079107505, 'mean_word_length': 2.829192546583851, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '211228', 'n_tokens_mistral': 691, 'n_tokens_neox': 675, 'n_words': 195}