<commit_before>package com.ibm.wiotp.sdk.app.config;

import com.ibm.wiotp.sdk.util.LoggerUtility;

public class ApplicationConfigAuth {
	public String key;
	public String token;
	
	public ApplicationConfigAuth() {}
	
	public ApplicationConfigAuth(String key, String token) {
		this.key = key;
		this.token = token;
	}
	
	public static ApplicationConfigAuth generateFromEnv() {
		ApplicationConfigAuth auth = new ApplicationConfigAuth();

		LoggerUtility.info("", "", "API_KEY = " + System.getenv("WIOTP_API_KEY"));
		LoggerUtility.info("", "", "API_TOKEN = " + System.getenv("WIOTP_API_TOKEN"));
	    // Also support WIOTP_API_KEY / WIOTP_API_TOKEN usage
		if (System.getenv("WIOTP_AUTH_KEY") != null) {
			auth.key = System.getenv("WIOTP_AUTH_KEY");
			auth.token = System.getenv("WIOTP_AUTH_TOKEN");
		} else {
			
			if (System.getenv("WIOTP_API_KEY") == null || System.getenv("WIOTP_API_TOKEN") == null) {
				throw new NullPointerException("WIOTP_AUTH_KEY/WIOTP_AUTH_TOKEN or WIOTP_API_KEY/WIOTP_API_TOKEN environment variables must be defined");
			}
			auth.key = System.getenv("WIOTP_API_KEY");
			auth.token = System.getenv("WIOTP_API_TOKEN");
		}
		
		return auth;
	}
}<commit_msg>[skip ci] Remove temp debug statements<commit_after>package com.ibm.wiotp.sdk.app.config;

public class ApplicationConfigAuth {
	public String key;
	public String token;
	
	public ApplicationConfigAuth() {}
	
	public ApplicationConfigAuth(String key, String token) {
		this.key = key;
		this.token = token;
	}
	
	public static ApplicationConfigAuth generateFromEnv() {
		ApplicationConfigAuth auth = new ApplicationConfigAuth();

	    // Also support WIOTP_API_KEY / WIOTP_API_TOKEN usage
		if (System.getenv("WIOTP_AUTH_KEY") != null) {
			auth.key = System.getenv("WIOTP_AUTH_KEY");
			auth.token = System.getenv("WIOTP_AUTH_TOKEN");
		} else {
			
			if (System.getenv("WIOTP_API_KEY") == null || System.getenv("WIOTP_API_TOKEN") == null) {
				throw new NullPointerException("WIOTP_AUTH_KEY/WIOTP_AUTH_TOKEN or WIOTP_API_KEY/WIOTP_API_TOKEN environment variables must be defined");
			}
			auth.key = System.getenv("WIOTP_API_KEY");
			auth.token = System.getenv("WIOTP_API_TOKEN");
		}
		
		return auth;
	}
}
{'fraction_non_alphanumeric': 0.12244897959183673, 'fraction_numerical': 0.0, 'mean_word_length': 4.715025906735751, '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': '4265132', 'n_tokens_mistral': 827, 'n_tokens_neox': 783, 'n_words': 141}