<commit_before><%- # the license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-%>
<%# NOTE NOTE NOTE
    The newlines in this file are *load bearing*.  This file outputs
    Markdown, which is extremely sensitive to newlines.  You have got
    to have a newline after every attribute and property, because
    otherwise MD will think the next element is part of the previous
    property's bullet point.  You cannot have any double newlines in the
    middle of a property or attribute, because MD will think that the
    empty line ends the bullet point and the indentation will be off.
    You must have a newline before and after all --- document indicators,
    and you must have a newline before and after all - - - hlines.
    You cannot have more than one blank line between properties.
    The --- document indicator must be the first line of the file.
    As long as you only use `build_property_documentation`, it all works
    fine - but when you need to add custom docs (notes, etc), you need
    to remember these things.

    Know also that the `lines` function in heavy use in MagicModules will
    strip exactly one trailing newline - unless that's what you've designed
    your docstring for, it's easier to insert newlines where you need them
    manually.  That's why, in this file, we use `lines` on anything which
    is generated from a ruby function, but skip it on anything that is
    directly inserted from YAML.
-%>
<%
  if @config.legacy_name.nil?
    terraform_name = "google_" + (product_ns + object.name).underscore
  else
    terraform_name = "google_" + @config.legacy_name + '_' + object.name.underscore
  end
  properties = object.all_user_properties
  timeouts = object.async.nil? ? Api::Timeouts.new : object.timeouts
-%>
---
<%= lines(autogen_notice :yaml) -%>
layout: "google"
page_title: "Google: <%= terraform_name -%>"
sidebar_current: "docs-<%= terraform_name.gsub("_", "-") -%>"
description: |-
<%= indent(object.description.first_sentence, 2) %>
---

# <%= terraform_name.gsub("_", "\\_") %>

<%= lines(object.description) -%>

<% if object.min_version.name == 'beta' -%>
~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
See [Provider Versions](https://terraform.io/docs/providers/google/provider_versions.html) for more details on beta resources.
<% end -%>

<% if !object.references.nil? -%>
To get more information about <%= object.name -%>, see:

<%   if !object.references.api.nil? -%>
* [API documentation](<%= object.references.api -%>)
<%   end # object...api.nil? -%>
<%   if !object.references.guides.empty? -%>
* How-to Guides
<%     object.references.guides.each do |title, link| -%>
    * [<%= title -%>](<%= link -%>)
<%     end # object...guides.each -%>
<%   end # object...guides.empty? -%>
<% end # object...api.nil? -%>
<%- unless object.docs.warning.nil? -%>

~> **Warning:** <%= object.docs.warning -%>
<%- end -%>

<%#- We over-generate examples/oics buttons here; they'll all be _valid_ just not necessarily intended for this provider version.
     Unless/Until we split our docs, this is a non-issue. -%>
<% unless object.examples.empty? -%>
  <%- object.examples.each do |example| -%>
    <%- unless example.skip_test -%>
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
  <a href="<%= example.oics_link %>" target="_blank">
    <img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
  </a>
</div>
    <%- end -%>
## Example Usage - <%= example.name.camelize(:upper).uncombine %>


<%= example.config_documentation -%>
  <%- end %>
<%- end -%>
## Argument Reference

The following arguments are supported:

<% properties.select(&:required).each do |prop| -%>
<%   if prop.flatten_object -%>
<%     if prop.nested_properties? -%>
<%       prop.nested_properties.each do |p| -%>
<%=        lines(build_property_documentation(p)) -%>
<%       end -%>
<%     end -%>
<%   else -%>
<%= lines(build_property_documentation(prop)) -%>
<%   end -%>
<% end -%>

<% properties.select(&:required).each do |prop| -%>
<%= lines(build_nested_property_documentation(prop)) -%>
<% end -%>
<%- unless object.docs.required_properties.nil? -%>
<%= "\n" + object.docs.required_properties -%>
<% end -%>

- - -

<% properties.reject(&:required).reject(&:output).each do |prop| -%>
<%   if prop.flatten_object -%>
<%     if prop.nested_properties? -%>
<%       prop.nested_properties.each do |p| -%>
<%=        lines(build_property_documentation(p)) -%>
<%       end -%>
<%     end -%>
<%   else -%>
<%=    lines(build_property_documentation(prop)) -%>
<%   end -%>
<% end -%>
<% if object.base_url.include?("{{project}}") -%>
* `project` - (Optional) The ID of the project in which the resource belongs.
    If it is not provided, the provider project is used.
<% end -%>
<commit_msg>add newline before project doc (#1778)<commit_after><%- # the license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-%>
<%# NOTE NOTE NOTE
    The newlines in this file are *load bearing*.  This file outputs
    Markdown, which is extremely sensitive to newlines.  You have got
    to have a newline after every attribute and property, because
    otherwise MD will think the next element is part of the previous
    property's bullet point.  You cannot have any double newlines in the
    middle of a property or attribute, because MD will think that the
    empty line ends the bullet point and the indentation will be off.
    You must have a newline before and after all --- document indicators,
    and you must have a newline before and after all - - - hlines.
    You cannot have more than one blank line between properties.
    The --- document indicator must be the first line of the file.
    As long as you only use `build_property_documentation`, it all works
    fine - but when you need to add custom docs (notes, etc), you need
    to remember these things.

    Know also that the `lines` function in heavy use in MagicModules will
    strip exactly one trailing newline - unless that's what you've designed
    your docstring for, it's easier to insert newlines where you need them
    manually.  That's why, in this file, we use `lines` on anything which
    is generated from a ruby function, but skip it on anything that is
    directly inserted from YAML.
-%>
<%
  if @config.legacy_name.nil?
    terraform_name = "google_" + (product_ns + object.name).underscore
  else
    terraform_name = "google_" + @config.legacy_name + '_' + object.name.underscore
  end
  properties = object.all_user_properties
  timeouts = object.async.nil? ? Api::Timeouts.new : object.timeouts
-%>
---
<%= lines(autogen_notice :yaml) -%>
layout: "google"
page_title: "Google: <%= terraform_name -%>"
sidebar_current: "docs-<%= terraform_name.gsub("_", "-") -%>"
description: |-
<%= indent(object.description.first_sentence, 2) %>
---

# <%= terraform_name.gsub("_", "\\_") %>

<%= lines(object.description) -%>

<% if object.min_version.name == 'beta' -%>
~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
See [Provider Versions](https://terraform.io/docs/providers/google/provider_versions.html) for more details on beta resources.
<% end -%>

<% if !object.references.nil? -%>
To get more information about <%= object.name -%>, see:

<%   if !object.references.api.nil? -%>
* [API documentation](<%= object.references.api -%>)
<%   end # object...api.nil? -%>
<%   if !object.references.guides.empty? -%>
* How-to Guides
<%     object.references.guides.each do |title, link| -%>
    * [<%= title -%>](<%= link -%>)
<%     end # object...guides.each -%>
<%   end # object...guides.empty? -%>
<% end # object...api.nil? -%>
<%- unless object.docs.warning.nil? -%>

~> **Warning:** <%= object.docs.warning -%>
<%- end -%>

<%#- We over-generate examples/oics buttons here; they'll all be _valid_ just not necessarily intended for this provider version.
     Unless/Until we split our docs, this is a non-issue. -%>
<% unless object.examples.empty? -%>
  <%- object.examples.each do |example| -%>
    <%- unless example.skip_test -%>
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
  <a href="<%= example.oics_link %>" target="_blank">
    <img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
  </a>
</div>
    <%- end -%>
## Example Usage - <%= example.name.camelize(:upper).uncombine %>


<%= example.config_documentation -%>
  <%- end %>
<%- end -%>
## Argument Reference

The following arguments are supported:

<% properties.select(&:required).each do |prop| -%>
<%   if prop.flatten_object -%>
<%     if prop.nested_properties? -%>
<%       prop.nested_properties.each do |p| -%>
<%=        lines(build_property_documentation(p)) -%>
<%       end -%>
<%     end -%>
<%   else -%>
<%= lines(build_property_documentation(prop)) -%>
<%   end -%>
<% end -%>

<% properties.select(&:required).each do |prop| -%>
<%= lines(build_nested_property_documentation(prop)) -%>
<% end -%>
<%- unless object.docs.required_properties.nil? -%>
<%= "\n" + object.docs.required_properties -%>
<% end -%>

- - -

<% properties.reject(&:required).reject(&:output).each do |prop| -%>
<%   if prop.flatten_object -%>
<%     if prop.nested_properties? -%>
<%       prop.nested_properties.each do |p| -%>
<%=        lines(build_property_documentation(p)) -%>
<%       end -%>
<%     end -%>
<%   else -%>
<%=    lines(build_property_documentation(prop)) -%>
<%   end -%>
<% end -%>
<% if object.base_url.include?("{{project}}")-%>
<%# The following new line allow for project to be bullet-formatted properly. -%>

* `project` - (Optional) The ID of the project in which the resource belongs.
    If it is not provided, the provider project is used.
<% end -%>

{'fraction_non_alphanumeric': 0.14950647468984876, 'fraction_numerical': 0.003984424522321833, 'mean_word_length': 3.504078303425775, 'pattern_counts': {'":': 0, '<': 146, '<?xml version=': 0, '>': 150, 'https://': 2, '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': '4661393', 'n_tokens_mistral': 3651, 'n_tokens_neox': 3423, 'n_words': 1114}