<commit_before>= tinymce_assets
%script{type: 'text/javascript', src: 'assets/tinymce/tinymce.js'}

#e_name
  = label :event, :name, 'Name (required)', class: 'field'
  = text_field :event, 'name', placeholder: 'Name', class: 'edit_text_field'

#e_image
  %p.field Image Upload
  = file_field :event, :image, id: 'image', accept: 'image/*'

- now = DateTime.now
- default_time = {hour: now.hour + 1, minute: 0, day: now.day, month: now.month, year: now.year}
#e_start_time
  = label :event, :start, 'Start Time', class: 'field'
  = datetime_select :event, :start, default: default_time, datetime_separator: '', time_separator: '', ampm: true, start_year: now.year

#e_end_time
  = label :event, :end, 'End Time', class: 'field'
  = datetime_select :event, :end, default: default_time, datetime_separator: '', time_separator: '', ampm: true, start_year: now.year

= hidden_field :event, :organization, value: Meetup::GROUP_NAME

#e_venue_name
  = label :event, :venue_name, 'Venue Name', class: 'field'
  = text_field :event, :venue_name, placeholder: 'Venue Name', class: 'edit_text_field'

#e_location
  %div= label_tag 'Location', 'Location', class: 'field'
  %div= text_field_tag :autocomplete, nil, placeholder: 'Enter your address', onFocus: 'geolocate();', class: 'edit_text_field'

  %div= label_tag 'Street Address', 'Street Address', class: 'field'
  %table<commit_msg>Datetime select boxes show pacific time.<commit_after>= tinymce_assets
%script{type: 'text/javascript', src: 'assets/tinymce/tinymce.js'}

#e_name
  = label :event, :name, 'Name (required)', class: 'field'
  = text_field :event, 'name', placeholder: 'Name', class: 'edit_text_field'

#e_image
  %p.field Image Upload
  = file_field :event, :image, id: 'image', accept: 'image/*'

- now = DateTime.now
- default_time = {hour: now.hour + 1, minute: 0, day: now.day, month: now.month, year: now.year}
#e_start_time
  = label :event, :start, 'Start Time', class: 'field'
  - Time.use_zone('Pacific Time (US & Canada)') do
    = datetime_select :event, :start, default: default_time, datetime_separator: '', time_separator: '', ampm: true, start_year: now.year

#e_end_time
  = label :event, :end, 'End Time', class: 'field'
  - Time.use_zone('Pacific Time (US & Canada)') do
    = datetime_select :event, :end, default: default_time, datetime_separator: '', time_separator: '', ampm: true, start_year: now.year

= hidden_field :event, :organization, value: Meetup::GROUP_NAME

#e_venue_name
  = label :event, :venue_name, 'Venue Name', class: 'field'
  = text_field :event, :venue_name, placeholder: 'Venue Name', class: 'edit_text_field'

#e_location
  %div= label_tag 'Location', 'Location', class: 'field'
  %div= text_field_tag :autocomplete, nil, placeholder: 'Enter your address', onFocus: 'geolocate();', class: 'edit_text_field'

  %div= label_tag 'Street Address', 'Street Address', class: 'field'
  %table
{'fraction_non_alphanumeric': 0.1588785046728972, 'fraction_numerical': 0.0013845621322256837, 'mean_word_length': 5.613272311212815, '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': '2256480', 'n_tokens_mistral': 1034, 'n_tokens_neox': 999, 'n_words': 280}