<commit_before>//
//  JCDownloadAgent.h
//  JCNetworking
//
//  Created by ChenJianjun on 16/5/21.
//  Copyright © 2016 Boych<https://github.com/Boych>. All rights reserved.
//

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

@class JCDownloadItem;

/** 文件下载网络请求类 */
@interface JCDownloadAgent : NSObject<JCDownloadOperationProtocol>

/** 设置自动暂停并生成resumeData的最小文件大小，默认为2M */
@property (nonatomic, assign) int64_t minFileSizeForProducingResumeData;

+ (instancetype)sharedAgent;

/** 判断文件是否下载 */
- (BOOL)isFileDownloaded:(JCDownloadItem *)downloadItem;

/** 删除下载文件 */
- (void)removeDownloadFile:(JCDownloadItem *)downloadItem;

@end<commit_msg>update comments<commit_after>//
//  JCDownloadAgent.h
//  JCNetworking
//
//  Created by ChenJianjun on 16/5/21.
//  Copyright © 2016 Boych<https://github.com/Boych>. All rights reserved.
//

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

@class JCDownloadItem;

/** 文件下载网络请求类 */
@interface JCDownloadAgent : NSObject<JCDownloadOperationProtocol>

/** 设置自动暂停并生成resumeData的最小文件大小，默认为2M */
@property (nonatomic, assign) int64_t minFileSizeForProducingResumeData;

+ (instancetype)sharedAgent;

/** 判断文件是否下载 */
- (BOOL)isFileDownloaded:(JCDownloadItem *)downloadItem;

/** 删除下载文件
 * @param downloadItem 下载项，对应下载任务未停止时禁止调用该方法，防止删除临时文件时与系统写入/删除操作冲突
 */
- (void)removeDownloadFile:(JCDownloadItem *)downloadItem;

@end
{'fraction_non_alphanumeric': 0.13546099290780142, 'fraction_numerical': 0.01702127659574468, 'mean_word_length': 5.442922374429224, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 23, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5552659', 'n_tokens_mistral': 605, 'n_tokens_neox': 617, 'n_words': 81}