<commit_before>import Ember from 'ember';
import loadAll from 'ember-osf/utils/load-relationship';

export default Ember.Controller.extend({
    fullScreenMFR: false,
    expandedAuthors: true,
    expandShare: false,
    twitterHref: Ember.computed('model', function() {
        return 'https://twitter.com/intent/tweet?url=' + window.location.href + '&text=' + this.get('model.title') + '&via=OSFramework';
    }),
    facebookHref: Ember.computed('model', function() {
        return 'https://www.facebook.com/sharer/sharer.php?u=' + window.location.href;
    }),
    linkedinHref: Ember.computed('model', function() {
        return 'https://www.linkedin.com/cws/share?url=' + window.location.href + '&title=' + this.get('model.title');
    }),
    emailHref: Ember.computed('model', function() {
        return 'mailto:?subject=' + this.get('model.title') + '&body=' + window.location.href;
    }),
    // The currently selected file (defaults to primary)
    activeFile: null,

    hasTag: Ember.computed('model.tags', function() {
        return this.get('model.tags').length;
    }),

    getAuthors: Ember.observer('model', function() {
        // Cannot be called until preprint has loaded!
        var model = this.get('model');
        if (!model) return [];<commit_msg>twitter works<commit_after>import Ember from 'ember';
import loadAll from 'ember-osf/utils/load-relationship';

export default Ember.Controller.extend({
    fullScreenMFR: false,
    expandedAuthors: true,
    expandShare: false,
    twitterHref: Ember.computed('model', function() {
        return encodeURI('https://twitter.com/intent/tweet?url=' + window.location.href + '&text=' + this.get('model.title') + '&via=OSFramework');
    }),
    facebookHref: Ember.computed('model', function() {
        return encodeURI('https://www.facebook.com/sharer/sharer.php?u=' + window.location.href);
    }),
    linkedinHref: Ember.computed('model', function() {
        return encodeURI('https://www.linkedin.com/cws/share?url=' + window.location.href + '&title=' + this.get('model.title'));
    }),
    emailHref: Ember.computed('model', function() {
        return encodeURI('mailto:?subject=' + this.get('model.title') + '&body=' + window.location.href);
    }),
    // The currently selected file (defaults to primary)
    activeFile: null,

    hasTag: Ember.computed('model.tags', function() {
        return this.get('model.tags').length;
    }),

    getAuthors: Ember.observer('model', function() {
        // Cannot be called until preprint has loaded!
        var model = this.get('model');
        if (!model) return [];
{'fraction_non_alphanumeric': 0.17024539877300612, 'fraction_numerical': 0.0, 'mean_word_length': 3.529513888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, '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': '6243246', 'n_tokens_mistral': 814, 'n_tokens_neox': 793, 'n_words': 159}