<commit_before>#!/bin/bash

#===============================================================================
#          FILE: build_ts2mp4_convertor.sh
#         USAGE: ./deploy_liveRecorder.sh
#   DESCRIPTION:
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR:  (), <NAME>
#  ORGANIZATION: Kaltura, inc.
#       CREATED:  June 25, 2017
#      REVISION:  ---
#===============================================================================
set -e
if [ "$#" -lt 2 ]; then
	echo "usage build_ts2mp4_convertor  <product path> <ffmpeg path>"
	echo "example: $0 /opt/kaltura/liveController/v1.14.5/liveRecorder /opt/kaltura/liveController/v1.14.5/bin/ffmpeg/ffmpeg-3.0 Release"
	exit 1
fi

PRODUCT_ROOT_PATH=$1
FFMPEG_BUILD_PATH=$2
TARGET=ts_to_mp4_convertor
CONVERTOR_DIR=${PRODUCT_ROOT_PATH}/${TARGET}
RES=0

export FFMPEG_BUILD_PATH


if [ -w ${CONVERTOR_DIR} ]; then
	pushd ${CONVERTOR_DIR}
		mkdir -p obj

		echo "starting to build ${TARGET}"

		make install

		if [ $? -eq 0 ] ; then
			echo "**************************************************************************************"
			echo "${TARGET} was built successfully, copying to bin folder"
			echo "**************************************************************************************"
		else
			echo "**************************************************************************************"
			echo "Something went wrong, failed to build ts_to_mp4_convertor!!!, please check build results"
			echo "**************************************************************************************"
			RES=1
		fi
	popd
else
	echo "**************************************************************************************"
	echo "{CONVERTOR_DIR} is missing or there is no write permission, can't build ${TARGET}"
	echo "**************************************************************************************"
	RES=1
fi

exit ${RES}<commit_msg>Update build_ts2mp4_convertor.sh<commit_after>#!/bin/bash

#===============================================================================
#          FILE: build_ts2mp4_convertor.sh
#         USAGE: ./deploy_liveRecorder.sh
#   DESCRIPTION:
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR:  (), <NAME>
#  ORGANIZATION: Kaltura, inc.
#       CREATED:  June 25, 2017
#      REVISION:  ---
#===============================================================================
set -e
if [ "$#" -lt 2 ]; then
	echo "usage build_ts2mp4_convertor  <product path> <ffmpeg path>"
	echo "example: $0 /opt/kaltura/liveController/v1.14.5/liveRecorder /opt/kaltura/liveController/v1.14.5/bin/ffmpeg/ffmpeg-3.0 Release"
	exit 1
fi

PRODUCT_ROOT_PATH=$1
FFMPEG_BUILD_PATH=$2
TARGET=ts_to_mp4_convertor
CONVERTOR_DIR=${PRODUCT_ROOT_PATH}/${TARGET}
RES=0

export FFMPEG_BUILD_PATH


if [ -w ${CONVERTOR_DIR} ]; then
	pushd ${CONVERTOR_DIR}
		mkdir -p obj

		echo "starting to build ${TARGET}"

		make install

		if [ $? -eq 0 ] ; then
			echo "**************************************************************************************"
			echo "${TARGET} was built successfully, copying to bin folder"
			echo "**************************************************************************************"
		else
			echo "**************************************************************************************"
			echo "Something went wrong, failed to build ts_to_mp4_convertor!!!, please check build results"
			echo "**************************************************************************************"
			RES=1
		fi
	popd
else
	echo "***********************************************************************************************************************************"
	echo "failed to build ${TARGET}, check that ${CONVERTOR_DIR} exist and has write permission"
	echo "***********************************************************************************************************************************"
	RES=1
fi

exit ${RES}
{'fraction_non_alphanumeric': 0.4468726450640543, 'fraction_numerical': 0.016076362722933935, 'mean_word_length': 5.310618066561014, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1773331', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1018, 'n_words': 236}