<commit_before>alias xcb='xcodebuild'
alias xcdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
alias xcp='xcode-select --print-path'
alias xcsel='sudo xcode-select --switch'

# original author: @subdigital
# source: http://gist.github.com/subdigital/5420709
function xc {
  local xcode_proj
  if [[ $# == 0 ]]; then
    xcode_proj=(*.{xcworkspace,xcodeproj}(N))
  else
    xcode_proj=($1/*.{xcworkspace,xcodeproj}(N))
  fi


  if [[ ${#xcode_proj} -eq 0 ]]; then
    if [[ $# == 0 ]]; then
      echo "No xcworkspace/xcodeproj file found in the current directory."
    else
      echo "No xcworkspace/xcodeproj file found in $1."
    fi
    return 1
  else
    echo "Found ${xcode_proj[1]}"
    open "${xcode_proj[1]}"
  fi
}<commit_msg>[plugins/xcode] Fix opening project using a wrong Xcode version (#6829)<commit_after>alias xcb='xcodebuild'
alias xcdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
alias xcp='xcode-select --print-path'
alias xcsel='sudo xcode-select --switch'

# original author: @subdigital
# source: http://gist.github.com/subdigital/5420709
function xc {
  local xcode_proj
  if [[ $# == 0 ]]; then
    xcode_proj=(*.{xcworkspace,xcodeproj}(N))
  else
    xcode_proj=($1/*.{xcworkspace,xcodeproj}(N))
  fi


  if [[ ${#xcode_proj} -eq 0 ]]; then
    if [[ $# == 0 ]]; then
      echo "No xcworkspace/xcodeproj file found in the current directory."
    else
      echo "No xcworkspace/xcodeproj file found in $1."
    fi
    return 1
  else
    local active_path
    active_path=$(xcode-select -p)
    active_path=${active_path%%/Contents/Developer*}
    echo "Found ${xcode_proj[1]}. Opening with ${active_path}"
    open -a "$active_path" "${xcode_proj[1]}"
  fi
}
{'fraction_non_alphanumeric': 0.15516224188790562, 'fraction_numerical': 0.020058997050147492, 'mean_word_length': 3.5962059620596207, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6320084', 'n_tokens_mistral': 675, 'n_tokens_neox': 629, 'n_words': 147}