<commit_before>#!/usr/bin/bash

PKGNAME=''
PKGDESC=''
PKGVER=0
UPDATE=0
DUMPPKGBUILD=0
DUMPPKGINFO=0
DEPENDS=()
ADDDEPENDS=()
RMDEPENDS=()
PKGGROUPS=('meta')
ADDGROUPS=()
RMGROUPS=()

error() {
    printf "$@" >&2
    exit 1
}

usage () {
    cat <<USAGE
Usage:
     makepkg-meta [options]

Options:
    -n, --name=<pkgname>
        Specify the package name.

    -u, --update=<pkgname>
        Equivalent to --name except if a package named <pkgname> is
        currently installed it will be queried for any fields not explicitly
        provided.

    --description=<pkgdesc>
        Specify the package description.

    --depends=<dependency>
        Comma-separated list of package dependencies. May be specified
        multiple times.

    -a, --add-depends=<dependency>
        Comma-separated list of package dependencies. Dependencies are added
        to the depends list <after> checking for existing dependencies. May
        be specified multiple times.

    -r, --rm-depends=<dependency>
        Comma-separates list of dependencies to be removed from the depends
        list <after> loading existing dependencies. May be specified
        multiple times.

    --groups=<group>
        Comma-separated list of package groups. May be specified multiple
        times. Packages are automatically in the "meta" group.

    --add-groups=<group>
        Comma-separated list of package groups. Groups are added to the
        group list <after> loading existing groups. May be specified
        multiple times.

    --rm-groups=<groups>
        Comma-separates list of groups to be removed from the group list
        <after> loading existing groups. May be specified multiple times.

    --pkgbuild
        Write the PKGBUILD to stdout without installing it.

    --pkginfo
        Write PKGINFO data to stdout without installing it.

    --help
        Display brief help information.

    --version
        Display version information.
USAGE
}


version() {
    echo "makepkg-meta 1.0"
}

dump_pkgbuild() {
    cat <<PKGBUILD
pkgname=$PKGNAME
pkgdesc='$PKGDESC'
pkgver=$PKGVER
pkgrel=1
arch=('any')
depends=(${DEPENDS[@]})
groups=(${PKGGROUPS[@]})
PKGBUILD
}
<commit_msg>version bump 1.0 -> 1.1<commit_after>#!/usr/bin/bash

PKGNAME=''
PKGDESC=''
PKGVER=0
UPDATE=0
DUMPPKGBUILD=0
DUMPPKGINFO=0
DEPENDS=()
ADDDEPENDS=()
RMDEPENDS=()
PKGGROUPS=('meta')
ADDGROUPS=()
RMGROUPS=()

error() {
    printf "$@" >&2
    exit 1
}

usage () {
    cat <<USAGE
Usage:
     makepkg-meta [options]

Options:
    -n, --name=<pkgname>
        Specify the package name.

    -u, --update=<pkgname>
        Equivalent to --name except if a package named <pkgname> is
        currently installed it will be queried for any fields not explicitly
        provided.

    --description=<pkgdesc>
        Specify the package description.

    --depends=<dependency>
        Comma-separated list of package dependencies. May be specified
        multiple times.

    -a, --add-depends=<dependency>
        Comma-separated list of package dependencies. Dependencies are added
        to the depends list <after> checking for existing dependencies. May
        be specified multiple times.

    -r, --rm-depends=<dependency>
        Comma-separates list of dependencies to be removed from the depends
        list <after> loading existing dependencies. May be specified
        multiple times.

    --groups=<group>
        Comma-separated list of package groups. May be specified multiple
        times. Packages are automatically in the "meta" group.

    --add-groups=<group>
        Comma-separated list of package groups. Groups are added to the
        group list <after> loading existing groups. May be specified
        multiple times.

    --rm-groups=<groups>
        Comma-separates list of groups to be removed from the group list
        <after> loading existing groups. May be specified multiple times.

    --pkgbuild
        Write the PKGBUILD to stdout without installing it.

    --pkginfo
        Write PKGINFO data to stdout without installing it.

    --help
        Display brief help information.

    --version
        Display version information.
USAGE
}


version() {
    echo "makepkg-meta 1.1"
}

dump_pkgbuild() {
    cat <<PKGBUILD
pkgname=$PKGNAME
pkgdesc='$PKGDESC'
pkgver=$PKGVER
pkgrel=1
arch=('any')
depends=(${DEPENDS[@]})
groups=(${PKGGROUPS[@]})
PKGBUILD
}

{'fraction_non_alphanumeric': 0.09767229575536285, 'fraction_numerical': 0.005020538566864446, 'mean_word_length': 2.6956155143338956, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 34, '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': '6151216', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1308, 'n_words': 445}