<commit_before>#!/bin/bash

repos=("thehole" "deploy" "puppet" "uberbot")
repo_path="/Users/alex/uberVU/"
exists=`git show-ref refs/heads/master`

for repo in ${repos[*]}
do
    path=$repo_path$repo
    cd $path
    echo $path
    current_branch=$(git branch | awk '/^\*/{print $2}')
    if [ "$current_branch" == "master" ]; then
        git pull
    else
        git stash
        git checkout master
        git pull
        git checkout $current_branch
        git stash pop
    fi
done
<commit_msg>Do not stash pop if it did not stash anything<commit_after>#!/bin/bash

repos=("thehole" "deploy" "puppet" "uberbot")
repo_path="/Users/alex/uberVU/"
exists=`git show-ref refs/heads/master`
no_stash_save="No local changes to save"

for repo in ${repos[*]}
do
    path=$repo_path$repo
    cd $path
    echo $path
    current_branch=$(git branch | awk '/^\*/{print $2}')
    if [ "$current_branch" == "master" ]; then
        git pull
    else
        stash_message=$(git stash)
        git checkout master
        git pull
        git checkout $current_branch
        if [ "$stash_message" != "$no_stash_save" ]; then
            git stash pop
        fi
    fi
done

{'fraction_non_alphanumeric': 0.1317365269461078, 'fraction_numerical': 0.001710863986313088, 'mean_word_length': 2.6222910216718267, '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': '3916231', 'n_tokens_mistral': 406, 'n_tokens_neox': 385, 'n_words': 111}