<commit_before>#!/usr/bin/env bash

apm list -ib > .atom/packages.list

# copy all config files
if [[ "$OSTYPE" == "linux-gnu" ]]; then
  find ~/.atom -maxdepth 1 -type f -name "*.cson"  | xargs -I {} cp {} .atom/
  find ~/.atom -maxdepth 1 -type f -name "*.coffee" | xargs -I {} cp {} .atom/
  find ~/.atom -maxdepth 1 -type f -name "*.less" | xargs -I {} cp {} .atom/
elif [[ "$OSTYPE" == "darwin"* ]]; then
  find ~/.atom -type f -d 1 -name "*.cson" | xargs -I {} cp {} .atom/
  find ~/.atom -type f -d 1 -name "*.coffee" | xargs -I {} cp {} .atom/
  find ~/.atom -type f -d 1 -name "*.less" | xargs -I {} cp {} .atom/
fi

# delete projecct manager config since it should be machine specific
rm .atom/projects.cson
<commit_msg>Filter projects.cson out instead of removing it later<commit_after>#!/usr/bin/env bash

apm list -ib > .atom/packages.list

# copy all config files except projects.cson (project manager) since each machine will have different project settings
if [[ "$OSTYPE" == "linux-gnu" ]]; then
  find ~/.atom -maxdepth 1 -type f -name "*.cson" | grep projects.cson --invert-match | xargs -I {} cp {} .atom/
  find ~/.atom -maxdepth 1 -type f -name "*.coffee" | xargs -I {} cp {} .atom/
  find ~/.atom -maxdepth 1 -type f -name "*.less" | xargs -I {} cp {} .atom/
elif [[ "$OSTYPE" == "darwin"* ]]; then
  find ~/.atom -type f -d 1 -name "*.cson" | grep projects.cson --invert-match | xargs -I {} cp {} .atom/
  find ~/.atom -type f -d 1 -name "*.coffee" | xargs -I {} cp {} .atom/
  find ~/.atom -type f -d 1 -name "*.less" | xargs -I {} cp {} .atom/
fi

{'fraction_non_alphanumeric': 0.19961856325492688, 'fraction_numerical': 0.007628734901462174, 'mean_word_length': 2.5610859728506785, 'pattern_counts': {'":': 0, '<': 3, '<?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': '201034', 'n_tokens_mistral': 604, 'n_tokens_neox': 581, 'n_words': 219}