<commit_before>// Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the GNU General Public License version 2 or later.
package fitnesse;

import java.io.File;
import java.net.BindException;

import fitnesse.authentication.Authenticator;
import fitnesse.authentication.MultiUserAuthenticator;
import fitnesse.authentication.OneUserAuthenticator;
import fitnesse.authentication.PromiscuousAuthenticator;
import fitnesse.components.CommandLine;
import fitnesse.components.Logger;
import fitnesse.html.HtmlPageFactory;
import fitnesse.responders.ResponderFactory;
import fitnesse.responders.WikiImportTestEventListener;
import fitnesse.revisioncontrol.RevisionController;
import fitnesse.socketservice.SocketService;
import fitnesse.updates.Updater;
import fitnesse.wiki.FileSystemPage;
import fitnesse.wiki.PageVersionPruner;

public class FitNesse {
    public static final FitNesseVersion VERSION = new FitNesseVersion();

    private FitNesseContext context = new FitNesseContext();
    private SocketService theService;
    private static String extraOutput;

    public static FitNesse fitnesse;

    public static void main(String[] args) throws Exception {
        Arguments arguments = parseCommandLine(args);
        if (arguments != null) {
            FitNesseContext context = loadContext(arguments);
            PageVersionPruner.daysTillVersionsExpire = arguments.getDaysTillVersionsExpire();
            fitnesse = new FitNesse(context);
            if (!arguments.isOmittingUpdates())
                fitnesse.applyUpdates();
            boolean started = fitnesse.start();
            if (started)
                printStartMessage(arguments, context);
        } else {
            printUsage();
            System.exit(1);
        }
    }

    private static FitNesseContext loadContext(Arguments arguments) throws Exception {
        FitNesseContext context = new FitNesseContext();
        context.port = arguments.getPort();
        context.rootPath = arguments.getRootPath();
        ComponentFactory componentFactory = new ComponentFactory(context.rootPath);
        context.rootPageName = arguments.getRootDirectory();<commit_msg>Removed redundant initialization of FitNesseContext. Was initialized to object constructed with no-arg ctor and then every ctor assignes it a value passed in.<commit_after>// Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the GNU General Public License version 2 or later.
package fitnesse;

import java.io.File;
import java.net.BindException;

import fitnesse.authentication.Authenticator;
import fitnesse.authentication.MultiUserAuthenticator;
import fitnesse.authentication.OneUserAuthenticator;
import fitnesse.authentication.PromiscuousAuthenticator;
import fitnesse.components.CommandLine;
import fitnesse.components.Logger;
import fitnesse.html.HtmlPageFactory;
import fitnesse.responders.ResponderFactory;
import fitnesse.responders.WikiImportTestEventListener;
import fitnesse.revisioncontrol.RevisionController;
import fitnesse.socketservice.SocketService;
import fitnesse.updates.Updater;
import fitnesse.wiki.FileSystemPage;
import fitnesse.wiki.PageVersionPruner;

public class FitNesse {
    public static final FitNesseVersion VERSION = new FitNesseVersion();

    private FitNesseContext context;
    private SocketService theService;
    private static String extraOutput;

    public static FitNesse fitnesse;

    public static void main(String[] args) throws Exception {
        Arguments arguments = parseCommandLine(args);
        if (arguments != null) {
            FitNesseContext context = loadContext(arguments);
            PageVersionPruner.daysTillVersionsExpire = arguments.getDaysTillVersionsExpire();
            fitnesse = new FitNesse(context);
            if (!arguments.isOmittingUpdates())
                fitnesse.applyUpdates();
            boolean started = fitnesse.start();
            if (started)
                printStartMessage(arguments, context);
        } else {
            printUsage();
            System.exit(1);
        }
    }

    private static FitNesseContext loadContext(Arguments arguments) throws Exception {
        FitNesseContext context = new FitNesseContext();
        context.port = arguments.getPort();
        context.rootPath = arguments.getRootPath();
        ComponentFactory componentFactory = new ComponentFactory(context.rootPath);
        context.rootPageName = arguments.getRootDirectory();
{'fraction_non_alphanumeric': 0.07327300816596778, 'fraction_numerical': 0.006179651291105716, 'mean_word_length': 3.888888888888889, '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': '3681747', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1168, 'n_words': 299}