<commit_before>package md.frolov.legume.client;

import java.util.logging.Level;
import java.util.logging.Logger;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.place.shared.PlaceChangeEvent;
import com.google.gwt.user.client.ui.RootLayoutPanel;

import md.frolov.legume.client.activities.stream.StreamPlace;
import md.frolov.legume.client.events.UpdateSearchQuery;
import md.frolov.legume.client.gin.WidgetInjector;
import md.frolov.legume.client.model.Search;

/** Entry point classes define <code>onModuleLoad()</code>. */
public class Legume implements EntryPoint
{
    private static final Logger LOG = Logger.getLogger("Legume");

    private WidgetInjector injector = WidgetInjector.INSTANCE;

    private ResourceBundle resources = GWT.create(ResourceBundle.class);

    /** This is the entry point method. */
    public void onModuleLoad()
    {
        resources.mainCss().ensureInjected();

        injector.eventBus().addHandler(PlaceChangeEvent.TYPE, injector.application());
        injector.eventBus().addHandler(UpdateSearchQuery.TYPE, injector.application());

        injector.activityManager().setDisplay(injector.mainView());
        RootLayoutPanel.get().add(injector.mainView());

        injector.placeHistoryHandler().register(injector.placeController(), injector.eventBus(), new StreamPlace(Search.DEFAULT)); //TODO change to homeplace
        injector.placeHistoryHandler().handleCurrentHistory();

        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler()
        {
            @Override
            public void onUncaughtException(final Throwable e)
            {
                LOG.log(Level.SEVERE, "uncaught", e);
            }
        });
    }
<commit_msg>cleanup<commit_after>package md.frolov.legume.client;

import java.util.logging.Level;
import java.util.logging.Logger;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.place.shared.PlaceChangeEvent;
import com.google.gwt.user.client.ui.RootLayoutPanel;

import md.frolov.legume.client.activities.stream.StreamPlace;
import md.frolov.legume.client.events.UpdateSearchQuery;
import md.frolov.legume.client.gin.WidgetInjector;
import md.frolov.legume.client.model.Search;

/** Entry point classes define <code>onModuleLoad()</code>. */
public class Legume implements EntryPoint
{
    private static final Logger LOG = Logger.getLogger("Legume");

    private WidgetInjector injector = WidgetInjector.INSTANCE;

    private ResourceBundle resources = GWT.create(ResourceBundle.class);

    /** This is the entry point method. */
    public void onModuleLoad()
    {
        resources.mainCss().ensureInjected();

        injector.eventBus().addHandler(PlaceChangeEvent.TYPE, injector.application());
        injector.eventBus().addHandler(UpdateSearchQuery.TYPE, injector.application());

        injector.activityManager().setDisplay(injector.mainView());
        RootLayoutPanel.get().add(injector.mainView());

        injector.placeHistoryHandler().register(injector.placeController(), injector.eventBus(), new StreamPlace(Search.DEFAULT));
        injector.placeHistoryHandler().handleCurrentHistory();

        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler()
        {
            @Override
            public void onUncaughtException(final Throwable e)
            {
                LOG.log(Level.SEVERE, "uncaught", e);
            }
        });
    }

{'fraction_non_alphanumeric': 0.11704253497002569, 'fraction_numerical': 0.0, 'mean_word_length': 3.76734693877551, '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': '6957397', 'n_tokens_mistral': 1010, 'n_tokens_neox': 1003, 'n_words': 160}