<commit_before>PROJECT_NAME=${PWD##*/}

APP_NAME="PBApp"

APP_PATH="$APP_NAME/workspace/Podfile"

NOW_BRANCH=$(git branch)

echo "The branch of $APP_NAME is '$NOW_BRANCH'. It will update app podfile at same branch"

if [ ! -d "$APP_NAME" ]; then
  git clone http://gitlab.baidao.com/pb/PBApp.git
fi

CURRENT_POD_VERSION=$(cat $PROJECT_NAME.podspec | grep -o '[0-9]*\.[0-9]*\.[0-9]*')

echo "This current version is $CURRENT_POD_VERSION"

ORIGIN_POD_VALUE=$(cat $APP_PATH | grep $PROJECT_NAME)
NEW_POD_VALUE="    pod '$PROJECT_NAME', '$CURRENT_POD_VERSION'"

echo "s/$ORIGIN_POD_VALUE/$NEW_POD_VALUE/g"<commit_msg>修改release_pb_app.sh<commit_after>PROJECT_NAME=${PWD##*/}

APP_NAME="PBApp"

APP_PATH="$APP_NAME/workspace/Podfile"

NOW_BRANCH=$(git branch)

echo "The branch of $APP_NAME is '$NOW_BRANCH'. It will update app podfile at same branch"

if [ ! -d "$APP_NAME" ]; then
  git clone http://gitlab.baidao.com/pb/PBApp.git
else
  cd PBApp
  git pull
  cd ..
fi

CURRENT_POD_VERSION=$(cat $PROJECT_NAME.podspec | grep -o '[0-9]*\.[0-9]*\.[0-9]*')

echo "This current version is $CURRENT_POD_VERSION"

ORIGIN_POD_VALUE=$(cat $APP_PATH | grep $PROJECT_NAME)
NEW_POD_VALUE="    pod '$PROJECT_NAME', '$CURRENT_POD_VERSION'"

echo "s/$ORIGIN_POD_VALUE/$NEW_POD_VALUE/g"
{'fraction_non_alphanumeric': 0.16022099447513813, 'fraction_numerical': 0.009471191791633781, 'mean_word_length': 5.371859296482412, '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': '609733', 'n_tokens_mistral': 529, 'n_tokens_neox': 520, 'n_words': 103}