<commit_before>#!/usr/bin/env bash
#
# @license Apache-2.0
#
# Copyright (c) 2021 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# shellcheck disable=SC2181

# Script for creating one or more packages which each expose an interface which applies a unary mathematical function to a strided array according to a callback function.
#
# Usage: runner.h
#

# USER-DEFINED VARIABLES #

# Define the destination package parent directory path:
pkg_path="@stdlib/math/strided/special"

# Define a list of "base" aliases (i.e., without any prefixes):
alias=(
	'rsqrt'
	'sqrt'
	'trunc'
)

# Define a list of package descriptions:
pkg_desc=(
	'Compute the squared absolute value of each element retrieved from an input strided array via a callback function.'
)

# Define a list of module descriptions:
# shellcheck disable=SC2016
module_desc=(
	'Compute the squared absolute value of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
)

# Define a list of main export descriptions:
# shellcheck disable=SC2016
main_desc=(
	'Computes the squared absolute value of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
)

# Define a list of test descriptions:
test_desc=(
	'computes the squared absolute value via a callback function'
)

# Define a list of description text (found in a package README) which should be a link to a corresponding unary package (NOTE: to not include a link, set to an empty string):
desc_link_text=(
	'squared absolute value'
)

# Define a list of keywords for each package (package keywords should be comma-separated values):
keywords=(
	'stdmath,mathematics,math,absolute,value,abs2,squared,square,magnitude'
)

# Define a list of minimum values for generated values when benchmarking and testing each package:
rand_min=(
	'-10.0'
)

# Define a list of maximum values for generated values when benchmarking and testing each package:
rand_max=(
	'10.0'
)

# Define a list of input array values for each package (input array values should be comma-separated values):
x_values_len_8=(
	'-1.0,-2.0,-3.0,-4.0,-5.0,-6.0,-7.0,-8.0'
)


# COMPUTED VARIABLES #

# Determine the directory of this script:
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"

# Define the path to the scaffolding script:
scaffold="${dir}/scaffold.sh"

# Determine the root project directory:
root_dir="$(git rev-parse --show-toplevel)"

# Define the project source code directory:
base_dir="${root_dir}/lib/node_modules"

<commit_msg>Update runner to create `a*` packages<commit_after>#!/usr/bin/env bash
#
# @license Apache-2.0
#
# Copyright (c) 2021 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# shellcheck disable=SC2181

# Script for creating one or more packages which each expose an interface which applies a unary mathematical function to a strided array according to a callback function.
#
# Usage: runner.h
#

# USER-DEFINED VARIABLES #

# Define the destination package parent directory path:
pkg_path="@stdlib/math/strided/special"

# Define a list of "base" aliases (i.e., without any prefixes):
alias=(
	'acovercos'
	'acoversin'
	'ahavercos'
	'ahaversin'
	'asin'
	'asinh'
	'atan'
	'atanh'
	'avercos'
	'aversin'
)

# Define a list of package descriptions:
pkg_desc=(
	'Compute the inverse coversed cosine of each element retrieved from an input strided array via a callback function.'
	'Compute the inverse coversed sine of each element retrieved from an input strided array via a callback function.'
	'Compute the inverse half-value versed cosine of each element retrieved from an input strided array via a callback function.'
	'Compute the inverse half-value versed sine of each element retrieved from an input strided array via a callback function.'
	'Compute the arcsine of each element retrieved from an input strided array via a callback function.'
	'Compute the hyperbolic arcsine of each element retrieved from an input strided array via a callback function.'
	'Compute the arctangent of each element retrieved from an input strided array via a callback function.'
	'Compute the hyperbolic arctangent of each element retrieved from an input strided array via a callback function.'
	'Compute the inverse versed cosine of each element retrieved from an input strided array via a callback function.'
	'Compute the inverse versed sine of each element retrieved from an input strided array via a callback function.'
)

# Define a list of module descriptions:
# shellcheck disable=SC2016
module_desc=(
	'Compute the inverse coversed cosine of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the inverse coversed sine of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the inverse half-value versed cosine of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the inverse half-value versed sine of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the arcsine of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the hyperbolic arcsine of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the arctangent of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the hyperbolic arctangent of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the inverse versed cosine of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
	'Compute the inverse versed sine of each element retrieved from an input strided array `x` via a callback function and assign each result to an element in an output strided array `y`.'
)

# Define a list of main export descriptions:
# shellcheck disable=SC2016
main_desc=(
	'Computes the inverse coversed cosine of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the inverse coversed sine of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the inverse half-value versed cosine of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the inverse half-value versed sine of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the arcsine of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the hyperbolic arcsine of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the arctangent of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the hyperbolic arctangent of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the inverse versed cosine of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
	'Computes the inverse versed sine of each element retrieved from an input strided array `x` via a callback function and assigns each result to an element in an output strided array `y`.'
)

# Define a list of test descriptions:
test_desc=(
	'computes the inverse coversed cosine via a callback function'
	'computes the inverse coversed sine via a callback function'
	'computes the inverse half-value versed cosine via a callback function'
	'computes the inverse half-value versed sine via a callback function'
	'computes arcsine via a callback function'
	'computes hyperbolic arcsine via a callback function'
	'computes arctangent via a callback function'
	'computes hyperbolic arctangent via a callback function'
	'computes the inverse versed cosine via a callback function'
	'computes the inverse versed sine via a callback function'
)

# Define a list of description text (found in a package README) which should be a link to a corresponding unary package (NOTE: to not include a link, set to an empty string):
desc_link_text=(
	'inverse coversed cosine'
	'inverse coversed sine'
	'inverse half-value versed cosine'
	'inverse half-value versed sine'
	'arcsine'
	'hyperbolic arcsine'
	'arctangent'
	'hyperbolic arctangent'
	'inverse versed cosine'
	'inverse versed sine'
)

# Define a list of keywords for each package (package keywords should be comma-separated values):
keywords=(
	'stdmath,mathematics,math,acovercos,acovercosin,acovercosine,arccovercos,arccovercosin,versed cosine,acovercosinus,acvc,arc,versed,coversed,cosine,cos,asin,trig,trigonometry,radians,angle'
	'stdmath,mathematics,math,acoversin,acoversine,arccoversin,arccoversine,coversedsine,versedsine,acoversinus,arcvers,covers,cover,acvs,arc,versed,coversed,sine,sin,asin,trig,trigonometry,radians,angle'
	'stdmath,mathematics,math,ahavercos,ahavercosin,ahavercosine,arcvercos,arcvercosin,arcvercosine,versedcosine,ahavercosinus,ahvc,arc,versed,half-value,cosine,cos,acos,trig,trigonometry,radians,angle'
	'stdmath,mathematics,math,ahaversin,ahaversine,arcversin,arcversine,versedsine,ahaversinus,haversine,haversin,archav,invhav,ahav,ahvs,ahv,hav,arc,versed,half-value,sine,sin,asin,trig,trigonometry,radians,angle'
	'stdmath,mathematics,math,math.asin,asin,arcsine,sine,inverse,trig,trigonometry,radians,angle'
	'stdmath,mathematics,math,math.asinh,asinh,sine,arcsine,hyperbolic,inverse,trig,trigonometry,radians,angle'
	'stdmath,mathematics,math,math.atan,atan,arctangent,tangent,tan,arc,inverse,trig,trigonometry'
	'stdmath,mathematics,math,math.atanh,atanh,hyperbolic,inverse,tangent,tan,trig,trigonometry,radians,angle'
	'stdmath,mathematics,math,avercos,avercosin,avercosine,arcvercos,arcvercosin,versedcosine,avercosinus,avcs,arc,versed,cosine,cos,acos,trig,trigonometry,radians,angle'
	'stdmath,mathematics,math,aversin,aversine,arcversin,arcversine,versedsine,aversinus,arcvers,avers,aver,arc,versed,sine,sin,acos,trig,trigonometry,radians,angle'
)

# Define a list of minimum values for generated values when benchmarking and testing each package:
rand_min=(
	'-2.0'
	'0.0'
	'0.0'
	'0.0'
	'-1.0'
	'-5.0'
	'-10.0'
	'-1.0'
	'-2.0'
	'0.0'
)

# Define a list of maximum values for generated values when benchmarking and testing each package:
rand_max=(
	'0.0'
	'2.0'
	'1.0'
	'1.0'
	'1.0'
	'5.0'
	'10.0'
	'1.0'
	'0.0'
	'2.0'
)

# Define a list of input array values for each package (input array values should be comma-separated values):
x_values_len_8=(
	'0.0,-1.57,-0.5,-1.0,-1.25,-0.67,-0.25,-1.99'
	'0.0,1.57,0.5,1.0,1.25,0.67,0.25,1.99'
	'0.0,0.5,1.0,0.25,0.75,0.68,0.01,0.33'
	'0.0,0.5,1.0,0.25,0.75,0.68,0.01,0.33'
	'0.0,-0.5,1.0,-0.25,0.75,-0.68,0.01,0.33'
	'0.0,-0.0,2.0,-2.0,0.75,-0.68,0.01,0.33'
	'0.0,-0.5,1.0,-1.25,3.75,-0.68,0.01,0.33'
	'0.0,-0.5,1.0,-0.25,0.75,-0.68,0.01,0.33'
	'0.0,-1.57,-0.5,-1.0,-1.25,-0.67,-0.25,-1.99'
	'0.0,1.57,0.5,1.0,1.25,0.67,0.25,1.99'
)


# COMPUTED VARIABLES #

# Determine the directory of this script:
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"

# Define the path to the scaffolding script:
scaffold="${dir}/scaffold.sh"

# Determine the root project directory:
root_dir="$(git rev-parse --show-toplevel)"

# Define the project source code directory:
base_dir="${root_dir}/lib/node_modules"


{'fraction_non_alphanumeric': 0.08792747641509434, 'fraction_numerical': 0.024027122641509434, 'mean_word_length': 5.073858549686661, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3635820', 'n_tokens_mistral': 4392, 'n_tokens_neox': 4145, 'n_words': 1689}