<commit_before>package pgtype

import (
	"database/sql/driver"
	"encoding/binary"
	"fmt"
	"math"
	"regexp"
	"strconv"
	"strings"

	"github.com/jackc/pgio"
	errors "golang.org/x/xerrors"
)

type Vec2 struct {
	X float64
	Y float64
}

type Point struct {
	P      Vec2
	Status Status
}

var nullRE = regexp.MustCompile("^null$")

func (dst *Point) Set(src interface{}) error {
	if src == nil {
		dst.Status = Null
		return nil
	}
	err := errors.Errorf("cannot convert %v to Point", src)
	var p *Point
	switch value := src.(type) {
	case string:
		p, err = parsePoint([]byte(value))
	case []byte:
		if nullRE.Match(value) {
			dst.Status = Null
			return nil
		}
		p, err = parsePoint(value)
	default:<commit_msg>Remove unnecessary check for null<commit_after>package pgtype

import (
	"database/sql/driver"
	"encoding/binary"
	"fmt"
	"math"
	"regexp"
	"strconv"
	"strings"

	"github.com/jackc/pgio"
	errors "golang.org/x/xerrors"
)

type Vec2 struct {
	X float64
	Y float64
}

type Point struct {
	P      Vec2
	Status Status
}

var nullRE = regexp.MustCompile("^null$")

func (dst *Point) Set(src interface{}) error {
	if src == nil {
		dst.Status = Null
		return nil
	}
	err := errors.Errorf("cannot convert %v to Point", src)
	var p *Point
	switch value := src.(type) {
	case string:
		p, err = parsePoint([]byte(value))
	case []byte:
		p, err = parsePoint(value)
	default:
{'fraction_non_alphanumeric': 0.1377551020408163, 'fraction_numerical': 0.008746355685131196, 'mean_word_length': 3.6073825503355703, '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': '5333623', 'n_tokens_mistral': 552, 'n_tokens_neox': 523, 'n_words': 143}