<commit_before>// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

#ifndef BRIGHTRAY_BROWSER_MAC_COCOA_NOTIFICATION_H_
#define BRIGHTRAY_BROWSER_MAC_COCOA_NOTIFICATION_H_

#import <Foundation/Foundation.h>

#include <string>

#include "base/mac/scoped_nsobject.h"
#include "brightray/browser/notification.h"

namespace brightray {

class CocoaNotification : public Notification {
 public:
  CocoaNotification(NotificationDelegate* delegate,
                    NotificationPresenter* presenter);
  ~CocoaNotification();

  // Notification:
  void Show(const base::string16& title,
            const base::string16& msg,
            const std::string& tag,
            const GURL& icon_url,
            const SkBitmap& icon,
            bool silent,
            const bool has_reply,
            const base::string16 reply_placeholder) override;
  void Dismiss() override;

  void NotificationDisplayed();
  void NotificationReplied(const std::string reply);

  NSUserNotification* notification() const { return notification_; }

 private:
  base::scoped_nsobject<NSUserNotification> notification_;

  DISALLOW_COPY_AND_ASSIGN(CocoaNotification);
};

}  // namespace brightray

#endif  // BRIGHTRAY_BROWSER_MAC_COCOA_NOTIFICATION_H_<commit_msg>Fix reference typed reply placeholder<commit_after>// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

#ifndef BRIGHTRAY_BROWSER_MAC_COCOA_NOTIFICATION_H_
#define BRIGHTRAY_BROWSER_MAC_COCOA_NOTIFICATION_H_

#import <Foundation/Foundation.h>

#include <string>

#include "base/mac/scoped_nsobject.h"
#include "brightray/browser/notification.h"

namespace brightray {

class CocoaNotification : public Notification {
 public:
  CocoaNotification(NotificationDelegate* delegate,
                    NotificationPresenter* presenter);
  ~CocoaNotification();

  // Notification:
  void Show(const base::string16& title,
            const base::string16& msg,
            const std::string& tag,
            const GURL& icon_url,
            const SkBitmap& icon,
            bool silent,
            const bool has_reply,
            const base::string16& reply_placeholder) override;
  void Dismiss() override;

  void NotificationDisplayed();
  void NotificationReplied(const std::string reply);

  NSUserNotification* notification() const { return notification_; }

 private:
  base::scoped_nsobject<NSUserNotification> notification_;

  DISALLOW_COPY_AND_ASSIGN(CocoaNotification);
};

}  // namespace brightray

#endif  // BRIGHTRAY_BROWSER_MAC_COCOA_NOTIFICATION_H_
{'fraction_non_alphanumeric': 0.08249346771183277, 'fraction_numerical': 0.007465472191116088, 'mean_word_length': 3.8994515539305303, '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': '1875134', 'n_tokens_mistral': 824, 'n_tokens_neox': 777, 'n_words': 197}