<commit_before>#! /bin/bash

total=0
btcchf=$(curl -s https://api.coinmarketcap.com/v1/ticker/bitcoin/?convert=CHF | jq -r '.[0].price_chf')
echo BTC-CHF: $btcchf

printf "%25s\t%10s\t%8s\n" file BTC CHF

for f in ~/.electrum/wallets/*<commit_msg>updated API to get the BTC price in CHF<commit_after>#! /bin/bash

total=0
prices=$(curl ${CURL_PROXY} -H "X-CMC_PRO_API_KEY: <KEY>" -H "Accept: application/json" -d "start=1&limit=1000&convert=CHF" -G https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest 2> /dev/null)
btcchf=$(echo $prices | jq -r '.data[] | select(.symbol=="BTC") | .quote.CHF.price')
echo BTC-CHF: $btcchf

printf "%25s\t%10s\t%8s\n" file BTC CHF

for f in ~/.electrum/wallets/*
{'fraction_non_alphanumeric': 0.19577464788732393, 'fraction_numerical': 0.029577464788732393, 'mean_word_length': 4.511627906976744, 'pattern_counts': {'":': 0, '<': 4, '<?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': '193359', 'n_tokens_mistral': 332, 'n_tokens_neox': 311, 'n_words': 64}