text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func startLiveReloadServer(tpls *template.Template, cfg *env.Config, staticAssets *static.Files) error {
if cfg.IsProduction {
return nil
}
log.Info("Initializing livereload")
paths := []string{
"assets",
"templates",
}
tmplFn := func(name string) (bool, error) {
templates, err := initTemplates(cfg, ... | [
-0.2617577910423279,
-1.0328642129898071,
0.7100176215171814,
-0.48977866768836975,
0.05814775079488754,
0.34686988592147827,
0.27670490741729736,
0.178436279296875,
0.47801998257637024,
-0.43791621923446655,
-0.9621713757514954,
0.5181866884231567,
-0.19750383496284485,
0.512179434299469,... |
func CreateFooterView(g *gocui.Gui) error {
viewName := "footer"
if footer, err := g.SetView(viewName, maxX/6+1, maxY-maxY/4, maxX-1, maxY-1); err != nil {
if err != gocui.ErrUnknownView {
return err
}
footer.Wrap = true
footer.Title = "Top HeadLines"
footer.SelBgColor = gocui.ColorGreen
footer.SelFgCo... | [
0.024825887754559517,
0.4935651123523712,
0.541149914264679,
-0.2857467234134674,
-0.1896139681339264,
0.38202884793281555,
-0.14052250981330872,
-0.7746785879135132,
-0.41455069184303284,
-1.2969664335250854,
0.5228450894355774,
-0.3676302433013916,
-0.2561429738998413,
1.8835115432739258... |
func Search(query string) (string, error) {
v := url.Values{
"q": []string{query},
}
uri := fmt.Sprintf("%s?%s", queryURI, v.Encode())
// start the scrape
resp, err := http.Get(uri)
if err != nil {
logrus.Fatalf("requesting %s failed: %v", uri, err)
}
defer resp.Body.Close()
doc, err := goquery.NewDocumen... | [
-0.7297458648681641,
0.5875411033630371,
0.8551092743873596,
-0.6474759578704834,
-0.27059370279312134,
-0.036875538527965546,
0.47840115427970886,
-0.08335994929075241,
-0.28004151582717896,
0.6392711997032166,
0.7056930661201477,
0.41124409437179565,
-0.9258941411972046,
-0.0673731714487... |
func WithProxyConfig(cfg config.Proxy) GRPCOption {
return func(h *GRPCHandler) {
h.proxyCfg = cfg
}
} | [
0.313765287399292,
0.08876446634531021,
0.3634454607963562,
-0.496742844581604,
-0.5528570413589478,
0.21599774062633514,
0.28916114568710327,
1.0610142946243286,
-0.11454200744628906,
0.23487040400505066,
-1.1948001384735107,
-0.183729350566864,
0.12129040062427521,
0.9372913837432861,
... |
func WithRoleTokenConfig(cfg config.RoleToken) GRPCOption {
return func(h *GRPCHandler) {
h.roleCfg = cfg
}
} | [
-0.10220315307378769,
-0.6244472861289978,
0.31957632303237915,
-0.7397453188896179,
0.5115609765052795,
-0.3142699599266052,
-0.20886681973934174,
0.7129302024841309,
-0.17209628224372864,
0.21151840686798096,
-1.3298616409301758,
0.2997894883155823,
0.3846886157989502,
0.3428042531013489... |
func WithAuthorizationd(a service.Authorizationd) GRPCOption {
return func(h *GRPCHandler) {
h.authorizationd = a
}
} | [
0.42827239632606506,
-0.25661197304725647,
0.3395507335662842,
0.29290202260017395,
-0.947185218334198,
0.9984686374664307,
0.8838192224502563,
-0.038438476622104645,
0.3189395070075989,
-0.4961148798465729,
1.1279464960098267,
0.5225062966346741,
0.6026084423065186,
0.3761975169181824,
... |
func main() {
// load config
config.Init()
// services
services.Init()
// start gin server
router.RunGin()
} | [
0.09311646968126297,
0.1915336549282074,
0.7209214568138123,
0.9972943067550659,
0.5187894105911255,
0.5502855181694031,
0.7405288219451904,
0.8484829664230347,
-0.7785056829452515,
0.2262624204158783,
-0.2186133861541748,
0.4836869239807129,
-0.2818260192871094,
0.5028342604637146,
0.23... |
func ExpectEqual(alert func(format string, args ...interface{}),
expected interface{}, actual interface{}) bool {
expectedValue, actualValue := reflect.ValueOf(expected), reflect.ValueOf(actual)
equal := false
switch {
case expected == nil && actual == nil:
return true
case expected != nil && actual == nil:
e... | [
-0.09357321262359619,
-0.5821351408958435,
0.9837730526924133,
0.2938830256462097,
0.21760106086730957,
0.19874927401542664,
0.019031904637813568,
-0.3575429916381836,
-0.7974718809127808,
0.7122542858123779,
-0.08742113411426544,
0.47656914591789246,
-0.05277284234762192,
0.60690283775329... |
func (c *Conflict) GetModAttackerChance() int32 {
// TODO: Return modified attacker chance
return c.BaseChance()
} | [
-0.46909451484680176,
-0.7552225589752197,
0.44747617840766907,
0.37455055117607117,
0.019785288721323013,
-0.2774599492549896,
0.3393979072570801,
0.3806716501712799,
-0.06787651032209396,
-0.4628382623195648,
0.3255451023578644,
0.48711147904396057,
-0.6298708915710449,
0.798056066036224... |
func (c *Conflict) GetModDefenderChance() int32 {
// TODO: Return modifier defender chance
return c.BaseChance()
} | [
-0.5264624357223511,
-0.38655251264572144,
0.3553714156150818,
0.07905174791812897,
0.6560274362564087,
-0.3356366753578186,
0.15787391364574432,
0.035922810435295105,
-0.01389498170465231,
-1.0748261213302612,
-0.00932900421321392,
-0.10799869894981384,
-0.5388805270195007,
1.529601812362... |
func (s *State) IsSiteOfConflict(id pb.ProvinceId) bool {
for _, c := range s.Conflicts {
for _, l := range c.Locations() {
if l == id {
return true
}
}
}
return false
} | [
-0.9789137840270996,
-0.6161401867866516,
0.42880716919898987,
-0.4209296703338623,
0.6284416913986206,
-0.9015529155731201,
0.423239529132843,
-0.184328094124794,
1.3235914707183838,
-0.07629181444644928,
0.2127934694290161,
-0.7228478789329529,
-0.9528729319572449,
-0.3085688650608063,
... |
func (s *State) IsAtWar(id pb.ProvinceId) bool {
for _, c := range s.Conflicts {
for _, a := range c.Attackers() {
if a == id {
return true
}
}
for _, d := range c.Defenders() {
if d == id {
return true
}
}
}
return false
} | [
-0.7602540254592896,
-0.755218505859375,
0.5511877536773682,
-0.2474961280822754,
0.41870126128196716,
-0.3611297607421875,
-0.5345660448074341,
0.15289868414402008,
1.182706594467163,
-0.23234762251377106,
0.20326660573482513,
0.010517384856939316,
-0.15641199052333832,
0.2940180897712707... |
func (s *State) GetConflict(location pb.ProvinceId) *Conflict {
return s.Conflicts[location]
} | [
-0.37923112511634827,
-0.3372916877269745,
0.28955405950546265,
-0.30789119005203247,
0.6891860961914062,
-0.231520414352417,
-0.1898682713508606,
0.23919202387332916,
0.9558762311935425,
-0.2316441684961319,
0.47297099232673645,
-0.040230344980955124,
-0.6027222871780396,
-0.7343781590461... |
func (s *State) NewConventionalWar(defenders []pb.ProvinceId, attackers []pb.ProvinceId, locations []pb.ProvinceId) bool { // TODO: Error return
for _, d := range defenders {
if s.IsAtWar(d) || s.IsSiteOfConflict(d) {
return false
}
}
for _, a := range attackers {
if s.IsAtWar(a) || s.IsSiteOfConflict(a) {
... | [
-0.4499802589416504,
-0.5584210157394409,
0.5973891615867615,
-0.041146207600831985,
-0.16506007313728333,
0.41541773080825806,
-0.2027454823255539,
0.9612205028533936,
0.2193014919757843,
-0.3923688530921936,
0.7639843225479126,
-0.6355361938476562,
-0.3658102750778198,
0.1678845584392547... |
func (s *State) NewCivilWar(target pb.ProvinceId) bool { // TODO: Error return
if s.IsAtWar(target) || s.IsSiteOfConflict(target) {
return false
}
c := &Conflict{
name: "Civil War", // TODO
length: 0,
attackers: Faction{
rebels: *(s.Get(target).Dissidents()),
progress: 0,
},
defenders: Faction{... | [
-0.7444426417350769,
-0.26487329602241516,
0.560043215751648,
-0.14217804372310638,
-0.01828242652118206,
0.1606130450963974,
-0.19095061719417572,
0.5353605151176453,
0.6192896962165833,
-0.24645090103149414,
0.032763317227363586,
-0.4941154718399048,
-0.6066388487815857,
0.05239224433898... |
func (s *State) NewColonialWar(target pb.ProvinceId) bool { // TODO: Error return
if s.IsAtWar(target) || s.IsSiteOfConflict(target) || s.Get(target).Occupier() != pb.ProvinceId_NONE {
return false
}
c := &Conflict{
name: "Colonial War", // TODO
length: 0,
attackers: Faction{
// Dissidents
progress: ... | [
-0.4913691282272339,
-0.3448044955730438,
0.48512014746665955,
-0.031693655997514725,
-0.44054123759269714,
0.16475635766983032,
-0.16556008160114288,
0.4987342059612274,
0.6400687098503113,
-0.5486752390861511,
0.29521462321281433,
-0.29097506403923035,
-0.6593248248100281,
0.259592205286... |
func (c *Conflict) Process(p *pseudo.State) WarResult {
c.length = c.length + 1
def_prog := p.Happens(c.GetModDefenderChance())
att_prog := p.Happens(c.GetModAttackerChance())
if att_prog {
// Attackers progress
c.attackers.progress++
}
if def_prog {
// Defenders progress
c.defenders.progress++
}
if att... | [
-0.05373409390449524,
-0.20447741448879242,
0.7107827663421631,
-0.11632682383060455,
-0.2577958405017853,
0.32704687118530273,
0.4682144224643707,
-0.44176754355430603,
0.46053335070610046,
-0.4900866448879242,
0.27219316363334656,
-0.5439212918281555,
-0.17560388147830963,
0.180370375514... |
func (l List) IsEmpty() bool {
if len(l.elements) == 0 {
return true
} else {
return false
}
} | [
-1.4978300333023071,
-0.25671306252479553,
0.32798871397972107,
0.24551323056221008,
1.3361977338790894,
0.45903125405311584,
-0.6629148125648499,
0.9647096991539001,
0.6660662889480591,
-0.08527092635631561,
-1.2692550420761108,
0.21009282767772675,
-0.483907550573349,
0.892078161239624,
... |
func NewDialog(text string, fontSize float32) {
rl.DrawRectangleRec(
rl.NewRectangle(0, 0, float32(rl.GetScreenWidth()), float32(rl.GetScreenHeight()/5)),
rl.Black,
)
rl.DrawRectangleLinesEx(
rl.NewRectangle(0, 0, float32(rl.GetScreenWidth()), float32(rl.GetScreenHeight()/5)),
4,
rl.White,
)
rl.DrawTextR... | [
0.6963783502578735,
0.08868490159511566,
0.8086084127426147,
-0.68118816614151,
-1.0039914846420288,
0.16482532024383545,
0.031006617471575737,
-0.2615836560726166,
0.456546813249588,
-0.3714261054992676,
-0.3081181049346924,
0.46551692485809326,
-0.2110164910554886,
0.7195726037025452,
... |
func NewLocalHashMapDBMgr(pfx string) *LocalHashMapDBMgr {
return &LocalHashMapDBMgr{memMap: make(map[common.Key]interface{}),
policy: common.DBMgrPolicyLocalMap, prefix: pfx, base: Base{common.Key{BPTkey: ""}, 0}}
} | [
-0.17355498671531677,
0.09577018022537231,
0.24566054344177246,
-0.7582011222839355,
-0.8814080953598022,
-0.4489818215370178,
-1.1555849313735962,
0.43477433919906616,
-0.5534453988075256,
-0.34630632400512695,
-0.5751432180404663,
0.17325688898563385,
-1.3628547191619873,
1.7385207414627... |
func (mgr *LocalHashMapDBMgr) GetRoot() (*Base, error) {
if mgr.base.RootKey.IsNil() || mgr.base.Degree == 0 {
return nil, nil
}
return &mgr.base, nil
} | [
0.4752521216869354,
0.3168174922466278,
0.47469818592071533,
1.1894601583480835,
0.402038037776947,
-0.6092323064804077,
-0.08920622617006302,
-1.0536056756973267,
0.05572359263896942,
0.10247242450714111,
0.5484780073165894,
0.788959264755249,
-1.741245150566101,
1.030492901802063,
0.26... |
func (mgr *LocalHashMapDBMgr) SetRoot(base *Base) error {
mgr.base.Degree = base.Degree
mgr.base.RootKey = base.RootKey
return nil
} | [
-0.10749442130327225,
-0.11570662260055542,
0.34896111488342285,
0.5574817061424255,
-0.07318739593029022,
-0.2801170349121094,
-0.12649989128112793,
-0.8254826664924622,
-0.25214916467666626,
-0.16166910529136658,
-0.5520157217979431,
0.8611608743667603,
-1.045967698097229,
1.413841962814... |
func (mgr *LocalHashMapDBMgr) Store(k common.Key, e interface{}) error {
tn := e.(*treeNode)
mgr.memMap[k] = tn.deepCopy()
glog.V(1).Infof("storing %v in db (val: %v)", k, mgr.memMap[k])
return nil
} | [
-0.6677398681640625,
0.46956193447113037,
0.3199051320552826,
-0.12747785449028015,
-0.020780518651008606,
0.5336728692054749,
0.012384320609271526,
-0.03142103552818298,
-0.5999219417572021,
-0.2016935646533966,
-0.3891686797142029,
0.05810825154185295,
-1.2330825328826904,
1.353093147277... |
func (mgr *LocalHashMapDBMgr) Delete(k common.Key) error {
glog.V(1).Infof("deleting %v from db", k)
delete(mgr.memMap, k)
return nil
} | [
0.3834333121776581,
0.5843973159790039,
0.475019246339798,
0.19137807190418243,
0.3907430171966553,
0.162051722407341,
-0.08106821030378342,
0.4787132441997528,
-0.5970085859298706,
0.45887255668640137,
-0.19735534489154816,
-0.5766481757164001,
-1.8004518747329712,
1.42032790184021,
-0.... |
func (mgr *LocalHashMapDBMgr) AtomicUpdate(ops []common.DBOp) error {
for i := 0; i < len(ops); i++ {
switch {
case ops[i].Op == common.DBOpStore:
mgr.Store(ops[i].K, ops[i].E)
case ops[i].Op == common.DBOpDelete:
mgr.Delete(ops[i].K)
case ops[i].Op == common.DBOpSetRoot:
mgr.SetRoot(ops[i].E.(*Base))... | [
-0.031927525997161865,
-0.369902640581131,
0.6739110946655273,
0.8269366025924683,
-0.04124277085065842,
-0.6052937507629395,
-0.1868276596069336,
-0.0725715383887291,
-0.032947421073913574,
1.3422136306762695,
0.6104210019111633,
-0.4278571903705597,
-0.8089580535888672,
0.652462363243103... |
func (mgr *LocalHashMapDBMgr) Load(k common.Key) (interface{}, error) {
node, ok := mgr.memMap[k]
glog.V(2).Infof("loading %v from db", k)
if !ok {
return nil, common.ErrNotFound
}
glog.V(2).Infof("successfully loaded %v (%v) from db", k, node)
return node.(*treeNode).deepCopy(), nil
} | [
-0.5804467797279358,
0.39319750666618347,
0.6015186309814453,
-0.6868553161621094,
-0.8253862857818604,
-0.1528986394405365,
-0.42867177724838257,
-0.39338046312332153,
-0.52215576171875,
0.5639405250549316,
-0.17766837775707245,
-0.12464266270399094,
-1.6209839582443237,
0.417767226696014... |
func (mgr *LocalHashMapDBMgr) LogAllKeys() {
for k, e := range mgr.memMap {
glog.Infof("%v: %v", k, e)
}
} | [
-0.11113488674163818,
-0.4698241949081421,
0.4602784812450409,
0.10120896995067596,
-0.7857628464698792,
-0.17959867417812347,
-1.1638569831848145,
0.5645378828048706,
-0.3454531729221344,
-0.18883465230464935,
-0.42165830731391907,
0.5394744277000427,
-0.5870129466056824,
1.08361887931823... |
func (mgr *LocalHashMapDBMgr) Policy() string {
return mgr.policy
} | [
0.21673044562339783,
0.0798148363828659,
0.08381330221891403,
-0.055543385446071625,
0.36587774753570557,
1.061464548110962,
-0.12805017828941345,
-0.08657153695821762,
0.6715083122253418,
-0.624155580997467,
0.4753352105617523,
-0.13661856949329376,
-1.0078890323638916,
1.0794832706451416... |
func EchoLogger(logger *logrus.Logger) *EchoLogrus {
return &EchoLogrus{
Logger: logger,
}
} | [
-0.45177629590034485,
-0.22154080867767334,
0.1996547281742096,
-0.8997128009796143,
-1.5573146343231201,
0.001849432592280209,
-1.76604163646698,
0.014528141357004642,
0.6991516947746277,
-0.8425508141517639,
-0.18553702533245087,
0.9155188798904419,
0.41590288281440735,
0.844353497028350... |
func (l *EchoLogrus) SetHeader(string) {} | [
-0.31455087661743164,
-0.5588415265083313,
0.3393751084804535,
0.556739091873169,
-0.3713926076889038,
0.4238872826099396,
0.09762310981750488,
0.023756813257932663,
0.23920615017414093,
-1.1671267747879028,
-0.5484217405319214,
0.4965416491031647,
-0.04551379755139351,
0.01770905964076519... |
func (l *EchoLogrus) SetPrefix(prefix string) {
l.prefix = prefix
} | [
0.11152660846710205,
0.06921587884426117,
0.2929743230342865,
0.8780714273452759,
-0.030749797821044922,
0.446746289730072,
-0.4098646342754364,
0.21267026662826538,
0.44056281447410583,
-0.6054491996765137,
-1.2622830867767334,
1.1035079956054688,
0.02060682885348797,
1.4853277206420898,
... |
func (l *EchoLogrus) Prefix() string {
return l.prefix
} | [
0.2217905968427658,
0.011688345111906528,
0.13440671563148499,
0.7704847455024719,
-0.15410642325878143,
0.6897634863853455,
-0.4525023102760315,
0.22732524573802948,
0.7601088285446167,
-0.43799149990081787,
-0.14327284693717957,
1.0424085855484009,
0.3252595067024231,
0.7904004454612732,... |
func (l *EchoLogrus) SetLevel(lvl log.Lvl) {
switch lvl {
case log.DEBUG:
l.Logger.SetLevel(logrus.DebugLevel)
case log.WARN:
l.Logger.SetLevel(logrus.WarnLevel)
case log.ERROR:
l.Logger.SetLevel(logrus.ErrorLevel)
case log.INFO:
l.Logger.SetLevel(logrus.InfoLevel)
default:
logrus.Warnf("Unknown level: ... | [
-0.37591105699539185,
-0.2317420393228531,
0.6861819624900818,
0.10347452014684677,
-0.015751969069242477,
0.6107078790664673,
-0.4947015047073364,
0.1285335272550583,
-0.4045885503292084,
-0.3147587478160858,
-1.1885769367218018,
1.3777880668640137,
0.4119565188884735,
1.0697507858276367,... |
func (l *EchoLogrus) Level() log.Lvl {
switch l.Logger.Level {
case logrus.DebugLevel:
return log.DEBUG
case logrus.WarnLevel:
return log.WARN
case logrus.ErrorLevel:
return log.ERROR
case logrus.InfoLevel:
return log.INFO
}
return log.WARN
} | [
0.08784136176109314,
-0.619844913482666,
0.49779996275901794,
-0.16410036385059357,
-0.4019792675971985,
0.4292575716972351,
-0.4525863230228424,
-0.44999030232429504,
-0.4172796905040741,
-0.39031127095222473,
-0.5485889315605164,
1.0777103900909424,
0.23792721331119537,
0.840293109416961... |
func (l *EchoLogrus) Output() io.Writer {
return l.Out
} | [
0.20142926275730133,
-0.49574753642082214,
0.2102411836385727,
0.38442540168762207,
-0.288226455450058,
-0.36470505595207214,
0.7218964695930481,
0.37713173031806946,
-0.1448805332183838,
-0.7157704830169678,
0.013903768733143806,
0.13742130994796753,
0.012881631031632423,
0.17355442047119... |
func (l *EchoLogrus) Printj(j log.JSON) {
l.Logger.WithFields(logrus.Fields(j)).Print()
} | [
-0.44372397661209106,
0.34465882182121277,
0.30155420303344727,
0.14067572355270386,
-0.8558234572410583,
0.5858354568481445,
-0.2630344331264496,
-0.5773739218711853,
-0.24947814643383026,
-0.4666098654270172,
-0.8347835540771484,
1.1754816770553589,
0.45885831117630005,
1.440027832984924... |
func (l *EchoLogrus) Debugj(j log.JSON) {
l.Logger.WithFields(logrus.Fields(j)).Debug()
} | [
-0.42429491877555847,
0.14008396863937378,
0.15952466428279877,
-0.49095436930656433,
-0.6051847338676453,
0.28909412026405334,
-0.0983426570892334,
-0.3828980028629303,
0.049361295998096466,
-0.32355237007141113,
-0.8631339073181152,
0.730583906173706,
0.38139835000038147,
1.6910284757614... |
func (l *EchoLogrus) Infoj(j log.JSON) {
l.Logger.WithFields(logrus.Fields(j)).Info()
} | [
-0.2686145305633545,
-0.17883329093456268,
0.3246546685695648,
-0.17108140885829926,
-0.5916908383369446,
0.5230509638786316,
-0.012289959006011486,
-0.36562222242355347,
-0.27576741576194763,
-0.16748307645320892,
-0.7966102957725525,
1.0269635915756226,
1.156046986579895,
1.5349283218383... |
func (l *EchoLogrus) Warnj(j log.JSON) {
l.Logger.WithFields(logrus.Fields(j)).Warn()
} | [
-0.4775561988353729,
0.6307410597801208,
0.22635439038276672,
-0.21384917199611664,
-0.9433555603027344,
-0.04673852398991585,
-0.1456054300069809,
-0.5424582958221436,
-0.42866823077201843,
-0.11318963766098022,
-0.8193349242210388,
1.245308756828308,
1.1716164350509644,
1.009467720985412... |
func (l *EchoLogrus) Fatalj(j log.JSON) {
l.Logger.WithFields(logrus.Fields(j)).Fatal()
} | [
0.02392156422138214,
0.035545896738767624,
0.13427278399467468,
0.40675172209739685,
-0.6980770230293274,
0.6577231287956238,
-0.3639600872993469,
-0.2634698152542114,
0.39494428038597107,
-0.36605778336524963,
-0.49884700775146484,
0.40989136695861816,
0.7975170016288757,
1.48586940765380... |
func (l *EchoLogrus) Panicj(j log.JSON) {
l.Logger.WithFields(logrus.Fields(j)).Panic()
} | [
-0.36864882707595825,
0.25951486825942993,
0.0040513575077056885,
0.1583392173051834,
-0.8396766781806946,
0.6751425862312317,
0.12810705602169037,
-0.42564159631729126,
-0.14435823261737823,
-0.05831850692629814,
-0.9902613759040833,
0.39839714765548706,
0.8847896456718445,
1.244295954704... |
func GenerateKey() (vrfp.PrivateKey, vrfp.PublicKey) {
key, err := ecdsa.GenerateKey(curve, rand.Reader)
if err != nil {
return nil, nil
}
return &PrivateKey{PrivateKey: key}, &PublicKey{PublicKey: &key.PublicKey}
} | [
-0.28691500425338745,
0.189448282122612,
0.34688013792037964,
-0.36735501885414124,
1.2580870389938354,
0.25705888867378235,
-0.684992253780365,
-0.36463066935539246,
1.1061043739318848,
0.3854382336139679,
-0.6249995231628418,
0.41243627667427063,
-0.5560594201087952,
-0.4902721345424652,... |
func H1(m []byte) (x, y *big.Int) {
h := sha512.New()
var i uint32
byteLen := (curve.BitSize + 7) >> 3
for x == nil && i < 100 {
// TODO: Use a NIST specified DRBG.
h.Reset()
if err := binary.Write(h, binary.BigEndian, i); err != nil {
panic(err)
}
if _, err := h.Write(m); err != nil {
panic(err)
... | [
-0.2857963442802429,
0.7651947736740112,
0.5888104438781738,
0.5245955586433411,
-1.146006464958191,
0.21858176589012146,
0.2872740924358368,
0.04150426760315895,
-0.11396528780460358,
0.7297253012657166,
0.08317365497350693,
-0.022992784157395363,
-0.30318814516067505,
-0.4024254381656647... |
func H2(m []byte) *big.Int {
// NIST SP 800-90A § A.5.1: Simple discard method.
byteLen := (curve.BitSize + 7) >> 3
h := sha512.New()
for i := uint32(0); ; i++ {
// TODO: Use a NIST specified DRBG.
h.Reset()
if err := binary.Write(h, binary.BigEndian, i); err != nil {
panic(err)
}
if _, err := h.Write(... | [
0.03157573938369751,
0.06416899710893631,
0.6529988050460815,
0.20004837214946747,
-1.5380901098251343,
-0.27598732709884644,
0.34144970774650574,
-0.5088734030723572,
-0.15700426697731018,
-0.007395422551780939,
-0.3066864609718323,
-0.15922683477401733,
-0.7873201370239258,
0.44353374838... |
func (k PrivateKey) Evaluate(m []byte) (index [32]byte, proof []byte) {
nilIndex := [32]byte{}
// Prover chooses r <-- [1,N-1]
r, _, _, err := elliptic.GenerateKey(curve, rand.Reader)
if err != nil {
return nilIndex, nil
}
ri := new(big.Int).SetBytes(r)
// H = H1(m)
Hx, Hy := H1(m)
// VRF_k(m) = [k]H
sHx,... | [
-0.4509783983230591,
-0.03889324888586998,
0.7543933391571045,
-0.053615670651197433,
-0.19372697174549103,
0.010792972519993782,
0.030904632061719894,
-0.6288701295852661,
-0.4487394690513611,
0.7716675400733948,
-0.8459742665290833,
-0.005649436265230179,
-0.4663819372653961,
0.055623017... |
func (pk *PublicKey) ProofToHash(m, proof []byte) (index [32]byte, err error) {
nilIndex := [32]byte{}
// verifier checks that s == H2(m, [t]G + [s]([k]G), [t]H1(m) + [s]VRF_k(m))
if got, want := len(proof), 64+65; got != want {
return nilIndex, ErrInvalidVRF
}
// Parse proof into s, t, and vrf.
s := proof[0:3... | [
0.17212896049022675,
0.12811830639839172,
0.5818843245506287,
0.516190767288208,
-0.8227995038032532,
0.2556360065937042,
0.5107148289680481,
-0.13254882395267487,
-0.6103607416152954,
0.5341372489929199,
-0.8627523183822632,
0.2063252180814743,
0.3567885756492615,
-0.4227655529975891,
-... |
func (k PrivateKey) Public() crypto.PublicKey {
return &k.PublicKey
} | [
0.07093802839517593,
0.0697561651468277,
-0.19499368965625763,
0.29094618558883667,
-0.2098730355501175,
0.23011204600334167,
-0.005280121695250273,
-0.2591867446899414,
-1.1771074533462524,
0.1362951397895813,
-0.5290866494178772,
0.7078962326049805,
-0.10770314931869507,
0.13829775154590... |
func (p Process) Wait() (*os.ProcessState, error) {
if p.ops == nil {
return nil, errInvalidProcess
}
return p.ops.wait()
} | [
0.6106187701225281,
-0.02027183026075363,
0.21028316020965576,
0.22211132943630219,
0.2906622290611267,
0.18965180218219757,
0.611446738243103,
-0.419116735458374,
0.6722322106361389,
-1.1404050588607788,
-0.10025569796562195,
-0.10907569527626038,
0.4854497015476227,
-0.6906765699386597,
... |
func (p Process) Pid() (int, error) {
// math.MinInt32 is returned here, because it's invalid value
// for the kill() system call.
if p.ops == nil {
return math.MinInt32, errInvalidProcess
}
return p.ops.pid(), nil
} | [
0.9054247736930847,
-0.5683865547180176,
0.48039326071739197,
0.6362072825431824,
-0.4093379080295563,
1.1165848970413208,
1.1030027866363525,
-0.29741254448890686,
0.8257079124450684,
-0.6086978912353516,
0.992597758769989,
0.14967802166938782,
-0.18873195350170135,
0.2232292741537094,
... |
func (p Process) Signal(sig os.Signal) error {
if p.ops == nil {
return errInvalidProcess
}
return p.ops.signal(sig)
} | [
-0.1481291651725769,
0.22106005251407623,
0.15031777322292328,
1.026799201965332,
-0.7678695917129517,
0.3454079329967499,
0.38422834873199463,
-0.14275091886520386,
0.5384334325790405,
-0.6975522637367249,
-0.46225765347480774,
0.054606713354587555,
0.4968303442001343,
0.6257126927375793,... |
func Accum(op uint32, value float32) {
C.glowAccum(gpAccum, (C.GLenum)(op), (C.GLfloat)(value))
} | [
1.2061710357666016,
0.44650110602378845,
0.4058004319667816,
-0.20971815288066864,
-0.28887882828712463,
0.5940138697624207,
1.4317960739135742,
-0.6996237635612488,
-0.009182913228869438,
0.060554832220077515,
0.2379297912120819,
1.0638707876205444,
1.260101079940796,
0.45757365226745605,... |
func ActiveShaderProgram(pipeline uint32, program uint32) {
C.glowActiveShaderProgram(gpActiveShaderProgram, (C.GLuint)(pipeline), (C.GLuint)(program))
} | [
0.6399579644203186,
-1.4579291343688965,
0.46101611852645874,
-0.39372900128364563,
-0.617361307144165,
0.57546067237854,
0.7324269413948059,
-0.7941216230392456,
0.6916705369949341,
-0.011434209533035755,
-0.7702928781509399,
0.8367546200752258,
-0.3441886007785797,
-1.0745470523834229,
... |
func ActiveTexture(texture uint32) {
C.glowActiveTexture(gpActiveTexture, (C.GLenum)(texture))
} | [
-0.010543977841734886,
-1.4780997037887573,
0.3104873299598694,
-0.2731117904186249,
-0.44874829053878784,
0.6703449487686157,
1.0126917362213135,
-0.23962852358818054,
1.0317140817642212,
-0.545985221862793,
-0.5750433802604675,
0.6822597980499268,
-0.624091386795044,
-0.5954142212867737,... |
func AlphaFunc(xfunc uint32, ref float32) {
C.glowAlphaFunc(gpAlphaFunc, (C.GLenum)(xfunc), (C.GLfloat)(ref))
} | [
0.9220024347305298,
-0.16047050058841705,
0.46122321486473083,
-0.9824894666671753,
-0.238525390625,
0.8419885635375977,
0.9930890202522278,
0.14567528665065765,
-0.18143625557422638,
0.24537983536720276,
0.6388330459594727,
1.0062657594680786,
0.8820645809173584,
0.5201899409294128,
0.0... |
func AreTexturesResident(n int32, textures *uint32, residences *bool) bool {
ret := C.glowAreTexturesResident(gpAreTexturesResident, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)), (*C.GLboolean)(unsafe.Pointer(residences)))
return ret == TRUE
} | [
-0.3792835772037506,
0.16070763766765594,
0.38758549094200134,
-0.9396440982818604,
0.06298323720693588,
0.5766880512237549,
0.10818194597959518,
-0.10344363749027252,
0.42603814601898193,
0.40387988090515137,
-0.35773956775665283,
-0.62771075963974,
-1.4484459161758423,
-0.023063557222485... |
func ArrayElement(i int32) {
C.glowArrayElement(gpArrayElement, (C.GLint)(i))
} | [
-0.11017709225416183,
0.34723004698753357,
0.4418775141239166,
-0.15052010118961334,
0.3944553732872009,
0.9487972855567932,
1.0108394622802734,
-1.1536272764205933,
-0.32694804668426514,
-0.07754498720169067,
-0.8511459231376648,
1.1277110576629639,
-0.34266865253448486,
0.955388009548187... |
func AttachShader(program uint32, shader uint32) {
C.glowAttachShader(gpAttachShader, (C.GLuint)(program), (C.GLuint)(shader))
} | [
0.04168315976858139,
-0.45187753438949585,
0.4623063802719116,
-0.04581594839692116,
-0.5546362400054932,
1.4150660037994385,
-0.09743668884038925,
-0.7162784934043884,
0.3131956458091736,
-0.5153089761734009,
0.002333377255126834,
1.1110910177230835,
-0.3088924288749695,
1.189388632774353... |
func Begin(mode uint32) {
C.glowBegin(gpBegin, (C.GLenum)(mode))
} | [
-0.3956538736820221,
0.2350899577140808,
0.35776403546333313,
0.016319958493113518,
-0.5426232218742371,
1.460641860961914,
1.2991580963134766,
-0.6426260471343994,
-0.18248572945594788,
-0.6714260578155518,
-0.5964662432670593,
0.752134382724762,
0.018124312162399292,
0.6865597367286682,
... |
func BeginQuery(target uint32, id uint32) {
C.glowBeginQuery(gpBeginQuery, (C.GLenum)(target), (C.GLuint)(id))
} | [
-0.022792134433984756,
-0.38592374324798584,
0.2968554198741913,
-0.6048771739006042,
-0.7193426489830017,
0.3677050769329071,
0.10798681527376175,
-0.7285399436950684,
0.46254876255989075,
-0.4401075541973114,
0.5124853253364563,
1.785479187965393,
0.10590822994709015,
0.16191169619560242... |
func BeginTransformFeedback(primitiveMode uint32) {
C.glowBeginTransformFeedback(gpBeginTransformFeedback, (C.GLenum)(primitiveMode))
} | [
-0.4037759006023407,
0.11301113665103912,
0.48918211460113525,
-0.8467826247215271,
-0.3800159692764282,
0.1467444747686386,
1.1298789978027344,
-0.040458742529153824,
0.697585940361023,
-0.7392404675483704,
-1.1263186931610107,
1.0169293880462646,
-0.1819678694009781,
0.7709880471229553,
... |
func BindAttribLocation(program uint32, index uint32, name *uint8) {
C.glowBindAttribLocation(gpBindAttribLocation, (C.GLuint)(program), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))
} | [
-0.009254024364054203,
-1.3668895959854126,
0.4662594795227051,
-0.8278736472129822,
-0.8959576487541199,
1.429222583770752,
1.0512266159057617,
-0.17718151211738586,
0.6733970046043396,
-0.04303393512964249,
-0.3377753794193268,
1.4882234334945679,
0.10737275332212448,
-0.4199259877204895... |
func BindBuffer(target uint32, buffer uint32) {
C.glowBindBuffer(gpBindBuffer, (C.GLenum)(target), (C.GLuint)(buffer))
} | [
-0.5103763937950134,
-0.7275893688201904,
0.3857443630695343,
-0.2263295203447342,
0.4205780327320099,
1.360411524772644,
-0.13783672451972961,
-0.5772037506103516,
0.18107090890407562,
-1.1980866193771362,
-0.6303277611732483,
1.5846900939941406,
-0.5470086336135864,
0.037471555173397064,... |
func BindBufferBase(target uint32, index uint32, buffer uint32) {
C.glowBindBufferBase(gpBindBufferBase, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer))
} | [
-0.32496902346611023,
-1.2058175802230835,
0.5519150495529175,
-0.40441349148750305,
0.5864130258560181,
0.8242724537849426,
0.1597403734922409,
-1.0614862442016602,
0.0724869966506958,
-0.5914282202720642,
-1.074549674987793,
1.318549633026123,
-0.7892062067985535,
-0.5528653264045715,
... |
func BindBufferRange(target uint32, index uint32, buffer uint32, offset int, size int) {
C.glowBindBufferRange(gpBindBufferRange, (C.GLenum)(target), (C.GLuint)(index), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizeiptr)(size))
} | [
-0.2501697540283203,
-1.1643697023391724,
0.640998363494873,
-0.8722034692764282,
0.13555870950222015,
1.1479452848434448,
0.024225234985351562,
-0.3764488697052002,
0.006119213066995144,
-0.8513438105583191,
-1.3060965538024902,
1.50198495388031,
-0.4984164535999298,
-0.5001224875450134,
... |
func BindBuffersBase(target uint32, first uint32, count int32, buffers *uint32) {
C.glowBindBuffersBase(gpBindBuffersBase, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)))
} | [
0.3496675193309784,
-0.9458425045013428,
0.7479050159454346,
-0.21402543783187866,
0.4389919936656952,
0.4104582369327545,
0.18956051766872406,
-1.1827611923217773,
0.042629703879356384,
-0.5005143284797668,
-1.1582987308502197,
0.6054444909095764,
-0.8873996138572693,
-0.22973118722438812... |
func BindBuffersRange(target uint32, first uint32, count int32, buffers *uint32, offsets *int, sizes *int) {
C.glowBindBuffersRange(gpBindBuffersRange, (C.GLenum)(target), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizeiptr)(unsafe.Pointer... | [
0.14736953377723694,
-0.7896882891654968,
0.5118119716644287,
-0.666612446308136,
0.1913861334323883,
0.8350095152854919,
0.44634532928466797,
-0.7103078365325928,
-0.29010292887687683,
-0.5651082992553711,
-1.0946760177612305,
0.774446964263916,
-0.22376297414302826,
0.04234637692570686,
... |
func BindFragDataLocation(program uint32, color uint32, name *uint8) {
C.glowBindFragDataLocation(gpBindFragDataLocation, (C.GLuint)(program), (C.GLuint)(color), (*C.GLchar)(unsafe.Pointer(name)))
} | [
-0.40457063913345337,
-0.5204689502716064,
0.5192519426345825,
-1.191115379333496,
-0.19779318571090698,
0.9110062122344971,
0.2763937711715698,
0.07620073109865189,
-0.13288044929504395,
-0.7297854423522949,
-0.8249765038490295,
1.2655587196350098,
0.0008338853367604315,
-0.03864750638604... |
func BindFragDataLocationIndexed(program uint32, colorNumber uint32, index uint32, name *uint8) {
C.glowBindFragDataLocationIndexed(gpBindFragDataLocationIndexed, (C.GLuint)(program), (C.GLuint)(colorNumber), (C.GLuint)(index), (*C.GLchar)(unsafe.Pointer(name)))
} | [
-0.5883190631866455,
-0.605614423751831,
0.49188125133514404,
-1.2415236234664917,
0.30380386114120483,
0.7306970953941345,
0.7360292077064514,
-0.2032044380903244,
-0.06979578733444214,
-0.8908727765083313,
-0.6358634233474731,
1.2833030223846436,
-0.08059515058994293,
-0.6000340580940247... |
func BindFramebuffer(target uint32, framebuffer uint32) {
C.glowBindFramebuffer(gpBindFramebuffer, (C.GLenum)(target), (C.GLuint)(framebuffer))
} | [
-0.526192843914032,
-0.850888192653656,
0.5080363750457764,
0.25728970766067505,
-0.162058025598526,
0.6839576363563538,
-0.20625969767570496,
-0.942289412021637,
0.5610619783401489,
-1.1494011878967285,
-0.5271446108818054,
0.9031585454940796,
-0.28390321135520935,
0.5367590188980103,
0... |
func BindImageTexture(unit uint32, texture uint32, level int32, layered bool, layer int32, access uint32, format uint32) {
C.glowBindImageTexture(gpBindImageTexture, (C.GLuint)(unit), (C.GLuint)(texture), (C.GLint)(level), (C.GLboolean)(boolToInt(layered)), (C.GLint)(layer), (C.GLenum)(access), (C.GLenum)(format))
} | [
-0.3349103033542633,
-0.9994410872459412,
0.6318142414093018,
-0.8279705047607422,
-0.17236007750034332,
0.9142093062400818,
0.16130469739437103,
-0.4066811203956604,
-0.5278003811836243,
0.1301807016134262,
0.02136073261499405,
0.7116407752037048,
-0.3004891872406006,
0.4468337893486023,
... |
func BindImageTextures(first uint32, count int32, textures *uint32) {
C.glowBindImageTextures(gpBindImageTextures, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(textures)))
} | [
-0.17646360397338867,
-0.4379308223724365,
0.347978800535202,
-0.34085533022880554,
-0.07484035938978195,
0.5256227254867554,
0.8711817264556885,
-0.8907994627952576,
-0.17914237082004547,
-0.1184978038072586,
-0.6100578904151917,
-0.5435489416122437,
-0.47578373551368713,
0.35791510343551... |
func BindProgramPipeline(pipeline uint32) {
C.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline))
} | [
-0.17680178582668304,
-0.5394800305366516,
0.2324560433626175,
0.07572876662015915,
-0.6023324728012085,
1.6670335531234741,
0.6812789440155029,
-0.5214462280273438,
0.4549904763698578,
-0.678628146648407,
-0.6379398107528687,
0.8200188875198364,
-0.4598626494407654,
0.1455748975276947,
... |
func BindRenderbuffer(target uint32, renderbuffer uint32) {
C.glowBindRenderbuffer(gpBindRenderbuffer, (C.GLenum)(target), (C.GLuint)(renderbuffer))
} | [
-0.9624696969985962,
-0.694346010684967,
0.7161398530006409,
-0.5529469847679138,
0.06456076353788376,
1.2840148210525513,
-0.2447090893983841,
-0.5248575806617737,
0.6021195650100708,
-1.0507832765579224,
-0.8373667597770691,
1.1474661827087402,
-1.0610381364822388,
0.0968681201338768,
... |
func BindSampler(unit uint32, sampler uint32) {
C.glowBindSampler(gpBindSampler, (C.GLuint)(unit), (C.GLuint)(sampler))
} | [
-0.12059143930673599,
-1.140894889831543,
0.4827013909816742,
0.19604183733463287,
-0.8088070154190063,
1.098204493522644,
0.48551714420318604,
-0.763623833656311,
0.4398401975631714,
-0.8197482228279114,
-0.08569017797708511,
0.5032325983047485,
-0.39964568614959717,
1.1226563453674316,
... |
func BindSamplers(first uint32, count int32, samplers *uint32) {
C.glowBindSamplers(gpBindSamplers, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(samplers)))
} | [
-0.1696614921092987,
-0.8003631830215454,
0.3918759524822235,
-0.14843150973320007,
0.3708144724369049,
0.3724619746208191,
0.5204752087593079,
-0.8080252408981323,
0.014132901094853878,
-0.4860690236091614,
-0.5769711136817932,
-0.039303284138441086,
-0.9337878823280334,
0.896285474300384... |
func BindTexture(target uint32, texture uint32) {
C.glowBindTexture(gpBindTexture, (C.GLenum)(target), (C.GLuint)(texture))
} | [
-0.42109614610671997,
-0.8561785221099854,
0.4150371849536896,
-0.5332236289978027,
-0.27015435695648193,
1.1432197093963623,
-0.3290647268295288,
-0.38629084825515747,
0.3676556944847107,
-0.30879613757133484,
-0.09994235634803772,
1.079330563545227,
-0.5996199250221252,
0.042416553944349... |
func BindTextureUnit(unit uint32, texture uint32) {
C.glowBindTextureUnit(gpBindTextureUnit, (C.GLuint)(unit), (C.GLuint)(texture))
} | [
-0.3041812479496002,
-0.9563320875167847,
0.5200707912445068,
-1.1162724494934082,
-0.6855186820030212,
1.6114542484283447,
0.12921278178691864,
-0.4398684501647949,
0.3529152274131775,
-0.6045948266983032,
-0.19169819355010986,
1.0002459287643433,
-0.8593252897262573,
0.3220280408859253,
... |
func BindTextures(first uint32, count int32, textures *uint32) {
C.glowBindTextures(gpBindTextures, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(textures)))
} | [
0.11966076493263245,
-0.34094157814979553,
0.29688242077827454,
-0.5010256171226501,
-0.24948179721832275,
0.44181233644485474,
0.8582941293716431,
-0.6448202729225159,
0.0970974937081337,
-0.47324153780937195,
-0.7434524297714233,
-0.49841436743736267,
-0.9242469668388367,
0.5412951111793... |
func BindTransformFeedback(target uint32, id uint32) {
C.glowBindTransformFeedback(gpBindTransformFeedback, (C.GLenum)(target), (C.GLuint)(id))
} | [
-0.6720265746116638,
-1.057560682296753,
0.349783718585968,
-1.098981261253357,
0.20710419118404388,
0.22146441042423248,
0.1937834620475769,
-0.36467140913009644,
0.3114736080169678,
-0.5960407257080078,
-1.1487526893615723,
0.9952206611633301,
-0.4500579237937927,
0.38107022643089294,
... |
func BindVertexArray(array uint32) {
C.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))
} | [
-0.6152957677841187,
-0.5974860787391663,
0.4899055063724518,
0.7814282774925232,
-0.46909618377685547,
1.5237257480621338,
1.1645197868347168,
-0.8412782549858093,
1.637190580368042,
-0.0008549609337933362,
-0.6068946123123169,
0.879418134689331,
-0.862432599067688,
0.8615544438362122,
... |
func BindVertexBuffer(bindingindex uint32, buffer uint32, offset int, stride int32) {
C.glowBindVertexBuffer(gpBindVertexBuffer, (C.GLuint)(bindingindex), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(stride))
} | [
0.32766449451446533,
-0.7456064224243164,
0.6643599271774292,
0.07236935943365097,
-0.6691672801971436,
1.4725234508514404,
0.7015249133110046,
-0.39777714014053345,
1.00083327293396,
-0.01608523353934288,
-0.8924031257629395,
1.2002726793289185,
-1.2420438528060913,
-0.5438594222068787,
... |
func BindVertexBuffers(first uint32, count int32, buffers *uint32, offsets *int, strides *int32) {
C.glowBindVertexBuffers(gpBindVertexBuffers, (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C.GLsizei)(unsafe.Pointer(strides)))
} | [
0.5758451819419861,
-0.35200750827789307,
0.5319077968597412,
0.0945359542965889,
0.1198904812335968,
0.7933487892150879,
0.7319924235343933,
-0.5133121609687805,
0.40097418427467346,
-0.13993266224861145,
-1.116189956665039,
0.6947559714317322,
-0.7316808104515076,
0.031026555225253105,
... |
func BlendColor(red float32, green float32, blue float32, alpha float32) {
C.glowBlendColor(gpBlendColor, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue), (C.GLfloat)(alpha))
} | [
0.5846366286277771,
0.18078455328941345,
0.49823713302612305,
0.29042330384254456,
1.164495587348938,
1.2152036428451538,
0.1672806739807129,
-0.47659650444984436,
-1.0676387548446655,
-0.5198743343353271,
-0.16973508894443512,
-0.03230947256088257,
-0.2905724048614502,
0.8899484276771545,... |
func BlendEquation(mode uint32) {
C.glowBlendEquation(gpBlendEquation, (C.GLenum)(mode))
} | [
-0.6503810882568359,
0.03665003553032875,
0.3489929139614105,
1.03501296043396,
0.6116845011711121,
1.1309312582015991,
1.678764820098877,
-0.5057495832443237,
-0.10165514796972275,
-0.2083292305469513,
-1.0378522872924805,
-0.24007001519203186,
-0.3469063639640808,
0.34420767426490784,
... |
func BlendEquationSeparate(modeRGB uint32, modeAlpha uint32) {
C.glowBlendEquationSeparate(gpBlendEquationSeparate, (C.GLenum)(modeRGB), (C.GLenum)(modeAlpha))
} | [
-0.22490553557872772,
-0.4431406259536743,
0.629851758480072,
-0.40174925327301025,
0.8478236794471741,
0.7177991271018982,
0.515252411365509,
-0.9406834244728088,
-0.24095433950424194,
-0.3033364415168762,
-0.21051189303398132,
-0.815747857093811,
-0.5151094794273376,
0.35592547059059143,... |
func BlendFuncSeparate(sfactorRGB uint32, dfactorRGB uint32, sfactorAlpha uint32, dfactorAlpha uint32) {
C.glowBlendFuncSeparate(gpBlendFuncSeparate, (C.GLenum)(sfactorRGB), (C.GLenum)(dfactorRGB), (C.GLenum)(sfactorAlpha), (C.GLenum)(dfactorAlpha))
} | [
-0.09067684412002563,
-0.09896406531333923,
0.5832095146179199,
0.4944000244140625,
0.6857578754425049,
-0.5159351825714111,
0.9140585660934448,
-0.37007761001586914,
0.38769716024398804,
-0.6587007641792297,
-0.5905101299285889,
0.7607550024986267,
-0.6827231049537659,
-0.221104696393013,... |
func BlitFramebuffer(srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {
C.glowBlitFramebuffer(gpBlitFramebuffer, (C.GLint)(srcX0), (C.GLint)(srcY0), (C.GLint)(srcX1), (C.GLint)(srcY1), (C.GLint)(dstX0), (C.GLint)(dstY0), (C.GLint)(dstX1... | [
-0.2807077467441559,
-0.2218007743358612,
0.7528690695762634,
-0.40794238448143005,
-0.20480096340179443,
0.5051125884056091,
0.9889517426490784,
-0.7622308135032654,
-0.09455081075429916,
-0.2693342864513397,
-0.5179861783981323,
0.8783049583435059,
-0.507317304611206,
0.13861948251724243... |
func BlitNamedFramebuffer(readFramebuffer uint32, drawFramebuffer uint32, srcX0 int32, srcY0 int32, srcX1 int32, srcY1 int32, dstX0 int32, dstY0 int32, dstX1 int32, dstY1 int32, mask uint32, filter uint32) {
C.glowBlitNamedFramebuffer(gpBlitNamedFramebuffer, (C.GLuint)(readFramebuffer), (C.GLuint)(drawFramebuffer), (C... | [
-0.1190842017531395,
-0.4112778902053833,
0.8792954683303833,
-0.6671962141990662,
-0.9759144186973572,
0.6116898655891418,
0.9319195747375488,
-1.2274821996688843,
0.11294376850128174,
-0.19922681152820587,
-0.8569809198379517,
0.7896840572357178,
-0.5241051912307739,
0.07478240132331848,... |
func BufferData(target uint32, size int, data unsafe.Pointer, usage uint32) {
C.glowBufferData(gpBufferData, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLenum)(usage))
} | [
0.10784117877483368,
0.14257436990737915,
0.611029863357544,
-0.7198713421821594,
-0.11009176075458527,
1.0322976112365723,
0.19007594883441925,
-0.980617105960846,
0.5258201360702515,
-0.6791190505027771,
-0.7433586716651917,
1.510357141494751,
0.3660486042499542,
-0.15308520197868347,
... |
func BufferStorage(target uint32, size int, data unsafe.Pointer, flags uint32) {
C.glowBufferStorage(gpBufferStorage, (C.GLenum)(target), (C.GLsizeiptr)(size), data, (C.GLbitfield)(flags))
} | [
0.17753037810325623,
0.09351985156536102,
0.34322789311408997,
-0.5308853983879089,
-0.04722491651773453,
0.9038587212562561,
0.8147305846214294,
-1.5719350576400757,
0.5490453839302063,
-0.6506399512290955,
-1.6728432178497314,
0.6913480162620544,
-0.30230310559272766,
-0.4736217260360718... |
func BufferStorageExternalEXT(target uint32, offset int, size int, clientBuffer unsafe.Pointer, flags uint32) {
C.glowBufferStorageExternalEXT(gpBufferStorageExternalEXT, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), (C.GLeglClientBufferEXT)(clientBuffer), (C.GLbitfield)(flags))
} | [
0.8982266783714294,
-0.029864000156521797,
0.599266529083252,
-1.3058871030807495,
-0.6202725768089294,
1.0280988216400146,
-0.06461340934038162,
-0.23185324668884277,
0.2464030534029007,
-0.22529694437980652,
-1.5539182424545288,
0.8160107135772705,
-0.6018350720405579,
-0.458803921937942... |
func BufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {
C.glowBufferSubData(gpBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)
} | [
0.7412245869636536,
-0.19485729932785034,
0.5411362051963806,
-1.3045085668563843,
-1.052564024925232,
1.8965580463409424,
-0.11349902302026749,
-0.5087081789970398,
0.27760306000709534,
-1.2332714796066284,
-1.5679750442504883,
2.3352510929107666,
0.3501272201538086,
-0.7700225710868835,
... |
func CallList(list uint32) {
C.glowCallList(gpCallList, (C.GLuint)(list))
} | [
-0.5024298429489136,
0.8116521835327148,
0.22704847157001495,
0.18470947444438934,
0.034014102071523666,
1.3472416400909424,
-0.6061187982559204,
-0.531967043876648,
1.0993103981018066,
0.2071126103401184,
-1.3446677923202515,
-0.2738281190395355,
-0.36579230427742004,
1.705748200416565,
... |
func CallLists(n int32, xtype uint32, lists unsafe.Pointer) {
C.glowCallLists(gpCallLists, (C.GLsizei)(n), (C.GLenum)(xtype), lists)
} | [
-0.38792064785957336,
1.027621865272522,
0.3129938244819641,
-0.04311626777052879,
-0.6087134480476379,
1.0650701522827148,
-0.7235354781150818,
-1.279693603515625,
1.1273969411849976,
0.03520536422729492,
-0.6371468901634216,
-0.1660623401403427,
-0.7465033531188965,
1.5340617895126343,
... |
func CheckFramebufferStatus(target uint32) uint32 {
ret := C.glowCheckFramebufferStatus(gpCheckFramebufferStatus, (C.GLenum)(target))
return (uint32)(ret)
} | [
-0.9112311601638794,
-0.07566742599010468,
0.5262991189956665,
0.3368802070617676,
-0.3502425253391266,
0.2565593719482422,
0.10617860406637192,
-0.9392648935317993,
0.22887352108955383,
-0.5453623533248901,
-1.0594284534454346,
0.268202006816864,
-0.20737864077091217,
1.217457890510559,
... |
func CheckNamedFramebufferStatus(framebuffer uint32, target uint32) uint32 {
ret := C.glowCheckNamedFramebufferStatus(gpCheckNamedFramebufferStatus, (C.GLuint)(framebuffer), (C.GLenum)(target))
return (uint32)(ret)
} | [
-0.3990398049354553,
-0.33770257234573364,
0.5764583349227905,
-0.005767850670963526,
-0.7120260000228882,
0.4773975908756256,
-0.02659747749567032,
-1.3162403106689453,
0.4389016628265381,
-0.16585294902324677,
-1.6350419521331787,
0.5946134328842163,
-0.5443999767303467,
1.09300780296325... |
func ClampColor(target uint32, clamp uint32) {
C.glowClampColor(gpClampColor, (C.GLenum)(target), (C.GLenum)(clamp))
} | [
-0.14313939213752747,
-0.18229587376117706,
0.4179289638996124,
-0.07968002557754517,
0.008551185019314289,
1.0852177143096924,
-0.09999240934848785,
-1.0530446767807007,
0.014489660039544106,
0.5846603512763977,
0.3709624409675598,
1.1152210235595703,
-0.20269161462783813,
0.1226053833961... |
func Clear(mask uint32) {
C.glowClear(gpClear, (C.GLbitfield)(mask))
} | [
0.09655679017305374,
0.9163159728050232,
0.186279758810997,
0.7213900089263916,
-0.26176759600639343,
1.929344892501831,
0.7922187447547913,
-2.017738103866577,
-0.3162063658237457,
-0.5815558433532715,
-0.15929754078388214,
0.7249669432640076,
-0.19882573187351227,
0.3210894465446472,
-... |
func ClearAccum(red float32, green float32, blue float32, alpha float32) {
C.glowClearAccum(gpClearAccum, (C.GLfloat)(red), (C.GLfloat)(green), (C.GLfloat)(blue), (C.GLfloat)(alpha))
} | [
1.180238962173462,
-0.5234454274177551,
0.6321241855621338,
-0.9208746552467346,
-0.06524433940649033,
1.0068985223770142,
0.589387059211731,
-0.8049861192703247,
-0.27618589997291565,
0.1273522526025772,
0.9966819286346436,
1.7098069190979004,
1.1855483055114746,
0.0014990040799602866,
... |
func ClearBufferData(target uint32, internalformat uint32, format uint32, xtype uint32, data unsafe.Pointer) {
C.glowClearBufferData(gpClearBufferData, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLenum)(format), (C.GLenum)(xtype), data)
} | [
-0.17339517176151276,
-0.10724761337041855,
0.5469973087310791,
-1.1232117414474487,
-0.38809627294540405,
0.9056328535079956,
-0.7718573808670044,
-0.9277041554450989,
0.3046518564224243,
0.0010945159010589123,
-0.35768643021583557,
1.8706921339035034,
-0.6303673982620239,
-0.006995970383... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.