<commit_before>:ruby
  venue ||= raise ArgumentError, "venue is required in view partial #{__FILE__}"


- content_for :css_insert do
  = stylesheet_link_tag 'forms'

- content_for :javascript_insert do
  = javascript_include_tag 'forms'


.venue-form
  = semantic_form_for venue, :html => { :id => 'venue-form' } do |f|
    = f.inputs 'Venue Details' do
      = f.input :title, :label => 'Venue Name'
      = f.input :street_address, :label => 'Street Address'
      = f.input :locality, :label => 'City'
      = f.input :region, :label => 'State'
      = f.input :postal_code, :label => 'Zip Code'
      = f.input :access_notes, :input_html => { :rows => 4 }, :label => 'Access Notes', :hint => "Details about accessing the venue or accessibility restrictions visitors may want to know about."

    = f.inputs 'Contact Details' do
      = f.input :url, :label => 'Website'
      = f.input :email
      = f.input :telephone

    = f.inputs 'Extra Details' do
      = f.input :description, :input_html => { :rows => 12 }, :hint => "Format text using #{link_to("Markdown", "http://www.simpleeditions.com/59001/markdown-an-introduction", :target => "_blank")} and HTML".html_safe
      = f.input :wifi, :label => "This venue has public wireless internet access"
      - unless venue.new_record?
        = f.input :closed, :label => "This venue is no longer open for business"

    %li.trap
      = label 'trap', 'field', "Leave this field blank or we'll think you're a robot."
      = text_field_tag 'trap_field', params[:trap_field]

    - if params[:from_event].present?
      = hidden_field_tag :from_event, params[:from_event]

    = f.actions do
      = f.action :submit, :label => 'Preview', :button_html => { :name => 'preview' }
      = f.action :submit<commit_msg>carry from_org param through in the venue form<commit_after>:ruby
  venue ||= raise ArgumentError, "venue is required in view partial #{__FILE__}"


- content_for :css_insert do
  = stylesheet_link_tag 'forms'

- content_for :javascript_insert do
  = javascript_include_tag 'forms'


.venue-form
  = semantic_form_for venue, :html => { :id => 'venue-form' } do |f|
    = f.inputs 'Venue Details' do
      = f.input :title, :label => 'Venue Name'
      = f.input :street_address, :label => 'Street Address'
      = f.input :locality, :label => 'City'
      = f.input :region, :label => 'State'
      = f.input :postal_code, :label => 'Zip Code'
      = f.input :access_notes, :input_html => { :rows => 4 }, :label => 'Access Notes', :hint => "Details about accessing the venue or accessibility restrictions visitors may want to know about."

    = f.inputs 'Contact Details' do
      = f.input :url, :label => 'Website'
      = f.input :email
      = f.input :telephone

    = f.inputs 'Extra Details' do
      = f.input :description, :input_html => { :rows => 12 }, :hint => "Format text using #{link_to("Markdown", "http://www.simpleeditions.com/59001/markdown-an-introduction", :target => "_blank")} and HTML".html_safe
      = f.input :wifi, :label => "This venue has public wireless internet access"
      - unless venue.new_record?
        = f.input :closed, :label => "This venue is no longer open for business"

    %li.trap
      = label 'trap', 'field', "Leave this field blank or we'll think you're a robot."
      = text_field_tag 'trap_field', params[:trap_field]

    - if params[:from_event].present?
      = hidden_field_tag :from_event, params[:from_event]

    - if params[:from_org].present?
      = hidden_field_tag :from_org, params[:from_org]

    = f.actions do
      = f.action :submit, :label => 'Preview', :button_html => { :name => 'preview' }
      = f.action :submit
{'fraction_non_alphanumeric': 0.14519650655021835, 'fraction_numerical': 0.004366812227074236, 'mean_word_length': 3.2815420560747666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1341896', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1153, 'n_words': 343}