<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 terminal title
echo -en "\\033]0;Metro\\a"
clear

THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)

# export packager environment variables
source "$THIS_DIR/.packager.env"

if [ -n "${RCT_PACKAGER_LOGS_DIR}" ] ; then
  echo "Writing logs to $RCT_PACKAGER_LOGS_DIR"
  # shellcheck source=/dev/null
  RCT_PACKAGER_LOG_PATH="$RCT_PACKAGER_LOGS_DIR/metro.log" \
  . "$THIS_DIR/packager.sh" \
    > "$RCT_PACKAGER_LOGS_DIR/packager.stdout.log" \
    2> "$RCT_PACKAGER_LOGS_DIR/packager.stderr.log"
else<commit_msg>Use `NODE_BINARY` from `.xcode.env` when running packager from Xcode (#34121)<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 terminal title
echo -en "\\033]0;Metro\\a"
clear

THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)

export PODS_ROOT="$THIS_DIR/../../../ios/Pods"
WITH_ENVIRONMENT="$THIS_DIR/xcode/with-environment.sh"
source $WITH_ENVIRONMENT

# export packager environment variables
source "$THIS_DIR/.packager.env"

if [ -n "${RCT_PACKAGER_LOGS_DIR}" ] ; then
  echo "Writing logs to $RCT_PACKAGER_LOGS_DIR"
  # shellcheck source=/dev/null
  RCT_PACKAGER_LOG_PATH="$RCT_PACKAGER_LOGS_DIR/metro.log" \
  . "$THIS_DIR/packager.sh" \
    > "$RCT_PACKAGER_LOGS_DIR/packager.stdout.log" \
    2> "$RCT_PACKAGER_LOGS_DIR/packager.stderr.log"
else
{'fraction_non_alphanumeric': 0.14770114942528736, 'fraction_numerical': 0.010919540229885057, 'mean_word_length': 4.745874587458746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4644700', 'n_tokens_mistral': 678, 'n_tokens_neox': 646, 'n_words': 149}