<commit_before>package com.stanfy.enroscar.rest.executor.test;

import static org.fest.assertions.api.Assertions.assertThat;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Test;

import org.robolectric.annotation.Config;

import com.google.mockwebserver.MockResponse;
import com.google.mockwebserver.RecordedRequest;
import com.stanfy.enroscar.beans.BeansManager.Editor;
import com.stanfy.enroscar.content.loader.ResponseData;
import com.stanfy.enroscar.net.test.AbstractMockServerTest;
import com.stanfy.enroscar.rest.executor.ApiMethodCallback;
import com.stanfy.enroscar.rest.executor.ApiMethodsSupport;
import com.stanfy.enroscar.rest.request.RequestDescription;
import com.stanfy.enroscar.rest.request.SimpleRequestBuilder;
import com.stanfy.enroscar.rest.response.handler.StringContentHandler;

/**
 * Tests for {@link com.stanfy.enroscar.rest.executor.RequestPerformer}.
 * @author <NAME> (Stanfy - http://stanfy.com)
 */
@Config(emulateSdk = 18)
public class RequestPerformerTest extends AbstractMockServerTest {

  /** Callback. */
  private WaitApiCallback callback;
  /** API methods support. */
  private ApiMethodsSupport support;

  @Override
  protected void configureBeansManager(final Editor editor) {
    super.configureBeansManager(editor);
    editor.put(StringContentHandler.class);
  }
  
  @Override
  protected void whenBeansConfigured() {
    super.whenBeansConfigured();
    initContentHandler(StringContentHandler.BEAN_NAME);
    
    callback = new WaitApiCallback();
    support = new ApiMethodsSupport(getApplication(), callback);
    support.bind();
    support.registerCallback();
  }<commit_msg>fix tests<commit_after>package com.stanfy.enroscar.rest.executor.test;

import static org.fest.assertions.api.Assertions.assertThat;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Test;

import org.robolectric.annotation.Config;

import com.google.mockwebserver.MockResponse;
import com.google.mockwebserver.RecordedRequest;
import com.stanfy.enroscar.beans.BeansManager.Editor;
import com.stanfy.enroscar.content.loader.ResponseData;
import com.stanfy.enroscar.net.test.AbstractMockServerTest;
import com.stanfy.enroscar.rest.executor.ApiMethodCallback;
import com.stanfy.enroscar.rest.executor.ApiMethodsSupport;
import com.stanfy.enroscar.rest.request.RequestDescription;
import com.stanfy.enroscar.rest.request.SimpleRequestBuilder;
import com.stanfy.enroscar.rest.response.handler.StringContentHandler;
import com.stanfy.enroscar.shared.test.EnroscarConfiguration;

/**
 * Tests for {@link com.stanfy.enroscar.rest.executor.RequestPerformer}.
 * @author <NAME> (Stanfy - http://stanfy.com)
 */
@Config(emulateSdk = 18)
@EnroscarConfiguration(connectionEngineRequired = true)
public class RequestPerformerTest extends AbstractMockServerTest {

  /** Callback. */
  private WaitApiCallback callback;
  /** API methods support. */
  private ApiMethodsSupport support;

  @Override
  protected void configureBeansManager(final Editor editor) {
    super.configureBeansManager(editor);
    editor.put(StringContentHandler.class);
  }
  
  @Override
  protected void whenBeansConfigured() {
    super.whenBeansConfigured();
    initContentHandler(StringContentHandler.BEAN_NAME);
    
    callback = new WaitApiCallback();
    support = new ApiMethodsSupport(getApplication(), callback);
    support.bind();
    support.registerCallback();
  }
{'fraction_non_alphanumeric': 0.10550198525241067, 'fraction_numerical': 0.0011344299489506524, 'mean_word_length': 5.507380073800738, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2501081', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1059, 'n_words': 171}