<commit_before>#!/bin/bash

#
# NOTE:
#  the raw-ssh-key parameter is a multiline input -> will be directly retrieved from the environment
#

THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

formatted_output_file_path=''
if [ -n "${BITRISE_STEP_FORMATTED_OUTPUT_FILE_PATH}" ] ; then
	formatted_output_file_path="${BITRISE_STEP_FORMATTED_OUTPUT_FILE_PATH}"
fi

echo " (i) formatted_output_file_path: ${formatted_output_file_path}"

ruby "${THIS_SCRIPT_DIR}/git_clone.rb" \
	--repo-url="${repository_url}" \
	--commit-hash="${commit}" \
	--tag="${tag}" \
	--branch="${branch}" \
	--pull-request="${pull_request_id}" \
	--dest-dir="${clone_into_dir}" \
	--formatted-output-file="${formatted_output_file_path}"
exit $?<commit_msg>removed unnecessary formatted output path log<commit_after>#!/bin/bash

#
# NOTE:
#  the raw-ssh-key parameter is a multiline input -> will be directly retrieved from the environment
#

THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

formatted_output_file_path=''
if [ -n "${BITRISE_STEP_FORMATTED_OUTPUT_FILE_PATH}" ] ; then
	formatted_output_file_path="${BITRISE_STEP_FORMATTED_OUTPUT_FILE_PATH}"
fi

ruby "${THIS_SCRIPT_DIR}/git_clone.rb" \
	--repo-url="${repository_url}" \
	--commit-hash="${commit}" \
	--tag="${tag}" \
	--branch="${branch}" \
	--pull-request="${pull_request_id}" \
	--dest-dir="${clone_into_dir}" \
	--formatted-output-file="${formatted_output_file_path}"
exit $?
{'fraction_non_alphanumeric': 0.18719889883000687, 'fraction_numerical': 0.0013764624913971094, 'mean_word_length': 5.54954954954955, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3964386', 'n_tokens_mistral': 555, 'n_tokens_neox': 525, 'n_words': 85}