<commit_before># ----------------------------- File Navigation ------------------------------ #
# Auto list directory when changing, given the directory name
function cl () {
  cd "$@" && clear

  if test -f ".nvmrc"; then
    echo "🔎🔎🔎 .nvmrc found - activating Node environment\n"
    nvm use
  fi

  ls -laAhF
}

# Change into then list directory on creation, given the directory name
function md () {
  mkdir -p "$@" && cl "$@"
}
function makescreens() {
  pageres http://localhost:8100/"$@" < ~/Development/CuttleDev/Projects/screen-resolutions.txt
}


# ----------------------------------- Git ------------------------------------ #
# Clone down Cuttlesoft repository
function cuttleclone() {
  git clone ssh://git@github.com/cuttlesoft/"$@".git
}

function cuttleproject() {
  cl ~/Development/CuttleDev/Projects/Clients/"$@"
}

# Make resources for an Ionic project with different icons for each platform
function ionicresources() {
  mkdir resources/.tmp

  cp -f resources/icon-ios.psd resources/icon.psd
  ionic cordova resources --icon

  mv -f resources/ios/icon/* resources/.tmp
  rm resources/icon.psd

  cp -f resources/icon-android.psd resources/icon.psd
  ionic cordova resources --icon
<commit_msg>🎨 (Custom Functions) Organize helper functions<commit_after># ----------------------------- File Navigation ------------------------------ #
# Auto list directory when changing, given the directory name
function cl () {
  cd "$@" && clear

  if test -f ".nvmrc"; then
    echo "🔎🔎🔎 .nvmrc found - activating Node environment\n"
    nvm use
  fi

  ls -laAhF
}

# Change into then list directory on creation, given the directory name
function md () {
  mkdir -p "$@" && cl "$@"
}

# Change into Cuttlesoft client project directory, given the project name
function cuttleproject() {
  cl ~/Development/CuttleDev/Projects/Clients/"$@"
}


# ----------------------------------- Git ------------------------------------ #
# Clone down Cuttlesoft repository
function cuttleclone() {
  git clone ssh://git@github.com/cuttlesoft/"$@".git
}

# Archive a branch
# - Tag the branch as archived, continue only if successful
# --------------------------- Development Helpers ---------------------------- #
# Generate screenshots using pageres
function makescreens() {
  pageres http://localhost:8100/"$@" < ~/Development/CuttleDev/Projects/screen-resolutions.txt
}

# Make resources for an Ionic project with different icons for each platform
function ionicresources() {
  mkdir resources/.tmp

  cp -f resources/icon-ios.psd resources/icon.psd
  ionic cordova resources --icon

  mv -f resources/ios/icon/* resources/.tmp
  rm resources/icon.psd

  cp -f resources/icon-android.psd resources/icon.psd
  ionic cordova resources --icon

{'fraction_non_alphanumeric': 0.21650237312887916, 'fraction_numerical': 0.0029207740051113546, 'mean_word_length': 2.277511961722488, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1533553', 'n_tokens_mistral': 834, 'n_tokens_neox': 756, 'n_words': 245}