<commit_before>/*===========================================================================
 CAVHIDWrappers.swift
 Cavalla
 
 This file contains wrappers for HIDManager functions that seem to be improperly interpreted for Swift 3.
 
 The primary problem is that the IOKit functions should return optionals (the underlying C functions may return NULL), but the generated Swift APIs return non-optional values.  Therefore, these functions wrap the value returned from IOKit into optional values.
 
 These functions are unnecessary for Swift 2.x and will hopefully be unnecessary for Swift 3+.
 
 Copyright (c) 2016 OrderedBytes. All rights reserved.
 ===========================================================================*/

import Foundation

/*==========================================================================*/
func CAVHIDDeviceGetProperty( _ device: IOHIDDevice, _ key: CFString ) -> AnyObject? {
    return IOHIDDeviceGetProperty( device, key )
}<commit_msg>Corrects the return type of CAVHIDDeviceGetProperty()<commit_after>/*===========================================================================
 CAVHIDWrappers.swift
 Cavalla
 
 This file contains wrappers for HIDManager functions that seem to be improperly interpreted for Swift 3.
 
 The primary problem is that the IOKit functions should return optionals (the underlying C functions may return NULL), but the generated Swift APIs return non-optional values.  Therefore, these functions wrap the value returned from IOKit into optional values.
 
 These functions are unnecessary for Swift 2.x and will hopefully be unnecessary for Swift 3+.
 
 Copyright (c) 2016 OrderedBytes. All rights reserved.
 ===========================================================================*/

import Foundation

/*==========================================================================*/
func CAVHIDDeviceGetProperty( _ device: IOHIDDevice, _ key: CFString ) -> CFTypeRef? {
    return IOHIDDeviceGetProperty( device, key )
}
{'fraction_non_alphanumeric': 0.2660642570281124, 'fraction_numerical': 0.007028112449799197, 'mean_word_length': 6.169064748201439, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3368143', 'n_tokens_mistral': 466, 'n_tokens_neox': 391, 'n_words': 189}