<commit_before>package com.thebluealliance.androidclient;

import com.thebluealliance.androidclient.models.Media;

import java.util.HashMap;

/**
 * File created by phil on 4/22/14.
 */
public class Constants {
    public static final String LOG_TAG = "tba-android";
    public static final String DATAMANAGER_LOG = LOG_TAG + ":dataManager";
    public static final String REFRESH_LOG = LOG_TAG + ":refresh";

    public static final HashMap<String, String> MATCH_LEVELS;
    public static final HashMap<Media.TYPE, String> MEDIA_IMG_URL_PATTERN,
            MEDIA_LINK_URL_PATTERN;

    static {
        MATCH_LEVELS = new HashMap<>();
        MATCH_LEVELS.put("Quals", "q");
        MATCH_LEVELS.put("q", "q");
        MATCH_LEVELS.put("qm", "q");
        MATCH_LEVELS.put("Qtr", "qf");
        MATCH_LEVELS.put("Quarters", "qf");
        MATCH_LEVELS.put("qf", "qf");
        MATCH_LEVELS.put("Semi", "sf");
        MATCH_LEVELS.put("Semis", "sf");
        MATCH_LEVELS.put("sf", "sf");
        MATCH_LEVELS.put("Finals", "f");
        MATCH_LEVELS.put("Final", "f");
        MATCH_LEVELS.put("f", "f");

        MEDIA_IMG_URL_PATTERN = new HashMap<>();
        MEDIA_LINK_URL_PATTERN = new HashMap<>();
        MEDIA_IMG_URL_PATTERN.put(Media.TYPE.CD_PHOTO_THREAD, "http://www.chiefdelphi.com/media/img/%s");
        MEDIA_LINK_URL_PATTERN.put(Media.TYPE.CD_PHOTO_THREAD, "http://www.chiefdelphi.com/media/photos/%s");
        MEDIA_IMG_URL_PATTERN.put(Media.TYPE.YOUTUBE, "http://img.youtube.com/vi/%s/hqdefault.jpg");
        MEDIA_LINK_URL_PATTERN.put(Media.TYPE.YOUTUBE, "https://www.youtube.com/watch?v=%s");
    }

    public static String getApiHeader() {
        return "the-blue-alliance:android:v" + BuildConfig.VERSION_NAME.replace(":", "");  // X-TBA-App-Id must have exactly 3 semicolons
    }

    //the week of the year that each event starts competition on, starting with 1992
    //this is the nth week beginning in the given year
    public static final int[] FIRST_COMP_WEEK =
            {6, 8, 8, 7, 12, 9, 9, 8,       // 1992 - 1999
                    10, 8, 9, 9, 9, 9, 8, 8, 8, 8,  // 2000 - 2009
                    9, 9, 8, 8, 8, 8};             // 2010 -

    //the competition week of CMP that year, starting with 1992
    public static final int[] CMP_WEEK =
            {1, 1, 1, 6, 4, 6, 5, 9,        // 1992 - 1999
                    5, 6, 8, 6, 7, 8, 7, 7, 8, 8,  // 2000 - 2009
                    7, 9, 9, 9, 9, 9};             // 2010 -


    public static final int MAX_COMP_YEAR = 2015;
    public static final int FIRST_COMP_YEAR = 1992;<commit_msg>Enable 2016 events<commit_after>package com.thebluealliance.androidclient;

import com.thebluealliance.androidclient.models.Media;

import java.util.HashMap;

/**
 * File created by phil on 4/22/14.
 */
public class Constants {
    public static final String LOG_TAG = "tba-android";
    public static final String DATAMANAGER_LOG = LOG_TAG + ":dataManager";
    public static final String REFRESH_LOG = LOG_TAG + ":refresh";

    public static final HashMap<String, String> MATCH_LEVELS;
    public static final HashMap<Media.TYPE, String> MEDIA_IMG_URL_PATTERN,
            MEDIA_LINK_URL_PATTERN;

    static {
        MATCH_LEVELS = new HashMap<>();
        MATCH_LEVELS.put("Quals", "q");
        MATCH_LEVELS.put("q", "q");
        MATCH_LEVELS.put("qm", "q");
        MATCH_LEVELS.put("Qtr", "qf");
        MATCH_LEVELS.put("Quarters", "qf");
        MATCH_LEVELS.put("qf", "qf");
        MATCH_LEVELS.put("Semi", "sf");
        MATCH_LEVELS.put("Semis", "sf");
        MATCH_LEVELS.put("sf", "sf");
        MATCH_LEVELS.put("Finals", "f");
        MATCH_LEVELS.put("Final", "f");
        MATCH_LEVELS.put("f", "f");

        MEDIA_IMG_URL_PATTERN = new HashMap<>();
        MEDIA_LINK_URL_PATTERN = new HashMap<>();
        MEDIA_IMG_URL_PATTERN.put(Media.TYPE.CD_PHOTO_THREAD, "http://www.chiefdelphi.com/media/img/%s");
        MEDIA_LINK_URL_PATTERN.put(Media.TYPE.CD_PHOTO_THREAD, "http://www.chiefdelphi.com/media/photos/%s");
        MEDIA_IMG_URL_PATTERN.put(Media.TYPE.YOUTUBE, "http://img.youtube.com/vi/%s/hqdefault.jpg");
        MEDIA_LINK_URL_PATTERN.put(Media.TYPE.YOUTUBE, "https://www.youtube.com/watch?v=%s");
    }

    public static String getApiHeader() {
        return "the-blue-alliance:android:v" + BuildConfig.VERSION_NAME.replace(":", "");  // X-TBA-App-Id must have exactly 3 semicolons
    }

    //the week of the year that each event starts competition on, starting with 1992
    //this is the nth week beginning in the given year
    public static final int[] FIRST_COMP_WEEK =
            {6, 8, 8, 7, 12, 9, 9, 8,               // 1992 - 1999
                    10, 8, 9, 9, 9, 9, 8, 8, 8, 8,  // 2000 - 2009
                    9, 9, 8, 8, 8, 8, 8};           // 2010 -

    //the competition week of CMP that year, starting with 1992
    public static final int[] CMP_WEEK =
            {1, 1, 1, 6, 4, 6, 5, 9,               // 1992 - 1999
                    5, 6, 8, 6, 7, 8, 7, 7, 8, 8,  // 2000 - 2009
                    7, 9, 9, 9, 9, 9, 9};          // 2010 -


    public static final int MAX_COMP_YEAR = 2016;
    public static final int FIRST_COMP_YEAR = 1992;
{'fraction_non_alphanumeric': 0.1412939143789595, 'fraction_numerical': 0.04415434824342484, 'mean_word_length': 2.4710193204530313, 'pattern_counts': {'":': 6, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '7392876', 'n_tokens_mistral': 2071, 'n_tokens_neox': 1751, 'n_words': 437}