<commit_before>var custom_markdown = (function () {

var exports = {};

(function () {
    // Javascript for bugdown.StreamSubscribeButton

    // A map of stream names to ids to select inline subscribe node without
    // needing to escape the CSS selectors.
    var inline_subscribe_id_map = {};

    function add_sub(stream_name, $status_message) {
        channel.post({
            url: '/users/me/subscriptions',
            data: {
                subscriptions: JSON.stringify([{'name': stream_name}])
            }
        }).then(
            function (data) {
                if (!$.isEmptyObject(data.already_subscribed)) {
                    // Display the canonical stream capitalization.
                    var true_stream_name = data.already_subscribed[page_params.email][0];
                    ui.report_success("Already subscribed to " + true_stream_name,
                                      $status_message);
                }
            }, function (xhr) {
                ui.report_error("Error adding subscription", xhr, $status_message);
            }<commit_msg>Fix subscription button in notification bot announcements.<commit_after>var custom_markdown = (function () {

var exports = {};

(function () {
    // Javascript for bugdown.StreamSubscribeButton

    // A map of stream names to ids to select inline subscribe node without
    // needing to escape the CSS selectors.
    var inline_subscribe_id_map = {};

    function add_sub(stream_name, $status_message) {
        channel.post({
            url: '/json/users/me/subscriptions',
            data: {
                subscriptions: JSON.stringify([{'name': stream_name}])
            }
        }).then(
            function (data) {
                if (!$.isEmptyObject(data.already_subscribed)) {
                    // Display the canonical stream capitalization.
                    var true_stream_name = data.already_subscribed[page_params.email][0];
                    ui.report_success("Already subscribed to " + true_stream_name,
                                      $status_message);
                }
            }, function (xhr) {
                ui.report_error("Error adding subscription", xhr, $status_message);
            }
{'fraction_non_alphanumeric': 0.09847806624888093, 'fraction_numerical': 0.0008952551477170994, 'mean_word_length': 1.8617157490396927, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4598917', 'n_tokens_mistral': 574, 'n_tokens_neox': 535, 'n_words': 136}