<commit_before>- if current_user.present? and @bike.can_be_claimed_by(current_user)
  #claim-ownership-modal.modal.fade.hide
    .modal-header
      %button.close{ type: "button", :"data-dismiss" => "modal", :"aria-hidden" => "true" }
        &times;
      %h3
        Bike ownership
  
    .modal-body
      %p
        We're honored to have your #{@bike.type} on the Index.  
      %p
        Claim it so you can edit and upload pictures of it!
        
    .modal-footer
      %a.button-green{ href: "/ownerships/#{@bike.current_ownership.id}" }
        Claim #{@bike.type}

- if @bike.owner == current_user
  .show-bike-edit
    %p
      - if @bike.current_owner_exists
        - if @bike.recovered
          Thank you for recovering this #{@bike.type}!
        - elsif @bike.stolen
          We're really bummed that your #{@bike.type} was stolen.       
        - else
          Whoah, this awesome #{@bike.type} is yours!

        - if @bike.public_images.any?
          Add some more information about it.
        - else
          - if @bike.stolen
            Add a picture so people know what to look for!
          - else
            You should add a picture of it, so everyone can admire its beauty.
        = link_to  "Edit", edit_bike_path, class: "button-blue"
      - else
        You sent this bike to
        %em
          = @bike.current_ownership.owner_email
        but it hasn't been claimed yet, so you can update it.
        = link_to  "Edit", edit_bike_path, class: "button-blue"


.receptacle#bike-show
  %header.inner-recep.single-bike
    %h1
      - if @bike.stolen
        %strong.stolen-color
          - if @bike.recovered
            Recovered 
          Stolen
      = @bike.title

    %p.other-bikes
      = @bike.show_other_bikes
        

    %p.sharing-links
      = @bike.bike_show_twitter_and_website

- if @bike.public_images.any? or @bike.stock_photo_url.present?
  .single-bike-photos{ class: current_page?(root_path) && "stolen-background" }
    .receptacle
      .inner-recep
        = render 'bikes/photo'

.receptacle.overfloating
  .inner-recep.single-bike-info
    - if @stolen_record.present?
      .stolen-information
        .dl-holder
          - if @stolen_record.latitude.present? and @stolen_record.longitude.present?
            = render "bikes/stolen_map"
          .dl-horizontal
            - if @bike.recovered && @bike.creation_organization.present?
              %dt
                Recovered by
              %dd
                = @bike.creation_organization.name
              - if @stolen_record.creation_organization.present?
                - if @stolen_record.creation_organization.locations.present? && @stolen_record.creation_organization.locations.first.phone.present?
                  %dt
                    #{@stolen_record.creation_organization.name} phone
                    
                  %dd
                    %a{ href: "tell:#{@stolen_record.phone}" }
                      = @stolen_record.creation_organization.locations.first.display_phone

            - if @bike.phoneable_by(current_user)
              %dt.stolen-color
                Phone number
              %dd
                %a{ href: "tell:#{@stolen_record.phone}" }
                  = @stolen_record.display_phone
            = @bike.dl_list_item(@stolen_record.address, "Location")
            = @bike.dl_list_item(@stolen_record.locking_description, "Locking description")
            = @bike.dl_list_item(@stolen_record.lock_defeat_description, "Locking circumvented")
            = @bike.dl_list_item(@stolen_record.date_stolen.strftime("%m-%d-%Y"), "Date stolen")
            = @bike.dl_list_item(@stolen_record.theft_description, "Description")
            = @bike.dl_list_item(@stolen_record.police_report_number, "Police report #")
            = @bike.dl_list_item(@stolen_record.police_report_department, "Department & city")
            


    %header.with-subtitle
      .sharing-section
        .sharing-buttons
          = render "/shared/share_this"
      %h3
        - if @bike.stolen
          More
        Information about
        - if @bike.name && @bike.name.length > 1
          the bike named
          %strong
            = @bike.name
        - else
          this
          = @bike.title
          / = bike.dl_list_item(bike.type, title)<commit_msg>Don't try to display phone if it doesn't exist<commit_after>- if current_user.present? and @bike.can_be_claimed_by(current_user)
  #claim-ownership-modal.modal.fade.hide
    .modal-header
      %button.close{ type: "button", :"data-dismiss" => "modal", :"aria-hidden" => "true" }
        &times;
      %h3
        Bike ownership
  
    .modal-body
      %p
        We're honored to have your #{@bike.type} on the Index.  
      %p
        Claim it so you can edit and upload pictures of it!
        
    .modal-footer
      %a.button-green{ href: "/ownerships/#{@bike.current_ownership.id}" }
        Claim #{@bike.type}

- if @bike.owner == current_user
  .show-bike-edit
    %p
      - if @bike.current_owner_exists
        - if @bike.recovered
          Thank you for recovering this #{@bike.type}!
        - elsif @bike.stolen
          We're really bummed that your #{@bike.type} was stolen.       
        - else
          Whoah, this awesome #{@bike.type} is yours!

        - if @bike.public_images.any?
          Add some more information about it.
        - else
          - if @bike.stolen
            Add a picture so people know what to look for!
          - else
            You should add a picture of it, so everyone can admire its beauty.
        = link_to  "Edit", edit_bike_path, class: "button-blue"
      - else
        You sent this bike to
        %em
          = @bike.current_ownership.owner_email
        but it hasn't been claimed yet, so you can update it.
        = link_to  "Edit", edit_bike_path, class: "button-blue"


.receptacle#bike-show
  %header.inner-recep.single-bike
    %h1
      - if @bike.stolen
        %strong.stolen-color
          - if @bike.recovered
            Recovered 
          Stolen
      = @bike.title

    %p.other-bikes
      = @bike.show_other_bikes
        

    %p.sharing-links
      = @bike.bike_show_twitter_and_website

- if @bike.public_images.any? or @bike.stock_photo_url.present?
  .single-bike-photos{ class: current_page?(root_path) && "stolen-background" }
    .receptacle
      .inner-recep
        = render 'bikes/photo'

.receptacle.overfloating
  .inner-recep.single-bike-info
    - if @stolen_record.present?
      .stolen-information
        .dl-holder
          - if @stolen_record.latitude.present? and @stolen_record.longitude.present?
            = render "bikes/stolen_map"
          .dl-horizontal
            - if @bike.recovered && @bike.creation_organization.present?
              %dt
                Recovered by
              %dd
                = @bike.creation_organization.name
              - if @stolen_record.creation_organization.present?
                - if @stolen_record.creation_organization.locations.present? && @stolen_record.creation_organization.locations.first.phone.present?
                  %dt
                    #{@stolen_record.creation_organization.name} phone
                    
                  %dd
                    %a{ href: "tell:#{@stolen_record.phone}" }
                      = @stolen_record.creation_organization.locations.first.display_phone

            - if @bike.phoneable_by(current_user) && @stolen_record.phone.present?
              %dt.stolen-color
                Phone number
              %dd
                %a{ href: "tell:#{@stolen_record.phone}" }
                  = @stolen_record.display_phone
            = @bike.dl_list_item(@stolen_record.address, "Location")
            = @bike.dl_list_item(@stolen_record.locking_description, "Locking description")
            = @bike.dl_list_item(@stolen_record.lock_defeat_description, "Locking circumvented")
            = @bike.dl_list_item(@stolen_record.date_stolen.strftime("%m-%d-%Y"), "Date stolen")
            = @bike.dl_list_item(@stolen_record.theft_description, "Description")
            = @bike.dl_list_item(@stolen_record.police_report_number, "Police report #")
            = @bike.dl_list_item(@stolen_record.police_report_department, "Department & city")
            


    %header.with-subtitle
      .sharing-section
        .sharing-buttons
          = render "/shared/share_this"
      %h3
        - if @bike.stolen
          More
        Information about
        - if @bike.name && @bike.name.length > 1
          the bike named
          %strong
            = @bike.name
        - else
          this
          = @bike.title
          / = bike.dl_list_item(bike.type, title)
{'fraction_non_alphanumeric': 0.10667584308327598, 'fraction_numerical': 0.0009176416609314062, 'mean_word_length': 1.8728171334431631, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '219246', 'n_tokens_mistral': 2832, 'n_tokens_neox': 2696, 'n_words': 524}