<commit_before>//
//  ArtUIStyleManager.h
//  ChangeTheme_OC
//
//  Created by weijingyun on 2017/8/22.
//  Copyright © 2017年 weijingyun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ArtUIStyle.h"
#import "UIImage+ArtDraw.h"

/**
 *  样式配置
 *  将UI相关抽离出来，统一管理和配置，支持从文件中导入和运行时调整
 */

extern NSString* const kArtUIStyleFontKey;
extern NSString* const kArtUIStyleColorKey;


// 内部存储对 document 做了相对路径处理，下载的配置请放在document 下
typedef enum : NSUInteger {
    EArtUIStyleTypeDefault,   // 应用默认的 stylePath = nil
    EArtUIStyleTypeBundle,    // Bundle   stylePath = BundlePath
    EArtUIStyleTypeStylePath, // 下载的文件夹 stylePath = 文件夹路径
} EArtUIStyleType;

@interface ArtUIStyleManager : NSObject

// 以下两字段记录当前配置
@property (nonatomic, assign) EArtUIStyleType styleType;
@property (nonatomic, copy) NSString *stylePath;
@property (nonatomic, strong,readonly) NSMutableDictionary* styles;
- (ArtUIStyle *)styleForKey:(NSString *)aKey;

#pragma mark - 外部使用
// 清理间隔 默认 60s 设置 < 1s 不清理
@property (nonatomic, assign) CGFloat clearInterval;

- (void)saveStrongSelf:(id)strongSelf block:(void(^)(id weakSelf))aBlock;

+ (instancetype)shared;
- (void)addEntriesFromPath:(NSString *)aPath;
- (void)reloadStylePath:(NSString *)aStylePath;
- (void)reloadStyleBundleName:(NSString *)aStyleBundleName;
- (void)reloadStyleBundle:(NSBundle *)aStyleBundle;

@end<commit_msg>去除不必要的接口暴露<commit_after>//
//  ArtUIStyleManager.h
//  ChangeTheme_OC
//
//  Created by weijingyun on 2017/8/22.
//  Copyright © 2017年 weijingyun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ArtUIStyle.h"
#import "UIImage+ArtDraw.h"

/**
 *  样式配置
 *  将UI相关抽离出来，统一管理和配置，支持从文件中导入和运行时调整
 */

extern NSString* const kArtUIStyleFontKey;
extern NSString* const kArtUIStyleColorKey;


// 内部存储对 document 做了相对路径处理，下载的配置请放在document 下
typedef enum : NSUInteger {
    EArtUIStyleTypeDefault,   // 应用默认的 stylePath = nil
    EArtUIStyleTypeBundle,    // Bundle   stylePath = BundlePath
    EArtUIStyleTypeStylePath, // 下载的文件夹 stylePath = 文件夹路径
} EArtUIStyleType;

@interface ArtUIStyleManager : NSObject

// 以下两字段记录当前配置
@property (nonatomic, assign) EArtUIStyleType styleType;
@property (nonatomic, copy) NSString *stylePath;
@property (nonatomic, strong,readonly) NSMutableDictionary* styles;
- (ArtUIStyle *)styleForKey:(NSString *)aKey;

#pragma mark - 外部使用
// 清理间隔 默认 60s 设置 < 1s 不清理
@property (nonatomic, assign) CGFloat clearInterval;

- (void)saveStrongSelf:(id)strongSelf block:(void(^)(id weakSelf))aBlock;

+ (instancetype)shared;
- (void)reloadStylePath:(NSString *)aStylePath;
- (void)reloadStyleBundleName:(NSString *)aStyleBundleName;
- (void)reloadStyleBundle:(NSBundle *)aStyleBundle;

@end
{'fraction_non_alphanumeric': 0.11950394588500564, 'fraction_numerical': 0.010522360015031942, 'mean_word_length': 5.234192037470726, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6957655', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1103, 'n_words': 197}