<commit_before>package main

import (
	"fmt"
	"net"
	_"github.com/lib/pq"
	pb "github.com/tcncloud/protoc-gen-persist/examples"
	"google.golang.org/grpc"
)


func main() {
	lis, err := net.Listen("tcp", ":50051")
	if err != nil {
		panic(err)
	}
	grpcServer := grpc.NewServer()
	connString := "dbname=postgres user=postgres host=postgres port=5432 sslmode=disable"
	s, err := pb.NewAmazingImpl("postgres",connString)
	if err != nil {
		panic(err)
	}
	pb.RegisterAmazingServer(grpcServer, s)
	fmt.Printf("server listening on 50051\n")
	grpcServer.Serve(lis)
}<commit_msg>added create table query that happens after server is built<commit_after>package main

import (
	"fmt"
	"net"
	_"github.com/lib/pq"
	pb "github.com/tcncloud/protoc-gen-persist/examples"
	"google.golang.org/grpc"
)


func main() {
	lis, err := net.Listen("tcp", ":50051")
	if err != nil {
		panic(err)
	}
	grpcServer := grpc.NewServer()
	connString := "dbname=postgres user=postgres host=postgres port=5432 sslmode=disable"
	s, err := pb.NewAmazingImpl("postgres",connString)
	if err != nil {
		panic(err)
	}
	_, err = s.SqlDB.Exec(`CREATE TABLE example_table(
		id          bigserial,
		start_time  timestamp with time zone NOT NULL,
		name        varchar(255)             NOT NULL,
		primary key(id)
	)`)
	if err != nil {
		fmt.Printf("Server err:  %+v", err)
	}
	pb.RegisterAmazingServer(grpcServer, s)
	fmt.Printf("server listening on 50051\n")
	grpcServer.Serve(lis)
}
{'fraction_non_alphanumeric': 0.14701803051317613, 'fraction_numerical': 0.021497919556171984, 'mean_word_length': 4.135231316725979, 'pattern_counts': {'":': 2, '<': 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': '7122787', 'n_tokens_mistral': 589, 'n_tokens_neox': 556, 'n_words': 117}