<commit_before><?php
namespace perspectivain\postgis\types;

class Point implements IType
{
    /**
     * @inheritdoc
     */
    public function arrayToWkt($coordinates, $srid)
    {
        $strPostgis = "ST_GeomFromText('POINT((";
        $strPostgis .= implode(' ', array_values($coordinates));
        $strPostgis .= "))', " . $srid . ")";

        return $strPostgis;
    }

    /**
     * @inheritdoc
     */
    public function wktToArray($coordinate)
    {
        if(strstr($coordinate, 'POINT') === false) {
            return false;
        }

        $arrayCoordinates = explode(" ", str_replace(['POINT(', ')'], '', $coordinate));
        if(count($arrayCoordinates) == 0) {<commit_msg>fix array to wkt point object<commit_after><?php
namespace perspectivain\postgis\types;

class Point implements IType
{
    /**
     * @inheritdoc
     */
    public function arrayToWkt($coordinates, $srid)
    {
        $strPostgis = "ST_GeomFromText('POINT(";
        $strPostgis .= implode(' ', array_values($coordinates));
        $strPostgis .= ")', " . $srid . ")";

        return $strPostgis;
    }

    /**
     * @inheritdoc
     */
    public function wktToArray($coordinate)
    {
        if(strstr($coordinate, 'POINT') === false) {
            return false;
        }

        $arrayCoordinates = explode(" ", str_replace(['POINT(', ')'], '', $coordinate));
        if(count($arrayCoordinates) == 0) {
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.0014124293785310734, 'mean_word_length': 2.4730392156862746, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7348820', 'n_tokens_mistral': 457, 'n_tokens_neox': 444, 'n_words': 77}