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

if ! command -v code; then
    return
fi


dotfilespath="$HOME/dotfiles"

rm -rf ~/Library/Application\ Support/Code/User/snippets
ln -sf "$dotfilespath/vscode/settings.json" ~/Library/Application\ Support/Code/User/settings.json
ln -sf "$dotfilespath/vscode/keybindings.json" ~/Library/Application\ Support/Code/User/keybindings.json
ln -sf "$dotfilespath/vscode/snippets/" ~/Library/Application\ Support/Code/User/snippets<commit_msg>Corrige install vscode<commit_after>#!/usr/bin/env bash

dotfilespath="$HOME/dotfiles"

if [ "$(uname)" == "Linux" ]; then
    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
    sudo apt-get update
    sudo apt-get install code
fi

if [ "$(uname)" == "Darwin" ]; then
    rm -rf ~/Library/Application\ Support/Code/User/snippets
    ln -sf "$dotfilespath/vscode/settings.json" ~/Library/Application\ Support/Code/User/settings.json
    ln -sf "$dotfilespath/vscode/keybindings.json" ~/Library/Application\ Support/Code/User/keybindings.json
    ln -sf "$dotfilespath/vscode/snippets/" ~/Library/Application\ Support/Code/User/snippets
fi
{'fraction_non_alphanumeric': 0.15070527097253156, 'fraction_numerical': 0.0014847809948032665, 'mean_word_length': 4.067669172932331, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '720398', 'n_tokens_mistral': 496, 'n_tokens_neox': 466, 'n_words': 88}