<commit_before><% content_for :html_description do %><%= @html_description %><% end %>
<% content_for :html_title do %><%= @html_title %><% end %>

<% @months.map{|m| m.events.where(eventable: @federal_state).where(event_type: EventType.find_by_name('Ferien'))}.flatten.uniq.each do |event| %>
  <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "EducationEvent",
      "name": "<%= event.summary %>",
      "startDate" : "<%= event.starts_on.to_time.utc.iso8601 %>",
      "endDate" : "<%= event.ends_on.to_time.utc.iso8601 %>",
      "location" : {
        "@type" : "Place",
        "name" : "<%= @federal_state %>",
        "address" : "<%= @federal_state %>, <%= @federal_state.country %>"
      }
    }
  </script>
<% end %>

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [{
    "@type": "ListItem",
    "position": 1,
    "item": {
      "@id": "<%= request.protocol + request.host_with_port + federal_state_path(@federal_state) %>",
      "name": "<%= @federal_state %>"
    }
  },{
    "@type": "ListItem",
    "position": 2,
    "item": {
      "@id": "<%= request.protocol + request.host_with_port + city_path(@city) %>",
      "name": "<%= @city %>"
    }
  }]
}
</script>

<ol class="breadcrumb">
  <li><%= link_to "Startseite", root_path %></li>
  <li><%= link_to @federal_state, @federal_state %></li>
  <li><%= link_to @city, @city %></li>
  <li class="active"><%= @school %></li>
</ol>

<div class="page-header">
  <h1>
    Schulferien <%= @school %>
    <small><%= @city %> (<%= @city.federal_state %>)</small>
  </h1>
</div>

<% cache(['keine Feiertage hinterlegt', @months, @federal_state]) do %>
  <% if @year && @federal_state.events.where(starts_on: Date.parse("01.01.#{@year.value}")..Date.parse("31.12.#{@year.value}")).where(event_type: EventType.find_by_name('Feiertage')).none? %>
    <div class="alert alert-danger" role="alert">Für diesen Zeitraum wurden noch keine gesetzlichen Feiertage hinterlegt.</div>
<% end %>

<div class="alert alert-danger" role="alert">Für diese Schule sind in unserer Datenbank keine beweglichen Ferientage hinterlegt. Entsprechend ist die Aufstellung unvollständig!</div>

<div class="row">
  <div class="col-md-12">
    <p>Für die Urlaubsplanung von Nicht-Eltern/Schülern finden Sie in der <%= link_to "Invers-Ansicht von #{@city.federal_state}", federal_state_path(@federal_state, modus: 'invers') %> eine Übersicht, die Ihnen die Zeiten mit den günstigsten Reiseterminen darstellt.</p>
  </div>
</div>

<div class="row">
  <div class="col-md-9">
    <%= render partial: "shared/months_matrix", locals: {months: @months, federal_state: @federal_state, religion: @religion, modus: @modus} %>
  </div>
  <div class="col-md-3">
    <address>
      <strong><%= @school.address_line1 %></strong><br>
      <% if !@school.address_line2.blank? %><%= @school.address_line2 %><br><% end %>
      <% if !@school.street.blank? %><%= @school.street %><br><% end %>
      <% if !@school.city.blank? %><%= @school.zip_code %> <%= @school.city %><br><% end %>
      <% if !@school.phone_number.blank? %><abbr title="Telefon">Tel.:</abbr> <%= @school.phone_number %><br><% end %>
      <% if !@school.fax_number.blank? %><abbr title="Telefax">Fax.:</abbr> <%= @school.fax_number %><% end %>
    </address>

    <address>
      <% if !@school.email %>
      <a href="mailto:<%= @school.email %>"><%= @school.email %></a><br>
      <% end %>
      <% if !@school.homepage %>
      <a href="<%= @school.homepage %>"><%= @school.homepage %></a>
      <% end %>
    </address>

    <p>
      <a href="https://maps.google.com/maps?q=<%= "#{URI.encode(@school.komma_seperated_address)}" %>&hl=de&t=m" class="thumbnail">
        <img src="http://maps.googleapis.com/maps/api/staticmap?center=<%= URI.encode(@school.komma_seperated_address) %>&markers=color:blue%7Clabel:S%7C<%= URI.encode(@school.komma_seperated_address) %>&zoom=12&size=250x250&sensor=false" alt="Google Maps Landkarte mit der Position dieser Schule" width="250" height="250">
      </a>
    </p>
    <h2>Schulen in <%= @city %></h2>
    <ul>
      <% @city.schools.each do |school| %>
        <% if @school != school %>
          <li><%= link_to school, school %></li>
        <% else %>
          <li><%= school %></li>
        <% end %>
      <% end %>
    </ul>
  </div>
</div>
<% end %><commit_msg>Fixed a cache bug.<commit_after><% content_for :html_description do %><%= @html_description %><% end %>
<% content_for :html_title do %><%= @html_title %><% end %>

<% @months.map{|m| m.events.where(eventable: @federal_state).where(event_type: EventType.find_by_name('Ferien'))}.flatten.uniq.each do |event| %>
  <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "EducationEvent",
      "name": "<%= event.summary %>",
      "startDate" : "<%= event.starts_on.to_time.utc.iso8601 %>",
      "endDate" : "<%= event.ends_on.to_time.utc.iso8601 %>",
      "location" : {
        "@type" : "Place",
        "name" : "<%= @federal_state %>",
        "address" : "<%= @federal_state %>, <%= @federal_state.country %>"
      }
    }
  </script>
<% end %>

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [{
    "@type": "ListItem",
    "position": 1,
    "item": {
      "@id": "<%= request.protocol + request.host_with_port + federal_state_path(@federal_state) %>",
      "name": "<%= @federal_state %>"
    }
  },{
    "@type": "ListItem",
    "position": 2,
    "item": {
      "@id": "<%= request.protocol + request.host_with_port + city_path(@city) %>",
      "name": "<%= @city %>"
    }
  }]
}
</script>

<ol class="breadcrumb">
  <li><%= link_to "Startseite", root_path %></li>
  <li><%= link_to @federal_state, @federal_state %></li>
  <li><%= link_to @city, @city %></li>
  <li class="active"><%= @school %></li>
</ol>

<div class="page-header">
  <h1>
    Schulferien <%= @school %>
    <small><%= @city %> (<%= @city.federal_state %>)</small>
  </h1>
</div>

<% if @year && @federal_state.events.where(starts_on: Date.parse("01.01.#{@year.value}")..Date.parse("31.12.#{@year.value}")).where(event_type: EventType.find_by_name('Feiertage')).none? %>
  <div class="alert alert-danger" role="alert">Für diesen Zeitraum wurden noch keine gesetzlichen Feiertage hinterlegt.</div>
<% end %>

<div class="alert alert-danger" role="alert">Für diese Schule sind in unserer Datenbank keine beweglichen Ferientage hinterlegt. Entsprechend ist die Aufstellung unvollständig!</div>

<div class="row">
  <div class="col-md-12">
    <p>Für die Urlaubsplanung von Nicht-Eltern/Schülern finden Sie in der <%= link_to "Invers-Ansicht von #{@city.federal_state}", federal_state_path(@federal_state, modus: 'invers') %> eine Übersicht, die Ihnen die Zeiten mit den günstigsten Reiseterminen darstellt.</p>
  </div>
</div>

<div class="row">
  <div class="col-md-9">
    <%= render partial: "shared/months_matrix", locals: {months: @months, federal_state: @federal_state, religion: @religion, modus: @modus} %>
  </div>
  <div class="col-md-3">
    <address>
      <strong><%= @school.address_line1 %></strong><br>
      <% if !@school.address_line2.blank? %><%= @school.address_line2 %><br><% end %>
      <% if !@school.street.blank? %><%= @school.street %><br><% end %>
      <% if !@school.city.blank? %><%= @school.zip_code %> <%= @school.city %><br><% end %>
      <% if !@school.phone_number.blank? %><abbr title="Telefon">Tel.:</abbr> <%= @school.phone_number %><br><% end %>
      <% if !@school.fax_number.blank? %><abbr title="Telefax">Fax.:</abbr> <%= @school.fax_number %><% end %>
    </address>

    <address>
      <% if !@school.email %>
      <a href="mailto:<%= @school.email %>"><%= @school.email %></a><br>
      <% end %>
      <% if !@school.homepage %>
      <a href="<%= @school.homepage %>"><%= @school.homepage %></a>
      <% end %>
    </address>

    <p>
      <a href="https://maps.google.com/maps?q=<%= "#{URI.encode(@school.komma_seperated_address)}" %>&hl=de&t=m" class="thumbnail">
        <img src="http://maps.googleapis.com/maps/api/staticmap?center=<%= URI.encode(@school.komma_seperated_address) %>&markers=color:blue%7Clabel:S%7C<%= URI.encode(@school.komma_seperated_address) %>&zoom=12&size=250x250&sensor=false" alt="Google Maps Landkarte mit der Position dieser Schule" width="250" height="250">
      </a>
    </p>
    <h2>Schulen in <%= @city %></h2>
    <ul>
      <% @city.schools.each do |school| %>
        <% if @school != school %>
          <li><%= link_to school, school %></li>
        <% else %>
          <li><%= school %></li>
        <% end %>
      <% end %>
    </ul>
  </div>
</div>
{'fraction_non_alphanumeric': 0.22719508028698326, 'fraction_numerical': 0.010249402118209771, 'mean_word_length': 3.7367853290183386, 'pattern_counts': {'":': 32, '<': 273, '<?xml version=': 0, '>': 273, 'https://': 2, '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': '947671', 'n_tokens_mistral': 3483, 'n_tokens_neox': 3216, 'n_words': 594}