<commit_before>package de.xikolo.config

import android.os.Build
import com.google.android.gms.cast.CastMediaControlIntent
import de.xikolo.App
import de.xikolo.BuildConfig
import de.xikolo.utils.DeviceUtil

object Config {

    @JvmField val HOST: String
    @JvmField val HOST_URL: String
    @JvmField val API_URL: String

    @JvmField val XIKOLO_API_VERSION: Int
    @JvmField val REALM_SCHEMA_VERSION: Int

    @JvmField val COPYRIGHT_URL: String
    @JvmField val IMPRINT_URL: String?
    @JvmField val PRIVACY_URL: String?
    @JvmField val TERMS_OF_USE_URL: String?

    @JvmField val CAST_MEDIA_RECEIVER_APPLICATION_ID: String

    init {
        when (BuildConfig.X_FLAVOR) {
            BuildFlavor.OPEN_HPI -> {
                COPYRIGHT_URL = "https://hpi.de/"
                IMPRINT_URL = "https://open.hpi.de/pages/imprint"
                PRIVACY_URL = "https://open.hpi.de/pages/privacy"
                TERMS_OF_USE_URL = null
                CAST_MEDIA_RECEIVER_APPLICATION_ID = "EE6FB604"
            }
            BuildFlavor.OPEN_SAP -> {
                COPYRIGHT_URL = "http://sap.com/corporate-en/legal/copyright/index.epx"
                IMPRINT_URL = "http://sap.com/corporate-en/legal/impressum.epx"
                PRIVACY_URL = "http://sap.com/corporate/en/legal/privacy.html"
                TERMS_OF_USE_URL = "http://sap.com/corporate-en/about/legal/terms-of-use.html"
                CAST_MEDIA_RECEIVER_APPLICATION_ID = "2C63C05D"
            }
            BuildFlavor.OPEN_WHO -> {
                COPYRIGHT_URL = "http://who.int/"
                IMPRINT_URL = null
                PRIVACY_URL = null
                TERMS_OF_USE_URL = "https://openwho.org/pages/terms_of_use"
                CAST_MEDIA_RECEIVER_APPLICATION_ID =
                    CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
            }
            else -> { // MOOC_HOUSE
                COPYRIGHT_URL = "https://hpi.de/"
                IMPRINT_URL = "https://mooc.house/pages/imprint"
                PRIVACY_URL = "https://mooc.house/pages/privacy"
                TERMS_OF_USE_URL = null
                CAST_MEDIA_RECEIVER_APPLICATION_ID =
                    CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
            }
        }

        HOST = App.instance.getString(de.xikolo.R.string.app_host)
        HOST_URL = "https://$HOST/"
        API_URL = HOST_URL + "api/v2/"<commit_msg>Update settings links<commit_after>package de.xikolo.config

import android.os.Build
import com.google.android.gms.cast.CastMediaControlIntent
import de.xikolo.App
import de.xikolo.BuildConfig
import de.xikolo.utils.DeviceUtil

object Config {

    @JvmField val HOST: String
    @JvmField val HOST_URL: String
    @JvmField val API_URL: String

    @JvmField val XIKOLO_API_VERSION: Int
    @JvmField val REALM_SCHEMA_VERSION: Int

    @JvmField val COPYRIGHT_URL: String
    @JvmField val IMPRINT_URL: String?
    @JvmField val PRIVACY_URL: String?
    @JvmField val TERMS_OF_USE_URL: String?

    @JvmField val CAST_MEDIA_RECEIVER_APPLICATION_ID: String

    init {
        when (BuildConfig.X_FLAVOR) {
            BuildFlavor.OPEN_HPI -> {
                COPYRIGHT_URL = "https://hpi.de/"
                IMPRINT_URL = "https://open.hpi.de/pages/imprint"
                PRIVACY_URL = "https://open.hpi.de/pages/data-protection"
                TERMS_OF_USE_URL = null
                CAST_MEDIA_RECEIVER_APPLICATION_ID = "EE6FB604"
            }
            BuildFlavor.OPEN_SAP -> {
                COPYRIGHT_URL = "https://sap.com/corporate/en/legal/copyright.html"
                IMPRINT_URL = "https://sap.com/corporate/en/legal/impressum.html"
                PRIVACY_URL = "https://open.sap.com/pages/privacy"
                TERMS_OF_USE_URL = "https://sap.com/corporate/en/legal/terms-of-use.html"
                CAST_MEDIA_RECEIVER_APPLICATION_ID = "2C63C05D"
            }
            BuildFlavor.OPEN_WHO -> {
                COPYRIGHT_URL = "http://who.int/"
                IMPRINT_URL = null
                PRIVACY_URL = null
                TERMS_OF_USE_URL = "https://openwho.org/pages/terms_of_use"
                CAST_MEDIA_RECEIVER_APPLICATION_ID =
                    CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
            }
            else -> { // MOOC_HOUSE
                COPYRIGHT_URL = "https://hpi.de/"
                IMPRINT_URL = "https://mooc.house/pages/imprint"
                PRIVACY_URL = "https://mooc.house/pages/privacy"
                TERMS_OF_USE_URL = null
                CAST_MEDIA_RECEIVER_APPLICATION_ID =
                    CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
            }
        }

        HOST = App.instance.getString(de.xikolo.R.string.app_host)
        HOST_URL = "https://$HOST/"
        API_URL = HOST_URL + "api/v2/"
{'fraction_non_alphanumeric': 0.09397491260538762, 'fraction_numerical': 0.004112687641373638, 'mean_word_length': 1.9987669543773119, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 20, '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': '3215564', 'n_tokens_mistral': 1711, 'n_tokens_neox': 1600, 'n_words': 219}