<commit_before>// Copyright 2019 Google LLC
//
// 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
//
//     https://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: this is not currently generated, but is intended to take
// the same form as regular generated smoke tests.
    
namespace Google.Cloud.Asset.V1.SmokeTests
{
    using Google.Api.Gax;
    using Google.Api.Gax.Grpc;
    using Google.Api.Gax.ResourceNames;
    using Google.Protobuf.WellKnownTypes;
    using Grpc.Core;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;
    using System.Threading;
    using System.Threading.Tasks;

    public class AssetServiceSmokeTest
    {
        public static int Main(string[] args)
        {
            // Read projectId from args
            if (args.Length != 1)
            {
                Console.WriteLine("Usage: Project ID must be passed as first argument.");
                Console.WriteLine();
                return 1;
            }
            string projectId = args[0];

            // Create client
            AssetServiceClient client = AssetServiceClient.Create();

            // Initialize request argument(s)
            var request = new BatchGetAssetsHistoryRequest
            {
                ParentAsProjectName = new ProjectName(projectId),
                ContentType = ContentType.Resource,
                ReadTimeWindow = new TimeWindow { StartTime = DateTime.UtcNow.AddDays(-1).ToTimestamp() },
            };

            // Call API method
            client.BatchGetAssetsHistory(request);

            // Success
            Console.WriteLine("Smoke test passed OK");
            return 0;
        }
    }
}
<commit_msg>Update smoke test for microgenerator<commit_after>// Copyright 2019 Google LLC
//
// 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
//
//     https://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: this is not currently generated, but is intended to take
// the same form as regular generated smoke tests.

namespace Google.Cloud.Asset.V1.SmokeTests
{
    using Google.Api.Gax.ResourceNames;
    using Google.Protobuf.WellKnownTypes;
    using System;

    public class AssetServiceSmokeTest
    {
        public static int Main(string[] args)
        {
            // Read projectId from args
            if (args.Length != 1)
            {
                Console.WriteLine("Usage: Project ID must be passed as first argument.");
                Console.WriteLine();
                return 1;
            }
            string projectId = args[0];

            // Create client
            AssetServiceClient client = AssetServiceClient.Create();

            // Initialize request argument(s)
            var request = new BatchGetAssetsHistoryRequest
            {
                ParentAsResourceName = new ProjectName(projectId),
                ContentType = ContentType.Resource,
                ReadTimeWindow = new TimeWindow { StartTime = DateTime.UtcNow.AddDays(-1).ToTimestamp() },
            };

            // Call API method
            client.BatchGetAssetsHistory(request);

            // Success
            Console.WriteLine("Smoke test passed OK");
            return 0;
        }
    }
}

{'fraction_non_alphanumeric': 0.08140655105973026, 'fraction_numerical': 0.00674373795761079, 'mean_word_length': 2.106207928197457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6651427', 'n_tokens_mistral': 1032, 'n_tokens_neox': 985, 'n_words': 366}