<commit_before>import Ember from 'ember';
import { linkify } from 'ember-linkify/helpers/linkify';

export default Ember.Controller.extend({
  photos: Ember.computed.map('model.posts', function(post) {
    let date = moment(post.get('createdAt')).format('DD.MM.');
    let body = linkify(post.get('body'));

    let title = `${date} - ${body}`;
    let w = 800;
    let h = 600;
    let src = post.get('image');
    let createdAt = post.get('createdAt');

    return { src, w, h, title, createdAt };
  }),

  photosSorted: Ember.computed.sort('photos', (a, b) => {
    return a.createdAt < b.createdAt;
  })
});
<commit_msg>Quick fix to have good image size ratio in most cases.<commit_after>import Ember from 'ember';
import { linkify } from 'ember-linkify/helpers/linkify';

export default Ember.Controller.extend({
  photos: Ember.computed.map('model.posts', function(post) {
    let date = moment(post.get('createdAt')).format('DD.MM.');
    let body = linkify(post.get('body'));

    let title = `${date} - ${body}`;
    let w = 600;
    let h = 338;
    let src = post.get('image');
    let createdAt = post.get('createdAt');

    return { src, w, h, title, createdAt };
  }),

  photosSorted: Ember.computed.sort('photos', (a, b) => {
    return a.createdAt < b.createdAt;
  })
});

{'fraction_non_alphanumeric': 0.1792086889061288, 'fraction_numerical': 0.009309542280837859, 'mean_word_length': 3.5422535211267605, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4919009', 'n_tokens_mistral': 451, 'n_tokens_neox': 440, 'n_words': 108}