<commit_before>import chalk from "chalk";
import { supportedOutputFormats } from "./argValidator";

export default { show };

const highlight = chalk.green.bold;

const ASCII_ART_HEADER =
`   ____  _
  / ___|| |_ _   ___  __
  \\___ \\| __| | | \\ \\/ /
   ___) | |_| |_| |>  <
  |____/ \\__|\\__, /_/\\_\\
             |___/
`;

const usage = `  styx [-o ${highlight("<file>")}] [-f ${highlight("<format>")}] [-g ${highlight("<graph id>")}]
       [--minified-json] [--help]`;

const formattedOutputFormats = supportedOutputFormats
    .map(format => highlight(format))
    .join(" or ");

const argExplanations = `
    -o, --output ${highlight("<file>")}       Path to the output file
    -f, --format ${highlight("<format>")}     Desired output format: ${formattedOutputFormats}
    -g, --graph ${highlight("<graph id>")}    ID of the control flow graph to export

    --minified-json           Minifies the serialized JSON string

    --help                    Displays this help text`;

function show() {
    console.log(highlight(ASCII_ART_HEADER));
    console.log(usage);
    console.log(argExplanations);
}<commit_msg>Sorts flags alphabetically<commit_after>import chalk from "chalk";
import { supportedOutputFormats } from "./argValidator";

export default { show };

const highlight = chalk.green.bold;

const ASCII_ART_HEADER =
`   ____  _
  / ___|| |_ _   ___  __
  \\___ \\| __| | | \\ \\/ /
   ___) | |_| |_| |>  <
  |____/ \\__|\\__, /_/\\_\\
             |___/
`;

const usage = `  styx [-f ${highlight("<format>")}] [-g ${highlight("<graph id>")}] [-o ${highlight("<file>")}]
       [--minified-json] [--help]`;

const formattedOutputFormats = supportedOutputFormats
    .map(format => highlight(format))
    .join(" or ");

const argExplanations = `
    -f, --format ${highlight("<format>")}     Desired output format: ${formattedOutputFormats}
    -g, --graph ${highlight("<graph id>")}    ID of the control flow graph to export
    -o, --output ${highlight("<file>")}       Path to the output file

    --minified-json           Minifies the serialized JSON string

    --help                    Displays this help text`;

function show() {
    console.log(highlight(ASCII_ART_HEADER));
    console.log(usage);
    console.log(argExplanations);
}
{'fraction_non_alphanumeric': 0.17644464049404499, 'fraction_numerical': 0.0, 'mean_word_length': 2.7119476268412437, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '1294150', 'n_tokens_mistral': 740, 'n_tokens_neox': 716, 'n_words': 162}