<commit_before>.project[itemscope itemtype="http://schema.org/CreativeWork" class=(custom_class if defined?(custom_class))]
  meta[itemprop="dateCreated" content=project.created_at.to_date]
  - if project.expired?
    .status_image
      = link_to project_by_slug_path(permalink: project.permalink), target: ( defined?(embed_link) ? '__blank' : '' ) do
        - if project.successful?
          = image_tag "successful.#{I18n.locale}.png"
        - elsif project.waiting_funds?
          = image_tag "waiting_confirmation.#{I18n.locale}.png"
        - elsif project.failed?
          = image_tag "not_successful.#{I18n.locale}.png"
        - else
          = ''
  .box
    p.black_box= project.category
    .cover
      = link_to project_by_slug_path(project), target: ( defined?(embed_link) ? '__blank' : '' ) do
        = image_tag project.display_image, itemprop: 'image'
    .project_content
      h4= link_to project_by_slug_path(project), target: ( defined?(embed_link) ? '__blank' : '' ), itemprop: 'url' do
        span[itemprop="name"]= project.name
      p.author
        = t('.by')
        |&nbsp;
        span[itemprop="author"]= project.user.name
      p.description[itemprop="description"]= truncate(project.headline, length: 140)
      p.where[itemprop="contentLocation"]
        - unless project.user.address_city.blank?
          = project.user.address_city
          - unless project.user.address_state.blank?
            | /
            = project.user.address_state
    .info_bar
      .status_bar
        .progress style="width: #{project.display_progress}%;"
      ul
        li
          - if project.in_time?
            h6= "#{project.time_to_go[:time]} #{project.time_to_go[:unit]}"
            p= "#{project.remaining_text}"
          - else
            h6= I18n.t("project.display_status.#{project.display_status}").capitalize
            p= project.display_expires_at<commit_msg>fixed some links to project that were using the project id instead of the permalink<commit_after>.project[itemscope itemtype="http://schema.org/CreativeWork" class=(custom_class if defined?(custom_class))]
  meta[itemprop="dateCreated" content=project.created_at.to_date]
  - if project.expired?
    .status_image
      = link_to project_by_slug_path(permalink: project.permalink), target: ( defined?(embed_link) ? '__blank' : '' ) do
        - if project.successful?
          = image_tag "successful.#{I18n.locale}.png"
        - elsif project.waiting_funds?
          = image_tag "waiting_confirmation.#{I18n.locale}.png"
        - elsif project.failed?
          = image_tag "not_successful.#{I18n.locale}.png"
        - else
          = ''
  .box
    p.black_box= project.category
    .cover
      = link_to project_by_slug_path(project.permalink), target: ( defined?(embed_link) ? '__blank' : '' ) do
        = image_tag project.display_image, itemprop: 'image'
    .project_content
      h4= link_to project_by_slug_path(project.permalink), target: ( defined?(embed_link) ? '__blank' : '' ), itemprop: 'url' do
        span[itemprop="name"]= project.name
      p.author
        = t('.by')
        |&nbsp;
        span[itemprop="author"]= project.user.name
      p.description[itemprop="description"]= truncate(project.headline, length: 140)
      p.where[itemprop="contentLocation"]
        - unless project.user.address_city.blank?
          = project.user.address_city
          - unless project.user.address_state.blank?
            | /
            = project.user.address_state
    .info_bar
      .status_bar
        .progress style="width: #{project.display_progress}%;"
      ul
        li
          - if project.in_time?
            h6= "#{project.time_to_go[:time]} #{project.time_to_go[:unit]}"
            p= "#{project.remaining_text}"
          - else
            h6= I18n.t("project.display_status.#{project.display_status}").capitalize
            p= project.display_expires_at
{'fraction_non_alphanumeric': 0.13108038914490527, 'fraction_numerical': 0.007168458781362007, 'mean_word_length': 2.7033175355450236, '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': '6629983', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1252, 'n_words': 195}