<commit_before>package com.kyleduo.rabbits.demo;

import android.app.Application;
import android.os.SystemClock;
import android.util.Log;

import com.kyleduo.rabbits.MappingsGroup;
import com.kyleduo.rabbits.MappingsLoaderCallback;
import com.kyleduo.rabbits.P;
import com.kyleduo.rabbits.RConfig;
import com.kyleduo.rabbits.Rabbit;
import com.kyleduo.rabbits.Target;
import com.kyleduo.rabbits.annotations.Module;
import com.kyleduo.rabbits.demo.navigation.DemoNavigatorFactory;
import com.kyleduo.rabbits.demo.utils.UriUtils;
import com.kyleduo.rabbits.navigator.INavigationInterceptor;

/**
 * Created by kyle on 2016/12/8.
 */

@Module(subModules = {"sub1"})
public class DemoApplication extends Application {
    private static final String TAG = "DemoApplication";

    @Override
    public void onCreate() {
        super.onCreate();

        RConfig config = RConfig.get()
                .scheme("demo")
                .defaultHost("rabbits.kyleduo.com")
                .forceUpdatePersist(false)
                .navigatorFactory(new DemoNavigatorFactory());
        Rabbit.init(config);

        // syc setup
//        Rabbit.setup(this);

        final long time = SystemClock.elapsedRealtime();
        Log.d(TAG, "start : " + time);
        // async setup
        Rabbit.asyncSetup(this, new MappingsLoaderCallback() {
            @Override
            public void onMappingsLoaded(MappingsGroup mappings) {<commit_msg>Debug flag<commit_after>package com.kyleduo.rabbits.demo;

import android.app.Application;
import android.os.SystemClock;
import android.util.Log;

import com.kyleduo.rabbits.MappingsGroup;
import com.kyleduo.rabbits.MappingsLoaderCallback;
import com.kyleduo.rabbits.P;
import com.kyleduo.rabbits.RConfig;
import com.kyleduo.rabbits.Rabbit;
import com.kyleduo.rabbits.Target;
import com.kyleduo.rabbits.annotations.Module;
import com.kyleduo.rabbits.demo.navigation.DemoNavigatorFactory;
import com.kyleduo.rabbits.demo.utils.UriUtils;
import com.kyleduo.rabbits.navigator.INavigationInterceptor;

/**
 * Created by kyle on 2016/12/8.
 */

@Module(subModules = {"sub1"})
public class DemoApplication extends Application {
    private static final String TAG = "DemoApplication";

    @Override
    public void onCreate() {
        super.onCreate();

        RConfig config = RConfig.get()
                .scheme("demo")
                .defaultHost("rabbits.kyleduo.com")
                .forceUpdatePersist(BuildConfig.DEBUG)
                .navigatorFactory(new DemoNavigatorFactory());
        Rabbit.init(config);

        // syc setup
//        Rabbit.setup(this);

        final long time = SystemClock.elapsedRealtime();
        Log.d(TAG, "start : " + time);
        // async setup
        Rabbit.asyncSetup(this, new MappingsLoaderCallback() {
            @Override
            public void onMappingsLoaded(MappingsGroup mappings) {
{'fraction_non_alphanumeric': 0.1080236193122612, 'fraction_numerical': 0.0055574852379298365, 'mean_word_length': 3.143884892086331, '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': '6817654', 'n_tokens_mistral': 897, 'n_tokens_neox': 882, 'n_words': 161}