<commit_before>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

:javascript
  $(document).ready(function () {
    var data = $.parseJSON( $('#contact_json').val() ),
        autocompleteInput = $("#contact_autocomplete");

    autocompleteInput.autoSuggest(data, {
      selectedItemProp: "name",
      searchObjProps: "name",
      asHtmlID: "contact_ids",
      keyDelay: 0,
      startText: '',
      emptyText: #{t('.no_results')}
      preFill: [{ 'name' : "#{params[:name]}",
                 'value' : "#{params[:contact_id]}"}]
      });

    autocompleteInput.focus();
  });

= hidden_field_tag :contact_json, @all_contacts_and_ids.to_json

#new_message_pane
  .span-12.last
    #facebox_header
      %h4
        = t('conversations.index.new_message')

    = form_for Conversation.new do |conversation|
      %br

      .span-2
        %h4
          = t('.to')
      .span-10.last
        = text_field_tag "contact_autocomplete"

      .span-2
        %h4
          = t('.subject')
      .span-10.last
        = conversation.text_field :subject

      .span-10.prepend-2.last
        = text_area_tag "conversation[text]", '', :rows => 5

      .text-right
        = conversation.submit t('.send'), :class => 'button'
        = link_to t('cancel'), conversations_path
<commit_msg>--amend<commit_after>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

:javascript
  $(document).ready(function () {
    var data = $.parseJSON( $('#contact_json').val() ),
        autocompleteInput = $("#contact_autocomplete");

    autocompleteInput.autoSuggest(data, {
      selectedItemProp: "name",
      searchObjProps: "name",
      asHtmlID: "contact_ids",
      keyDelay: 0,
      startText: '',
      emptyText: '#{t('.no_results')}',
      preFill: [{ 'name' : "#{params[:name]}",
                 'value' : "#{params[:contact_id]}"}]
      });

    autocompleteInput.focus();
  });

= hidden_field_tag :contact_json, @all_contacts_and_ids.to_json

#new_message_pane
  .span-12.last
    #facebox_header
      %h4
        = t('conversations.index.new_message')

    = form_for Conversation.new do |conversation|
      %br

      .span-2
        %h4
          = t('.to')
      .span-10.last
        = text_field_tag "contact_autocomplete"

      .span-2
        %h4
          = t('.subject')
      .span-10.last
        = conversation.text_field :subject

      .span-10.prepend-2.last
        = text_area_tag "conversation[text]", '', :rows => 5

      .text-right
        = conversation.submit t('.send'), :class => 'button'
        = link_to t('cancel'), conversations_path

{'fraction_non_alphanumeric': 0.15012540308133285, 'fraction_numerical': 0.015048369759942674, 'mean_word_length': 2.4341943419434195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7368812', 'n_tokens_mistral': 940, 'n_tokens_neox': 890, 'n_words': 176}