<commit_before>"use strict";

var shared = require("./shared.js");

var EmbeddedSharePage = function() {
    this.url = "/embed/social-share";
    this.dummyTweetButton = element(by.css(".tweet.dummy_btn"));
    this.dummyFacebookLikeButton = element(by.css(".fb_like.dummy_btn"));

    this.get = function() {
        browser.get(this.url);
        return this;
    }

    this.clickDummyTweetButton = function() {
        this.dummyTweetButton.click();
    };

    this.getTwitterIframe = function() {
        return this.dummyTweetButton.element(by.css("iframe"));
    };

    this.clickDummyFacebookLikeButton = function() {
        this.dummyFacebookLikeButton.click();
    };

    this.getFacebookIframe = function() {
        return this.dummyFacebookLikeButton.element(by.css("iframe"));
    };
};

module.exports = EmbeddedSharePage;
<commit_msg>Fix Twitter share test not deterministic<commit_after>"use strict";

var shared = require("./shared.js");

var EmbeddedSharePage = function() {
    this.url = "/embed/social-share";
    this.dummyTweetButton = element(by.css(".tweet.dummy_btn"));
    this.dummyFacebookLikeButton = element(by.css(".fb_like.dummy_btn"));

    this.get = function() {
        browser.get(this.url);
        return this;
    }

    this.clickDummyTweetButton = function() {
        this.dummyTweetButton.click();
        browser.waitForAngular();
    };

    this.getTwitterIframe = function() {
        return this.dummyTweetButton.element(by.css("iframe"));
    };

    this.clickDummyFacebookLikeButton = function() {
        this.dummyFacebookLikeButton.click();
    };

    this.getFacebookIframe = function() {
        return this.dummyFacebookLikeButton.element(by.css("iframe"));
    };
};

module.exports = EmbeddedSharePage;

{'fraction_non_alphanumeric': 0.1445511010728402, 'fraction_numerical': 0.0, 'mean_word_length': 3.2801932367149758, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2280098', 'n_tokens_mistral': 556, 'n_tokens_neox': 528, 'n_words': 76}