<commit_before>package google

import (
	"fmt"

	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceGoogleProject() *schema.Resource {
	// Generate datasource schema from resource
	dsSchema := datasourceSchemaFromResourceSchema(resourceGoogleProject().Schema)

	addOptionalFieldsToSchema(dsSchema, "project_id")

	return &schema.Resource{
		Read:   datasourceGoogleProjectRead,
		Schema: dsSchema,
	}
}
<commit_msg>google_project Datasource project_id Validated (#6542)<commit_after>package google

import (
	"fmt"

	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceGoogleProject() *schema.Resource {
	// Generate datasource schema from resource
	dsSchema := datasourceSchemaFromResourceSchema(resourceGoogleProject().Schema)

	addOptionalFieldsToSchema(dsSchema, "project_id")

	dsSchema["project_id"].ValidateFunc = validateProjectID()
	return &schema.Resource{
		Read:   datasourceGoogleProjectRead,
		Schema: dsSchema,
	}
}

{'fraction_non_alphanumeric': 0.10243407707910751, 'fraction_numerical': 0.006085192697768763, 'mean_word_length': 6.4772727272727275, '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': '1919366', 'n_tokens_mistral': 318, 'n_tokens_neox': 300, 'n_words': 52}