<commit_before>package com.kickstarter.libs;

import android.support.annotation.NonNull;

import com.kickstarter.presenters.DiscoveryPresenter;
import com.kickstarter.services.KickstarterClient;

import rx.Subscription;
import rx.android.schedulers.AndroidSchedulers;

public interface BuildCheck {
  void bind(@NonNull final DiscoveryPresenter presenter, @NonNull final KickstarterClient client);

  BuildCheck DEFAULT = (presenter, client) -> {
    final Subscription subscription = RxUtils.combineLatestPair(client.pingBeta(), presenter.viewSubject())
      .filter(v -> v.first.newerBuildAvailable())
      .observeOn(AndroidSchedulers.mainThread())
      .subscribe(v -> v.second.showBuildAlert(v.first));

    presenter.addSubscription(subscription);
  };
}<commit_msg>If the build check fails, just keep on truckin'<commit_after>package com.kickstarter.libs;

import android.support.annotation.NonNull;

import com.kickstarter.presenters.DiscoveryPresenter;
import com.kickstarter.services.KickstarterClient;

import rx.Subscription;
import rx.android.schedulers.AndroidSchedulers;
import timber.log.Timber;

public interface BuildCheck {
  void bind(@NonNull final DiscoveryPresenter presenter, @NonNull final KickstarterClient client);

  BuildCheck DEFAULT = (presenter, client) -> {
    final Subscription subscription = RxUtils.combineLatestPair(client.pingBeta(), presenter.viewSubject())
      .filter(v -> v.first.newerBuildAvailable())
      .observeOn(AndroidSchedulers.mainThread())
      .subscribe(v -> v.second.showBuildAlert(v.first), e -> Timber.e(e.toString()));

    presenter.addSubscription(subscription);
  };
}
{'fraction_non_alphanumeric': 0.10860280658938377, 'fraction_numerical': 0.0, 'mean_word_length': 5.53386454183267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '6642820', 'n_tokens_mistral': 489, 'n_tokens_neox': 470, 'n_words': 90}