<commit_before>package org.metaborg.sunshine;

import org.metaborg.spoofax.meta.core.SpoofaxMetaModule;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.martiansoftware.nailgun.NGContext;

public class Main {
    private static Injector injector;


    public static void main(String[] args) {
        injector = Guice.createInjector(new SunshineModule()).createChildInjector(new SpoofaxMetaModule());

        run(args, false);
    }

    public static void nailMain(NGContext context) {
        run(context.getArgs(), true);
    }<commit_msg>Use facade instead of instantiating injectors manually.<commit_after>package org.metaborg.sunshine;

import org.metaborg.core.MetaborgException;
import org.metaborg.spoofax.core.Spoofax;
import org.metaborg.spoofax.meta.core.SpoofaxMeta;

import com.google.inject.Injector;
import com.martiansoftware.nailgun.NGContext;

public class Main {
    private static Injector injector;


    public static void main(String[] args) throws MetaborgException {
        final Spoofax spoofax = new Spoofax(new SunshineModule());
        final SpoofaxMeta spoofaxMeta = new SpoofaxMeta(spoofax);
        injector = spoofaxMeta.injector();

        run(args, false);
    }

    public static void nailMain(NGContext context) {
        run(context.getArgs(), true);
    }
{'fraction_non_alphanumeric': 0.09541697971450037, 'fraction_numerical': 0.0, 'mean_word_length': 4.083969465648855, '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': '4370475', 'n_tokens_mistral': 431, 'n_tokens_neox': 415, 'n_words': 89}