<commit_before>#!/bin/sh

# Switch the script's current directory
cd `dirname $0`;

# Neuter the internal field separator
IFS=''

# Formatting variables
BOLD=`tput bold`
BLUE=`tput setaf 12`
RESET=`tput sgr0`

# Include directories that start with a leading dot
shopt -s dotglob


# Cycle through each item in the CWD
for i in *; do
	
	# Ensure the item's really a Git repository
	[ -d "$i/.git" ] && { echo $(

		cd $i;

		# Print a divider to STDOUT to break the feedback up better
		printf %s$'\n' "${BOLD}${BLUE}==>${RESET}${BOLD} Updating: $i${RESET}";

		# Update!
		git status --porcelain && { git pull; };

	); };
	
	
	# Is this a Subversion repository instead?
	[ -d "$i/.svn" ] && { echo $(
		
		cd $i;
		
		# Drop another divider to break feedback up a little
		printf %s$'\n' "${BOLD}${BLUE}==>${RESET}${BOLD} Updating: $i${RESET}";
		
		# Clear .DS_Store crap if possible
		hash dsclean 2>/dev/null && dsclean;
		
		# Update!
		svn update;
	); };
done;
<commit_msg>Allow local repos to exempt themselves from updates<commit_after>#!/bin/sh

# Switch the script's current directory
cd `dirname $0`;

# Neuter the internal field separator
IFS=''

# Formatting variables
BOLD=`tput bold`
BLUE=`tput setaf 12`
RED=`tput setaf 9`
RESET=`tput sgr0`

# Include directories that start with a leading dot
shopt -s dotglob


# Print a divider to STDOUT to break up feedback better
marker(){
	printf %s$'\n' "${BOLD}$1==>${RESET}${BOLD} $2${RESET}";
}


# Cycle through each item in the CWD
for i in *; do
	
	# Ensure the item's really a Git repository
	[ -d "$i/.git" ] && { echo $(

		cd $i;
		
		# This repo's been flagged as exempt from updates; skip it
		[ $(git config updates.skip) ] && marker $RED "Skipping: $i" || {
			marker $BLUE "Updating: $i"

			# Update!
			git status --porcelain && { git pull; };
		};

	); };
	
	
	# Is this a Subversion repository instead?
	[ -d "$i/.svn" ] && { echo $(
		
		cd $i;
		
		# Drop another divider to break feedback up a little
		marker $BLUE "Updating: $i"
		
		# Clear .DS_Store crap if possible
		hash dsclean 2>/dev/null && dsclean;
		
		# Update!
		svn update;
	); };
done;

{'fraction_non_alphanumeric': 0.14788732394366197, 'fraction_numerical': 0.006103286384976526, 'mean_word_length': 3.2963709677419355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5071859', 'n_tokens_mistral': 853, 'n_tokens_neox': 751, 'n_words': 265}