<commit_before>/*
 * Copyright (c) 2016 <NAME> (<EMAIL>)
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

package ch.indr.threethreefive;

import org.junit.runners.model.InitializationError;
import org.robolectric.RobolectricTestRunner;

import rx.Scheduler;
import rx.plugins.RxJavaSchedulersHook;
import rx.plugins.RxJavaTestPlugins;
import rx.schedulers.Schedulers;

public class TtfRobolectricGradleTestRunner extends RobolectricTestRunner {

  public static final int DEFAULT_SDK = 21;

  public TtfRobolectricGradleTestRunner(Class<?> testClass) throws InitializationError {
    super(testClass);

    RxJavaTestPlugins.resetPlugins();
    RxJavaTestPlugins.getInstance().registerSchedulersHook(new RxJavaSchedulersHook() {
      @Override public Scheduler getIOScheduler() {
        return Schedulers.immediate();
      }
    });
  }
}<commit_msg>Run tests with API level 16<commit_after>/*
 * Copyright (c) 2016 <NAME> (<EMAIL>)
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

package ch.indr.threethreefive;

import org.junit.runners.model.InitializationError;
import org.robolectric.RobolectricTestRunner;

import rx.Scheduler;
import rx.plugins.RxJavaSchedulersHook;
import rx.plugins.RxJavaTestPlugins;
import rx.schedulers.Schedulers;

public class TtfRobolectricGradleTestRunner extends RobolectricTestRunner {

  public static final int DEFAULT_SDK = 16;
  // public static final int DEFAULT_SDK = 21;

  public TtfRobolectricGradleTestRunner(Class<?> testClass) throws InitializationError {
    super(testClass);

    RxJavaTestPlugins.resetPlugins();
    RxJavaTestPlugins.getInstance().registerSchedulersHook(new RxJavaSchedulersHook() {
      @Override public Scheduler getIOScheduler() {
        return Schedulers.immediate();
      }
    });
  }
}
{'fraction_non_alphanumeric': 0.08552292632663576, 'fraction_numerical': 0.00824317362184441, 'mean_word_length': 4.957055214723926, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6126493', 'n_tokens_mistral': 610, 'n_tokens_neox': 569, 'n_words': 141}