<commit_before>#!/bin/sh

if [ $# -lt 1 ];then
	echo "Usage: $0 CORE_VERSION"
	exit 1
fi
VER=$1
DIST=ce
BASE_CHECKOUT=/home/jess/sources/platform-install-packages/deb/
cd $BASE_CHECKOUT
for COMP in kaltura-base kaltura-front kaltura-batch kaltura-release kaltura-server ;do  
	CHLOG_FILE=$COMP/debian/changelog
	if [ -f $CHLOG_FILE ];then
		dch -v $VER "Switching to $VER" -D $DIST -c $CHLOG_FILE 
		rm -f $BASE_CHECKOUT/$COMP/debian/br.* $BASE_CHECKOUT/$COMP/rev.*
	fi
done<commit_msg>accept dist arg and also --force-distribution so it does not complain about an uknown one.<commit_after>#!/bin/sh

if [ $# -lt 2 ];then
	echo "Usage: $0 CORE_VERSION DIST"
	exit 1
fi
VER=$1
DIST=$2
BASE_CHECKOUT=/home/jess/sources/platform-install-packages/deb/
cd $BASE_CHECKOUT
for COMP in kaltura-base kaltura-front kaltura-batch kaltura-release kaltura-server ;do  
	CHLOG_FILE=$COMP/debian/changelog
	if [ -f $CHLOG_FILE ];then
		dch -v --force-distribution $VER "Switching to $VER" -D $DIST -c $CHLOG_FILE 
		rm -f $BASE_CHECKOUT/$COMP/debian/br.* $BASE_CHECKOUT/$COMP/rev.*
	fi
done
{'fraction_non_alphanumeric': 0.13395348837209303, 'fraction_numerical': 0.008372093023255815, 'mean_word_length': 4.173076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7572781', 'n_tokens_mistral': 443, 'n_tokens_neox': 415, 'n_words': 109}