<commit_before>//
//  PTKPaymentField.h
//  PTKPayment Example
//
//  Created by <NAME> on 1/22/13.
//  Copyright (c) 2013 Stripe. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PTKCard.h"
#import "PTKCardNumber.h"
#import "PTKCardExpiry.h"
#import "PTKCardCVC.h"
#import "PTKAddressZip.h"
#import "PTKUSAddressZip.h"

@class PTKView, PTKTextField;

@protocol PTKViewDelegate <NSObject>
@optional
- (void)paymentView:(PTKView *)paymentView withCard:(PTKCard *)card isValid:(BOOL)valid;
@end

IB_DESIGNABLE
@interface PTKView : UIView

- (BOOL)isValid;

@property (nonatomic, readonly) UIView *opaqueOverGradientView;
@property (nonatomic, readonly) PTKCardNumber *cardNumber;
@property (nonatomic, readonly) PTKCardExpiry *cardExpiry;
@property (nonatomic, readonly) PTKCardCVC *cardCVC;
@property (nonatomic, readonly) PTKAddressZip *addressZip;
@property (nonatomic, assign) IBInspectable UIEdgeInsets edgeInsets;
@property (nonatomic, strong) IBInspectable UIFont* font;
@property (nonatomic, strong) IBInspectable NSString* fontName;
@property (nonatomic, assign) IBInspectable CGFloat fontSize;
@property (nonatomic, strong) IBInspectable UIImage* backgroundImage;
@property (nonatomic, assign) IBInspectable CGFloat cardWidth;
@property (nonatomic, assign) IBInspectable CGFloat expiryWidth;
@property (nonatomic, assign) IBInspectable CGFloat cvcWidth;
@property (nonatomic, assign) IBInspectable CGFloat zipWidth;
@property (nonatomic, assign) IBInspectable CGFloat spacing;
@property (nonatomic, assign) IBInspectable CGFloat placeHolderSpacing;
@property (nonatomic, strong) IBInspectable UIColor* textColor;
@property (nonatomic, strong) IBInspectable UIColor* placeholderColor;
@property (nonatomic, strong) IBInspectable UIColor* goodColor;
@property (nonatomic, strong) IBInspectable UIColor* badColor;

@property (nonatomic, weak) IBOutlet id <PTKViewDelegate> delegate;
@property (readonly) PTKCard *card;

@end<commit_msg>exposed methods for subclassing<commit_after>//
//  PTKPaymentField.h
//  PTKPayment Example
//
//  Created by <NAME> on 1/22/13.
//  Copyright (c) 2013 Stripe. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PTKCard.h"
#import "PTKCardNumber.h"
#import "PTKCardExpiry.h"
#import "PTKCardCVC.h"
#import "PTKAddressZip.h"
#import "PTKUSAddressZip.h"

@class PTKView, PTKTextField;

@protocol PTKViewDelegate <NSObject>
@optional
- (void)paymentView:(PTKView *)paymentView withCard:(PTKCard *)card isValid:(BOOL)valid;
@end

IB_DESIGNABLE
@interface PTKView : UIView

- (BOOL)isValid;

@property (nonatomic, readonly) UIView *opaqueOverGradientView;
@property (nonatomic, readonly) PTKCardNumber *cardNumber;
@property (nonatomic, readonly) PTKCardExpiry *cardExpiry;
@property (nonatomic, readonly) PTKCardCVC *cardCVC;
@property (nonatomic, readonly) PTKAddressZip *addressZip;
@property (nonatomic, assign) IBInspectable UIEdgeInsets edgeInsets;
@property (nonatomic, strong) IBInspectable UIFont* font;
@property (nonatomic, strong) IBInspectable NSString* fontName;
@property (nonatomic, assign) IBInspectable CGFloat fontSize;
@property (nonatomic, strong) IBInspectable UIImage* backgroundImage;
@property (nonatomic, assign) IBInspectable CGFloat cardWidth;
@property (nonatomic, assign) IBInspectable CGFloat expiryWidth;
@property (nonatomic, assign) IBInspectable CGFloat cvcWidth;
@property (nonatomic, assign) IBInspectable CGFloat zipWidth;
@property (nonatomic, assign) IBInspectable CGFloat spacing;
@property (nonatomic, assign) IBInspectable CGFloat placeHolderSpacing;
@property (nonatomic, strong) IBInspectable UIColor* textColor;
@property (nonatomic, strong) IBInspectable UIColor* placeholderColor;
@property (nonatomic, strong) IBInspectable UIColor* goodColor;
@property (nonatomic, strong) IBInspectable UIColor* badColor;

@property (nonatomic, weak) IBOutlet id <PTKViewDelegate> delegate;
@property (readonly) PTKCard *card;

#pragma mark - protected methods -
- (void) resizeView;


@end
{'fraction_non_alphanumeric': 0.1073943661971831, 'fraction_numerical': 0.004527162977867203, 'mean_word_length': 7.497863247863248, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6570956', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1279, 'n_words': 358}