query
stringlengths
7
3.85k
document
stringlengths
11
430k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Specify the value of a uniform variable for the current program object
func Uniform3ui(location int32, v0 uint32, v1 uint32, v2 uint32) { C.glowUniform3ui(gpUniform3ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.5787262
52
Specify the value of a uniform variable for the current program object
func Uniform3uiv(location int32, count int32, value *uint32) { C.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func Uniform4f(location int32, v0 float32, v1 float32, v2 float32, v3 float32) { C.glowUniform4f(gpUniform4f, (C.GLint)(location), (C.GLfloat)(v0), (C.GLfloat)(v1), (C.GLfloat)(v2), (C.GLfloat)(v3)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.75753504", "0.65816534", "0.6486437", "0.6448379", "0.6412938", "0.63686436", "0.6353555", "0.63283783", "0.6301342", "0.62500095", "0.6246228", "0.623952", "0.62270397", "0.6226674", "0.6215848", "0.6184048", "0.6178847", "0.617014", "0.61181873", "0.61090964", "0.6108105...
0.0
-1
Specify the value of a uniform variable for the current program object
func Uniform4fv(location int32, count int32, value *float32) { C.glowUniform4fv(gpUniform4fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func Uniform4i(location int32, v0 int32, v1 int32, v2 int32, v3 int32) { C.glowUniform4i(gpUniform4i, (C.GLint)(location), (C.GLint)(v0), (C.GLint)(v1), (C.GLint)(v2), (C.GLint)(v3)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func Uniform4iv(location int32, count int32, value *int32) { C.glowUniform4iv(gpUniform4iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func Uniform4ui(location int32, v0 uint32, v1 uint32, v2 uint32, v3 uint32) { C.glowUniform4ui(gpUniform4ui, (C.GLint)(location), (C.GLuint)(v0), (C.GLuint)(v1), (C.GLuint)(v2), (C.GLuint)(v3)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.75753504", "0.65816534", "0.6486437", "0.6448379", "0.6412938", "0.63686436", "0.6353555", "0.63283783", "0.6301342", "0.62500095", "0.6246228", "0.623952", "0.62270397", "0.6226674", "0.6215848", "0.6184048", "0.6178847", "0.617014", "0.61181873", "0.61090964", "0.6108105...
0.0
-1
Specify the value of a uniform variable for the current program object
func Uniform4uiv(location int32, count int32, value *uint32) { C.glowUniform4uiv(gpUniform4uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
assign a binding point to an active uniform block
func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) { C.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) {\n C.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding))\n}", "func UniformBlockBinding(program uint32, uniformBlockIndex uint32, unifor...
[ "0.7516506", "0.73970157", "0.67103416", "0.6162668", "0.61129", "0.59428215", "0.5871232", "0.5795333", "0.56753325", "0.5654195", "0.565125", "0.565125", "0.5581575", "0.5580207", "0.5578521", "0.55610204", "0.54424196", "0.5413678", "0.5413678", "0.5412441", "0.5365961", ...
0.71820974
3
Specify the value of a uniform variable for the current program object
func UniformMatrix2fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix2fv(gpUniformMatrix2fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func UniformMatrix2x3fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix2x3fv(gpUniformMatrix2x3fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.75753504", "0.65816534", "0.6486437", "0.6448379", "0.6412938", "0.63686436", "0.6353555", "0.63283783", "0.6301342", "0.62500095", "0.6246228", "0.623952", "0.62270397", "0.6226674", "0.6215848", "0.6184048", "0.6178847", "0.617014", "0.61181873", "0.61090964", "0.6108105...
0.0
-1
Specify the value of a uniform variable for the current program object
func UniformMatrix2x4fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix2x4fv(gpUniformMatrix2x4fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func UniformMatrix3fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix3fv(gpUniformMatrix3fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func UniformMatrix3x2fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix3x2fv(gpUniformMatrix3x2fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func UniformMatrix3x4fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix3x4fv(gpUniformMatrix3x4fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.75753504", "0.65816534", "0.6486437", "0.6448379", "0.6412938", "0.63686436", "0.6353555", "0.63283783", "0.6301342", "0.62500095", "0.6246228", "0.623952", "0.62270397", "0.6226674", "0.6215848", "0.6184048", "0.6178847", "0.617014", "0.61181873", "0.61090964", "0.6108105...
0.0
-1
Specify the value of a uniform variable for the current program object
func UniformMatrix4fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix4fv(gpUniformMatrix4fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func UniformMatrix4x2fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix4x2fv(gpUniformMatrix4x2fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
Specify the value of a uniform variable for the current program object
func UniformMatrix4x3fv(location int32, count int32, transpose bool, value *float32) { C.glowUniformMatrix4x3fv(gpUniformMatrix4x3fv, (C.GLint)(location), (C.GLsizei)(count), (C.GLboolean)(boolToInt(transpose)), (*C.GLfloat)(unsafe.Pointer(value))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Shader) setUniform(name string, value int32) {\n location:=gl.GetUniformLocation(s.idPrograma, gl.Str(name + \"\\x00\"))\n if location != -1 { // Si existe ese nombre de variable\n gl.Uniform1i(location, value)\n }\n}", "func Uniform1ui(location int32, v0 uint32) {\n C.glowUniform1ui(gp...
[ "0.7574669", "0.65830624", "0.6486839", "0.6450151", "0.6415091", "0.6369731", "0.6354713", "0.63287956", "0.6303149", "0.625209", "0.6247739", "0.62409264", "0.6228146", "0.62280524", "0.6218001", "0.6184524", "0.6178961", "0.6171075", "0.61197543", "0.6110173", "0.6107993",...
0.0
-1
release the mapping of a buffer object's data store into the client's address space
func UnmapBuffer(target uint32) bool { ret := C.glowUnmapBuffer(gpUnmapBuffer, (C.GLenum)(target)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func freeBuffer(b []uint16) { pathPool.Put(&b) }", "func ReleaseBuffer(buffer Buffer) {\n\tpool.put(buffer)\n}", "func freeBuffer(buf *bytes.Buffer) {\n\tbuf.Reset()\n\tbufferPool.Put(buf)\n}", "func (b *Buffer) Unmap() {\n\tif err := syscall.Munmap(b.data); err != nil {\n\t\t// Munmap should only fail if we...
[ "0.6360279", "0.6233377", "0.6182859", "0.6179102", "0.6156608", "0.61229074", "0.611156", "0.60971445", "0.5979537", "0.5945978", "0.5925793", "0.5728288", "0.5718486", "0.5699453", "0.568494", "0.5674383", "0.5617173", "0.5597435", "0.55922043", "0.5564974", "0.5550262", ...
0.52682257
51
release the mapping of a buffer object's data store into the client's address space
func UnmapNamedBuffer(buffer uint32) bool { ret := C.glowUnmapNamedBuffer(gpUnmapNamedBuffer, (C.GLuint)(buffer)) return ret == TRUE }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func freeBuffer(b []uint16) { pathPool.Put(&b) }", "func ReleaseBuffer(buffer Buffer) {\n\tpool.put(buffer)\n}", "func freeBuffer(buf *bytes.Buffer) {\n\tbuf.Reset()\n\tbufferPool.Put(buf)\n}", "func (b *Buffer) Unmap() {\n\tif err := syscall.Munmap(b.data); err != nil {\n\t\t// Munmap should only fail if we...
[ "0.63605636", "0.62343866", "0.61829543", "0.6179874", "0.6156878", "0.6124171", "0.6112555", "0.60977274", "0.5980005", "0.59455603", "0.59254944", "0.57283777", "0.5718656", "0.5700671", "0.56851476", "0.5674769", "0.56173784", "0.5598055", "0.5592035", "0.556546", "0.55507...
0.0
-1
Installs a program object as part of current rendering state
func UseProgram(program uint32) { C.glowUseProgram(gpUseProgram, (C.GLuint)(program)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (g *Glados) Install(p Program) {\n\tp.Initialize(g.context)\n}", "func (s *BasemumpsListener) EnterProgram(ctx *ProgramContext) {}", "func (s *BaseednListener) EnterProgram(ctx *ProgramContext) {}", "func (s *BaselimboListener) EnterProgram(ctx *ProgramContext) {}", "func (m *ProgramControl) SetProgra...
[ "0.6601935", "0.5577433", "0.5532297", "0.55190074", "0.54315835", "0.54222775", "0.5310743", "0.52736914", "0.52664983", "0.52376086", "0.5236084", "0.5174912", "0.5165309", "0.5145333", "0.5128205", "0.51269186", "0.5029895", "0.50205016", "0.50123334", "0.49999633", "0.498...
0.49810016
22
bind stages of a program object to a program pipeline
func UseProgramStages(pipeline uint32, stages uint32, program uint32) { C.glowUseProgramStages(gpUseProgramStages, (C.GLuint)(pipeline), (C.GLbitfield)(stages), (C.GLuint)(program)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func BindProgramPipeline(pipeline uint32) {\n\tsyscall.Syscall(gpBindProgramPipeline, 1, uintptr(pipeline), 0, 0)\n}", "func BindProgramPipeline(pipeline uint32) {\n C.glowBindProgramPipeline(gpBindProgramPipeline, (C.GLuint)(pipeline))\n}", "func UseProgramStages(pipeline uint32, stages uint32, program uint3...
[ "0.6752098", "0.66414595", "0.6432922", "0.6372531", "0.63490987", "0.63490987", "0.6081436", "0.57505757", "0.5726231", "0.57058334", "0.56212425", "0.55893713", "0.55839556", "0.55702245", "0.5557205", "0.5492777", "0.54848546", "0.5463763", "0.54187477", "0.5393618", "0.53...
0.5890888
8
Validates a program object
func ValidateProgram(program uint32) { C.glowValidateProgram(gpValidateProgram, (C.GLuint)(program)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ValidateProgram(program uint32) {\n\tsyscall.Syscall(gpValidateProgram, 1, uintptr(program), 0, 0)\n}", "func ValidateProgram(p Program) {\n\tgl.ValidateProgram(uint32(p.Value))\n}", "func (program Program) Validate() {\n\tgl.ValidateProgram(uint32(program))\n}", "func ValidateProgram(program uint32) {\...
[ "0.7270061", "0.7249362", "0.69771254", "0.66362655", "0.66003406", "0.6464705", "0.6423058", "0.61642987", "0.61294854", "0.61111176", "0.61111176", "0.6020925", "0.60131925", "0.5882836", "0.5812173", "0.5726016", "0.56827605", "0.558339", "0.55819315", "0.555211", "0.55492...
0.66741914
4
validate a program pipeline object against current GL state
func ValidateProgramPipeline(pipeline uint32) { C.glowValidateProgramPipeline(gpValidateProgramPipeline, (C.GLuint)(pipeline)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ValidateProgramPipeline(pipeline uint32) {\n C.glowValidateProgramPipeline(gpValidateProgramPipeline, (C.GLuint)(pipeline))\n}", "func ValidateProgramPipeline(pipeline uint32) {\n\tsyscall.Syscall(gpValidateProgramPipeline, 1, uintptr(pipeline), 0, 0)\n}", "func (program Program) Validate() {\n\tgl.Valid...
[ "0.74746823", "0.6731713", "0.6551851", "0.64383775", "0.6245982", "0.61394584", "0.60337305", "0.5953966", "0.5953966", "0.58388495", "0.58388495", "0.5645202", "0.5524264", "0.5472183", "0.53179294", "0.5312197", "0.5256163", "0.5168857", "0.51653886", "0.50983286", "0.5040...
0.7019538
2
specify the organization of vertex arrays
func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) { C.glowVertexArrayAttribFormat(gpVertexArrayAttribFormat, (C.GLuint)(vaobj), (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GenVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpGenVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func CreateVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpCreateVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func GenVertexArray...
[ "0.6463195", "0.610398", "0.58718437", "0.566262", "0.55963093", "0.55963093", "0.5537298", "0.54546165", "0.54507667", "0.54507667", "0.5286554", "0.52663535", "0.5186143", "0.51363295", "0.51329684", "0.513001", "0.51296", "0.5127267", "0.5097957", "0.50875235", "0.5082941"...
0.47652546
37
modify the rate at which generic vertex attributes advance
func VertexArrayBindingDivisor(vaobj uint32, bindingindex uint32, divisor uint32) { C.glowVertexArrayBindingDivisor(gpVertexArrayBindingDivisor, (C.GLuint)(vaobj), (C.GLuint)(bindingindex), (C.GLuint)(divisor)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func updateVertexPropertiesByValue(v vertex) {\n\tv.X = 99\n\tv.Y = 100\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n C.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean...
[ "0.55066013", "0.5492991", "0.54180616", "0.5271248", "0.5162985", "0.5162985", "0.50893974", "0.5087943", "0.5078003", "0.5054774", "0.4997187", "0.49625048", "0.4911294", "0.4887429", "0.4885495", "0.48813608", "0.4869709", "0.48450896", "0.4839983", "0.4823592", "0.4823379...
0.0
-1
configures element array buffer binding of a vertex array object
func VertexArrayElementBuffer(vaobj uint32, buffer uint32) { C.glowVertexArrayElementBuffer(gpVertexArrayElementBuffer, (C.GLuint)(vaobj), (C.GLuint)(buffer)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func VertexArrayElementBuffer(vaobj uint32, buffer uint32) {\n\tsyscall.Syscall(gpVertexArrayElementBuffer, 2, uintptr(vaobj), uintptr(buffer), 0)\n}", "func BindVertexArray(array uint32) {\n C.glowBindVertexArray(gpBindVertexArray, (C.GLuint)(array))\n}", "func BindVertexBuffer(bindingindex uint32, buffer ui...
[ "0.6812471", "0.63346744", "0.60070163", "0.5919415", "0.5838578", "0.5784936", "0.5784936", "0.5742084", "0.5697762", "0.56712234", "0.5617249", "0.55991", "0.55972564", "0.55628425", "0.55407476", "0.55211926", "0.5479424", "0.54697263", "0.54628944", "0.5455496", "0.545284...
0.65609473
2
bind a buffer to a vertex buffer bind point
func VertexArrayVertexBuffer(vaobj uint32, bindingindex uint32, buffer uint32, offset int, stride int32) { C.glowVertexArrayVertexBuffer(gpVertexArrayVertexBuffer, (C.GLuint)(vaobj), (C.GLuint)(bindingindex), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(stride)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func BindVertexBuffer(bindingindex uint32, buffer uint32, offset int, stride int32) {\n C.glowBindVertexBuffer(gpBindVertexBuffer, (C.GLuint)(bindingindex), (C.GLuint)(buffer), (C.GLintptr)(offset), (C.GLsizei)(stride))\n}", "func BindVertexBuffer(bindingindex uint32, buffer uint32, offset int, stride int32) {\...
[ "0.7717517", "0.7427129", "0.7296413", "0.7296413", "0.7165118", "0.7128333", "0.7120448", "0.7113185", "0.7086752", "0.70815086", "0.7040799", "0.69675136", "0.6961297", "0.6934498", "0.692607", "0.6769211", "0.6769211", "0.6749382", "0.6749382", "0.67335546", "0.67189157", ...
0.0
-1
attach multiple buffer objects to a vertex array object
func VertexArrayVertexBuffers(vaobj uint32, first uint32, count int32, buffers *uint32, offsets *int, strides *int32) { C.glowVertexArrayVertexBuffers(gpVertexArrayVertexBuffers, (C.GLuint)(vaobj), (C.GLuint)(first), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(buffers)), (*C.GLintptr)(unsafe.Pointer(offsets)), (*C....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (g *Gaffer) AddBuffer(u *Update) {\n\n\tfor _, v := range u.entities {\n\t\tg.AddEntity(v)\n\t}\n\n\tfor _, v := range u.edges {\n\t\tg.AddEdge(v)\n\t}\n\n}", "func BindVertexBuffers(first uint32, count int32, buffers *uint32, offsets *int, strides *int32) {\n C.glowBindVertexBuffers(gpBindVertexBuffers, (...
[ "0.68458647", "0.6728047", "0.6564569", "0.6445395", "0.6346768", "0.6346768", "0.6325015", "0.62588865", "0.61179435", "0.61179435", "0.6057369", "0.6017042", "0.5837031", "0.5797567", "0.5795221", "0.5682038", "0.5667529", "0.56582224", "0.56328213", "0.56065065", "0.559492...
0.60733587
11
associate a vertex attribute and a vertex buffer binding for a vertex array object
func VertexAttribBinding(attribindex uint32, bindingindex uint32) { C.glowVertexAttribBinding(gpVertexAttribBinding, (C.GLuint)(attribindex), (C.GLuint)(bindingindex)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func VertexAttribBinding(attribindex uint32, bindingindex uint32) {\n\tsyscall.Syscall(gpVertexAttribBinding, 2, uintptr(attribindex), uintptr(bindingindex), 0)\n}", "func VertexAttribBinding(attribindex uint32, bindingindex uint32) {\n C.glowVertexAttribBinding(gpVertexAttribBinding, (C.GLuint)(attribindex), (...
[ "0.68547904", "0.6743009", "0.6741084", "0.6625099", "0.6493961", "0.6493961", "0.6490114", "0.6389717", "0.63623494", "0.63459045", "0.63459045", "0.6336172", "0.63083893", "0.6249529", "0.6241081", "0.6213756", "0.6213756", "0.61740565", "0.6144265", "0.61220485", "0.610998...
0.64875996
8
modify the rate at which generic vertex attributes advance during instanced rendering
func VertexAttribDivisor(index uint32, divisor uint32) { C.glowVertexAttribDivisor(gpVertexAttribDivisor, (C.GLuint)(index), (C.GLuint)(divisor)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n C.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset))\n}", "func updateVertexP...
[ "0.5833556", "0.5568279", "0.5490112", "0.5490112", "0.5446266", "0.5413768", "0.526388", "0.525501", "0.5107573", "0.5106031", "0.50174326", "0.5004756", "0.49653375", "0.49506205", "0.49493805", "0.49430954", "0.4941604", "0.49349153", "0.49183545", "0.49183545", "0.4908700...
0.47090188
34
specify the organization of vertex arrays
func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) { C.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLuint)(relativeoffset)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GenVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpGenVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func CreateVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpCreateVertexArrays, 2, uintptr(n), uintptr(unsafe.Pointer(arrays)), 0)\n}", "func GenVertexArray...
[ "0.6463195", "0.610398", "0.58718437", "0.566262", "0.55963093", "0.55963093", "0.5537298", "0.54546165", "0.54507667", "0.54507667", "0.5286554", "0.52663535", "0.5186143", "0.51363295", "0.51329684", "0.513001", "0.51296", "0.5127267", "0.5097957", "0.50875235", "0.5082941"...
0.0
-1
define an array of generic vertex attribute data
func VertexAttribPointer(index uint32, size int32, xtype uint32, normalized bool, stride int32, pointer unsafe.Pointer) { C.glowVertexAttribPointer(gpVertexAttribPointer, (C.GLuint)(index), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean)(boolToInt(normalized)), (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func VertexArrayAttribFormat(vaobj uint32, attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n\tsyscall.Syscall6(gpVertexArrayAttribFormat, 6, uintptr(vaobj), uintptr(attribindex), uintptr(size), uintptr(xtype), boolToUintptr(normalized), uintptr(relativeoffset))\n}", "func ...
[ "0.6018475", "0.59790426", "0.59790426", "0.54928094", "0.5361724", "0.5334103", "0.52668065", "0.5239197", "0.5222892", "0.52018154", "0.5195969", "0.5118828", "0.5111598", "0.4996417", "0.49856642", "0.49856642", "0.49538386", "0.49482667", "0.49336687", "0.49333584", "0.49...
0.50040287
14
modify the rate at which generic vertex attributes advance
func VertexBindingDivisor(bindingindex uint32, divisor uint32) { C.glowVertexBindingDivisor(gpVertexBindingDivisor, (C.GLuint)(bindingindex), (C.GLuint)(divisor)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func updateVertexPropertiesByValue(v vertex) {\n\tv.X = 99\n\tv.Y = 100\n}", "func VertexAttribFormat(attribindex uint32, size int32, xtype uint32, normalized bool, relativeoffset uint32) {\n C.glowVertexAttribFormat(gpVertexAttribFormat, (C.GLuint)(attribindex), (C.GLint)(size), (C.GLenum)(xtype), (C.GLboolean...
[ "0.55066013", "0.5492991", "0.54180616", "0.5271248", "0.5162985", "0.5162985", "0.50893974", "0.5087943", "0.5078003", "0.5054774", "0.4997187", "0.49625048", "0.4911294", "0.4887429", "0.4885495", "0.48813608", "0.4869709", "0.48450896", "0.4839983", "0.4823592", "0.4823379...
0.0
-1
define an array of vertex data
func VertexPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { C.glowVertexPointer(gpVertexPointer, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func parseVertex(t []string) []float32 {\n\tx, _ := strconv.ParseFloat(t[0], 32)\n\ty, _ := strconv.ParseFloat(t[1], 32)\n\tz, _ := strconv.ParseFloat(t[2], 32)\n\n\treturn []float32{float32(x), float32(y), float32(z)}\n}", "func GenVertexArrays(n int32, arrays *uint32) {\n\tsyscall.Syscall(gpGenVertexArrays, 2,...
[ "0.6129742", "0.59212106", "0.5778975", "0.5738032", "0.5717602", "0.56907153", "0.56209373", "0.558559", "0.55725765", "0.5521232", "0.5467294", "0.545394", "0.5438082", "0.5419766", "0.54090035", "0.53825307", "0.53743285", "0.53129154", "0.53129154", "0.52997726", "0.52852...
0.45999703
91
instruct the GL server to block until the specified sync object becomes signaled
func WaitSync(sync uintptr, flags uint32, timeout uint64) { C.glowWaitSync(gpWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func WaitSync(sync unsafe.Pointer, flags uint32, timeout uint64) {\n C.glowWaitSync(gpWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout))\n}", "func (t *SyncTransport) Wait() {}", "func ClientWaitSync(sync unsafe.Pointer, flags uint32, timeout uint64) uint32 {\n ret := C.glowClientWaitS...
[ "0.7098089", "0.69326735", "0.6809982", "0.6290501", "0.6278876", "0.6278876", "0.61027205", "0.6015282", "0.5965006", "0.5965006", "0.5937372", "0.59017175", "0.5779154", "0.5749223", "0.5747772", "0.56566155", "0.56526095", "0.56198734", "0.56154585", "0.5594554", "0.557854...
0.686502
3
Init initializes the OpenGL bindings by loading the function pointers (for each OpenGL function) from the active OpenGL context. It must be called under the presence of an active OpenGL context, e.g., always after calling window.MakeContextCurrent() and always before calling any OpenGL functions exported by this packag...
func Init() error { return InitWithProcAddrFunc(getProcAddress) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InitOpenGL(config conf.Type) *glfw.Window {\n\t// GLFW event handling must run on the main OS thread\n\truntime.LockOSThread()\n\n\twindow := initGlfw(config)\n\n\t// Initialize Glow\n\tif err := gl.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\n\tversion := gl.GoStr(gl.GetString(gl.VERSION))\n\tfmt.Println(\"O...
[ "0.694817", "0.6794991", "0.6745803", "0.6681078", "0.66469157", "0.64658636", "0.6388166", "0.6286236", "0.62599766", "0.6244929", "0.6136527", "0.61313415", "0.6110317", "0.60342824", "0.59894735", "0.5978203", "0.59713745", "0.5969408", "0.59156835", "0.58726984", "0.58059...
0.7112222
3
InitWithProcAddrFunc intializes the package using the specified OpenGL function pointer loading function. For more cases Init should be used instead.
func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error { gpAccum = (C.GPACCUM)(getProcAddr("glAccum")) if gpAccum == nil { return errors.New("glAccum") } gpAccumxOES = (C.GPACCUMXOES)(getProcAddr("glAccumxOES")) gpAcquireKeyedMutexWin32EXT = (C.GPACQUIREKEYEDMUTEXWIN32EXT)(getProcAddr("glA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {\n\tgpActiveProgramEXT = (C.GPACTIVEPROGRAMEXT)(getProcAddr(\"glActiveProgramEXT\"))\n\tgpActiveShaderProgram = (C.GPACTIVESHADERPROGRAM)(getProcAddr(\"glActiveShaderProgram\"))\n\tif gpActiveShaderProgram == nil {\n\t\treturn errors.Ne...
[ "0.7627731", "0.74668086", "0.7393767", "0.7325216", "0.7147598", "0.61411834", "0.61411834", "0.61411834", "0.61411834", "0.61411834", "0.5539727", "0.5478305", "0.54418695", "0.5139724", "0.50461745", "0.499371", "0.49179232", "0.49076882", "0.48972118", "0.48831984", "0.48...
0.720732
4
Get ... get user info from database based on the userID
func (user *User) Get() *errors.RestError { if err := users_db.Client.Ping(); err != nil { panic(err) } // we are modifying the user struct on which this method is called result := usersDB[user.ID] if result == nil { return errors.NotFoundError(fmt.Sprintf("user %d not found", user.ID)) } user.ID = result.I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (h *Handler) GetUser(w http.ResponseWriter, r *http.Request) {\n\tid, err := strconv.Atoi(r.URL.Query().Get(\"id\"))\n\tif err != nil {\n\t\trender.BadRequest(w, r, \"id must be an integer greater zero\")\n\t\treturn\n\t}\n\n\t// Query user details from userID\n\tuser, err := h.Client.User.\n\t\tQuery().\n\t\...
[ "0.72995746", "0.7276703", "0.72607493", "0.7196814", "0.715972", "0.7152634", "0.7103343", "0.7072607", "0.70679986", "0.70452684", "0.7027339", "0.70146674", "0.7000339", "0.6999609", "0.6996533", "0.69863117", "0.69863117", "0.6985611", "0.698419", "0.6981329", "0.69779897...
0.0
-1
Create ... add the user in the database
func (user *User) Create() *errors.RestError { // check if user already exists or email passed has already been registered or not current := usersDB[user.ID] if current != nil { if current.Email == user.Email { return errors.BadRequestError(fmt.Sprintf("email %s already registered", user.Email)) } return er...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func createUser(c *gin.Context) {\n password,_ := HashPassword(c.PostForm(\"password\"))\n\tuser := user{Login: c.PostForm(\"login\"), Password: password}\n\tdb.Save(&user)\n\tc.JSON(http.StatusCreated, gin.H{\"status\": http.StatusCreated, \"message\": \"User item created successfully!\"})\n}", "func (m *Manag...
[ "0.7694747", "0.7638043", "0.7622946", "0.7618689", "0.7525921", "0.74885136", "0.7476399", "0.7475762", "0.74559957", "0.74559957", "0.74354273", "0.74333864", "0.7412331", "0.73934203", "0.7353384", "0.73532635", "0.73454905", "0.73454905", "0.7340917", "0.7322137", "0.7321...
0.0
-1
AddDefaultIndexes registers the default list of indexes.
func AddDefaultIndexes(ctx context.Context, mgr ctrl.Manager) error { if err := ByMachineNode(ctx, mgr); err != nil { return err } if err := ByMachineProviderID(ctx, mgr); err != nil { return err } if feature.Gates.Enabled(feature.ClusterTopology) { if err := ByClusterClassName(ctx, mgr); err != nil { r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *AutoIndexingServiceGetIndexesFunc) SetDefaultHook(hook func(context.Context, shared.GetIndexesOptions) ([]types.Index, int, error)) {\n\tf.defaultHook = hook\n}", "func (f *ResolverGetIndexesByIDsFunc) SetDefaultHook(hook func(context.Context, ...int) ([]dbstore.Index, error)) {\n\tf.defaultHook = hook\...
[ "0.67015946", "0.65820223", "0.6558238", "0.62669903", "0.6112775", "0.56924784", "0.56649387", "0.5607494", "0.55619687", "0.5535923", "0.5508265", "0.5426262", "0.5390371", "0.53833604", "0.5379549", "0.53476596", "0.533891", "0.5274567", "0.52689487", "0.5254998", "0.51951...
0.8728488
0
Stores an AMI as a single object in an Amazon S3 bucket. To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 ( in the Amazon EC2 User Guide. For more information, see Store and restore an AMI using Amazon S3 ( in the Amazon EC2 Us...
func (c *Client) CreateStoreImageTask(ctx context.Context, params *CreateStoreImageTaskInput, optFns ...func(*Options)) (*CreateStoreImageTaskOutput, error) { if params == nil { params = &CreateStoreImageTaskInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateStoreImageTask", params, optFns, c.addOpe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *S3Storage) Store(key string, value []byte) error {\n\tfilename := s.Filename(key)\n\t_, err := s.svc.PutObject(&s3.PutObjectInput{\n\t\tBucket: s.bucket,\n\t\tKey: aws.String(filename),\n\t\tBody: bytes.NewReader(value),\n\t})\n\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}", "func (s *S...
[ "0.6625141", "0.62223977", "0.61105776", "0.6016857", "0.6008618", "0.5963718", "0.58719385", "0.58295226", "0.58285195", "0.5809193", "0.57523006", "0.57390285", "0.5737391", "0.5711197", "0.5703194", "0.56723785", "0.56028825", "0.55971855", "0.5572212", "0.55717814", "0.55...
0.0
-1
NewGetExpertsIDOK creates a GetExpertsIDOK with default headers values
func NewGetExpertsIDOK() *GetExpertsIDOK { return &GetExpertsIDOK{} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewHeaders()(*Headers) {\n m := &Headers{\n }\n m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance();\n m.SetAdditionalData(make(map[string]any))\n return m\n}", "func NewGetExpertsIDNotFound() *GetExpertsIDNotFound {\n\treturn &GetE...
[ "0.52048504", "0.50141585", "0.49261788", "0.49157447", "0.48796216", "0.48618028", "0.4814184", "0.4784542", "0.47726068", "0.47679058", "0.4764017", "0.4754235", "0.47503725", "0.47489637", "0.47346237", "0.4730298", "0.47297364", "0.46538106", "0.46452156", "0.46190605", "...
0.64392835
0
NewGetExpertsIDNotFound creates a GetExpertsIDNotFound with default headers values
func NewGetExpertsIDNotFound() *GetExpertsIDNotFound { return &GetExpertsIDNotFound{} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewNotFound(parameters ...wparams.ParamStorer) Error {\n\treturn newGenericError(nil, DefaultNotFound, wparams.NewParamStorer(parameters...))\n}", "func NewNotFound(s string, v ...interface{}) error {\n\treturn asNotFound(fmt.Errorf(s, v...))\n}", "func NewGetCustomIntegrationVersionByIDUsingGETNotFound()...
[ "0.5662817", "0.56517524", "0.5495926", "0.54688585", "0.5418953", "0.5308546", "0.52899915", "0.5279872", "0.5270878", "0.52628124", "0.5241968", "0.52075416", "0.52074784", "0.5170049", "0.5167049", "0.5156365", "0.51450014", "0.5113342", "0.5108819", "0.50972646", "0.50907...
0.71422535
0
MUST handle in releaseLock
func (ins *Cache) releseCap(now time.Time) { if now.Sub(ins.released) < time.Duration(24)*time.Hour { return } storage := new(sync.Map) scanAll := func(key, value interface{}) (continueIteration bool) { continueIteration = true i, ok := value.(*item) if !ok { return } if i.expire.Before(now) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (this *Lock) Release() error {\n\tres, err := this.manager.GetClient().Get(this.name).Result()\n\tif err != nil {\n\t\treturn err\n\t}\n\tif this.value != res {\n\t\treturn ERR_NOT_MINE_LOCK\n\t}\n\terr = this.manager.GetClient().Watch(func(tx *redis.Tx) error {\n\t\tres, err := tx.Del(this.name).Result()\n\t...
[ "0.6725946", "0.6714185", "0.6642396", "0.651982", "0.63804114", "0.6305857", "0.62688553", "0.6244135", "0.6243528", "0.6236122", "0.6226666", "0.62004864", "0.61916286", "0.61893415", "0.618555", "0.6169945", "0.61335224", "0.6116611", "0.61159647", "0.61142194", "0.6100884...
0.0
-1
NewCreateCoreV1NamespacedPodBindingOK creates CreateCoreV1NamespacedPodBindingOK with default headers values
func NewCreateCoreV1NamespacedPodBindingOK() *CreateCoreV1NamespacedPodBindingOK { return &CreateCoreV1NamespacedPodBindingOK{} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingOK) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingOK {\n\to.Payload = payload\n\treturn o\n}", "func NewCreateCoreV1NamespacedPodBindingUnauthorized() *CreateCoreV1NamespacedPodBindingUnauthorized {\n\n\treturn &CreateCoreV1Namespaced...
[ "0.63520384", "0.6186931", "0.6132766", "0.58211017", "0.5794697", "0.56063914", "0.538274", "0.53195673", "0.525624", "0.5243301", "0.510414", "0.49943492", "0.4982679", "0.49806482", "0.4952446", "0.49439883", "0.49132204", "0.488667", "0.48738325", "0.48653427", "0.4865312...
0.7081246
0
WithPayload adds the payload to the create core v1 namespaced pod binding o k response
func (o *CreateCoreV1NamespacedPodBindingOK) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingOK { o.Payload = payload return o }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingCreated) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingCreated {\n\to.Payload = payload\n\treturn o\n}", "func (o *CreateCoreV1NamespacedPodBindingCreated) SetPayload(payload *models.IoK8sAPICoreV1Binding) {\n\to.Payload = payload\n}"...
[ "0.71600986", "0.60759914", "0.59215206", "0.58727187", "0.5759193", "0.56535906", "0.55602", "0.54629165", "0.54402953", "0.53990656", "0.5341951", "0.53034186", "0.5286376", "0.5239901", "0.51543856", "0.51484925", "0.5105422", "0.50624555", "0.50260985", "0.50252205", "0.5...
0.7258825
0
SetPayload sets the payload to the create core v1 namespaced pod binding o k response
func (o *CreateCoreV1NamespacedPodBindingOK) SetPayload(payload *models.IoK8sAPICoreV1Binding) { o.Payload = payload }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingCreated) SetPayload(payload *models.IoK8sAPICoreV1Binding) {\n\to.Payload = payload\n}", "func (o *CreateCoreV1NamespacedPodBindingAccepted) SetPayload(payload *models.IoK8sAPICoreV1Binding) {\n\to.Payload = payload\n}", "func (o *CreateCoreV1NamespacedServiceAccountTok...
[ "0.7574514", "0.6823581", "0.67944187", "0.6659133", "0.6657111", "0.6604768", "0.65083516", "0.64258933", "0.64172417", "0.6376208", "0.6357927", "0.6333871", "0.6318253", "0.63011295", "0.62972033", "0.6286647", "0.6250242", "0.6237566", "0.6207524", "0.6198076", "0.6186949...
0.7531282
1
WriteResponse to the client
func (o *CreateCoreV1NamespacedPodBindingOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(200) if o.Payload != nil { payload := o.Payload if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r *Response) Write(w io.Writer) error", "func (c *Operation) writeResponse(rw http.ResponseWriter, status int, data []byte) { // nolint: unparam\n\trw.WriteHeader(status)\n\n\tif _, err := rw.Write(data); err != nil {\n\t\tlogger.Errorf(\"Unable to send error message, %s\", err)\n\t}\n}", "func WriteResp...
[ "0.81291586", "0.78819287", "0.77723724", "0.7772298", "0.77532965", "0.7740895", "0.7667328", "0.76388013", "0.76095575", "0.75802743", "0.75792146", "0.7567954", "0.75612247", "0.7558208", "0.7545076", "0.75431097", "0.7542526", "0.7535154", "0.75308895", "0.75206727", "0.7...
0.0
-1
NewCreateCoreV1NamespacedPodBindingCreated creates CreateCoreV1NamespacedPodBindingCreated with default headers values
func NewCreateCoreV1NamespacedPodBindingCreated() *CreateCoreV1NamespacedPodBindingCreated { return &CreateCoreV1NamespacedPodBindingCreated{} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingCreated) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingCreated {\n\to.Payload = payload\n\treturn o\n}", "func NewCreateCoreV1NamespacedPodBindingOK() *CreateCoreV1NamespacedPodBindingOK {\n\n\treturn &CreateCoreV1NamespacedPodBinding...
[ "0.67203397", "0.65146136", "0.61902505", "0.5826266", "0.5626624", "0.5338982", "0.5282379", "0.5269274", "0.51406497", "0.5104435", "0.50959605", "0.50729924", "0.5071099", "0.505572", "0.5036529", "0.50199336", "0.5005163", "0.49661472", "0.49330437", "0.49266684", "0.4905...
0.66063935
1
WithPayload adds the payload to the create core v1 namespaced pod binding created response
func (o *CreateCoreV1NamespacedPodBindingCreated) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingCreated { o.Payload = payload return o }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingOK) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingOK {\n\to.Payload = payload\n\treturn o\n}", "func (o *CreateCoreV1NamespacedPodBindingCreated) SetPayload(payload *models.IoK8sAPICoreV1Binding) {\n\to.Payload = payload\n}", "func ...
[ "0.7040494", "0.6154935", "0.5884471", "0.5809372", "0.5791104", "0.56312996", "0.55489933", "0.5369722", "0.5353531", "0.53532404", "0.52937114", "0.5228546", "0.521564", "0.5198322", "0.51803315", "0.5170201", "0.50951815", "0.5085272", "0.50764763", "0.506338", "0.50485516...
0.72066486
0
SetPayload sets the payload to the create core v1 namespaced pod binding created response
func (o *CreateCoreV1NamespacedPodBindingCreated) SetPayload(payload *models.IoK8sAPICoreV1Binding) { o.Payload = payload }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingOK) SetPayload(payload *models.IoK8sAPICoreV1Binding) {\n\to.Payload = payload\n}", "func (o *CreateCoreV1NamespacedServiceAccountTokenCreated) SetPayload(payload *models.IoK8sAPIAuthenticationV1TokenRequest) {\n\to.Payload = payload\n}", "func (o *CreateCoreV1Namespace...
[ "0.73745334", "0.67489946", "0.67317206", "0.65107083", "0.6496046", "0.64906657", "0.64088506", "0.63850045", "0.6355121", "0.63480544", "0.6346671", "0.630173", "0.6298144", "0.6295662", "0.6277614", "0.62639123", "0.62403667", "0.6215138", "0.6203269", "0.6188285", "0.6186...
0.7524761
0
WriteResponse to the client
func (o *CreateCoreV1NamespacedPodBindingCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(201) if o.Payload != nil { payload := o.Payload if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r *Response) Write(w io.Writer) error", "func (c *Operation) writeResponse(rw http.ResponseWriter, status int, data []byte) { // nolint: unparam\n\trw.WriteHeader(status)\n\n\tif _, err := rw.Write(data); err != nil {\n\t\tlogger.Errorf(\"Unable to send error message, %s\", err)\n\t}\n}", "func WriteResp...
[ "0.81291586", "0.78819287", "0.77723724", "0.7772298", "0.77532965", "0.7740895", "0.7667328", "0.76388013", "0.76095575", "0.75802743", "0.75792146", "0.7567954", "0.75612247", "0.7558208", "0.7545076", "0.75431097", "0.7542526", "0.7535154", "0.75308895", "0.75206727", "0.7...
0.0
-1
NewCreateCoreV1NamespacedPodBindingAccepted creates CreateCoreV1NamespacedPodBindingAccepted with default headers values
func NewCreateCoreV1NamespacedPodBindingAccepted() *CreateCoreV1NamespacedPodBindingAccepted { return &CreateCoreV1NamespacedPodBindingAccepted{} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingAccepted) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingAccepted {\n\to.Payload = payload\n\treturn o\n}", "func NewCreateCoreV1NamespacedPodAccepted() *CreateCoreV1NamespacedPodAccepted {\n\treturn &CreateCoreV1NamespacedPodAccepted{...
[ "0.69764715", "0.6383097", "0.5926168", "0.5786029", "0.56956553", "0.5679013", "0.55781716", "0.5445475", "0.5294871", "0.5286224", "0.5186162", "0.51444805", "0.51283205", "0.5108229", "0.5104331", "0.51002", "0.5077701", "0.50480133", "0.50150347", "0.49778944", "0.4936965...
0.7632759
0
WithPayload adds the payload to the create core v1 namespaced pod binding accepted response
func (o *CreateCoreV1NamespacedPodBindingAccepted) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingAccepted { o.Payload = payload return o }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingOK) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingOK {\n\to.Payload = payload\n\treturn o\n}", "func (o *CreateCoreV1NamespacedPodBindingCreated) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingCrea...
[ "0.70985657", "0.690912", "0.59934586", "0.5980696", "0.5890719", "0.562042", "0.5577096", "0.5561206", "0.55545926", "0.55000454", "0.5474395", "0.54668474", "0.541072", "0.5405317", "0.5401887", "0.531384", "0.52732205", "0.51509947", "0.5120463", "0.51188976", "0.50566584"...
0.68989116
2
SetPayload sets the payload to the create core v1 namespaced pod binding accepted response
func (o *CreateCoreV1NamespacedPodBindingAccepted) SetPayload(payload *models.IoK8sAPICoreV1Binding) { o.Payload = payload }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *CreateCoreV1NamespacedPodBindingOK) SetPayload(payload *models.IoK8sAPICoreV1Binding) {\n\to.Payload = payload\n}", "func (o *CreateCoreV1NamespacedPodBindingCreated) SetPayload(payload *models.IoK8sAPICoreV1Binding) {\n\to.Payload = payload\n}", "func (o *DeleteCoreV1NamespacedPodAccepted) SetPayload...
[ "0.75172055", "0.7497375", "0.66724396", "0.65543294", "0.6517596", "0.65174407", "0.6512768", "0.6496514", "0.6486792", "0.6426278", "0.6409253", "0.6386514", "0.63626903", "0.6338393", "0.629963", "0.62987053", "0.62959146", "0.626049", "0.62459266", "0.624542", "0.6237902"...
0.73692214
2
WriteResponse to the client
func (o *CreateCoreV1NamespacedPodBindingAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(202) if o.Payload != nil { payload := o.Payload if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r *Response) Write(w io.Writer) error", "func (c *Operation) writeResponse(rw http.ResponseWriter, status int, data []byte) { // nolint: unparam\n\trw.WriteHeader(status)\n\n\tif _, err := rw.Write(data); err != nil {\n\t\tlogger.Errorf(\"Unable to send error message, %s\", err)\n\t}\n}", "func WriteResp...
[ "0.81291586", "0.78819287", "0.77723724", "0.7772298", "0.77532965", "0.7740895", "0.7667328", "0.76388013", "0.76095575", "0.75802743", "0.75792146", "0.7567954", "0.75612247", "0.7558208", "0.7545076", "0.75431097", "0.7542526", "0.7535154", "0.75308895", "0.75206727", "0.7...
0.0
-1
NewCreateCoreV1NamespacedPodBindingUnauthorized creates CreateCoreV1NamespacedPodBindingUnauthorized with default headers values
func NewCreateCoreV1NamespacedPodBindingUnauthorized() *CreateCoreV1NamespacedPodBindingUnauthorized { return &CreateCoreV1NamespacedPodBindingUnauthorized{} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewCreateCoreV1NamespacedPodUnauthorized() *CreateCoreV1NamespacedPodUnauthorized {\n\treturn &CreateCoreV1NamespacedPodUnauthorized{}\n}", "func NewCreateNetworkingV1beta1NamespacedIngressUnauthorized() *CreateNetworkingV1beta1NamespacedIngressUnauthorized {\n\n\treturn &CreateNetworkingV1beta1NamespacedIn...
[ "0.6324373", "0.56614023", "0.55299544", "0.5471965", "0.54620415", "0.5333958", "0.53161937", "0.52693075", "0.52219146", "0.52057135", "0.52049303", "0.5203383", "0.5196548", "0.5158162", "0.5138266", "0.50582945", "0.505557", "0.50355905", "0.5028456", "0.4977101", "0.4967...
0.7638226
0
WriteResponse to the client
func (o *CreateCoreV1NamespacedPodBindingUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(401) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r *Response) Write(w io.Writer) error", "func (c *Operation) writeResponse(rw http.ResponseWriter, status int, data []byte) { // nolint: unparam\n\trw.WriteHeader(status)\n\n\tif _, err := rw.Write(data); err != nil {\n\t\tlogger.Errorf(\"Unable to send error message, %s\", err)\n\t}\n}", "func WriteResp...
[ "0.81303823", "0.7882039", "0.77722245", "0.7771901", "0.7753117", "0.7740585", "0.76670325", "0.7638451", "0.76095873", "0.75798", "0.7579178", "0.7567389", "0.7560546", "0.75579476", "0.75447774", "0.7542929", "0.75416607", "0.753386", "0.7531158", "0.75192654", "0.75191355...
0.0
-1
Deprecated: Use HealthzResponse.ProtoReflect.Descriptor instead.
func (*HealthzResponse) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{0} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*GetMetricsInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{44}\n}", "func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_internal_proto_files_domain_probes_proto_rawDescGZIP(), []int{1}\n}", ...
[ "0.72234184", "0.7192154", "0.71803045", "0.7177596", "0.71530586", "0.7138842", "0.71346796", "0.71192706", "0.7109738", "0.7052012", "0.7050577", "0.70331615", "0.703126", "0.7029384", "0.7026832", "0.6991795", "0.69781077", "0.6950222", "0.6948693", "0.6942274", "0.694142"...
0.0
-1
Deprecated: Use PopularityListRequest.ProtoReflect.Descriptor instead.
func (*PopularityListRequest) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{1} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*ListMetricsRequest) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_analysis_proto_v1_metrics_proto_rawDescGZIP(), []int{0}\n}", "func (*PopularityListResponse) Descriptor() ([]byte, []int) {\n\treturn file_popularity_proto_rawDescGZIP(), []int{3}\n}", "func (*PopularityRequest) Descr...
[ "0.7237613", "0.71879435", "0.7142334", "0.7067568", "0.7032066", "0.6967289", "0.69310343", "0.6881598", "0.68485683", "0.6842119", "0.68362856", "0.68357027", "0.68323797", "0.6810191", "0.6805528", "0.67902154", "0.6782207", "0.6767958", "0.6764224", "0.6764095", "0.676043...
0.7821995
0
Deprecated: Use PopularityRequest.ProtoReflect.Descriptor instead.
func (*PopularityRequest) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{2} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*PopularityListRequest) Descriptor() ([]byte, []int) {\n\treturn file_popularity_proto_rawDescGZIP(), []int{1}\n}", "func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}", "func (*GetVersionRequest) Descriptor() ([]byte...
[ "0.7082874", "0.70466405", "0.70027757", "0.6991793", "0.6961903", "0.6930849", "0.69178694", "0.6898601", "0.688897", "0.68645346", "0.6864145", "0.6836272", "0.6826459", "0.68234265", "0.68149114", "0.68109876", "0.6810779", "0.6788016", "0.67873865", "0.67856604", "0.67804...
0.7320204
0
Deprecated: Use PopularityListResponse.ProtoReflect.Descriptor instead.
func (*PopularityListResponse) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{3} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{1}\n}", "func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_url_proto_rawDescGZIP(), []int{4}\n}", "func (*ListMetricsResponse) Descriptor() ([]byte, []int) {\n\treturn file_go_chr...
[ "0.71613175", "0.70811313", "0.6964309", "0.6961536", "0.69323695", "0.6889161", "0.68409914", "0.68287885", "0.6815276", "0.68109584", "0.6788512", "0.6770173", "0.6754738", "0.674238", "0.67397827", "0.668816", "0.66817975", "0.6667783", "0.6642515", "0.6640957", "0.6629113...
0.7601463
0
Deprecated: Use PopularityResponse.ProtoReflect.Descriptor instead.
func (*PopularityResponse) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{4} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*PopularityListResponse) Descriptor() ([]byte, []int) {\n\treturn file_popularity_proto_rawDescGZIP(), []int{3}\n}", "func (*GetMetricsInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{44}\n}", "func (*MetricsResp...
[ "0.7134704", "0.7111636", "0.70104676", "0.6936063", "0.6926665", "0.6925415", "0.6913843", "0.6790236", "0.6789545", "0.67850775", "0.67768216", "0.6768377", "0.6763497", "0.6756869", "0.6733272", "0.6728977", "0.67196757", "0.6716262", "0.670581", "0.6693681", "0.6683952", ...
0.7181659
0
NewSignInItemRequestBuilderInternal instantiates a new SignInItemRequestBuilder and sets the default values.
func NewSignInItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SignInItemRequestBuilder) { m := &SignInItemRequestBuilder{ } m.urlTemplate = "{+baseurl}/auditLogs/signIns/{signIn%2Did}{?%24select,%2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewSignInItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SignInItemRequestBuilder) {\n urlParams := make(map[string]string)\n urlParams[\"request-raw-url\"] = rawUrl\n return NewSignInItemRequestBuilderInternal(urlPar...
[ "0.7817571", "0.6820168", "0.67984176", "0.6735601", "0.6698511", "0.6693382", "0.66908264", "0.6585633", "0.6532462", "0.6530671", "0.6504501", "0.64920276", "0.6485399", "0.6475157", "0.6458795", "0.6455845", "0.64397204", "0.6429171", "0.6412303", "0.63747364", "0.63693976...
0.82037175
0
NewSignInItemRequestBuilder instantiates a new SignInItemRequestBuilder and sets the default values.
func NewSignInItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SignInItemRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl return NewSignInItemRequestBuilderInternal(urlParams, reque...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewSignInItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SignInItemRequestBuilder) {\n m := &SignInItemRequestBuilder{\n }\n m.urlTemplate = \"{+baseurl}/auditLogs/signIns/{signIn%2Did}{?%24...
[ "0.71854013", "0.6183314", "0.61416644", "0.6106175", "0.60573894", "0.6029274", "0.60251683", "0.59547544", "0.58809215", "0.5861404", "0.58487034", "0.58435464", "0.5836316", "0.57725453", "0.57585907", "0.57419944", "0.5733746", "0.57195973", "0.57034683", "0.5679502", "0....
0.767015
0
CreateDeleteRequestInformation delete navigation property signIns for auditLogs
func (m *SignInItemRequestBuilder) CreateDeleteRequestInformation(ctx context.Context, requestConfiguration *SignInItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa52...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *FeatureRolloutPolicyItemRequestBuilder) CreateDeleteRequestInformation(ctx context.Context, requestConfiguration *FeatureRolloutPolicyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {\n requestInfo := i2ae4187f7...
[ "0.5529863", "0.5494764", "0.5398166", "0.53773296", "0.53636146", "0.536103", "0.5348208", "0.5317319", "0.5315181", "0.5309135", "0.53069806", "0.52593434", "0.5257323", "0.52440953", "0.52417547", "0.5230657", "0.52286506", "0.52270484", "0.5217926", "0.5214338", "0.520800...
0.568479
0
CreateGetRequestInformation get signIns from auditLogs
func (m *SignInItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *SignInItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *AuditLogRoot) GetSignIns()([]SignInable) {\n return m.signIns\n}", "func (client *ActivityLogsClient) listCreateRequest(ctx context.Context, filter string, options *ActivityLogsClientListOptions) (*policy.Request, error) {\n\turlPath := \"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/e...
[ "0.63714105", "0.5750946", "0.57093227", "0.5690008", "0.5690008", "0.5670949", "0.54955417", "0.5459908", "0.54586697", "0.5455136", "0.54550415", "0.53972167", "0.5354743", "0.5329891", "0.5316478", "0.5302013", "0.52952754", "0.52943516", "0.52939355", "0.5288498", "0.5271...
0.5696193
3
CreatePatchRequestInformation update the navigation property signIns in auditLogs
func (m *SignInItemRequestBuilder) CreatePatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SignInable, requestConfiguration *SignInItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInfo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *FeatureRolloutPolicyItemRequestBuilder) CreatePatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FeatureRolloutPolicyable, requestConfiguration *FeatureRolloutPolicyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df6...
[ "0.6153004", "0.6016475", "0.6005193", "0.59767145", "0.5958665", "0.5954895", "0.5953825", "0.5938746", "0.5849038", "0.5848332", "0.57978785", "0.57497644", "0.5744608", "0.57161576", "0.5715564", "0.57017565", "0.5685839", "0.5648645", "0.5647827", "0.5638338", "0.5612328"...
0.633182
0
Delete delete navigation property signIns for auditLogs
func (m *SignInItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *SignInItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.CreateDeleteRequestInformation(ctx, requestConfiguration); if err != nil { return err } errorMapping := i2ae4187f7daee263371cb1c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *AuditLogRoot) GetSignIns()([]SignInable) {\n return m.signIns\n}", "func (m *AuditLogRoot) SetSignIns(value []SignInable)() {\n m.signIns = value\n}", "func (s *Store) Delete(c *gin.Context) {\n\n}", "func (r *ApplicationSignInDetailedSummaryRequest) Delete(ctx context.Context) error {\n\tretu...
[ "0.5412425", "0.5305244", "0.5249718", "0.5203781", "0.4818471", "0.4812257", "0.47313628", "0.47204867", "0.46644086", "0.46474785", "0.46195072", "0.4573802", "0.45625764", "0.4549814", "0.4546305", "0.4522622", "0.4507235", "0.44859743", "0.444619", "0.4432984", "0.4431792...
0.46305192
10
Get get signIns from auditLogs
func (m *SignInItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SignInItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SignInable, error) { requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration); if err != nil { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *AuditLogRoot) GetSignIns()([]SignInable) {\n return m.signIns\n}", "func (m *AuditLogRoot) SetSignIns(value []SignInable)() {\n m.signIns = value\n}", "func (m *VirtualEndpoint) GetAuditEvents()([]CloudPcAuditEventable) {\n val, err := m.GetBackingStore().Get(\"auditEvents\")\n if err != n...
[ "0.83751553", "0.60902816", "0.58264804", "0.5731779", "0.56144977", "0.5612283", "0.55906785", "0.5534106", "0.54527074", "0.5426797", "0.54082894", "0.5380552", "0.536059", "0.53536326", "0.53499144", "0.5282704", "0.5273912", "0.5266045", "0.5234781", "0.523054", "0.523013...
0.0
-1
Patch update the navigation property signIns in auditLogs
func (m *SignInItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SignInable, requestConfiguration *SignInItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SignInable, error) { requestInfo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *AuditLogRoot) SetSignIns(value []SignInable)() {\n m.signIns = value\n}", "func (m *AuditLogRoot) GetSignIns()([]SignInable) {\n return m.signIns\n}", "func (m *VirtualEndpoint) SetAuditEvents(value []CloudPcAuditEventable)() {\n err := m.GetBackingStore().Set(\"auditEvents\", value)\n if ...
[ "0.6980295", "0.62728244", "0.47821152", "0.474109", "0.46294597", "0.44938597", "0.44844028", "0.44775248", "0.44279256", "0.439973", "0.4396885", "0.43755698", "0.42842078", "0.42508966", "0.4250679", "0.42467237", "0.42163557", "0.41928867", "0.4186802", "0.41745827", "0.4...
0.40461096
25
getInstallationType returns the installation type as either CORE or FULL.
func getInstallationType(installationType string) (string, error) { switch installationType { case installationTypeServer: return windowsServerFull, nil case installationTypeServerCore: return windowsServerCore, nil default: return "", errors.Errorf("unsupported installation type: %s", installationType) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *DeeplinkRule) GetInstallType() string {\n\tif o == nil || o.InstallType == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.InstallType\n}", "func (o *AddOn) GetInstallMode() (value AddOnInstallMode, ok bool) {\n\tok = o != nil && o.bitmap_&512 != 0\n\tif ok {\n\t\tvalue = o.installMode\n\t}\...
[ "0.6033674", "0.5655952", "0.56538004", "0.5569289", "0.55534506", "0.548555", "0.5389482", "0.5383159", "0.5381609", "0.5369444", "0.5359032", "0.535424", "0.5350281", "0.5324424", "0.53146684", "0.53101766", "0.5280007", "0.527056", "0.52111757", "0.5170026", "0.51604617", ...
0.7311128
0
GetOSFamily returns the operating system family string. On Windows, it would be of the format "WINDOWS_SERVER__" In case of any exception this method just returns "windows" as operating system family.
func GetOSFamily() string { // Find the build number of the os on which agent is running. versionInfo := windowsGetVersionFunc() buildNumber := int(versionInfo.BuildNumber) osRelease, ok := osReleaseFromBuildNumber[buildNumber] if !ok { seelog.Errorf("windows release with build number [%d] is unsupported", build...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetOperatingSystemFamily() string {\n\tkey, err := winRegistry.OpenKey(ecsWinRegistryRootKey, ecsWinRegistryRootPath, registry.QUERY_VALUE)\n\tif err != nil {\n\t\tseelog.Errorf(\"Unable to open Windows registry key to determine Windows version: %v\", err)\n\t\treturn unsupportedWindowsOS\n\t}\n\tdefer key.Cl...
[ "0.7497416", "0.6440313", "0.6265161", "0.62639576", "0.62581", "0.61973", "0.6124115", "0.60934013", "0.60089207", "0.5989644", "0.5955059", "0.586677", "0.58603936", "0.5839756", "0.5819483", "0.58168316", "0.58055353", "0.5803999", "0.577336", "0.57567614", "0.5718889", ...
0.83538216
0
NewUserRepo initialization connect DB
func NewUserRepo() *UserRepo { return &UserRepo{db: GetDBConection()} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (userRepo *mockUserRepo) Initialize(ctx context.Context, db *sql.DB) {}", "func init() {\n\tRepoCreateDatabaseConnection(DatabaseConnection{Name: \"Write presentation\"})\n\tRepoCreateDatabaseConnection(DatabaseConnection{Name: \"Host meetup\"})\n}", "func newUserRepo(db *sql.DB) *userRepo {\n\treturn &us...
[ "0.7382365", "0.73226434", "0.7109526", "0.6860425", "0.6801838", "0.6564258", "0.6534635", "0.65003383", "0.6397164", "0.6376379", "0.6333213", "0.63192344", "0.6247616", "0.6244685", "0.62373036", "0.62302715", "0.61994195", "0.61708295", "0.6132863", "0.61285293", "0.61201...
0.0
-1
RegisterUser function insert user into DB
func (repo *UserRepo) RegisterUser(obj *models.User) bool { tx := repo.db.Begin() obj.Token = []byte(models.EncodeToken(obj.Email)) err := tx.Create(obj).Error if err != nil { log.Fatal(err) log.Println("Cannot insert user") return false } tx.Commit() return true }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Register(w http.ResponseWriter, r *http.Request) {\n\tvar t models.User\n\terr := json.NewDecoder(r.Body).Decode((&t))\n\tif err != nil {\n\t\thttp.Error(w, \"Error en los datos recibidos \"+err.Error(), 400)\n\t\treturn\n\t}\n\tif len(t.Email) == 0 {\n\t\thttp.Error(w, \"El email es requerido\", 400)\n\t\tre...
[ "0.7883957", "0.78399897", "0.78152704", "0.78143144", "0.778648", "0.77711904", "0.7758534", "0.76696074", "0.76657194", "0.7634662", "0.7586288", "0.7584957", "0.7568959", "0.7543968", "0.75167316", "0.7483834", "0.74723446", "0.7466371", "0.74566376", "0.74520415", "0.7418...
0.72621936
32
TODO create function login
func (repo *UserRepo) GetUser(username string) (user *models.User) { user = &models.User{} err := repo.db.Where("user_name = ?", username).Find(user) if err.RecordNotFound() { log.Println("Username not correct") return nil } log.Println("Correct username and password") return }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Login(user *User)(int, map[string]interface{}){\n errorMessage := map[string]interface{}{\"ok\": false, \"error\": \"login_error\"}\n if user.Email == \"\" {\n return http.StatusUnauthorized, errorMessage\n }\n Db.Where(\"email = ?\", user.Email).First(user)\n if(user.Id > 0) {\n gopath := os.Geten...
[ "0.6967907", "0.6930516", "0.6896821", "0.68451875", "0.6785456", "0.67832464", "0.6771061", "0.676148", "0.674991", "0.6646537", "0.6640039", "0.6636515", "0.6590393", "0.65681666", "0.6566555", "0.6539391", "0.6534554", "0.65192145", "0.6515987", "0.6510223", "0.6506415", ...
0.0
-1
Allow only numerators between 100 and 100, and only nonzero and positive even denominators smaller than 10
func div(numerator, denominator int) (int, int, error) { // By convention, the last return value is of type error if numerator < -100 { // Using errors.New to create an error return 0, 0, errors.New("numerator is too small") } if numerator > 100 { // Using fmt.Errorf to create an error return 0, 0, fmt.Erro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ValidEval(v *big.Int) bool {\n\tif v.Sign() < 0 {\n\t\treturn false\n\t}\n\tif v.Cmp(bn256.Order) >= 0 {\n\t\treturn false\n\t}\n\treturn true\n}", "func (calc *Calculator) validateNumbers(numbers []int) (err error) {\n\tneg := []int{}\n\tfor _, number := range numbers {\n\t\tif number < 0 {\n\t\t\tneg = ap...
[ "0.56317705", "0.55189127", "0.5509374", "0.54943115", "0.5459117", "0.5401192", "0.5362156", "0.5294526", "0.5271152", "0.5259642", "0.5254936", "0.52311236", "0.5187531", "0.51718664", "0.51598877", "0.51272017", "0.51254654", "0.51207906", "0.5120134", "0.5118511", "0.5110...
0.0
-1
This also satisfies the "error" interface,
func (e MyOtherError) Error() string { return e.Message }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func _error(ptr uint32, size uint32)", "func (p ErrorList) Err() error {}", "func (ev *evaluator) error(err error) {\n\tpanic(err)\n}", "func (d *decodeState) error(err error) {\n\tpanic(err)\n}", "func getCodedError() (int, error){\n\treturn 0, errors.New(\"Something Went Whrong\")\n}", "func getError()...
[ "0.67946225", "0.6445473", "0.6402218", "0.63823277", "0.6342564", "0.6307412", "0.6253732", "0.62071836", "0.61482674", "0.613227", "0.61306846", "0.6130286", "0.6129013", "0.6122781", "0.61108345", "0.61108345", "0.6062824", "0.6018676", "0.5982582", "0.5968327", "0.5965322...
0.6008345
18
parseAux examines the data of a SAM record's OPT fields, returning a slice of sam.Aux that are backed by the original data.
func parseAux(aux []byte, aa []sam.Aux) { naa := 0 for i := 0; i+2 < len(aux); { t := aux[i+2] switch j := jumps[t]; { case j > 0: j += 3 aa[naa] = sam.Aux(aux[i : i+j : i+j]) naa++ i += j case j < 0: switch t { case 'Z', 'H': var ( j int v byte ) for j, v = range aux[i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func parseAux(aux []byte) ([]sam.Aux, error) {\n\tif len(aux) == 0 {\n\t\treturn nil, nil\n\t}\n\n\t// Heuristically pre-allocate enough slots for the byte data.\n\t// Value chosen by experimentation and will not fit all inputs,\n\t// with the cost being over-allocation.\n\taa := make([]sam.Aux, 0, len(aux)/4)\n\n...
[ "0.7380473", "0.60085166", "0.58404934", "0.5604804", "0.5528614", "0.52840686", "0.5036604", "0.48920414", "0.48108783", "0.48038596", "0.47032255", "0.46916306", "0.46458298", "0.43914226", "0.4372695", "0.4316549", "0.43138635", "0.42837065", "0.42672035", "0.42277274", "0...
0.7002758
1
Round "off" up so that it is a multiple of 8. Used when storing a pointer in []byte. 8byte alignment is sufficient for all CPUs we care about.
func alignOffset(off int) int { const pointerSize = 8 return ((off-1)/pointerSize + 1) * pointerSize }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func alignUp(length int, align uint) int {\n\treturn (length + int(align) - 1) &^ (int(align) - 1)\n}", "func ROTL8(x uint32) uint32 {\n\treturn (x << 8) | (x >> 24)\n}", "func LeadingZeros8(x uint8) int { return 8 - Len8(x) }", "func LeadingZeros8(x uint8) int { return 8 - Len8(x) }", "func roundupsize(si...
[ "0.59258765", "0.58716106", "0.5814728", "0.5814728", "0.5637437", "0.563015", "0.55358845", "0.5515176", "0.54949445", "0.54949445", "0.54624325", "0.544474", "0.5415026", "0.53956735", "0.5391123", "0.5382999", "0.537676", "0.53489846", "0.5335223", "0.52890354", "0.5281115...
0.56668884
4
countAuxFields examines the data of a SAM record's OPT field to determine the number of auxFields there are.
func countAuxFields(aux []byte) (int, error) { naux := 0 for i := 0; i+2 < len(aux); { t := aux[i+2] switch j := jumps[t]; { case j > 0: j += 3 i += j naux++ case j < 0: switch t { case 'Z', 'H': var ( j int v byte ) for j, v = range aux[i:] { if v == 0 { // C string ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r MLDv2ReportMulticastAddressRecord) AuxDataLen() int {\n\treturn int(r[mldv2ReportMulticastAddressRecordAuxDataLenOffset]) * mldv2ReportMulticastAddressRecordAuxDataLenUnits\n}", "func NumFields(elemTyp reflect.Type, skipUnexported bool) int {\n\treturn len(lookupFields(elemTyp, skipUnexported, nil))\n}",...
[ "0.61733234", "0.57533646", "0.5688064", "0.5639402", "0.56135046", "0.56052715", "0.556544", "0.55280674", "0.55280674", "0.5502139", "0.5491858", "0.5484253", "0.54737127", "0.5459307", "0.5433384", "0.5412292", "0.5367275", "0.5298392", "0.52903736", "0.5258248", "0.521972...
0.7976709
0
Unmarshal a serialized BAM record.
func Unmarshal(b []byte, header *sam.Header) (*sam.Record, error) { if len(b) < bamFixedBytes { return nil, errRecordTooShort } // Need to use int(int32(uint32)) to ensure 2's complement extension of -1. rec := sam.GetFromFreePool() refID := int(int32(binary.LittleEndian.Uint32(b))) rec.Pos = int(int32(binary.L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (record) UnmarshalRecord(buff []byte) common.Record {\n\tr := common.Record{\n\t\tID: make([]byte, 16), // 128 bits\n\t\tStart: 0,\n\t\tLength: 0,\n\t}\n\n\tcopy(r.ID, buff[:16])\n\tr.Start = binary.LittleEndian.Uint64(buff[16:24])\n\tr.Length = binary.LittleEndian.Uint32(buff[24:])\n\n\treturn r\n}", ...
[ "0.6117407", "0.6083627", "0.60676056", "0.596099", "0.57806116", "0.5764908", "0.56999546", "0.56890786", "0.567999", "0.5620232", "0.5508994", "0.543865", "0.54381096", "0.54290146", "0.5391465", "0.53788424", "0.535158", "0.53462344", "0.53388363", "0.5336752", "0.53344595...
0.6598761
0
UnmarshalHeader parses a sam.Header encoded in BAM binary format.
func UnmarshalHeader(buf []byte) (*sam.Header, error) { header, err := sam.NewHeader(nil, nil) if err != nil { return nil, err } hr := bytes.NewReader(buf) if err := header.DecodeBinary(hr); err != nil { return nil, err } if hr.Len() > 0 { return nil, fmt.Errorf("%d byte junk at the end of SAM header", hr....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func UnmarshalHeader(data []byte, m *MessageHeader) error {\n\tif len(data) < 16 {\n\t\treturn ErrMessageTooSmall\n\t}\n\td := decoder{buffer: data}\n\tm.Txid = uint32(d.readUint(4))\n\tm.Reserved = uint32(d.readUint(4))\n\tm.Flags = uint32(d.readUint(4))\n\tm.Ordinal = uint32(d.readUint(4))\n\treturn nil\n}", "...
[ "0.7207782", "0.6948204", "0.68720686", "0.67847025", "0.6483132", "0.6428106", "0.63860524", "0.63735026", "0.63142973", "0.6302375", "0.6265352", "0.62517077", "0.6154132", "0.6125591", "0.6122402", "0.61045206", "0.6078034", "0.602972", "0.5967966", "0.5937088", "0.5928305...
0.79296327
0
NewPodService returns a new Pod KubeService.
func NewPodService(kubeClient kubernetes.Interface, logger log.Logger, metricsRecorder metrics.Recorder) *PodService { logger = logger.With("service", "k8s.pod") return &PodService{ kubeClient: kubeClient, logger: logger, metricsRecorder: metricsRecorder, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewService(name string, namespace string, servicePorts []core.ServicePort) *core.Service {\n\n\tlabels := GetCommonLabels()\n\n\treturn &core.Service{\n\t\tTypeMeta: metav1.TypeMeta{\n\t\t\tKind: \"Service\",\n\t\t\tAPIVersion: core.SchemeGroupVersion.String(),\n\t\t},\n\t\tObjectMeta: metav1.ObjectMeta...
[ "0.6994864", "0.67725277", "0.677059", "0.6735671", "0.6686454", "0.667864", "0.6664134", "0.6664134", "0.6664134", "0.6664134", "0.66502446", "0.66502446", "0.66502446", "0.6645156", "0.6600781", "0.6594829", "0.65936637", "0.65918815", "0.65541756", "0.65410894", "0.6506458...
0.78941596
0
GetProject gets a specific project.
func GetProject(w http.ResponseWriter, r *http.Request) { // Get item params // Perform get, db n' stuff. // render.JSON(w, r) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *client) GetProject(\n\tid interface{},\n\topt *glab.GetProjectOptions,\n\toptions ...glab.RequestOptionFunc,\n) (*glab.Project, *glab.Response, error) {\n\treturn c.c.Projects.GetProject(id, opt, options...)\n}", "func GetProject(w http.ResponseWriter, r *http.Request) {\n\tvars := mux.Vars(r)\n\n\tp :=...
[ "0.8384894", "0.8321442", "0.8232243", "0.82100356", "0.8208275", "0.81837934", "0.8147329", "0.8106245", "0.80950844", "0.80778885", "0.80750215", "0.80658215", "0.804697", "0.80114484", "0.800483", "0.8000093", "0.79574424", "0.79477644", "0.79343283", "0.79232085", "0.7910...
0.78982174
23
CreateProject gets incoming data and creates a project.
func CreateProject(w http.ResponseWriter, r *http.Request) { // Get incoming data, content n' stuff // Pass those data and create em' // Return new project and response }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func CreateProject(w http.ResponseWriter, r *http.Request) {\n\tvar p models.Project\n\n\tu := mw.GetUser(r.Context())\n\tif u == nil || !u.IsAdmin {\n\t\tw.WriteHeader(403)\n\t\tw.Write(apiError(\"you must be logged in as a system administrator to create a project\"))\n\t\treturn\n\t}\n\n\tdecoder := json.NewDeco...
[ "0.838281", "0.8108102", "0.8092922", "0.80711776", "0.7862171", "0.78485775", "0.7846764", "0.7839464", "0.7783809", "0.7779148", "0.7746391", "0.7695536", "0.7629132", "0.7626169", "0.7617919", "0.7612046", "0.76049435", "0.7562666", "0.75614625", "0.7513948", "0.74994123",...
0.8574186
0
UpdateProject gets incoming data and updates project data.
func UpdateProject(w http.ResponseWriter, r *http.Request) { // Get Project ID. // Perform db stuff. // Return a response. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func UpdateProject(w http.ResponseWriter, r *http.Request) {\n\tvar p models.Project\n\n\tu := mw.GetUser(r.Context())\n\tif u == nil || !u.IsAdmin {\n\t\tw.WriteHeader(403)\n\t\tw.Write(apiError(\"you must be logged in as a system administrator to create a project\"))\n\t\treturn\n\t}\n\n\tdecoder := json.NewDeco...
[ "0.7809559", "0.7789207", "0.7772251", "0.7736949", "0.7716326", "0.7592858", "0.75240904", "0.74874264", "0.74486184", "0.73906296", "0.73197263", "0.7312109", "0.7310997", "0.72480655", "0.711599", "0.70102924", "0.6985994", "0.6947166", "0.69454956", "0.688732", "0.6876805...
0.78469765
0
DeleteProject gets a specific project and deletes it.
func DeleteProject(w http.ResponseWriter, r *http.Request) { // Get Project ID // Perform db delete. // Return a response }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ProjectDelete(w http.ResponseWriter, r *http.Request) {\n\n\t// Init output\n\toutput := []byte(\"\")\n\n\t// Add content type header to the response\n\tcontentType := \"application/json\"\n\tcharset := \"utf-8\"\n\tw.Header().Add(\"Content-Type\", fmt.Sprintf(\"%s; charset=%s\", contentType, charset))\n\n\t/...
[ "0.846441", "0.844886", "0.83240736", "0.82779294", "0.8258223", "0.825351", "0.8233612", "0.81284523", "0.8113551", "0.80497384", "0.80496156", "0.800155", "0.800074", "0.7976322", "0.7954047", "0.7916825", "0.7903091", "0.78948814", "0.787777", "0.78397095", "0.7833504", ...
0.8226353
7
GetProjects gets incoming id array of project IDs and return their info.
func GetProjects(w http.ResponseWriter, r *http.Request) { // Get IDs for projects // Grab those projects. // Return those cool projects and response }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetProjects(w http.ResponseWriter, r *http.Request, auth string) []Project {\n\tvar projects []Project\n\tprojectFileName := auth + globals.PROJIDFILE\n\t//First see if project already exist\n\tstatus, filepro := caching.ShouldFileCache(projectFileName, globals.PROJIDDIR)\n\tdefer filepro.Close()\n\tif status...
[ "0.76841617", "0.76231533", "0.7400665", "0.73783094", "0.7172055", "0.7072802", "0.7026091", "0.69904083", "0.6946848", "0.6946312", "0.69244397", "0.69090414", "0.6883423", "0.67496324", "0.67429686", "0.6737116", "0.66872513", "0.66619146", "0.66527873", "0.66122216", "0.6...
0.8194551
0
ParseTree of components of CallConversation.
func (callConversation *CallConversation) ParseTree(definitions *Definitions) { callConversation.ConversationNode.ParseTree(definitions) for i := 0; i < len(callConversation.ParticipantAssociation); i++ { callConversation.ParticipantAssociation[i].ParseTree(definitions) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *ConstructionAPIService) ConstructionParse(\n\tctx context.Context,\n\trequest *types.ConstructionParseRequest,\n) (*types.ConstructionParseResponse, *types.Error) {\n\tvar tx transaction\n\tif !request.Signed {\n\t\terr := json.Unmarshal([]byte(request.Transaction), &tx)\n\t\tif err != nil {\n\t\t\treturn...
[ "0.50528055", "0.4983247", "0.4846981", "0.4801092", "0.47803253", "0.46543008", "0.46132642", "0.45855856", "0.45405447", "0.45224792", "0.44998738", "0.44951025", "0.4446662", "0.4442569", "0.4427207", "0.44252166", "0.43819708", "0.43395332", "0.43243676", "0.431497", "0.4...
0.6777234
0
SquareOfSum returns Square Of Sum for the first N natural numbers.
func SquareOfSum(n int) int { sum := (n*n + n) / 2 return sum * sum }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func SquareOfSum(N int) int {\n\tsum := N * (N + 1) / 2\n\treturn sum * sum\n}", "func SquareOfSum(n int) (total int) {\n\tfor i := 1; i <= n; i++ {\n\t\ttotal += i\n\t}\n\treturn int(math.Pow(float64(total), 2))\n}", "func SquareOfSum(n int) int {\n\treturn (n * (n + 1) / 2) * (n * (n + 1) / 2)\n}", "func S...
[ "0.8678828", "0.8663965", "0.8570066", "0.85341483", "0.85274243", "0.8526542", "0.85183424", "0.8513393", "0.8513393", "0.8510072", "0.85067594", "0.8475428", "0.84675753", "0.8464471", "0.8437655", "0.84183323", "0.84162784", "0.8239035", "0.81916964", "0.8085452", "0.79348...
0.8477487
11
SumOfSquares returns Sum Of Squares for the first N natural numbers.
func SumOfSquares(n int) int { return n * (n + 1) * (2*n + 1) / 6 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func SumOfSquares(n int) (total int) {\n\tfor i := 1; i <= n; i++ {\n\t\ttotal += int(math.Pow(float64(i), 2))\n\t}\n\treturn\n}", "func SumOfSquares(n int) int {\n\t// for i := 1; i <= n; i++ {\n\t// \tssq += i * i\n\t// }\n\treturn n * (n + 1) * (2*n + 1) / 6\n}", "func SumOfSquares(N int) int {\n\treturn (N...
[ "0.86901826", "0.86586004", "0.8629061", "0.8620017", "0.86105394", "0.8583864", "0.8580518", "0.85681427", "0.8561527", "0.8559948", "0.8550715", "0.8544207", "0.8495335", "0.8486805", "0.8480542", "0.8480542", "0.8480542", "0.8480542", "0.82585984", "0.8124028", "0.81180054...
0.8500245
14
Difference returns Difference between Square Of Sum and Sum Of Squares for the first N natural numbers.
func Difference(n int) int { return SquareOfSum(n) - SumOfSquares(n) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Difference(N int) int {\n\t// Since (a + b ....+ N)^2 > a^2 + b^2 ..+N^2\n\treturn SquareOfSum(N) - SumOfSquares(N)\n}", "func Difference(n int) int {\n\treturn SquareOfSums(n) - SumOfSquares(n)\n}", "func Difference(n int) int {\n\treturn SquareOfSums(n) - SumOfSquares(n)\n}", "func Difference(n int) i...
[ "0.7647042", "0.7553858", "0.7553858", "0.7553858", "0.7455267", "0.7305213", "0.72534114", "0.71976024", "0.71287304", "0.7126322", "0.7012004", "0.68673724", "0.6835056", "0.68339044", "0.679303", "0.6780241", "0.6748497", "0.6738171", "0.67251956", "0.67103785", "0.6709091...
0.7528819
15
Dial dials the target piecestore endpoint.
func Dial(ctx context.Context, dialer rpc.Dialer, nodeURL storj.NodeURL, config Config) (*Client, error) { conn, err := dialer.DialNodeURL(ctx, nodeURL) if err != nil { return nil, Error.Wrap(err) } return &Client{ client: pb.NewDRPCPiecestoreClient(conn), conn: conn, config: config, }, nil }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *storeServer) Dial(upspin.Config, upspin.Endpoint) (upspin.Service, error) { return s, nil }", "func (s storeServer) Dial(upspin.Config, upspin.Endpoint) (upspin.Service, error) { return s, nil }", "func (endpoint *Endpoint) Dial() (*grpc.ClientConn, error) {\n\tif !endpoint.isTLS() {\n\t\treturn grpc....
[ "0.6602971", "0.65242577", "0.5937781", "0.58211446", "0.57187456", "0.56765807", "0.5622447", "0.56114995", "0.5585314", "0.550205", "0.54885423", "0.54762805", "0.5471484", "0.5466942", "0.5449623", "0.5440423", "0.5432089", "0.5426129", "0.542318", "0.5411138", "0.54108274...
0.59669805
2
Retain uses a bloom filter to tell the piece store which pieces to keep.
func (client *Client) Retain(ctx context.Context, req *pb.RetainRequest) (err error) { defer mon.Task()(&ctx)(&err) _, err = client.client.Retain(ctx, req) return Error.Wrap(err) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s EncryptedChatDiscardedArray) Retain(keep func(x EncryptedChatDiscarded) bool) EncryptedChatDiscardedArray {\n\tn := 0\n\tfor _, x := range s {\n\t\tif keep(x) {\n\t\t\ts[n] = x\n\t\t\tn++\n\t\t}\n\t}\n\ts = s[:n]\n\n\treturn s\n}", "func (s MessagesFavedStickersArray) Retain(keep func(x MessagesFavedStic...
[ "0.53530777", "0.5211112", "0.5117397", "0.5085003", "0.5075914", "0.50600123", "0.50483304", "0.5028572", "0.5021426", "0.49589035", "0.49246478", "0.492427", "0.492286", "0.48875514", "0.48849076", "0.48673242", "0.48625886", "0.4852446", "0.4833214", "0.4830841", "0.481932...
0.4452693
53
Close closes the underlying connection.
func (client *Client) Close() error { return client.conn.Close() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *Conn) Close() error { return nil }", "func (c *Conn) Close() error { return c.pc.Close() }", "func (c *Connection) Close() error {\n\trerr := c.ReadCloser.Close()\n\twerr := c.WriteCloser.Close()\n\tif rerr != nil {\n\t\treturn rerr\n\t}\n\treturn werr\n}", "func (ts *Stream) Close() error {\n\tif t...
[ "0.76225847", "0.729171", "0.7064342", "0.70572037", "0.7048647", "0.70302767", "0.70293945", "0.7018421", "0.69970757", "0.69967556", "0.6993674", "0.69778603", "0.69765705", "0.6975812", "0.69667906", "0.69665796", "0.6963228", "0.69461906", "0.6925951", "0.6920857", "0.689...
0.0
-1
GetPeerIdentity gets the connection's peer identity.
func (client *Client) GetPeerIdentity() (*identity.PeerIdentity, error) { return client.conn.PeerIdentity() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *Client) GetIdentity(ctx context.Context) (string, error) {\n\tres, err := c.RpcClient.GetIdentity(ctx)\n\terr = checkRpcResult(res.GeneralResponse, err)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn res.Result.Identity, nil\n}", "func (ac *authenticatedConnection) RemotePeer() peer.ID {\n\tret...
[ "0.60653913", "0.59982324", "0.5994207", "0.59636384", "0.5954036", "0.58539706", "0.5807599", "0.58044755", "0.57964677", "0.56881976", "0.5614483", "0.5551721", "0.55338156", "0.55311227", "0.5515146", "0.5501002", "0.54259455", "0.5424778", "0.54058045", "0.53819424", "0.5...
0.8242226
0
next allocation step find the next trusted step.
func (client *Client) nextAllocationStep(previous int64) int64 { // TODO: ensure that this is frame idependent next := previous * 3 / 2 if next > client.config.MaximumStep { next = client.config.MaximumStep } return next }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vm *ChaincodeVM) Step(debug Dumper) error {\n\tswitch vm.runstate {\n\tdefault:\n\t\treturn newRuntimeError(\"vm is not in runnable state\")\n\tcase RsReady:\n\t\tvm.runstate = RsRunning\n\t\tfallthrough\n\tcase RsRunning:\n\t\tvm.history = append(vm.history, HistoryState{\n\t\t\tPC: vm.pc,\n\t\t\tStack: ...
[ "0.50283134", "0.49936968", "0.49446443", "0.4930351", "0.49192712", "0.49188268", "0.49161652", "0.490055", "0.48659968", "0.48505184", "0.48501775", "0.48374093", "0.48346755", "0.48248377", "0.48159647", "0.48062155", "0.47971743", "0.479422", "0.4770578", "0.4752862", "0....
0.6386798
0
ignoreEOF is an utility func for ignoring EOF error, when it's not important.
func ignoreEOF(err error) error { if errors.Is(err, io.EOF) { return nil } return err }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func IgnoreEOF(err error) error {\n\tif err == io.EOF {\n\t\treturn nil\n\t}\n\treturn err\n}", "func EOF(x error) error { return x }", "func eof(err error) bool { return err == io.EOF }", "func treatEOFErrorsAsNil(err error) error {\n\tif err == nil {\n\t\treturn nil\n\t}\n\tif errors.Is(err, io.EOF) {\n\t\...
[ "0.8521816", "0.66316926", "0.6306891", "0.6257713", "0.5980924", "0.59166044", "0.5870907", "0.5784568", "0.5784294", "0.57793224", "0.5767844", "0.57236004", "0.57236004", "0.57236004", "0.57236004", "0.57236004", "0.5638349", "0.5638349", "0.55618286", "0.5451496", "0.5416...
0.8567482
0