<commit_before>package com.sinyuk.yuk.api;

import retrofit2.adapter.rxjava.Result;
import rx.functions.Func1;

public final class Results {
  private static final Func1<Result<?>, Boolean> SUCCESSFUL =
          result -> !result.isError() && result.response().isSuccessful();

  public static Func1<Result<?>, Boolean> isSuccessful() {
    return SUCCESSFUL;
  }

  private Results() {
    throw new AssertionError("No instances.");
  }
}<commit_msg>Add Results call to check the request<commit_after>package com.sinyuk.yuk.api;

import retrofit2.adapter.rxjava.Result;
import rx.functions.Func1;

/**
 * 网络请求的结果
 */
public final class Results {
  private static final Func1<Result<?>, Boolean> SUCCESSFUL =
          result -> !result.isError() && result.response().isSuccessful();

  public static Func1<Result<?>, Boolean> isSuccessful() {
    return SUCCESSFUL;
  }

  private Results() {
    throw new AssertionError("No instances.");
  }
}
{'fraction_non_alphanumeric': 0.13093980992608237, 'fraction_numerical': 0.008447729672650475, 'mean_word_length': 4.124324324324324, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1555649', 'n_tokens_mistral': 303, 'n_tokens_neox': 299, 'n_words': 71}