<commit_before>//
// $Id: MiCasaClient.java,v 1.3 2001/10/11 04:13:33 mdb Exp $

package com.threerings.micasa.client;

import java.awt.event.*;
import java.io.IOException;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

import com.samskivert.util.Config;

import com.threerings.presents.client.*;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.net.*;

import com.threerings.crowd.client.LocationDirector;
import com.threerings.crowd.client.OccupantManager;
import com.threerings.crowd.client.PlaceView;

import com.threerings.parlor.client.ParlorDirector;

import com.threerings.micasa.Log;
import com.threerings.micasa.util.MiCasaContext;

/**
 * The MiCasa client takes care of instantiating all of the proper
 * managers and loading up all of the necessary configuration and getting
 * the client bootstrapped.
 */
public class MiCasaClient
    implements Client.Invoker
{
    /**
     * Creates a new client and provides it with a frame in which to
     * display everything.
     */
    public MiCasaClient (MiCasaFrame frame)
        throws IOException
    {
        // create our context
        _ctx = new MiCasaContextImpl();

        // create the handles on our various services
        _config = new Config();
        _client = new Client(null, this);

        // create our managers and directors
        _locdir = new LocationDirector(_ctx);
        _occmgr = new OccupantManager(_ctx);
        _pardtr = new ParlorDirector(_ctx);

        // for test purposes, hardcode the server info
        _client.setServer("localhost", 4007);

        // keep this for later
        _frame = frame;

        // log off when they close the window
        _frame.addWindowListener(new WindowAdapter() {
            public void windowClosing (WindowEvent evt) {
                _client.logoff(true);
            }<commit_msg>Connect to my machine for now.<commit_after>//
// $Id: MiCasaClient.java,v 1.4 2001/10/17 23:29:18 mdb Exp $

package com.threerings.micasa.client;

import java.awt.event.*;
import java.io.IOException;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

import com.samskivert.util.Config;

import com.threerings.presents.client.*;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.net.*;

import com.threerings.crowd.client.LocationDirector;
import com.threerings.crowd.client.OccupantManager;
import com.threerings.crowd.client.PlaceView;

import com.threerings.parlor.client.ParlorDirector;

import com.threerings.micasa.Log;
import com.threerings.micasa.util.MiCasaContext;

/**
 * The MiCasa client takes care of instantiating all of the proper
 * managers and loading up all of the necessary configuration and getting
 * the client bootstrapped.
 */
public class MiCasaClient
    implements Client.Invoker
{
    /**
     * Creates a new client and provides it with a frame in which to
     * display everything.
     */
    public MiCasaClient (MiCasaFrame frame)
        throws IOException
    {
        // create our context
        _ctx = new MiCasaContextImpl();

        // create the handles on our various services
        _config = new Config();
        _client = new Client(null, this);

        // create our managers and directors
        _locdir = new LocationDirector(_ctx);
        _occmgr = new OccupantManager(_ctx);
        _pardtr = new ParlorDirector(_ctx);

        // for test purposes, hardcode the server info
        _client.setServer("bering", 4007);

        // keep this for later
        _frame = frame;

        // log off when they close the window
        _frame.addWindowListener(new WindowAdapter() {
            public void windowClosing (WindowEvent evt) {
                _client.logoff(true);
            }
{'fraction_non_alphanumeric': 0.08885941644562334, 'fraction_numerical': 0.010610079575596816, 'mean_word_length': 2.924037460978148, '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': '3015566', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1111, 'n_words': 311}