This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "zeta" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dependencies] | |
| anyhow = "1.0.96" | |
| base64 = "0.22.1" | |
| rand = "0.8.0" | |
| rand_core = "0.9.2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { GoogleGenerativeAI } from "@google/generative-ai"; | |
| import { Mistral } from "@mistralai/mistralai"; | |
| import * as diff from "diff"; | |
| // const Groq = require('groq-sdk'); | |
| // const Groq = require('groq-sdk'); | |
| import { Groq } from "groq-sdk"; | |
| async function getPrediction(provider: "mistral" | "gemini" | 'groq', prompt: string): Promise<string> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| letter = "A" … "Z" | "a" … "z" . | |
| decimalDigit = "0" … "9" . | |
| octalDigit = "0" … "7" . | |
| hexDigit = "0" … "9" | "A" … "F" | "a" … "f" . | |
| ident = letter { letter | decimalDigit | "_" } . | |
| fullIdent = ident { "." ident } . | |
| messageName = ident . | |
| enumName = ident . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "fmt" | |
| func main() { | |
| queue := make(chan struct {string; int}) | |
| go sendPair(queue) | |
| pair := <-queue | |
| fmt.Println(pair.string, pair.int) | |
| } | |
| func sendPair(queue chan struct {string; int}) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "log" | |
| "net" | |
| ) | |
| func main() { | |
| log.Println("Start") | |
| addr, _ := net.ResolveUDPAddr("udp4", "localhost:8080") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net" | |
| "os" | |
| "time" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let correctBrackets = (str) => { | |
| let allowedSymbols = { | |
| '[': 1, '{': 1, '<': 1, '(': 1, ']': 1, '}': 1, '>': 1, ')': 1 | |
| } | |
| let brackets = { '[': ']', '{': '}', '<': '>', '(': ')' } | |
| let count = 0, ob = [], result = []; | |
| for(let c of str) { | |
| if(!allowedSymbols[c]) return null; |