<commit_before>#import "Common.h"
#import "MWMDropDown.h"

namespace
{

CGFloat const kLeadingOffset = 16.;
CGFloat const kBottomOffset = 3.;
CGFloat const kTopOffset = 25.;

} // namespace

#pragma mark - _MWMDropDownView (private)

@interface _MWMDropDownView : UIView

@property (weak, nonatomic) IBOutlet UILabel * message;

@end

@implementation _MWMDropDownView

- (void)layoutSubviews
{
  CGFloat const superviewWidth = self.superview.width;
  self.message.width = superviewWidth - 2 * kLeadingOffset;
  [self.message sizeToFit];
  self.message.midX = self.superview.midX;
  self.height = kTopOffset + kBottomOffset + self.message.height;
  [super layoutSubviews];
}

@end

#pragma mark - MWMDropDown implementation

@interface MWMDropDown ()

@property (nonatomic) IBOutlet _MWMDropDownView * dropDown;
@property (weak, nonatomic) UIView * superview;

@end

@implementation MWMDropDown

#pragma mark - Public

- (instancetype)initWithSuperview:(UIView *)view
{
  self = [super init];
  if (self)
  {<commit_msg>[ios] Fixed drop down.<commit_after>#import "Common.h"
#import "MWMDropDown.h"

namespace
{

CGFloat const kLeadingOffset = 16.;
CGFloat const kBottomOffset = 3.;
CGFloat const kTopOffset = 25.;

} // namespace

#pragma mark - _MWMDropDownView (private)

@interface _MWMDropDownView : UIView

@property (weak, nonatomic) IBOutlet UILabel * message;

@end

@implementation _MWMDropDownView

- (void)layoutSubviews
{
  CGFloat const superviewWidth = self.superview.width;
  self.message.width = superviewWidth - 2 * kLeadingOffset;
  [self.message sizeToFit];
  self.size = {superviewWidth, kTopOffset + kBottomOffset + self.message.height};
  self.message.midX = self.superview.midX;
  [super layoutSubviews];
}

@end

#pragma mark - MWMDropDown implementation

@interface MWMDropDown ()

@property (nonatomic) IBOutlet _MWMDropDownView * dropDown;
@property (weak, nonatomic) UIView * superview;

@end

@implementation MWMDropDown

#pragma mark - Public

- (instancetype)initWithSuperview:(UIView *)view
{
  self = [super init];
  if (self)
  {
{'fraction_non_alphanumeric': 0.10857973824527388, 'fraction_numerical': 0.0058167716917111, 'mean_word_length': 4.931034482758621, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '519309', 'n_tokens_mistral': 750, 'n_tokens_neox': 709, 'n_words': 170}