<commit_before>package eleme.openapi.sdk.config;

import eleme.openapi.sdk.utils.StringUtils;

public class OverallContext {

    public static boolean isInit = false;

    public static String app_key;
    public static String app_secret;
    public static String oauthCodeUrl;
    public static String oauthTokenUrl;
    public static String apiUrl;

    public OverallContext(boolean sandbox, String appKey, String appSecret) {
        if (StringUtils.areNotEmpty(appKey, appKey)) {
            isInit = true;
            return;
        }
        app_key = appKey;
        app_secret = appSecret;
        if (sandbox) {
            oauthCodeUrl = BasicURL.OAuth.SANDBOX_AUTHORIZE;
            oauthTokenUrl = BasicURL.OAuth.SANDBOX_TOKEN;
            apiUrl = BasicURL.OpenApi.SANDBOX_Api;
        } else {<commit_msg>modify config<commit_after>package eleme.openapi.sdk.config;

import eleme.openapi.sdk.utils.StringUtils;

public class OverallContext {

    public static boolean isInit = false;

    public static String app_key;
    public static String app_secret;
    public static String oauthCodeUrl;
    public static String oauthTokenUrl;
    public static String apiUrl;

    public OverallContext(boolean sandbox, String appKey, String appSecret) throws Exception {
        if (StringUtils.areNotEmpty(appKey, appKey)) {
            isInit = true;
            System.out.println("init.....");
        } else {
            throw new Exception("初始化失败");
        }
        app_key = appKey;
        app_secret = appSecret;
        if (sandbox) {
            oauthCodeUrl = BasicURL.OAuth.SANDBOX_AUTHORIZE;
            oauthTokenUrl = BasicURL.OAuth.SANDBOX_TOKEN;
            apiUrl = BasicURL.OpenApi.SANDBOX_Api;
        } else {
{'fraction_non_alphanumeric': 0.07564469914040114, 'fraction_numerical': 0.0, 'mean_word_length': 2.5705521472392636, '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': '3399798', 'n_tokens_mistral': 525, 'n_tokens_neox': 506, 'n_words': 123}