<commit_before>//
//  SGFFFrame.h
//  SGPlayer
//
//  Created by Single on 06/01/2017.
//  Copyright © 2017 single. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, SGFFFrameType) {
    SGFFFrameTypeVideo,
    SGFFFrameTypeAVYUVVideo,
    SGFFFrameTypeCVYUVVideo,
    SGFFFrameTypeAudio,
    SGFFFrameTypeSubtitle,
    SGFFFrameTypeArtwork,
};

@class SGFFFrame;

@protocol SGFFFrameDelegate <NSObject>

- (void)frameDidStartPlaying:(SGFFFrame *)frame;
- (void)frameDidStopPlaying:(SGFFFrame *)frame;
- (void)frameDidCancel:(SGFFFrame *)frame;

@end

@interface SGFFFrame : NSObject

@property (nonatomic, weak) id <SGFFFrameDelegate> delegate;
@property (nonatomic, assign, readonly) BOOL playing;

@property (nonatomic, assign) SGFFFrameType type;
@property (nonatomic, assign) NSTimeInterval position;
@property (nonatomic, assign) NSTimeInterval duration;
@property (nonatomic, assign, readonly) int size;

- (void)startPlaying;
- (void)stopPlaying;
- (void)cancel;

@end


@interface SGFFSubtileFrame : SGFFFrame

@end


@interface SGFFArtworkFrame : SGFFFrame

@property (nonatomic, strong) NSData * picture;

@end
<commit_msg>SGFFFrame update<commit_after>//
//  SGFFFrame.h
//  SGPlayer
//
//  Created by Single on 06/01/2017.
//  Copyright © 2017 single. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, SGFFFrameType) {
    SGFFFrameTypeVideo,
    SGFFFrameTypeAVYUVVideo,
    SGFFFrameTypeCVYUVVideo,
    SGFFFrameTypeAudio,
    SGFFFrameTypeSubtitle,
    SGFFFrameTypeArtwork,
};

@class SGFFFrame;

@protocol SGFFFrameDelegate <NSObject>

- (void)frameDidStartPlaying:(SGFFFrame *)frame;
- (void)frameDidStopPlaying:(SGFFFrame *)frame;
- (void)frameDidCancel:(SGFFFrame *)frame;

@end

@interface SGFFFrame : NSObject

@property (nonatomic, weak) id <SGFFFrameDelegate> delegate;
@property (nonatomic, assign, readonly) BOOL playing;

@property (nonatomic, assign) SGFFFrameType type;
@property (nonatomic, assign) NSTimeInterval position;
@property (nonatomic, assign) NSTimeInterval duration;
@property (nonatomic, assign, readonly) int size;
@property (nonatomic, assign) int packetSize;

- (void)startPlaying;
- (void)stopPlaying;
- (void)cancel;

@end


@interface SGFFSubtileFrame : SGFFFrame

@end


@interface SGFFArtworkFrame : SGFFFrame

@property (nonatomic, strong) NSData * picture;

@end

{'fraction_non_alphanumeric': 0.1124111993313832, 'fraction_numerical': 0.010029251984956121, 'mean_word_length': 5.418230563002681, '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': '6435017', 'n_tokens_mistral': 875, 'n_tokens_neox': 783, 'n_words': 188}