<commit_before>package info.nightscout.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import info.nightscout.androidaps.MainApp;
import info.nightscout.androidaps.R;

/**
 * Created by mike on 22.02.2017.
 */

public class HardLimits {
    private static Logger log = LoggerFactory.getLogger(HardLimits.class);

    final static int CHILD = 0;
    final static int TEENAGE = 1;
    final static int ADULT = 2;
    final static int RESISTANTADULT = 3;

    final static double[] MAXBOLUS = {5d, 10d, 17d, 21d};

    // Very Hard Limits Ranges
    // First value is the Lowest and second value is the Highest a Limit can define
    public static final int[] VERY_HARD_LIMIT_MIN_BG = {72, 180};
    public static final int[] VERY_HARD_LIMIT_MAX_BG = {90, 270};
    public static final int[] VERY_HARD_LIMIT_TARGET_BG = {80, 200};
    // Very Hard Limits Ranges for Temp Targets
    public static final int[] VERY_HARD_LIMIT_TEMP_MIN_BG = {72, 180};
    public static final int[] VERY_HARD_LIMIT_TEMP_MAX_BG = {72, 270};
    public static final int[] VERY_HARD_LIMIT_TEMP_TARGET_BG = {72, 200};

    public static final double MINDIA = 2;
    public static final double MAXDIA = 7;

    public static final double MINIC = 2;
    public static final double MAXIC = 100;

    public static final double MINISF = 2; // mgdl
    public static final double MAXISF = 720; // mgdl

    public static final double[] MAXIOB_AMA = {3, 5, 7, 12};
    public static final double[] MAXIOB_SMB = {3, 7, 12, 22};

    public static final double[] MAXBASAL = {2, 5, 10, 12};


    private static int loadAge() {
        String sp_age = SP.getString(R.string.key_age, "");<commit_msg>resistant adult max bolus 25U<commit_after>package info.nightscout.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import info.nightscout.androidaps.MainApp;
import info.nightscout.androidaps.R;

/**
 * Created by mike on 22.02.2017.
 */

public class HardLimits {
    private static Logger log = LoggerFactory.getLogger(HardLimits.class);

    final static int CHILD = 0;
    final static int TEENAGE = 1;
    final static int ADULT = 2;
    final static int RESISTANTADULT = 3;

    final static double[] MAXBOLUS = {5d, 10d, 17d, 25d};

    // Very Hard Limits Ranges
    // First value is the Lowest and second value is the Highest a Limit can define
    public static final int[] VERY_HARD_LIMIT_MIN_BG = {72, 180};
    public static final int[] VERY_HARD_LIMIT_MAX_BG = {90, 270};
    public static final int[] VERY_HARD_LIMIT_TARGET_BG = {80, 200};
    // Very Hard Limits Ranges for Temp Targets
    public static final int[] VERY_HARD_LIMIT_TEMP_MIN_BG = {72, 180};
    public static final int[] VERY_HARD_LIMIT_TEMP_MAX_BG = {72, 270};
    public static final int[] VERY_HARD_LIMIT_TEMP_TARGET_BG = {72, 200};

    public static final double MINDIA = 2;
    public static final double MAXDIA = 7;

    public static final double MINIC = 2;
    public static final double MAXIC = 100;

    public static final double MINISF = 2; // mgdl
    public static final double MAXISF = 720; // mgdl

    public static final double[] MAXIOB_AMA = {3, 5, 7, 12};
    public static final double[] MAXIOB_SMB = {3, 7, 12, 25};

    public static final double[] MAXBASAL = {2, 5, 10, 12};


    private static int loadAge() {
        String sp_age = SP.getString(R.string.key_age, "");
{'fraction_non_alphanumeric': 0.09289940828402367, 'fraction_numerical': 0.04674556213017751, 'mean_word_length': 3.4311926605504586, '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': '3223231', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1104, 'n_words': 386}