<commit_before>//
//  main.swift
//  BluetoothLinux
//
//  Created by <NAME> on 12/6/15.
//  Copyright © 2015 PureSwift. All rights reserved.
//

#if os(Linux)
    import BluetoothLinux
    import Glibc
#elseif os(OSX) || os(iOS)
    import Darwin.C
#endif

import Foundation

func Error(_ text: String) -> Never {
    
    print(text)
    exit(1)
}

// get Bluetooth device

let adapter: Adapter

do { adapter = try Adapter() }
    
catch { Error("Error: \(error)") }

print("Found Bluetooth adapter with device ID: \(adapter.identifier)")

print("Address: \(adapter.address!)")

guard let peerAddressString = CommandLine.arguments.first
    else { Error("No Address specified") }

guard let peerAddress = Address(rawValue: peerAddressString)<commit_msg>Working on LECreateConnection test<commit_after>//
//  main.swift
//  BluetoothLinux
//
//  Created by <NAME> on 12/6/15.
//  Copyright © 2015 PureSwift. All rights reserved.
//

#if os(Linux)
    import BluetoothLinux
    import Glibc
#elseif os(macOS) || os(iOS)
    import Darwin.C
#endif

import Foundation
import Bluetooth

func Error(_ text: String) -> Never {
    
    print(text)
    exit(1)
}

// get Bluetooth device

let adapter: Adapter

do { adapter = try Adapter() }
    
catch { Error("Error: \(error)") }

print("Found Bluetooth adapter with device ID: \(adapter.identifier)")

print("Address: \(adapter.address!)")

guard let peerAddressString = CommandLine.arguments.first
    else { Error("No Address specified") }

guard let peerAddress = Address(rawValue: peerAddressString)
{'fraction_non_alphanumeric': 0.12774193548387097, 'fraction_numerical': 0.012903225806451613, 'mean_word_length': 3.508720930232558, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7303827', 'n_tokens_mistral': 513, 'n_tokens_neox': 478, 'n_words': 146}