<commit_before>package com.mapswithme.util.statistics;

import android.graphics.Rect;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;

import com.mapswithme.maps.R;
import com.mapswithme.maps.bookmarks.data.MapObject;
import com.mapswithme.maps.taxi.TaxiManager;
import com.mapswithme.maps.widget.placepage.PlacePageView;
import com.mapswithme.maps.widget.placepage.Sponsored;
import com.mapswithme.util.UiUtils;

import java.util.List;

public class PlacePageTracker
{
  private static final float VISIBILITY_RATIO_SPONSORED_GALLERY = 0.3f;
  private static final float VISIBILITY_RATIO_TAXI = 1f;
  @NonNull
  private final PlacePageView mPlacePageView;
  @NonNull
  private final View mBottomButtons;
  @NonNull
  private final View mTaxi;
  @Nullable
  private MapObject mMapObject;
  private boolean mTaxiTracked;

  public PlacePageTracker(@NonNull PlacePageView placePageView)
  {
    mPlacePageView = placePageView;
    mBottomButtons = mPlacePageView.findViewById(R.id.pp__buttons);
    mTaxi = mPlacePageView.findViewById(R.id.ll__place_page_taxi);
  }

  public void setMapObject(@Nullable MapObject mapObject)
  {
    mMapObject = mapObject;
  }

  public void onMove()
  {
    trackTaxiVisibility();
  }
<commit_msg>[android] Tuned statistics for taxi in PP<commit_after>package com.mapswithme.util.statistics;

import android.graphics.Rect;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;

import com.mapswithme.maps.R;
import com.mapswithme.maps.bookmarks.data.MapObject;
import com.mapswithme.maps.taxi.TaxiManager;
import com.mapswithme.maps.widget.placepage.PlacePageView;
import com.mapswithme.maps.widget.placepage.Sponsored;
import com.mapswithme.util.UiUtils;

import java.util.List;

public class PlacePageTracker
{
  private static final float VISIBILITY_RATIO_TAXI = 0.6f;
  @NonNull
  private final PlacePageView mPlacePageView;
  @NonNull
  private final View mBottomButtons;
  @NonNull
  private final View mTaxi;
  @Nullable
  private MapObject mMapObject;
  private boolean mTaxiTracked;

  public PlacePageTracker(@NonNull PlacePageView placePageView)
  {
    mPlacePageView = placePageView;
    mBottomButtons = mPlacePageView.findViewById(R.id.pp__buttons);
    mTaxi = mPlacePageView.findViewById(R.id.ll__place_page_taxi);
  }

  public void setMapObject(@Nullable MapObject mapObject)
  {
    mMapObject = mapObject;
  }

  public void onMove()
  {
    trackTaxiVisibility();
  }

{'fraction_non_alphanumeric': 0.08248232521602514, 'fraction_numerical': 0.0019638648860958365, 'mean_word_length': 5.122596153846154, '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': '2369266', 'n_tokens_mistral': 848, 'n_tokens_neox': 832, 'n_words': 164}