<commit_before>#!/bin/sh

# Installing PlatformIO with pip is kind of broken. Just use their install script.
python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
platformio platforms install atmelavr

# Add Punch Through boards definition
# -p: no error if cached /boards already exists
mkdir -p ~/.platformio/boards
cp tests/resources/platformio/boards/* ~/.platformio/boards/

# Add Punch Through core files
# packages/framework-arduinoavr may not exist until the first compile happens,
# so create the directory right away
mkdir -p /home/ubuntu/.platformio/packages/framework-arduinoavr/
cp -rvf hardware/bean/avr/* ~/.platformio/packages/framework-arduinoavr/<commit_msg>ci: compile once before installing bean core<commit_after>#!/bin/sh

# Installing PlatformIO with pip is kind of broken. Just use their install script.
python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
platformio platforms install atmelavr

# Add Punch Through boards definition
# -p: no error if cached /boards already exists
mkdir -p ~/.platformio/boards
cp tests/resources/platformio/boards/* ~/.platformio/boards/

# Compile once to initialize framework-arduinoavr and ignore errors
platformio ci --board=uno || true

# Add Punch Through core files
# packages/framework-arduinoavr may not exist until the first compile happens,
# so create the directory right away
mkdir -p /home/ubuntu/.platformio/packages/framework-arduinoavr/
cp -rvf hardware/bean/avr/* ~/.platformio/packages/framework-arduinoavr/
{'fraction_non_alphanumeric': 0.09950248756218906, 'fraction_numerical': 0.0, 'mean_word_length': 4.6855123674911665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4904976', 'n_tokens_mistral': 479, 'n_tokens_neox': 463, 'n_words': 155}