<commit_before>//
//  FRMacFeedbackWindowController.m
//  F53FeedbackKit
//
//  Created by <NAME> on 9/20/15.
//  Copyright © 2015 Figure 53, LLC. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "FRDocumentList.h"
#import "FRConstants.h"


@class FRFeedbackController;

@interface FRMacFeedbackWindowController : NSWindowController <NSWindowDelegate>

@property (nonatomic, weak)     FRFeedbackController *feedbackController;
@property (unsafe_unretained)   NSString *type;

@property (unsafe_unretained)   IBOutlet NSTextField *headingField;
@property (unsafe_unretained)   IBOutlet NSTextField *subheadingField;
    
@property (unsafe_unretained)   IBOutlet NSTextField *messageLabel;
@property (unsafe_unretained)   IBOutlet NSTextView *messageView;
    
@property (unsafe_unretained)   IBOutlet NSTextField *emailLabel;
@property (unsafe_unretained)   IBOutlet NSComboBox *emailBox;
    
@property (unsafe_unretained)   IBOutlet NSButton *detailsButton;
@property (unsafe_unretained)   IBOutlet NSTextField *detailsLabel;
@property (nonatomic)           BOOL detailsShown;
    
@property (unsafe_unretained)   IBOutlet NSButton *sendDetailsCheckbox;
@property (unsafe_unretained)   IBOutlet NSButton *includeConsoleCheckbox;
    
@property (unsafe_unretained)   IBOutlet NSTabView *tabView;
@property (unsafe_unretained)   IBOutlet NSTabViewItem *tabSystem;
@property (unsafe_unretained)   IBOutlet NSTabViewItem *tabConsole;
@property (unsafe_unretained)   IBOutlet NSTabViewItem *tabCrash;
@property (unsafe_unretained)   IBOutlet NSTabViewItem *tabScript;
@property (unsafe_unretained)   IBOutlet NSTabViewItem *tabPreferences;
@property (unsafe_unretained)   IBOutlet NSTabViewItem *tabException;
@property (unsafe_unretained)   IBOutlet NSTabViewItem *tabDocuments;
    
@property (nonatomic, strong)   IBOutlet NSTableView *systemView;
@property (nonatomic, strong)   IBOutlet NSTextView *consoleView;
@property (nonatomic, strong)   IBOutlet NSTextView *crashesView;
@property (nonatomic, strong)   IBOutlet NSTextView *scriptView;
@property (nonatomic, strong)   IBOutlet NSTextView *preferencesView;
@property (nonatomic, strong)   IBOutlet NSTextView *exceptionView;
@property (nonatomic, strong)   IBOutlet NSTableView *documentsView;<commit_msg>The strong references in FRMacFeedbackWindowController should actually be for the tab view items. Those tabs are removed and added to the tabview, and they'll be dealloc'd when they're removed if they're not strong. Strong references to their subviews can help, but does not solve the problem (e.g. currently crashes if you check "Include console").<commit_after>//
//  FRMacFeedbackWindowController.m
//  F53FeedbackKit
//
//  Created by <NAME> on 9/20/15.
//  Copyright © 2015 Figure 53, LLC. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "FRDocumentList.h"
#import "FRConstants.h"


@class FRFeedbackController;

@interface FRMacFeedbackWindowController : NSWindowController <NSWindowDelegate>

@property (nonatomic, weak)     FRFeedbackController *feedbackController;
@property (unsafe_unretained)   NSString *type;

@property (unsafe_unretained)   IBOutlet NSTextField *headingField;
@property (unsafe_unretained)   IBOutlet NSTextField *subheadingField;
    
@property (unsafe_unretained)   IBOutlet NSTextField *messageLabel;
@property (unsafe_unretained)   IBOutlet NSTextView *messageView;
    
@property (unsafe_unretained)   IBOutlet NSTextField *emailLabel;
@property (unsafe_unretained)   IBOutlet NSComboBox *emailBox;
    
@property (unsafe_unretained)   IBOutlet NSButton *detailsButton;
@property (unsafe_unretained)   IBOutlet NSTextField *detailsLabel;
@property (nonatomic)           BOOL detailsShown;
    
@property (unsafe_unretained)   IBOutlet NSButton *sendDetailsCheckbox;
@property (unsafe_unretained)   IBOutlet NSButton *includeConsoleCheckbox;
    
@property (unsafe_unretained)   IBOutlet NSTabView *tabView;
@property (nonatomic, strong)   IBOutlet NSTabViewItem *tabSystem;
@property (nonatomic, strong)   IBOutlet NSTabViewItem *tabConsole;
@property (nonatomic, strong)   IBOutlet NSTabViewItem *tabCrash;
@property (nonatomic, strong)   IBOutlet NSTabViewItem *tabScript;
@property (nonatomic, strong)   IBOutlet NSTabViewItem *tabPreferences;
@property (nonatomic, strong)   IBOutlet NSTabViewItem *tabException;
@property (nonatomic, strong)   IBOutlet NSTabViewItem *tabDocuments;
    
@property (unsafe_unretained)   IBOutlet NSTableView *systemView;
@property (unsafe_unretained)   IBOutlet NSTextView *consoleView;
@property (unsafe_unretained)   IBOutlet NSTextView *crashesView;
@property (unsafe_unretained)   IBOutlet NSTextView *scriptView;
@property (unsafe_unretained)   IBOutlet NSTextView *preferencesView;
@property (unsafe_unretained)   IBOutlet NSTextView *exceptionView;
@property (unsafe_unretained)   IBOutlet NSTableView *documentsView;
{'fraction_non_alphanumeric': 0.08220582205822058, 'fraction_numerical': 0.005330053300533005, 'mean_word_length': 6.164464023494861, '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': '2487284', 'n_tokens_mistral': 1674, 'n_tokens_neox': 1526, 'n_words': 400}