<commit_before>#!/bin/sh

#  fix_dylibs.sh
#  speculid
#
#  Created by <NAME> on 11/27/17.
#  Copyright © 2017 Bright Digit, LLC. All rights reserved.
for (( c=1; c<=10; c++ ))
do
echo "Iteration: $c"
  DYLIBS=`ls "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH"`
  for dylib in $DYLIBS; do
    DEPS=`otool -L "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/$dylib" | grep "/opt" | awk -F' ' '{ print $1 }'`

    echo "Dep Count: ${#DEPS[@]}"
    for dependency in $DEPS; do
    echo "Installing $dependency"
    install -m 755 $dependency "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH"

    done
    for dependency in $DEPS; do
      echo "Fixing $dependency"
      install_name_tool -id @rpath/`basename $dependency` "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/$dylib"
      install_name_tool -change $dependency @rpath/`basename $dependency` "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/$dylib"
    done
  done
done

<commit_msg>fixed dependency count [skip ci]<commit_after>#!/bin/sh

#  fix_dylibs.sh
#  speculid
#
#  Created by <NAME> on 11/27/17.
#  Copyright © 2017 Bright Digit, LLC. All rights reserved.
for (( c=1; c<=10; c++ ))
do
  echo "Iteration: $c"
  DEPCOUNT=0
  DYLIBS=`ls "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH"`
  for dylib in $DYLIBS; do
    DEPS=`otool -L "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/$dylib" | grep "/opt" | awk -F' ' '{ print $1 }'`

    for dependency in $DEPS; do
    echo "Installing $dependency"
    install -m 755 $dependency "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH"

    done
    for dependency in $DEPS; do
      echo "Fixing $dependency"
      install_name_tool -id @rpath/`basename $dependency` "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/$dylib"
      install_name_tool -change $dependency @rpath/`basename $dependency` "$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH/$dylib"
      DEPCOUNT=$((DEPCOUNT+1))
    done
  done
  echo "Dependency Count: $DEPCOUNT"
if [ $DEPCOUNT -eq 0 ]; then exit; fi
done


{'fraction_non_alphanumeric': 0.13415892672858618, 'fraction_numerical': 0.019091847265221878, 'mean_word_length': 4.010335917312662, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1916343', 'n_tokens_mistral': 785, 'n_tokens_neox': 732, 'n_words': 175}