<commit_before>/*
 * Copyright 2015 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package nz.net.speakman.destinyraidtimers.crota;

import android.os.CountDownTimer;

import com.squareup.otto.Bus;

/**
 * Created by Adam on 15-02-21.
 */
public class CrotaEnrageTimer extends CountDownTimer {
    public static final long TIME_TO_ENRAGE_MS = 10 * 60 * 1000; // 10 minutes
    public static final long UPDATE_INTERVAL = 100; // 100 ms

    private final Bus bus;
    private CrotaEnrageTimerUpdateEvent event;
    private boolean enraged;<commit_msg>Update enrage time to be accurate from crystal activation<commit_after>/*
 * Copyright 2015 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package nz.net.speakman.destinyraidtimers.crota;

import android.os.CountDownTimer;

import com.squareup.otto.Bus;

/**
 * Created by Adam on 15-02-21.
 */
public class CrotaEnrageTimer extends CountDownTimer {
    /**
     * From crystal activation to glass break is 22 seconds.
     * From glass break, Crota enrages after 10 minutes: https://www.bungie.net/en/Forum/Post/84580574/0/0
     */
    public static final long TIME_TO_GLASS_BREAK_MS = 22 * 1000;
    /**
     * Time from the first 'Crotas Presence Debuff' (crystal activation) until enrage.
     * Includes {@link #TIME_TO_GLASS_BREAK_MS}.
     */
    public static final long TIME_TO_ENRAGE_MS = 10 * 60 * 1000 + TIME_TO_GLASS_BREAK_MS;
    public static final long UPDATE_INTERVAL = 100; // 100 ms

    private final Bus bus;
    private CrotaEnrageTimerUpdateEvent event;
    private boolean enraged;
{'fraction_non_alphanumeric': 0.07763259031514219, 'fraction_numerical': 0.02997694081475788, 'mean_word_length': 3.5989399293286217, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 3, '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': '6990484', 'n_tokens_mistral': 806, 'n_tokens_neox': 730, 'n_words': 297}