<commit_before>import uploadReport from '../uploadReport';

export default async function runCommand(sha, config) {
  const {
    apiKey,
    apiSecret,
    endpoint,
    hooks: {
      run,
    },
  } = config;
  const snaps = await run(config);
  console.log(`Uploading report for ${sha}...`);
  await uploadReport({
    snaps,
    sha,
    endpoint,
    apiKey,
    apiSecret,
  });
  console.log(`Done ${sha}`);
}<commit_msg>Add link to single report after `happo run`<commit_after>import uploadReport from '../uploadReport';

export default async function runCommand(sha, config) {
  const {
    apiKey,
    apiSecret,
    endpoint,
    hooks: {
      run,
    },
  } = config;
  const snaps = await run(config);
  console.log(`Uploading report for ${sha}...`);
  await uploadReport({
    snaps,
    sha,
    endpoint,
    apiKey,
    apiSecret,
  });
  console.log(`View results at ${endpoint}/report?q=${sha}`);
  console.log(`Done ${sha}`);
}
{'fraction_non_alphanumeric': 0.1463157894736842, 'fraction_numerical': 0.0, 'mean_word_length': 2.995798319327731, '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': '1314175', 'n_tokens_mistral': 305, 'n_tokens_neox': 309, 'n_words': 79}