<commit_before>import Ember from 'ember';
import layout from '../../templates/components/nypr-story/share-buttons';
import { shareUrl } from 'nypr-ui/helpers/share-url';

export default Ember.Component.extend({
  layout,
  classNames: ['btn-group'],
  actions: {
    popupShareWindow(destination) {
      let href = shareUrl([destination, {
        shareText: this.get('story.title'),
        shareUrl: this.get('story.url'),
        via: this.get('story.twitterHandle') || this.get('via'),
        twitterHeadline: this.get('story.twitterHeadline')
        }]);
      const heights = {
        'Twitter': 443,
        'Facebook': 620
      };

      if (href) {
        let features = `titlebar=no,close=no,width=600,height=${heights[destination]}`;
        window.open(href, '_blank', features);
      }
    }
  }
});<commit_msg>pass these args in a positional params to match updated signature<commit_after>import Ember from 'ember';
import layout from '../../templates/components/nypr-story/share-buttons';
import { shareUrl } from 'nypr-ui/helpers/share-url';

export default Ember.Component.extend({
  layout,
  classNames: ['btn-group'],
  actions: {
    popupShareWindow(destination) {
      let shareText = this.get('story.title');
      let shareUrl = this.get('story.url');
      let via = this.get('story.twitterHandle') || this.get('via');
      let twitterHeadline = this.get('story.twitterHeadline') || shareText;

      let href = shareUrl([destination, shareUrl, shareText, via, twitterHeadline]);
      const heights = {
        'Twitter': 443,
        'Facebook': 620
      };

      if (href) {
        let features = `titlebar=no,close=no,width=600,height=${heights[destination]}`;
        window.open(href, '_blank', features);
      }
    }
  }
});
{'fraction_non_alphanumeric': 0.15697346132128742, 'fraction_numerical': 0.010163749294184076, 'mean_word_length': 3.1401869158878504, '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': '3096607', 'n_tokens_mistral': 555, 'n_tokens_neox': 527, 'n_words': 111}