<commit_before>/// <reference path="./../typings/index.d.ts" />

const config: {[prop: string]: string} = process.env;

// Grab secret keys
const apiKey      = config["gearworks-apiKey"] || config["apiKey"] ;
const secretKey   = config["gearworks-secretKey"] || config["secretKey"]; 
const shopDomain  = config["gearworks-shopDomain"] || config["shopDomain"];
const accessToken = config["gearworks-accessToken"] || config["accessToken"];

if (!apiKey)
{
    throw new Error(`Expected 'apiKey' in process.env to exist.`);
}

if (!secretKey)
{
    throw new Error(`Expected 'secretKey' in process.env to exist.`);
}

if (!shopDomain)
{
    throw new Error(`Expected 'shopDomain' in process.env to exist.`);
}

if (!accessToken)
{
    throw new Error(`Expected 'accessToken' in process.env to exist.`);
}

export {apiKey, secretKey, shopDomain, accessToken};<commit_msg>Change test environment variable names<commit_after>/// <reference path="./../typings/index.d.ts" />

const config: {[prop: string]: string} = process.env;

// Grab secret keys
const apiKey      = config["shopify-prime-apiKey"] || config["apiKey"] ;
const secretKey   = config["shopify-prime-secretKey"] || config["secretKey"]; 
const shopDomain  = config["shopify-prime-shopDomain"] || config["shopDomain"];
const accessToken = config["shopify-prime-accessToken"] || config["accessToken"];

if (!apiKey)
{
    throw new Error(`Expected 'apiKey' in process.env to exist.`);
}

if (!secretKey)
{
    throw new Error(`Expected 'secretKey' in process.env to exist.`);
}

if (!shopDomain)
{
    throw new Error(`Expected 'shopDomain' in process.env to exist.`);
}

if (!accessToken)
{
    throw new Error(`Expected 'accessToken' in process.env to exist.`);
}

export {apiKey, secretKey, shopDomain, accessToken};
{'fraction_non_alphanumeric': 0.1667605633802817, 'fraction_numerical': 0.0, 'mean_word_length': 4.710610932475884, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '298451', 'n_tokens_mistral': 549, 'n_tokens_neox': 556, 'n_words': 149}