<commit_before># DemoPeripheral
PureSwift/BluetoothLinux Example<commit_msg>Add setup instructions<commit_after># DemoPeripheral
PureSwift/BluetoothLinux Example

# Setup

## Clone this repo

    git clone https://github.com/colemancda/DemoPeripheral

## Go inside DemoPeripheral

    cd DemoPeripheral

## Patch code

In

    /Packages/CStatfs-1.0.0/module.modulemap

Replace

    x86_64-linux-gnu
   
by

    arm-linux-gnueabihf

## Build

    swift build

## Run

    sudo .build/debug/Peripheral

You will see this logging in your console

    Starting Peripheral Daemon...
    Peripheral: Started GATT Server
    Initialized Peripheral 0bd6311b-d0c9-425c-928b-89cc5bc0170c

You can explore with [LightBlue](https://itunes.apple.com/us/app/lightblue-explorer-bluetooth/id557428110
)
{'fraction_non_alphanumeric': 0.08142493638676845, 'fraction_numerical': 0.04580152671755725, 'mean_word_length': 3.7696969696969695, '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': '2511552', 'n_tokens_mistral': 307, 'n_tokens_neox': 268, 'n_words': 58}