<commit_before>#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

set -x

source="${PODS_ROOT}/hermes-engine/destroot/Library/Frameworks/${PLATFORM_NAME}/hermes.framework"

if [[ -f "$source" ]]; then
    cp -R "$source" "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes/hermes.framework"
    cp -R "$source" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
fi<commit_msg>Backport fix copy-hermes-xcode.sh from 0.71-stable (#35431)<commit_after>#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

set -x

src="${PODS_ROOT}/hermes-engine/destroot/Library/Frameworks/${PLATFORM_NAME}/hermes.framework"

if [[ ! -e "$src" ]]; then
  echo "$src does not exist."
  exit 1
fi

dst1="${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes"
[ ! -f "$dst1" ] && mkdir -p "$dst1"
cp -R "$src" "$dst1"

dst2="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
[ ! -f "$dst2" ] && mkdir -p "$dst2"
cp -R "$src" "$dst2"
{'fraction_non_alphanumeric': 0.158578856152513, 'fraction_numerical': 0.014731369150779897, 'mean_word_length': 4.606796116504855, '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': '925077', 'n_tokens_mistral': 430, 'n_tokens_neox': 417, 'n_words': 115}