<commit_before>#!/bin/bash
# primes.sh	(K) 201608 <NAME> <<EMAIL>>
#
#		Count prime numbers between two arbitrary values, i.e. 0 to 100
#									...real quick
#
#		Actually, this program is pretty slow & you shouldn't use it
#
prime_test() {
	let "end=$1-1"
	x=2
	while [[ $x -lt $end ]]; do
		let "$1%$x" || return 1
		let "x=$x+1"
	done
	return 0
}

Start=${1:-0}
shift
Stop=${1:-100}
shift<commit_msg>Added an example to primes.sh<commit_after>#!/bin/bash
# primes.sh	(K) 201608 <NAME> <<EMAIL>>
#
#		Count prime numbers between two arbitrary values, i.e. 0 to 100
#									...real quick
#
#		Actually, this program is pretty slow & you shouldn't use it
# [josh9580@reed class_scratchpad]$ for i in {10,100,1000,10000,100000}; do echo; (>&2 echo $i Numbers); time ./primes.sh 0 $i 1>/dev/null; done
# 
# 10 Numbers
# 
# real	0m0.002s
# user	0m0.002s
# sys	0m0.000s
# 
# 100 Numbers
# 
# real	0m0.011s
# user	0m0.011s
# sys	0m0.000s
# 
# 1000 Numbers
# 
# real	0m0.542s
# user	0m0.539s
# sys	0m0.002s
# 
# 10000 Numbers
# 
# real	0m39.002s
# user	0m38.901s
# sys	0m0.001s
# 
#
prime_test() {
	let "end=$1-1"
	x=2
	while [[ $x -lt $end ]]; do
		let "$1%$x" || return 1
		let "x=$x+1"
	done
	return 0
}

Start=${1:-0}
shift
Stop=${1:-100}
shift
{'fraction_non_alphanumeric': 0.1709470304975923, 'fraction_numerical': 0.11958266452648475, 'mean_word_length': 3.184563758389262, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '1809627', 'n_tokens_mistral': 673, 'n_tokens_neox': 553, 'n_words': 155}