<commit_before>//
//  PJProjector.h
//  ProjectR
//
//  Created by <NAME> on 7/7/13.
//  Copyright (c) 2013 <NAME>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PJDefinitions.h"

// Notification names
extern NSString* const PJProjectorRequestDidBeginNotification;
extern NSString* const PJProjectorRequestDidEndNotification;
extern NSString* const PJProjectorDidChangeNotification;
extern NSString* const PJProjectorConnectionStateDidChangeNotification;
// User Info dictionary key names
extern NSString* const PJProjectorErrorKey;

@class PJInputInfo;
@class PJAMXBeaconHost;

@interface PJProjector : NSObject

// PJLink properties
@property(nonatomic,assign,readonly)                           PJPowerStatus powerStatus;
@property(nonatomic,assign,readonly,getter=isAudioMuted)       BOOL          audioMuted;
@property(nonatomic,assign,readonly,getter=isVideoMuted)       BOOL          videoMuted;
@property(nonatomic,assign,readonly)                           PJErrorStatus fanErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus lampErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus temperatureErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus coverOpenErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus filterErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus otherErrorStatus;
@property(nonatomic,copy,readonly)                             NSArray*      lampStatus; // NSArray of PJLampStatus
@property(nonatomic,copy,readonly)                             NSArray*      inputs;     // NSArray of PJInputInfo
@property(nonatomic,assign,readonly)                           NSUInteger    activeInputIndex; // Which input is active
@property(nonatomic,copy,readonly)                             NSString*     projectorName;
@property(nonatomic,copy,readonly)                             NSString*     manufacturerName;
@property(nonatomic,copy,readonly)                             NSString*     productName;
@property(nonatomic,copy,readonly)                             NSString*     otherInformation;
@property(nonatomic,assign,readonly,getter=isClass2Compatible) BOOL          class2Compatible;

// KVO-compliant accessors for .inputs property
- (NSUInteger)countOfInputs;
- (id)objectInInputsAtIndex:(NSUInteger)index;
- (NSArray*)inputsAtIndexes:(NSIndexSet *)indexes;

// KVO-compliant accessors for .lampStatus property
- (NSUInteger)countOfLampStatus;
- (id)objectInLampStatusAtIndex:(NSUInteger)index;
- (NSArray*)lampStatusAtIndexes:(NSIndexSet *)indexes;

// Host IP address and port
@property(nonatomic,copy,readonly)   NSString* host;
@property(nonatomic,assign,readonly) NSInteger port;

// Optional password
@property(nonatomic,copy) NSString* password;

// Connection state
@property(nonatomic,assign,readonly) PJConnectionState connectionState;

// Refresh timer
@property(nonatomic,assign)                         NSTimeInterval refreshTimerInterval;
@property(nonatomic,assign,getter=isRefreshTimerOn) BOOL           refreshTimerOn;

// Init with just an IP address and optional port
- (id)initWithHost:(NSString*)host;
- (id)initWithHost:(NSString*)host port:(NSInteger)port;

// Init with a PJAMXBeaconHost object
- (id)initWithBeaconHost:(PJAMXBeaconHost*)beaconHost;

// Refresh the specified queries
- (void)refreshQueries:(NSArray*)queries;
// Refresh all queries
- (void)refreshAllQueries;
// Refresh the power status
- (void)refreshPowerStatus;
// Refresh the input status
- (void)refreshInputStatus;<commit_msg>Remove initWithBeaconHost initializer.<commit_after>//
//  PJProjector.h
//  ProjectR
//
//  Created by <NAME> on 7/7/13.
//  Copyright (c) 2013 <NAME>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PJDefinitions.h"

// Notification names
extern NSString* const PJProjectorRequestDidBeginNotification;
extern NSString* const PJProjectorRequestDidEndNotification;
extern NSString* const PJProjectorDidChangeNotification;
extern NSString* const PJProjectorConnectionStateDidChangeNotification;
// User Info dictionary key names
extern NSString* const PJProjectorErrorKey;

@class PJInputInfo;

@interface PJProjector : NSObject

// PJLink properties
@property(nonatomic,assign,readonly)                           PJPowerStatus powerStatus;
@property(nonatomic,assign,readonly,getter=isAudioMuted)       BOOL          audioMuted;
@property(nonatomic,assign,readonly,getter=isVideoMuted)       BOOL          videoMuted;
@property(nonatomic,assign,readonly)                           PJErrorStatus fanErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus lampErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus temperatureErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus coverOpenErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus filterErrorStatus;
@property(nonatomic,assign,readonly)                           PJErrorStatus otherErrorStatus;
@property(nonatomic,copy,readonly)                             NSArray*      lampStatus; // NSArray of PJLampStatus
@property(nonatomic,copy,readonly)                             NSArray*      inputs;     // NSArray of PJInputInfo
@property(nonatomic,assign,readonly)                           NSUInteger    activeInputIndex; // Which input is active
@property(nonatomic,copy,readonly)                             NSString*     projectorName;
@property(nonatomic,copy,readonly)                             NSString*     manufacturerName;
@property(nonatomic,copy,readonly)                             NSString*     productName;
@property(nonatomic,copy,readonly)                             NSString*     otherInformation;
@property(nonatomic,assign,readonly,getter=isClass2Compatible) BOOL          class2Compatible;

// KVO-compliant accessors for .inputs property
- (NSUInteger)countOfInputs;
- (id)objectInInputsAtIndex:(NSUInteger)index;
- (NSArray*)inputsAtIndexes:(NSIndexSet *)indexes;

// KVO-compliant accessors for .lampStatus property
- (NSUInteger)countOfLampStatus;
- (id)objectInLampStatusAtIndex:(NSUInteger)index;
- (NSArray*)lampStatusAtIndexes:(NSIndexSet *)indexes;

// Host IP address and port
@property(nonatomic,copy,readonly)   NSString* host;
@property(nonatomic,assign,readonly) NSInteger port;

// Optional password
@property(nonatomic,copy) NSString* password;

// Connection state
@property(nonatomic,assign,readonly) PJConnectionState connectionState;

// Refresh timer
@property(nonatomic,assign)                         NSTimeInterval refreshTimerInterval;
@property(nonatomic,assign,getter=isRefreshTimerOn) BOOL           refreshTimerOn;

// Init with just an IP address and optional port
- (id)initWithHost:(NSString*)host;
- (id)initWithHost:(NSString*)host port:(NSInteger)port;

// Refresh the specified queries
- (void)refreshQueries:(NSArray*)queries;
// Refresh all queries
- (void)refreshAllQueries;
// Refresh the power status
- (void)refreshPowerStatus;
// Refresh the input status
- (void)refreshInputStatus;
{'fraction_non_alphanumeric': 0.09030562854376988, 'fraction_numerical': 0.0027658691743880515, 'mean_word_length': 3.4641975308641975, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7358376', 'n_tokens_mistral': 2061, 'n_tokens_neox': 1889, 'n_words': 393}