<commit_before>﻿using System;
using System.Linq;


namespace GoogleMapAPI
{
    class Program
    {
        static void Main(string[] args)
        {
            var address = "";
            Console.WriteLine("Please enter address : ");
            address = Console.ReadLine(); 
            var result =  GetGoogleAddress.GoogleAddress(address);
            var response = (from n in result.Result.Results
                            select new
                            {
                                n.geometry.Location.Latitude, n.geometry.Location.Longitude,
                                Address = n.formatted_address, n.geometry.LocationType
                            }).ToList();
            foreach (var x in response)
            {
                Console.WriteLine("The Latitude and Longitude  {0} , {1} for the address is {2} and Location type is {3}",
                     x.Latitude,x.Longitude,x.Address,x.LocationType);
            }
            
            Console.ReadLine();<commit_msg>Validation Logic.<commit_after>﻿using System;
using System.Linq;


namespace GoogleMapAPI
{
    class Program
    {
        static void Main(string[] args)
        {
            var address = "";
            Console.WriteLine("Please enter address : ");
            address = Console.ReadLine();
            if (address != null && address == string.Empty)
            {
                address = "205 108th Ave NE #400, Bellevue, WA 98004, USA";
            }
            var result =  GetGoogleAddress.GoogleAddress(address);
            var response = (from n in result.Result.Results
                            select new
                            {
                                n.geometry.Location.Latitude, n.geometry.Location.Longitude,
                                Address = n.formatted_address, n.geometry.LocationType
                            }).ToList();
            if (response.Count > 0)
            {
                foreach (var x in response)
                {
                    Console.WriteLine("The Latitude and Longitude  {0} , {1} for the address is {2} and Location type is {3}",
                         x.Latitude, x.Longitude, x.Address, x.LocationType);
                }
            }
            Console.WriteLine("The Address does not have a location or address might be worng . Please check");
            
            Console.ReadLine();
{'fraction_non_alphanumeric': 0.08882402001668056, 'fraction_numerical': 0.009591326105087573, 'mean_word_length': 1.3268671193016488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1270666', 'n_tokens_mistral': 582, 'n_tokens_neox': 554, 'n_words': 153}