<commit_before>#import <UIKit/UIKit.h>

@class FTPDFAssetRenderer;

@interface FTAssetRenderer : NSObject

@property (readonly, nonatomic) NSURL *URL;
@property (assign,   nonatomic) UIColor *targetColor;
@property (assign,   nonatomic) BOOL cache;

+ (NSString *)cacheDirectory;

- (id)initWithURL:(NSURL *)URL;

- (CGSize)targetSize;

// When caching is enabled and the image is used as a mask then an identifier
// *has* to be specified.
//
// For example, when generating button icons, you could use an identifier like
// `normal` or `highlighted`, depending on the state.
- (UIImage *)image;
- (UIImage *)imageWithCacheIdentifier:(NSString *)identifier;

// PRIVATE<commit_msg>Doh, actually retain the UIColor instance.<commit_after>#import <UIKit/UIKit.h>

@class FTPDFAssetRenderer;

@interface FTAssetRenderer : NSObject

@property (readonly, nonatomic) NSURL *URL;
@property (nonatomic) UIColor *targetColor;
@property (assign, nonatomic) BOOL cache;

+ (NSString *)cacheDirectory;

- (id)initWithURL:(NSURL *)URL;

- (CGSize)targetSize;

// When caching is enabled and the image is used as a mask then an identifier
// *has* to be specified.
//
// For example, when generating button icons, you could use an identifier like
// `normal` or `highlighted`, depending on the state.
- (UIImage *)image;
- (UIImage *)imageWithCacheIdentifier:(NSString *)identifier;

// PRIVATE
{'fraction_non_alphanumeric': 0.12092686459087618, 'fraction_numerical': 0.0, 'mean_word_length': 5.008695652173913, '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': '5290233', 'n_tokens_mistral': 435, 'n_tokens_neox': 416, 'n_words': 145}