<commit_before><?php 
namespace Jcf\Geocode;

use \GuzzleHttp\Client;

class Geocode
{

    public static function make()
    {
        return new static();
    }

    public function address($address)
    {

        if (empty($address)) {
            throw new Exceptions\EmptyArgumentsException('Empty arguments.');
        }
	$client = new \GuzzleHttp\Client();
	$response = $client->request('GET', 'http://maps.googleapis.com/maps/api/geocode/json', [
	    'query' => ['address' => $address]
	]);
	$response = $response->getBody();
        
        # check for status in the response
		switch( $response->json()['status'] )
		{
			
			case "ZERO_RESULTS": # indicates that the geocode was successful but returned no results. This may occur if the geocoder was passed a non-existent address.
			case "OVER_QUERY_LIMIT": # indicates that you are over your quota.
			case "REQUEST_DENIED": # indicates that your request was denied.
			case "INVALID_REQUEST": # generally indicates that the query (address, components or latlng) is missing.
			case "UNKNOWN_ERROR":
				return false;
				
			case "OK": # indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned.
				return new Response($response->json());
		}

    }

    public function latLng($lat, $lng)
    {

    	if (empty($lat) || empty($lng)) {
    		throw new Exceptions\EmptyArgumentsException('Empty arguments.');
    	}

        $response = \GuzzleHttp\get('http://maps.googleapis.com/maps/api/geocode/json', [
            'query' => ['latlng' => $lat . ',' . $lng]
		]);
        
        # check for status in the response
		switch( $response->json()['status'] )
		{
			
			case "ZERO_RESULTS": # indicates that the geocode was successful but returned no results. This may occur if the geocoder was passed a non-existent address.
			case "OVER_QUERY_LIMIT": # indicates that you are over your quota.
			case "REQUEST_DENIED": # indicates that your request was denied.
			case "INVALID_REQUEST": # generally indicates that the query (address, components or latlng) is missing.
			case "UNKNOWN_ERROR":
				return false;
				
			case "OK": # indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned.
				return new Response($response->json());
		}

    }

}<commit_msg>Update Geocode.php<commit_after><?php 
namespace Jcf\Geocode;

use \GuzzleHttp\Client;

class Geocode
{

    public static function make()
    {
        return new static();
    }

    public function address($address)
    {

        if (empty($address)) {
            throw new Exceptions\EmptyArgumentsException('Empty arguments.');
        }
		$client = new \GuzzleHttp\Client();
		$response = json_decode($client->request('GET', 'http://maps.googleapis.com/maps/api/geocode/json', [
		    'query' => ['address' => $address]
		])->getBody());

        # check for status in the response
		switch( $response->status )
		{
			
			case "ZERO_RESULTS": # indicates that the geocode was successful but returned no results. This may occur if the geocoder was passed a non-existent address.
			case "OVER_QUERY_LIMIT": # indicates that you are over your quota.
			case "REQUEST_DENIED": # indicates that your request was denied.
			case "INVALID_REQUEST": # generally indicates that the query (address, components or latlng) is missing.
			case "UNKNOWN_ERROR":
				return false;
				
			case "OK": # indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned.
				return new Response($response);
		}

    }

    public function latLng($lat, $lng)
    {

    	if (empty($lat) || empty($lng)) {
    		throw new Exceptions\EmptyArgumentsException('Empty arguments.');
    	}

        $response = \GuzzleHttp\get('http://maps.googleapis.com/maps/api/geocode/json', [
            'query' => ['latlng' => $lat . ',' . $lng]
		]);
        
        # check for status in the response
		switch( $response->status )
		{
			
			case "ZERO_RESULTS": # indicates that the geocode was successful but returned no results. This may occur if the geocoder was passed a non-existent address.
			case "OVER_QUERY_LIMIT": # indicates that you are over your quota.
			case "REQUEST_DENIED": # indicates that your request was denied.
			case "INVALID_REQUEST": # generally indicates that the query (address, components or latlng) is missing.
			case "UNKNOWN_ERROR":
				return false;
				
			case "OK": # indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned.
				return new Response($response);
		}

    }

}
{'fraction_non_alphanumeric': 0.11094290657439447, 'fraction_numerical': 0.0, 'mean_word_length': 3.111111111111111, 'pattern_counts': {'":': 24, '<': 5, '<?xml version=': 0, '>': 21, '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': '93398', 'n_tokens_mistral': 1461, 'n_tokens_neox': 1306, 'n_words': 450}