<commit_before>#!/bin/bash
#
# Resize the Docker.qcow2 image to the size specified by
# the user on a Mac.
#
# Copyright (c) 2017 by <NAME>
# License: MIT Open Source
#

# ================================================================
# Functions
# ================================================================
function helpme() {
    local bn=$(basename $0)
    echo -e "
USAGE
    \x1B[1m$bn [OPTIONS] [IMAGES]\x1B[0m

DESCRIPTION
    This tool resizes your docker image store on the mac keeping
    only the images that you specify.

    It is needed because the docker image store doesn't grow
    automatically which can cause you to run out of space.

    If you do not specify an image size, it will double the
    current size.

    If you do not specify any images, it will delete all of
    the images.

OPTION
    -h, --help      This help message.

    -s SIZE, --size SIZE
                    The new image size. It can be larger
                    or smaller than the current image size.
                    If it is not specified, then the current
                    image size is double.
                    This argument is passed directly to
                    qemu-img so it follows the syntax defined
                    for that tool. For example, you can use
                    100G to specify 100GB.

    -V, --version   Print the program version and exit.

EXAMPLE USAGE
    # Example 1: Help
    \$ \x1B[1m$bn -h\x1B[0m

    # Example 2: Version
    \$ \x1B[1m$bn -V\x1B[0m

    # Example 3: Double the size, lose all images.
    \$ \x1B[1m$bn\x1B[0m

    # Example 4: Make the size 100GB, keep the selected images.
    \$ \x1B[1mdocker images\x1B[0m  # list the images, determine which ones to keep
    \$ \x1B[1m$bn -s 100G img1 img2 img3\x1B[0m

LICENSE<commit_msg>Update help<commit_after>#!/bin/bash
#
# Resize the Docker.qcow2 image to the size specified by
# the user on a Mac.
#
# Copyright (c) 2017 by <NAME>
# License: MIT Open Source
#

# ================================================================
# Functions
# ================================================================
function helpme() {
    local bn=$(basename $0)
    echo -e "
USAGE
    \x1B[1m$bn [OPTIONS] [IMAGES]\x1B[0m

DESCRIPTION
    This tool resizes your docker image store on the mac keeping
    only the images that you specify.

    It is needed because the docker image store doesn't grow
    automatically which can cause you to run out of space.

    If you do not specify an image size, it will double the
    current size.

    If you do not specify any images, it will delete all of
    the images and resize the container.

OPTION
    -h, --help      This help message.

    -s SIZE, --size SIZE
                    The new image size. It can be larger
                    or smaller than the current image size.
                    If it is not specified, then the current
                    image size is double.
                    This argument is passed directly to
                    qemu-img so it follows the syntax defined
                    for that tool. For example, you can use
                    100G to specify 100GB.

    -V, --version   Print the program version and exit.

EXAMPLE USAGE
    # Example 1: Help
    \$ \x1B[1m$bn -h\x1B[0m

    # Example 2: Version
    \$ \x1B[1m$bn -V\x1B[0m

    # Example 3: Double the size, lose all images.
    \$ \x1B[1m$bn\x1B[0m

    # Example 4: Make the size 100GB, keep the selected images.
    \$ \x1B[1mdocker images\x1B[0m  # list the images, determine which ones to keep
    \$ \x1B[1m$bn -s 100G img1 img2 img3\x1B[0m

LICENSE
{'fraction_non_alphanumeric': 0.1384063964709126, 'fraction_numerical': 0.027019575406672183, 'mean_word_length': 2.199294532627866, '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': '3273480', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1025, 'n_words': 444}