Given the following test in go
package main
import (
"testing"
)
func TestMyTest(t *testing.T) {| package core | |
| import ( | |
| "database/sql" | |
| "errors" | |
| "fmt" | |
| "net" | |
| "net/url" | |
| "strings" |
Given the following test in go
package main
import (
"testing"
)
func TestMyTest(t *testing.T) {| package core | |
| import "sync" | |
| func NewCircularQueue[T any](capacity int) *CircularQueue[T] { | |
| m := &sync.Mutex{} | |
| return &CircularQueue[T]{ | |
| data: make([]T, capacity), | |
| Mutex: m, | |
| cond: sync.NewCond(m), |
Download mistral
$ ollama pull mistral
pulling manifest
pulling e8a35b5937a5... 100% ▕███████████████████████████████████████████████████████████████████████▏ 4.1 GB
pulling 43070e2d4e53... 100% ▕███████████████████████████████████████████████████████████████████████▏ 11 KB
pulling e6836092461f... 100% ▕███████████████████████████████████████████████████████████████████████▏ 42 B
pulling ed11eda7790d... 100% ▕███████████████████████████████████████████████████████████████████████▏ 30 B
pulling f9b1e3196ecf... 100% ▕███████████████████████████████████████████████████████████████████████▏ 483 B
verifying sha256 digest| package q | |
| import ( | |
| "sql" | |
| "github.com/google/uuid" | |
| ) | |
| func MI(table, col string, ptr any) *MappedIdentifier { | |
| return &MappedIdentifier{table, col, ptr} |
| package main | |
| import ( | |
| "context" | |
| "database/sql" | |
| _ "embed" | |
| "fmt" | |
| "time" | |
| _ "github.com/mattn/go-sqlite3" |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/http" | |
| "net/url" | |
| ) |
| #lang racket | |
| (require scribble/html) | |
| (require web-server/http) | |
| (require web-server/servlet-env) | |
| (require net/url) | |
| (define (html-page-template inner-html) | |
| (html | |
| (head |
| const std = @import("std"); | |
| const io = std.io; | |
| fn getmatch(x: []u8) usize { | |
| if (std.mem.startsWith(u8, x, "1")) { | |
| return 1; | |
| } else if (std.mem.startsWith(u8, x, "2")) { | |
| return 2; | |
| } else if (std.mem.startsWith(u8, x, "3")) { | |
| return 3; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width" /> | |
| <title>Index</title> | |
| </head> | |
| <body> | |
| <script type="module"> | |
| import {mergeDeepObj} from 'https://cdn.skypack.dev/@thi.ng/associative'; |