<commit_before>package com.chaincloud.chaincloudv.api;

import com.chaincloud.chaincloudv.BuildConfig;
import com.chaincloud.chaincloudv.GlobalParams;
import com.chaincloud.chaincloudv.R;
import com.chaincloud.chaincloudv.api.service.ChainCloudColdReceiveService;
import com.chaincloud.chaincloudv.api.service.ChainCloudHotSendService;
import com.chaincloud.chaincloudv.api.service.VWebService;
import com.chaincloud.chaincloudv.api.type.DateTypeAdapter;
import com.chaincloud.chaincloudv.util.Coin;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.util.Date;

import retrofit.RestAdapter;
import retrofit.android.AndroidLog;
import retrofit.converter.GsonConverter;

/**
 * Created by songchenwen on 15/8/5.
 */
public class Api {
    public enum ServerType {
        ChainCloudHotSend(0), ChainCloudColdReceive(2), VTest(3);

        private int value;

        ServerType(int value) {
            this.value = value;
        }

        public int value() {
            return value;
        }

        public int nameRes(){
            switch (this){
                case ChainCloudHotSend:
                    return R.string.setting_network_hs_name;
                case ChainCloudColdReceive:
                    return R.string.setting_network_cr_name;
                case VTest:
                    return R.string.setting_network_vtest_name;
            }
            return R.string.setting_network_hs_name;
        }
    }

//    public static final String ChainCloudHotSendDomain = "https://chaincloud-api.getcai.com";
//    public static final String ChainCloudColdReceiveDomain = "https://chaincloud-api.getcai.com";
//    public static final String ChainCloudHotSendAltDomain = "https://chaincloud-api.getcai.com";
//    public static final String ChainCloudColdReceiveAltDomain = "https://chaincloud-api.getcai.com";
    public static final String ChainCloudHotSendDomain = "https://bitpie.songchenwen.com";
    public static final String ChainCloudColdReceiveDomain = "https://bitpie.songchenwen.com";
    public static final String ChainCloudHotSendAltDomain = "https://bitpie.songchenwen.com";
    public static final String ChainCloudColdReceiveAltDomain = "https://bitpie.songchenwen.com";
    public static final String ChainCloudHotSendApiRootPath = "/api/v1/";
    public static final String ChainCloudColdReiceveApiRootPath = "/api/v1/";
    public static final String ChainCloudHotSendAltApiRootPath = "/api/v1/";
    public static final String ChainCloudColdReiceveAltApiRootPath = "/api/v1/";
    public static final String ChainCloudHotSendApiEndpoint = ChainCloudHotSendDomain + ChainCloudHotSendApiRootPath;
    public static final String ChainCloudColdReceiveApiEndpoint = ChainCloudColdReceiveDomain + ChainCloudColdReiceveApiRootPath;
    public static final String ChainCloudHotSendAltApiEndpoint = ChainCloudHotSendAltDomain + ChainCloudHotSendAltApiRootPath;
    public static final String ChainCloudColdReceiveAltApiEndpoint = ChainCloudColdReceiveAltDomain + ChainCloudColdReiceveAltApiRootPath;

//    public static String VTestDomain;<commit_msg>modify: api to online<commit_after>package com.chaincloud.chaincloudv.api;

import com.chaincloud.chaincloudv.BuildConfig;
import com.chaincloud.chaincloudv.GlobalParams;
import com.chaincloud.chaincloudv.R;
import com.chaincloud.chaincloudv.api.service.ChainCloudColdReceiveService;
import com.chaincloud.chaincloudv.api.service.ChainCloudHotSendService;
import com.chaincloud.chaincloudv.api.service.VWebService;
import com.chaincloud.chaincloudv.api.type.DateTypeAdapter;
import com.chaincloud.chaincloudv.util.Coin;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.util.Date;

import retrofit.RestAdapter;
import retrofit.android.AndroidLog;
import retrofit.converter.GsonConverter;

/**
 * Created by songchenwen on 15/8/5.
 */
public class Api {
    public enum ServerType {
        ChainCloudHotSend(0), ChainCloudColdReceive(2), VTest(3);

        private int value;

        ServerType(int value) {
            this.value = value;
        }

        public int value() {
            return value;
        }

        public int nameRes(){
            switch (this){
                case ChainCloudHotSend:
                    return R.string.setting_network_hs_name;
                case ChainCloudColdReceive:
                    return R.string.setting_network_cr_name;
                case VTest:
                    return R.string.setting_network_vtest_name;
            }
            return R.string.setting_network_hs_name;
        }
    }

    public static final String ChainCloudHotSendDomain = "https://chaincloud-api.getcai.com";
    public static final String ChainCloudColdReceiveDomain = "https://chaincloud-api.getcai.com";
    public static final String ChainCloudHotSendAltDomain = "https://chaincloud-api.getcai.com";
    public static final String ChainCloudColdReceiveAltDomain = "https://chaincloud-api.getcai.com";
//    public static final String ChainCloudHotSendDomain = "https://bitpie.songchenwen.com";
//    public static final String ChainCloudColdReceiveDomain = "https://bitpie.songchenwen.com";
//    public static final String ChainCloudHotSendAltDomain = "https://bitpie.songchenwen.com";
//    public static final String ChainCloudColdReceiveAltDomain = "https://bitpie.songchenwen.com";
    public static final String ChainCloudHotSendApiRootPath = "/api/v1/";
    public static final String ChainCloudColdReiceveApiRootPath = "/api/v1/";
    public static final String ChainCloudHotSendAltApiRootPath = "/api/v1/";
    public static final String ChainCloudColdReiceveAltApiRootPath = "/api/v1/";
    public static final String ChainCloudHotSendApiEndpoint = ChainCloudHotSendDomain + ChainCloudHotSendApiRootPath;
    public static final String ChainCloudColdReceiveApiEndpoint = ChainCloudColdReceiveDomain + ChainCloudColdReiceveApiRootPath;
    public static final String ChainCloudHotSendAltApiEndpoint = ChainCloudHotSendAltDomain + ChainCloudHotSendAltApiRootPath;
    public static final String ChainCloudColdReceiveAltApiEndpoint = ChainCloudColdReceiveAltDomain + ChainCloudColdReiceveAltApiRootPath;

//    public static String VTestDomain;
{'fraction_non_alphanumeric': 0.08077774264938349, 'fraction_numerical': 0.0034777110338286435, 'mean_word_length': 3.800455235204856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, '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': '5628919', 'n_tokens_mistral': 1816, 'n_tokens_neox': 1731, 'n_words': 364}