<commit_before>//
//  WatchConnectivity+Helpers.swift
//  Pods
//
//  Created by <NAME> on 20/07/2017.
//
//

import WatchConnectivity

extension Communicator.State {
    
    init(session: WCSessionActivationState) {
        switch session {
        case .notActivated: self = .notActivated
        case .inactive: self = .inactive
        case .activated: self = .activated
        @unknown default: self = .inactive
        }
    }
    
}

public extension Reachability {
    
    init(session: WCSession) {
        guard session.activationState == .activated else {
            self = .notReachable
            return<commit_msg>Checks if watch app is installed before determining reachability<commit_after>//
//  WatchConnectivity+Helpers.swift
//  Pods
//
//  Created by <NAME> on 20/07/2017.
//
//

import WatchConnectivity

extension Communicator.State {
    
    init(session: WCSessionActivationState) {
        switch session {
        case .notActivated: self = .notActivated
        case .inactive: self = .inactive
        case .activated: self = .activated
        @unknown default: self = .inactive
        }
    }
    
}

public extension Reachability {
    
    init(session: WCSession) {
        guard session.activationState == .activated && session.isWatchAppInstalled else {
            self = .notReachable
            return
{'fraction_non_alphanumeric': 0.09421364985163205, 'fraction_numerical': 0.011869436201780416, 'mean_word_length': 2.181603773584906, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5998379', 'n_tokens_mistral': 405, 'n_tokens_neox': 384, 'n_words': 96}