<commit_before>//
//  AMBubbleGlobals.h
//  BubbleTableDemo
//
//  Created by <NAME> on 30/06/13.
//  Copyright (c) 2013 <NAME>. All rights reserved.
//

typedef enum {
	AMBubbleTableStyleDefault,
	AMBubbleTableStyleSquare,
	AMBubbleTableStyleFlat
} AMBubbleTableStyle;

typedef enum {
	AMBubbleCellTimestamp,
	AMBubbleCellSent,
	AMBubbleCellReceived
} AMBubbleCellType;

typedef enum {
	AMBubbleAccessoryUp,
	AMBubbleAccessoryDown
} AMBubbleAccessoryPosition;

#define kMessageTextWidth	(UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation)) ? 380.0f : 180.0f

#ifdef __IPHONE_6_0
# define ALIGN_CENTER NSTextAlignmentCenter
#else
# define ALIGN_CENTER UITextAlignmentCenter
#endif

@protocol AMBubbleTableDataSource <NSObject>
@required
- (NSInteger)numberOfRows;
- (AMBubbleCellType)cellTypeForRowAtIndexPath:(NSIndexPath *)indexPath;
- (NSString *)textForRowAtIndexPath:(NSIndexPath *)indexPath;
- (NSDate *)timestampForRowAtIndexPath:(NSIndexPath *)indexPath;
@optional
- (UIImage*)avatarForRowAtIndexPath:(NSIndexPath *)indexPath;
- (NSString*)usernameForRowAtIndexPath:(NSIndexPath *)indexPath;
- (UIColor*)usernameColorForRowAtIndexPath:(NSIndexPath *)indexPath;
@end

@protocol AMBubbleTableDelegate <NSObject>
- (void)didSendText:(NSString*)text;
@end

@protocol AMBubbleAccessory <NSObject>
@required
- (id)setOptions:(NSDictionary*)options;
- (void)setupView:(NSDictionary*)params;
@end

/* Options */

// Enables the short timestamp for every single message
FOUNDATION_EXPORT NSString *const AMOptionsTimestampEachMessage;

// Short Timestamp font
FOUNDATION_EXPORT NSString *const AMOptionsTimestampShortFont;

// Full timestamp font<commit_msg>Fixed issue 4<commit_after>//
//  AMBubbleGlobals.h
//  BubbleTableDemo
//
//  Created by <NAME> on 30/06/13.
//  Copyright (c) 2013 <NAME>. All rights reserved.
//

typedef enum {
	AMBubbleTableStyleDefault,
	AMBubbleTableStyleSquare,
	AMBubbleTableStyleFlat
} AMBubbleTableStyle;

typedef enum {
	AMBubbleCellTimestamp,
	AMBubbleCellSent,
	AMBubbleCellReceived
} AMBubbleCellType;

typedef enum {
	AMBubbleAccessoryUp,
	AMBubbleAccessoryDown
} AMBubbleAccessoryPosition;

#define kMessageTextWidth	(UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation)) ? 380.0f : 180.0f

#ifdef __IPHONE_6_0
# define ALIGN_CENTER NSTextAlignmentCenter
#else
# define ALIGN_CENTER UITextAlignmentCenter
#endif

@protocol AMBubbleTableDataSource <NSObject>
@required
- (NSInteger)numberOfRows;
- (AMBubbleCellType)cellTypeForRowAtIndexPath:(NSIndexPath *)indexPath;
- (NSString *)textForRowAtIndexPath:(NSIndexPath *)indexPath;
- (NSDate *)timestampForRowAtIndexPath:(NSIndexPath *)indexPath;
@optional
- (UIImage*)avatarForRowAtIndexPath:(NSIndexPath *)indexPath;
- (NSString*)usernameForRowAtIndexPath:(NSIndexPath *)indexPath;
- (UIColor*)usernameColorForRowAtIndexPath:(NSIndexPath *)indexPath;
@end

@protocol AMBubbleTableDelegate <NSObject>
- (void)didSendText:(NSString*)text;
@end

@protocol AMBubbleAccessory <NSObject>
@required
- (void)setOptions:(NSDictionary*)options;
- (void)setupView:(NSDictionary*)params;
@end

/* Options */

// Enables the short timestamp for every single message
FOUNDATION_EXPORT NSString *const AMOptionsTimestampEachMessage;

// Short Timestamp font
FOUNDATION_EXPORT NSString *const AMOptionsTimestampShortFont;

// Full timestamp font
{'fraction_non_alphanumeric': 0.10143198090692124, 'fraction_numerical': 0.012231503579952268, 'mean_word_length': 7.361596009975062, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4635393', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1072, 'n_words': 209}