<commit_before>#!/bin/bash

function print_help {
    echo "Usage: $0 -p contiki_path -e exclude_regex"
    echo "When installing the driver feeds will be copied into the local repo to allow for" \
         "documentation generation with doxygen. When excluding/including different drivers" \
         "remember to clean your repo first"
    echo "-h: Show help"
    echo "-p: Path where the library will be installed (required on first install)"
    echo "-e: Regex to use for the find command when excluding non-core drivers." \
         "The regex applies to the filename combined with the top level folder it's in," \
         "i.e. './click/*' will match all files in the click directory, while '*relay.*' will" \
         "match 'click/relay.c' and 'click/relay.h'"
}

function install_files {
    if [[ -d $LMC_DIR ]]; then
        rm -rf $LMC_DIR
    fi

    mkdir -p $LMC_DIR

    cp -r $SRC_DIR/* $LMC_DIR/
    cp -r $INCLUDE_DIR/* $LMC_DIR/

    if [[ -d "$STAGING_DIR" ]]; then
        cp -r $STAGING_DIR/* $LMC_DIR/
    fi
<commit_msg>Install: Documentation update<commit_after>#!/bin/bash

function print_help {
    echo "Usage: $0 -p contiki_path -e exclude_regex"
    echo "When installing the driver feeds will be copied into the local repo to allow for" \
         "documentation generation with doxygen. When excluding/including different drivers" \
         "remember to clean your repo first"
    echo "-h: Show help"
    echo "-p: Path where the library will be installed (required on first install)"
    echo "-e: Regex to use for the find command when excluding headers and source files." \
         "The regex applies to the filename combined with the top level folder it's in," \
         "i.e. './click/*' will match all files in the click directory, while '*relay.*' will" \
         "match 'click/relay.c' and 'click/relay.h'"
}

function install_files {
    if [[ -d $LMC_DIR ]]; then
        rm -rf $LMC_DIR
    fi

    mkdir -p $LMC_DIR

    cp -r $SRC_DIR/* $LMC_DIR/
    cp -r $INCLUDE_DIR/* $LMC_DIR/

    if [[ -d "$STAGING_DIR" ]]; then
        cp -r $STAGING_DIR/* $LMC_DIR/
    fi

{'fraction_non_alphanumeric': 0.10660377358490566, 'fraction_numerical': 0.0009433962264150943, 'mean_word_length': 2.5587248322147653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6379885', 'n_tokens_mistral': 685, 'n_tokens_neox': 652, 'n_words': 266}