<commit_before>import Ember from 'ember';

export default Ember.Component.extend({
  tagName: 'time',
  moment:  null,
  fmt:     'YYYY-MM-DD',
  layout: Ember.Handlebars.compile('{{formatted}}'),

  attributeBindings: 'isoDate:datetime',

  formatted: function() {
    return moment(this.get('moment')).format(this.get('fmt'));
  }.property('moment', 'fmt'),

  isoDate: function() {
    return moment(this.get('moment')).format('YYYY-MM-DD');
  }.property('moment')
});<commit_msg>Added a link to docs for the fmt-moment component.<commit_after>// Check out the Moment.js documentation for different formatting options:
// http://momentjs.com/docs/#/displaying/format/

import Ember from 'ember';

export default Ember.Component.extend({
  tagName: 'time',
  moment:  null,
  fmt:     'YYYY-MM-DD',
  layout:  Ember.Handlebars.compile('{{formatted}}'),

  attributeBindings: 'isoDate:datetime',

  formatted: function() {
    return moment(this.get('moment')).format(this.get('fmt'));
  }.property('moment', 'fmt'),

  isoDate: function() {
    return moment(this.get('moment')).format('YYYY-MM-DD');
  }.property('moment')
});
{'fraction_non_alphanumeric': 0.18777679362267494, 'fraction_numerical': 0.0, 'mean_word_length': 4.707070707070707, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7292031', 'n_tokens_mistral': 373, 'n_tokens_neox': 361, 'n_words': 75}