<commit_before>App.EditContactView = Ember.View.extend({
  tagName:      'form',
  templateName: 'app/templates/contacts/edit',

  init: function() {
    // create a new contact that's a duplicate of the contact in the parentView;
    // changes made to the duplicate won't be applied to the original unless
    // everything goes well in submitForm()
    var editableContact = App.Contact.create(this.get('parentView').get('contact'));
    this.set("contact", editableContact);
    this._super();
  },

  didInsertElement: function() {
    this._super();
    this.$('input:first').focus();<commit_msg>now using Ember.Resource.copy() to duplicate editable resource<commit_after>App.EditContactView = Ember.View.extend({
  tagName:      'form',
  templateName: 'app/templates/contacts/edit',

  init: function() {
    this._super();

    // Create a new contact that's a duplicate of the contact in the parentView;
    // Changes made to the duplicate won't be applied to the original unless
    // everything goes well in submitForm()
    this.set("contact", this.get('parentView').get('contact').copy());
  },

  didInsertElement: function() {
    this._super();
    this.$('input:first').focus();
{'fraction_non_alphanumeric': 0.13939899833055092, 'fraction_numerical': 0.0, 'mean_word_length': 3.7768924302788847, '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': '7582797', 'n_tokens_mistral': 344, 'n_tokens_neox': 334, 'n_words': 98}