text
stringlengths
11
6.3k
embedding
listlengths
768
768
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)) }
[ -0.153837651014328, -0.04016418009996414, 0.3621719181537628, -1.273664116859436, 0.03279335796833038, 1.1989519596099854, -0.10745082050561905, 0.12291087955236435, 0.5579491853713989, 0.10506098717451096, -0.7697241306304932, 1.0759835243225098, -0.5507140159606934, -0.7736242413520813, ...
func Uniform3uiv(location int32, count int32, value *uint32) { C.glowUniform3uiv(gpUniform3uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) }
[ -0.19124554097652435, 0.26681411266326904, 0.3810046911239624, -1.0118328332901, -0.0994034931063652, 1.0781432390213013, 0.5089839696884155, 0.4075411260128021, 0.620522141456604, 0.08050082623958588, -0.6045375466346741, 0.8636361360549927, -0.16962172091007233, -0.8188002705574036, -0...
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)) }
[ -0.21747517585754395, -0.05909787490963936, 0.43725961446762085, -1.2618011236190796, 0.7047190070152283, 0.15431725978851318, 0.9870163798332214, 0.01282591838389635, -0.27823787927627563, 0.15993936359882355, -0.9553808569908142, 0.11386124044656754, -0.2749025523662567, -0.3539892137050...
func Uniform4fv(location int32, count int32, value *float32) { C.glowUniform4fv(gpUniform4fv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLfloat)(unsafe.Pointer(value))) }
[ -0.43397393822669983, 0.13379943370819092, 0.32177597284317017, -0.7396124005317688, 0.025053491815924644, -0.5040465593338013, 0.9606999754905701, -0.22559820115566254, -0.501448929309845, -0.36785098910331726, -0.7529942989349365, 0.10912005603313446, 0.2951304316520691, 0.23253913223743...
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)) }
[ -0.6260838508605957, -0.11929701268672943, 0.4467141628265381, -0.769679844379425, 0.20197592675685883, 0.4989527761936188, 0.5756670832633972, -0.3309593200683594, -0.19471456110477448, 0.4656931757926941, -1.2431416511535645, -0.10516569763422012, -0.748496949672699, -0.46904057264328003...
func Uniform4iv(location int32, count int32, value *int32) { C.glowUniform4iv(gpUniform4iv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLint)(unsafe.Pointer(value))) }
[ -0.4609730541706085, 0.0001391860714647919, 0.381939560174942, -0.6880708932876587, -0.05023819953203201, 0.19234701991081238, 0.7487396001815796, -0.08561273664236069, -0.3014201819896698, -0.022438453510403633, -0.9987875819206238, 0.3576691150665283, -0.1825527548789978, -0.293441712856...
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)) }
[ -0.6064057350158691, -0.32386514544487, 0.5411763787269592, -1.1546381711959839, 0.20596347749233246, 0.5596644878387451, 0.5883334875106812, -0.24235811829566956, 0.2935703694820404, -0.20623628795146942, -0.7509087920188904, 0.3359226584434509, -0.7992396354675293, -0.22885645925998688, ...
func Uniform4uiv(location int32, count int32, value *uint32) { C.glowUniform4uiv(gpUniform4uiv, (C.GLint)(location), (C.GLsizei)(count), (*C.GLuint)(unsafe.Pointer(value))) }
[ -0.5724237561225891, -0.11104016751050949, 0.43156224489212036, -0.8351590037345886, -0.1427157074213028, 0.301613450050354, 0.9693405628204346, 0.06449688225984573, 0.09338820725679398, -0.36863717436790466, -0.6734477877616882, 0.3610008656978607, -0.1911422461271286, -0.3213172852993011...
func UniformBlockBinding(program uint32, uniformBlockIndex uint32, uniformBlockBinding uint32) { C.glowUniformBlockBinding(gpUniformBlockBinding, (C.GLuint)(program), (C.GLuint)(uniformBlockIndex), (C.GLuint)(uniformBlockBinding)) }
[ -0.2700831890106201, -0.0693088173866272, 0.6071262955665588, -0.04651326686143875, -0.4194219410419464, 0.9772691130638123, 0.7710300087928772, 0.17797553539276123, 1.024978518486023, 0.06099894642829895, -1.0818800926208496, 1.0026323795318604, -0.7646400928497314, 0.29701048135757446, ...
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))) }
[ 0.086573027074337, 0.2204970270395279, 0.4143088161945343, -0.4580962657928467, -0.3344890773296356, -0.34581583738327026, 0.9666904211044312, 0.09742646664381027, -0.46567752957344055, -0.27080827951431274, -0.35426655411720276, 0.35807856917381287, 0.659715473651886, 0.3902425765991211, ...
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))) }
[ -0.4756161570549011, 0.5398243069648743, 0.28838029503822327, -0.536888837814331, 0.1613178849220276, -0.2936966121196747, 0.32842451333999634, 0.13234087824821472, -0.038731493055820465, -0.10882505774497986, -0.28547680377960205, 0.36288970708847046, 0.6341972351074219, -0.15389075875282...
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))) }
[ -0.7446433901786804, 0.2641327679157257, 0.3888184130191803, -0.6290864944458008, 0.10480646789073944, -0.763744056224823, 0.88329017162323, -0.2957962155342102, -0.34775373339653015, -0.5072144865989685, -0.3755263686180115, -0.1770932376384735, 0.49978020787239075, 0.42777255177497864, ...
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))) }
[ 0.041348427534103394, 0.824506402015686, 0.2819548547267914, -0.9088082313537598, 0.20097139477729797, -0.06100045144557953, 0.7136886715888977, 0.2994609773159027, 0.16125306487083435, 0.24592949450016022, -0.2413199543952942, 0.12185031920671463, 0.10302818566560745, -0.10743076354265213...
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))) }
[ -0.016220685094594955, 0.4220646917819977, 0.3814675211906433, -0.641884982585907, -0.05701576918363571, 0.055983636528253555, 0.10704944282770157, 0.09363334625959396, 0.19623270630836487, 0.030201628804206848, -0.4257701635360718, 0.4371667206287384, 0.822691798210144, -0.237328231334686...
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))) }
[ -0.1444796770811081, 0.8366360068321228, 0.2747442424297333, -1.0195602178573608, 0.5680570006370544, -0.020336102694272995, 0.5447823405265808, 0.03997544199228287, 0.4782746434211731, 0.38557156920433044, -0.28630852699279785, -0.14667671918869019, 0.051558658480644226, -0.26134839653968...
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))) }
[ -0.6047433614730835, 0.5185415744781494, 0.375289648771286, -0.9334490299224854, 0.11005640029907227, -0.637702226638794, 1.2536736726760864, -0.11039712280035019, -0.1047116219997406, -0.20803113281726837, -0.37584003806114197, -0.35891371965408325, 0.10792500525712967, 0.3293016254901886...
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))) }
[ -0.6609666347503662, 0.18921738862991333, 0.4942513406276703, -0.45121052861213684, -0.3424302637577057, -0.6728891730308533, 0.5582464337348938, -0.10245468467473984, -0.22548846900463104, -0.6606863737106323, -0.6719608902931213, -0.0633675754070282, 0.8495016694068909, 0.034667119383811...
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))) }
[ -0.6650474667549133, 1.0182018280029297, 0.3314705789089203, -0.8400353193283081, 0.10673157125711441, -0.28297460079193115, 0.5250915884971619, 0.08617868274450302, 0.5093749761581421, 0.10723761469125748, -0.5259539484977722, -0.28525424003601074, 0.15526482462882996, -0.4756124019622803...
func UnmapBuffer(target uint32) bool { ret := C.glowUnmapBuffer(gpUnmapBuffer, (C.GLenum)(target)) return ret == TRUE }
[ -1.251785397529602, 0.310440331697464, 0.6219194531440735, -0.09197472035884857, -0.8209740519523621, 0.7961651682853699, -0.058463793247938156, -0.1675870418548584, 0.6944282650947571, -0.6208106875419617, -0.4672785997390747, -0.5213804244995117, -0.7933535575866699, -0.07111246883869171...
func UnmapNamedBuffer(buffer uint32) bool { ret := C.glowUnmapNamedBuffer(gpUnmapNamedBuffer, (C.GLuint)(buffer)) return ret == TRUE }
[ -0.4668735861778259, 0.02443593554198742, 0.7088330388069153, -0.5141428709030151, -1.5195198059082031, 0.5827202796936035, 0.22105857729911804, -0.7336307168006897, 0.3503243625164032, -0.20048674941062927, -1.4602352380752563, -0.3568500578403473, -1.3892499208450317, 0.11790986359119415...
func UseProgram(program uint32) { C.glowUseProgram(gpUseProgram, (C.GLuint)(program)) }
[ -0.3342042565345764, 0.2595386505126953, 0.6103497743606567, -0.38215169310569763, -0.385019987821579, 0.5024828314781189, 0.920511782169342, -0.6998723149299622, 0.6868084073066711, -0.014854330569505692, 0.08096753060817719, 0.28133508563041687, -0.9235537052154541, 0.427746057510376, ...
func UseProgramStages(pipeline uint32, stages uint32, program uint32) { C.glowUseProgramStages(gpUseProgramStages, (C.GLuint)(pipeline), (C.GLbitfield)(stages), (C.GLuint)(program)) }
[ 0.049589354544878006, -0.07478141784667969, 0.5321099758148193, -0.19961746037006378, -0.44576117396354675, 0.8553043007850647, 0.8145278692245483, -0.8067333698272705, -0.046852558851242065, 0.4325532615184784, 0.046659719198942184, 0.23827138543128967, -0.9657303094863892, 0.316148340702...
func ValidateProgram(program uint32) { C.glowValidateProgram(gpValidateProgram, (C.GLuint)(program)) }
[ -0.56972336769104, -0.06406894326210022, 0.26055610179901123, -0.2843185067176819, -0.24041487276554108, 1.750908374786377, 1.436185359954834, -1.4265919923782349, 0.6625849604606628, -0.31338298320770264, -0.6417555212974548, 0.5514416098594666, -0.88565993309021, 0.8168894648551941, 1....
func ValidateProgramPipeline(pipeline uint32) { C.glowValidateProgramPipeline(gpValidateProgramPipeline, (C.GLuint)(pipeline)) }
[ -0.3369385004043579, -0.3786647617816925, 0.11025221645832062, -0.18828853964805603, -0.39404141902923584, 1.497010350227356, 1.1408299207687378, -0.9241869449615479, -0.15501393377780914, -0.21089626848697662, -0.43381524085998535, 0.5930235385894775, -0.5010048151016235, 0.51365256309509...
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...
[ 0.26010242104530334, -1.0732858180999756, 0.49022066593170166, -0.5908254384994507, -0.5282594561576843, -0.15047529339790344, 0.5671281218528748, -0.5241299867630005, 1.0821534395217896, 0.44114819169044495, 0.049585286527872086, 1.28255033493042, -0.25107038021087646, -0.2383299916982650...
func VertexArrayBindingDivisor(vaobj uint32, bindingindex uint32, divisor uint32) { C.glowVertexArrayBindingDivisor(gpVertexArrayBindingDivisor, (C.GLuint)(vaobj), (C.GLuint)(bindingindex), (C.GLuint)(divisor)) }
[ -0.7041153907775879, -0.5274838805198669, 0.5424097180366516, 0.6332030892372131, -0.5140984654426575, 0.8942353129386902, 1.1762611865997314, -1.0420506000518799, 0.9764297008514404, -0.006187169812619686, 0.19038811326026917, 0.6279473900794983, -0.5191099643707275, 0.577143669128418, ...
func VertexArrayElementBuffer(vaobj uint32, buffer uint32) { C.glowVertexArrayElementBuffer(gpVertexArrayElementBuffer, (C.GLuint)(vaobj), (C.GLuint)(buffer)) }
[ 0.14009398221969604, -0.49687719345092773, 0.4633772671222687, 0.7422806024551392, -0.2655629813671112, 1.2945709228515625, 0.9381332397460938, -0.5308756232261658, 1.5107395648956299, -0.11505075544118881, -0.5576378703117371, 1.4354158639907837, -0.5622661113739014, 0.02121466025710106, ...
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)) }
[ 0.08355109393596649, -0.8943712115287781, 0.7504997849464417, 0.08955691009759903, -0.7700231671333313, 1.2008918523788452, 0.8283736109733582, -0.4593713879585266, 1.2684087753295898, 0.25725772976875305, -0.5990397334098816, 1.4748598337173462, -1.0068892240524292, -0.37855106592178345, ...
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....
[ 0.4907570779323578, -0.5936520099639893, 0.6137756705284119, -0.11320691555738449, -0.049130748957395554, 0.5547129511833191, 0.6724138259887695, -0.8213207125663757, 0.8106786608695984, -0.006361878011375666, -0.839024007320404, 0.837791919708252, -0.6986938714981079, -0.3072303235530853,...
func VertexAttribBinding(attribindex uint32, bindingindex uint32) { C.glowVertexAttribBinding(gpVertexAttribBinding, (C.GLuint)(attribindex), (C.GLuint)(bindingindex)) }
[ 0.11923271417617798, -0.8564640283584595, 0.44886404275894165, 0.21487486362457275, -0.5684494376182556, 0.5593674778938293, 1.2374721765518188, -0.1519765555858612, 0.7207759022712708, 0.5333754420280457, 0.02865445613861084, 1.599542498588562, -0.43759822845458984, -0.4191974401473999, ...
func VertexAttribDivisor(index uint32, divisor uint32) { C.glowVertexAttribDivisor(gpVertexAttribDivisor, (C.GLuint)(index), (C.GLuint)(divisor)) }
[ -0.30378684401512146, -0.6421257853507996, 0.3256221115589142, -0.185173898935318, -0.6466907262802124, 0.44881752133369446, 1.3840302228927612, -0.8719509840011597, 0.1981050670146942, -0.40297895669937134, 0.015758130699396133, 0.9776424169540405, -0.21498680114746094, 0.2445924282073974...
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)) }
[ 0.15521591901779175, -0.6709675788879395, 0.3805317282676697, -0.5677675008773804, -0.7235399484634399, -0.047130171209573746, 0.5914122462272644, -0.32711106538772583, 0.6503118276596069, 0.30162206292152405, 0.03652004152536392, 1.274010419845581, -0.383487343788147, -0.42804062366485596...
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) }
[ 0.514167308807373, -0.6950970888137817, 0.45122024416923523, -0.5474792718887329, -0.8058743476867676, 0.23063264787197113, 1.1728309392929077, -0.9990694522857666, 0.6332293152809143, 0.8557329773902893, -0.1912870705127716, 1.188006043434143, -1.1176310777664185, -0.7077502012252808, 0...
func VertexBindingDivisor(bindingindex uint32, divisor uint32) { C.glowVertexBindingDivisor(gpVertexBindingDivisor, (C.GLuint)(bindingindex), (C.GLuint)(divisor)) }
[ -0.6715723872184753, -0.02596602775156498, 0.3887108564376831, 0.6204440593719482, -0.6166465282440186, 1.0491490364074707, 0.8215975761413574, -0.8341062068939209, 0.7111918330192566, -0.21840989589691162, 0.06164189428091049, 0.6164988279342651, -0.4760751724243164, 0.5130254030227661, ...
func VertexPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer) { C.glowVertexPointer(gpVertexPointer, (C.GLint)(size), (C.GLenum)(xtype), (C.GLsizei)(stride), pointer) }
[ 0.4878803491592407, -0.06883366405963898, 0.46303436160087585, -0.4565363824367523, -0.4258784055709839, 0.5880794525146484, 0.6077341437339783, -1.4488226175308228, 0.7664831280708313, 0.6976516842842102, -0.4431431293487549, 1.2181252241134644, -1.1854537725448608, -0.05586279556155205, ...
func WaitSync(sync uintptr, flags uint32, timeout uint64) { C.glowWaitSync(gpWaitSync, (C.GLsync)(sync), (C.GLbitfield)(flags), (C.GLuint64)(timeout)) }
[ 0.9409820437431335, 0.8832234144210815, 0.2900911271572113, 0.6510558724403381, -0.1502694934606552, 0.5839000344276428, 0.29077616333961487, -0.8150050640106201, -0.5933126211166382, 0.0625692754983902, -0.7986078262329102, 0.6619386076927185, 0.5676976442337036, -0.455171674489975, 0.2...
func Init() error { return InitWithProcAddrFunc(getProcAddress) }
[ 0.8957406878471375, -0.4021911919116974, 0.22287443280220032, 0.33967825770378113, 0.30086037516593933, -0.5946148633956909, 0.8071252703666687, 0.09745587408542633, 0.15451747179031372, -0.3824869394302368, 0.20595866441726685, 2.1649649143218994, -0.07279396057128906, 0.060930285602808, ...
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...
[ 1.208970308303833, -0.8213750123977661, 0.8381253480911255, -0.23283325135707855, -0.2252318561077118, -0.29423531889915466, 0.8949597477912903, -0.8725640177726746, 0.424312561750412, 0.2473769336938858, 0.306194543838501, 0.8987064957618713, 0.21109513938426971, 0.5187853574752808, 0.8...
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...
[ -0.5345528721809387, -0.1256376951932907, 0.5148603916168213, -0.10092340409755707, 0.4215847849845886, -0.10859953612089157, -0.5474758148193359, -0.32273101806640625, -0.5281911492347717, -0.5901727080345154, -0.5156765580177307, 0.3138120472431183, -0.538905143737793, -0.272288799285888...
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...
[ -0.4790975749492645, 0.738482654094696, 0.4699241816997528, 0.8814586997032166, 0.7907403111457825, 1.0210685729980469, 0.24665887653827667, -0.07875028252601624, -0.5025644302368164, -0.5386878848075867, -0.39037254452705383, -0.3845905363559723, -0.1434677094221115, 1.112002968788147, ...
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...
[ -0.20924094319343567, 0.29412683844566345, 0.495232492685318, 0.7239583134651184, 0.4611837565898895, 0.7549761533737183, 0.4302871823310852, 0.005837349686771631, 0.15149444341659546, -0.03136913850903511, -0.19939309358596802, 0.2671816945075989, -0.8097352981567383, 1.3821711540222168, ...
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...
[ -1.3476017713546753, 0.7837378978729248, 0.5627028942108154, 0.5008527040481567, -0.27719786763191223, -0.26410406827926636, 0.9009168744087219, -0.7314649224281311, 0.7654275298118591, -0.2724860906600952, -1.1290361881256104, 1.0620102882385254, 0.1932881623506546, -0.5650125741958618, ...
func NewGetExpertsIDOK() *GetExpertsIDOK { return &GetExpertsIDOK{} }
[ -0.2079649120569229, 0.4438653886318207, 0.1855984479188919, 0.5603145956993103, -0.4445556104183197, -0.5268457531929016, 0.44677406549453735, 0.8963805437088013, -0.01321355439722538, -0.17086029052734375, -0.19617806375026703, 0.10025700181722641, 0.4027937054634094, -0.2186890989542007...
func NewGetExpertsIDNotFound() *GetExpertsIDNotFound { return &GetExpertsIDNotFound{} }
[ -0.17864592373371124, -1.3024502992630005, -0.03257337957620621, -0.08348369598388672, -0.29938602447509766, 0.6142996549606323, 1.0459860563278198, 0.19876748323440552, 0.843133807182312, 0.10215184837579727, 0.05766672641038895, 0.44376903772354126, 0.15879561007022858, -0.50801354646682...
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) ...
[ -0.7381754517555237, -0.18790584802627563, 0.5684652924537659, 0.6943312883377075, -0.8575758934020996, -0.8345822691917419, -0.5359781980514526, -0.9833989143371582, -0.2935469150543213, 0.6153765320777893, -0.8563016057014465, -0.15224406123161316, -0.05610854551196098, -0.19868059456348...
func NewCreateCoreV1NamespacedPodBindingOK() *CreateCoreV1NamespacedPodBindingOK { return &CreateCoreV1NamespacedPodBindingOK{} }
[ -0.9482097029685974, 0.16182945668697357, 0.2853073179721832, 0.5572114586830139, -0.9844628572463989, 1.6795498132705688, -0.03765321895480156, 0.2811615467071533, 0.2298271805047989, 1.088857889175415, -0.9285637736320496, -0.9335765242576599, -0.20710159838199615, 0.93294757604599, 0....
func (o *CreateCoreV1NamespacedPodBindingOK) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingOK { o.Payload = payload return o }
[ -0.6048061847686768, 0.4608042538166046, 0.12466850876808167, 0.24015258252620697, -0.8948624134063721, 1.2820932865142822, -0.30523595213890076, -0.7427336573600769, 0.8772804141044617, 0.8079666495323181, -0.5156893134117126, -1.142638921737671, -0.3080578148365021, 0.4901823103427887, ...
func (o *CreateCoreV1NamespacedPodBindingOK) SetPayload(payload *models.IoK8sAPICoreV1Binding) { o.Payload = payload }
[ -0.7389723062515259, 0.4749187231063843, 0.010239843279123306, 0.16006597876548767, -0.5672787427902222, 1.434854507446289, -0.40691426396369934, -0.9554548859596252, 0.7262040972709656, 0.8209400177001953, -0.8067618608474731, -0.531251847743988, -0.916254460811615, 1.0468612909317017, ...
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 } } }
[ -0.9910519123077393, 0.13063058257102966, 0.3430715799331665, 0.46237531304359436, 0.10870599746704102, 0.3629164695739746, 0.08122516423463821, -0.6043583750724792, 0.7458030581474304, 0.9927659630775452, -0.4938094913959503, -0.7649433016777039, -1.043568730354309, 0.38962090015411377, ...
func NewCreateCoreV1NamespacedPodBindingCreated() *CreateCoreV1NamespacedPodBindingCreated { return &CreateCoreV1NamespacedPodBindingCreated{} }
[ -0.5931000113487244, 0.4164455831050873, 0.2749157249927521, 0.20476648211479187, -0.36154764890670776, 1.3273816108703613, -0.8726934194564819, -0.4096059799194336, 0.5453909039497375, 0.48484212160110474, -0.5594488382339478, -0.9990829229354858, -0.5681459903717041, 0.8308547735214233, ...
func (o *CreateCoreV1NamespacedPodBindingCreated) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingCreated { o.Payload = payload return o }
[ -0.3323966860771179, 0.6737645268440247, 0.01526598073542118, 0.06700405478477478, -0.505912721157074, 1.136031985282898, -0.748488187789917, -1.0492401123046875, 0.9907188415527344, 0.22222264111042023, -0.3510551154613495, -1.0469098091125488, -0.2932395339012146, 0.5427801012992859, 1...
func (o *CreateCoreV1NamespacedPodBindingCreated) SetPayload(payload *models.IoK8sAPICoreV1Binding) { o.Payload = payload }
[ -0.6148473024368286, 0.6346021294593811, -0.06066617742180824, -0.06947802007198334, -0.11115262657403946, 1.3864418268203735, -0.5990187525749207, -1.0175997018814087, 0.7476619482040405, 0.25039413571357727, -0.737818717956543, -0.543365478515625, -0.6978528499603271, 1.0329546928405762,...
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 } } }
[ -0.9907809495925903, 0.4869525134563446, 0.342685341835022, 0.6284042596817017, 0.28783246874809265, 0.4234044551849365, -0.09643682837486267, -0.5438705086708069, 0.8144209384918213, 0.5273776650428772, -0.540864109992981, -0.7292006015777588, -0.7208443880081177, 0.39025557041168213, 0...
func NewCreateCoreV1NamespacedPodBindingAccepted() *CreateCoreV1NamespacedPodBindingAccepted { return &CreateCoreV1NamespacedPodBindingAccepted{} }
[ -0.692340612411499, 0.2481086254119873, 0.4386942386627197, -0.2170407623052597, -1.2820581197738647, 1.6871284246444702, 0.02577948197722435, -0.201926127076149, 0.1336044818162918, 0.7136622667312622, -0.8602144718170166, -0.5366877913475037, -0.5047696232795715, 0.8664661645889282, 1....
func (o *CreateCoreV1NamespacedPodBindingAccepted) WithPayload(payload *models.IoK8sAPICoreV1Binding) *CreateCoreV1NamespacedPodBindingAccepted { o.Payload = payload return o }
[ -0.4081566035747528, 0.5168143510818481, 0.25656798481941223, -0.2664443254470825, -1.2738757133483887, 1.469767451286316, -0.005720024928450584, -0.8032634258270264, 0.8348192572593689, 0.5503144264221191, -0.45179057121276855, -0.40682923793792725, -0.23234422504901886, 0.483057379722595...
func (o *CreateCoreV1NamespacedPodBindingAccepted) SetPayload(payload *models.IoK8sAPICoreV1Binding) { o.Payload = payload }
[ -0.6683522462844849, 0.8253650665283203, 0.18117403984069824, -0.37010908126831055, -0.903216540813446, 1.5342320203781128, -0.06655387580394745, -0.8154962062835693, 0.7287186980247498, 0.6194067597389221, -0.770400881767273, 0.03101581707596779, -0.650505542755127, 0.8061938285827637, ...
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 } } }
[ -1.0450091361999512, 0.48031893372535706, 0.48271217942237854, 0.2746122479438782, -0.2824558913707733, 0.239916130900383, 0.3265680968761444, -0.4162328541278839, 0.74993896484375, 0.7099865674972534, -0.37897440791130066, 0.001955076353624463, -0.6701850295066833, 0.23436973989009857, ...
func NewCreateCoreV1NamespacedPodBindingUnauthorized() *CreateCoreV1NamespacedPodBindingUnauthorized { return &CreateCoreV1NamespacedPodBindingUnauthorized{} }
[ -1.2294169664382935, 0.08753897994756699, 0.5711389780044556, 0.3696215748786926, -0.9935609698295593, 1.1951967477798462, -0.5560836791992188, 0.2261579930782318, 0.5081501007080078, 0.24278654158115387, -0.6017049551010132, 0.1755141317844391, -0.735369086265564, 0.6472280025482178, 0....
func (o *CreateCoreV1NamespacedPodBindingUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(401) }
[ -1.1585257053375244, -0.05068062245845795, 0.3950403928756714, 0.7007758617401123, 0.047521453350782394, 0.4224925935268402, 0.1508949249982834, -0.3978450298309326, 0.7307915687561035, 0.40020737051963806, -0.5420868396759033, -0.06542011350393295, -1.2896642684936523, 0.3427756428718567,...
func (*HealthzResponse) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{0} }
[ 0.14614854753017426, -0.08730392158031464, -0.06040191650390625, -0.10712863504886627, 0.3640744686126709, -0.8184736967086792, 0.7554161548614502, -0.1624285876750946, 0.39996522665023804, -0.7768504023551941, -0.1563345491886139, 0.05047709867358208, -0.6455082893371582, -0.0634064078330...
func (*PopularityListRequest) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{1} }
[ -0.7804239988327026, 0.4021287262439728, 0.4295955300331116, 0.8588553667068481, -0.4072737991809845, -0.5297712087631226, -0.5351004600524902, 1.211386799812317, -0.08893615007400513, -0.25311335921287537, -0.6534262299537659, 0.28648602962493896, -0.29358845949172974, 1.2926137447357178,...
func (*PopularityRequest) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{2} }
[ -0.1712418496608734, 0.5608378052711487, 0.5412324070930481, 0.8670677542686462, -0.3530474305152893, -0.48096582293510437, -0.025309579446911812, 0.8596670627593994, -0.6235790252685547, -0.44081318378448486, -0.0906347706913948, 0.1465470939874649, 0.23789098858833313, 0.9254740476608276...
func (*PopularityListResponse) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{3} }
[ 0.30716168880462646, 0.318469762802124, -0.0656127855181694, 0.5025571584701538, 0.06457555294036865, -1.0787124633789062, -0.0347222238779068, 1.2533504962921143, 0.20993170142173767, 0.09124673902988434, -1.57169508934021, -0.7486724257469177, -1.0020674467086792, 0.503923773765564, 0....
func (*PopularityResponse) Descriptor() ([]byte, []int) { return file_popularity_proto_rawDescGZIP(), []int{4} }
[ 0.463752418756485, 0.1997280716896057, 0.11819154024124146, 0.4732432961463928, 0.21730536222457886, -1.1358819007873535, 0.7507205605506897, 0.7906378507614136, -0.20138491690158844, -0.5145948529243469, -0.8632638454437256, -0.9361711740493774, -0.7573959231376648, -0.20200684666633606, ...
func NewSignInItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SignInItemRequestBuilder) { m := &SignInItemRequestBuilder{ } m.urlTemplate = "{+baseurl}/auditLogs/signIns/{signIn%2Did}{?%24select,%2...
[ -0.827341616153717, -0.7726143002510071, 0.5149822235107422, 0.27142447233200073, -1.1184862852096558, 0.6206073760986328, 0.13904568552970886, 0.4448072612285614, -0.1713981032371521, -0.4979563057422638, -0.2976936101913452, 0.18564137816429138, -1.0226536989212036, -0.2475770115852356, ...
func NewSignInItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SignInItemRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl return NewSignInItemRequestBuilderInternal(urlParams, reque...
[ -1.2548809051513672, -0.8206396698951721, 0.3564698398113251, 1.41717529296875, -0.9863144159317017, 0.40386828780174255, -0.3139039874076843, 0.5552638173103333, 0.22405333817005157, -0.8244526386260986, -0.6314058303833008, -0.4221019446849823, -0.7721969485282898, -0.1526300609111786, ...
func (m *SignInItemRequestBuilder) CreateDeleteRequestInformation(ctx context.Context, requestConfiguration *SignInItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa52...
[ -0.6142148971557617, -1.043433427810669, 0.8222737312316895, -0.09970033913850784, -0.29790034890174866, 0.5748226046562195, -0.13035406172275543, 0.016503311693668365, 0.21439117193222046, -0.5659319758415222, -0.05677028000354767, -0.3536098599433899, -0.5871323347091675, -0.237587660551...
func (m *SignInItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *SignInItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7...
[ -0.97185218334198, -0.7585875988006592, 0.7952927350997925, 0.07318590581417084, -0.060712989419698715, 0.3666924238204956, -0.2356223315000534, -0.2903847098350525, -0.34441062808036804, -0.4300262928009033, -0.1611396074295044, -0.3797629475593567, -0.9039998650550842, -0.319426596164703...
func (m *SignInItemRequestBuilder) CreatePatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SignInable, requestConfiguration *SignInItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInfo...
[ -0.7449252605438232, -1.1123378276824951, 0.9407702684402466, -0.4804447293281555, -0.882854700088501, 0.6581332683563232, 0.023947512730956078, -0.3622715175151825, -0.28802967071533203, -0.2759895324707031, -0.1753535121679306, -0.1117527186870575, -0.7952234745025635, -0.259079426527023...
func (m *SignInItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *SignInItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.CreateDeleteRequestInformation(ctx, requestConfiguration); if err != nil { return err } errorMapping := i2ae4187f7daee263371cb1c...
[ -0.29773572087287903, -0.17351655662059784, 0.7934356927871704, 0.5084631443023682, -0.06920503824949265, 0.6014482975006104, 0.33509740233421326, 0.040146004408597946, 0.09620209038257599, 0.08236188441514969, -0.48328378796577454, -0.060704007744789124, -0.8779482841491699, -0.2632635235...
func (m *SignInItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SignInItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SignInable, error) { requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration); if err != nil { ...
[ -0.5914298892021179, -0.42675450444221497, 0.9835798740386963, -0.150777667760849, -0.21253669261932373, 0.5749468207359314, 0.19723524153232574, 0.03976873308420181, -0.7564775943756104, -0.11100174486637115, -0.6032552123069763, 0.5304087400436401, -0.9430587291717529, -0.437667459249496...
func (m *SignInItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SignInable, requestConfiguration *SignInItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SignInable, error) { requestInfo...
[ -0.4813786745071411, -0.8097503185272217, 0.9360947012901306, -0.2976142466068268, -0.8295414447784424, 1.049932599067688, 0.13713717460632324, 0.2622303366661072, 0.11272554099559784, 0.03028072416782379, -0.41124123334884644, 0.5923883318901062, -0.3271229565143585, -0.2046470046043396, ...
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) } }
[ -0.15886694192886353, -0.21633806824684143, 0.3655957579612732, 0.847608208656311, -0.1778327375650406, -0.33256587386131287, 0.6769232749938965, 0.08865111321210861, 0.5696095824241638, 1.1383885145187378, -0.013874624855816364, -0.5692499876022339, -0.8305336236953735, 1.5183180570602417...
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...
[ -0.3990323543548584, 0.05719064921140671, 0.5272029638290405, 0.051016755402088165, -0.37840545177459717, -0.7091888189315796, 0.6841804385185242, 0.10374098271131516, -0.6064674854278564, 0.2490072250366211, 0.6169481873512268, 0.24516922235488892, -0.19295883178710938, 0.6043107509613037...
func NewUserRepo() *UserRepo { return &UserRepo{db: GetDBConection()} }
[ 0.8451396226882935, -0.5346985459327698, 0.006224941462278366, 0.3877303898334503, -1.7423406839370728, -1.0887832641601562, -0.17291796207427979, 0.05296472832560539, 0.29477229714393616, -0.3395531177520752, -1.0144457817077637, -0.49929481744766235, -0.0865866020321846, -0.4442602396011...
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 }
[ -0.8349133133888245, 1.2800819873809814, 0.7540172338485718, 0.12612934410572052, 0.39631637930870056, 0.729377806186676, 0.05430237948894501, 0.5300650596618652, -0.21547310054302216, 0.08086173981428146, -1.432233452796936, -0.9437236785888672, -0.6781541705131531, -0.257269024848938, ...
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 }
[ -0.1709166169166565, 0.038468483835458755, 0.5122379660606384, 0.7692228555679321, 0.9806761145591736, 0.2406884878873825, 0.6260719299316406, 0.3827413022518158, -0.21476873755455017, 0.06766578555107117, -0.24759502708911896, -0.10939518362283707, -0.31528759002685547, 0.3610642254352569...
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...
[ -0.43339553475379944, -0.6489819288253784, 0.7522224187850952, -0.40789878368377686, -0.21058979630470276, -0.3232283294200897, 0.24876028299331665, -0.337200403213501, -0.017187172546982765, -0.5546367764472961, 0.2626478970050812, 0.11582304537296295, -0.24914215505123138, 0.500353515148...
func (e MyOtherError) Error() string { return e.Message }
[ -0.2309415340423584, -0.6818175911903381, 0.2361786663532257, -0.05818244442343712, 0.046170465648174286, 0.7134389281272888, 0.34450045228004456, -0.1569899022579193, 0.4637777805328369, -0.0522620789706707, -0.018724776804447174, 0.6805257797241211, -0.9066543579101562, 0.927603423595428...
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...
[ 0.9849552512168884, 0.05811154469847679, 0.5448601245880127, -0.5158324241638184, -0.6356558203697205, -0.9011115431785583, -0.10111068934202194, 0.14453864097595215, 0.9050676226615906, 0.5022167563438416, -0.38681015372276306, 0.8609092831611633, 0.707532525062561, 0.11289972066879272, ...
func alignOffset(off int) int { const pointerSize = 8 return ((off-1)/pointerSize + 1) * pointerSize }
[ -0.19120849668979645, -0.3817443549633026, 0.23233935236930847, -0.6934422254562378, -0.943036675453186, 0.9992341995239258, 1.0708962678909302, 0.32662102580070496, 0.1636316478252411, 0.32852447032928467, 0.7686707973480225, 0.33585378527641296, -1.197513461112976, 0.34025517106056213, ...
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 ...
[ 0.15247192978858948, 0.15583999454975128, 0.6756055951118469, -0.7034494280815125, -0.9391574859619141, -0.020739024505019188, 0.6419004201889038, 0.22540466487407684, 0.3719281256198883, 0.5882143974304199, -0.9886290431022644, 0.1567336916923523, -0.20802317559719086, 0.1349187195301056,...
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...
[ 0.9161366820335388, -0.13879188895225525, 0.9440268874168396, -0.7187677621841431, -1.2089250087738037, -0.6581127643585205, 0.19302405416965485, 0.2209307998418808, 0.4272184669971466, 0.48342618346214294, -0.41660076379776, 1.155428409576416, -0.08609363436698914, -0.38047313690185547, ...
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....
[ 0.35373517870903015, -0.49198976159095764, 0.757354736328125, -0.5468763113021851, -0.7166776657104492, 0.07843557000160217, 0.21782854199409485, 0.058555662631988525, 0.24556851387023926, -0.1783459633588791, -0.06896883994340897, -0.13148890435695648, -0.9507763981819153, 0.1785035878419...
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, } }
[ 0.25522756576538086, 0.09035106003284454, 0.3386749029159546, -0.13094539940357208, -0.12560266256332397, -0.23398394882678986, -0.872799813747406, -1.17061448097229, -0.16609223186969757, 0.28999075293540955, 0.12691880762577057, 0.7194145917892456, -0.7075719237327576, 0.3752855360507965...
func GetProject(w http.ResponseWriter, r *http.Request) { // Get item params // Perform get, db n' stuff. // render.JSON(w, r) }
[ -1.2348216772079468, 0.6329001188278198, 0.3791302442550659, 1.0762720108032227, 0.6645146012306213, -0.6748372912406921, -0.26727521419525146, 0.06204729154706001, -0.4921371638774872, 0.24679332971572876, 0.4051051437854767, -0.29345011711120605, -0.39879170060157776, -0.3258364498615265...
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 }
[ -0.44971251487731934, -0.504905641078949, 0.2991829514503479, 0.2831447422504425, 0.3005799949169159, 0.7199721932411194, -0.6891304850578308, -0.4348130524158478, 0.4695534110069275, 0.16560319066047668, 0.4092961549758911, -1.2430450916290283, -0.9533044099807739, 0.22571255266666412, ...
func UpdateProject(w http.ResponseWriter, r *http.Request) { // Get Project ID. // Perform db stuff. // Return a response. }
[ -1.0402460098266602, -0.07747270911931992, 0.4018212556838989, 1.3305870294570923, 0.2499891072511673, -0.44948810338974, -0.0200808048248291, -0.26182156801223755, 0.11637483537197113, 0.5174914002418518, 0.39548930525779724, -0.5459164977073669, -0.9199334979057312, -0.13478399813175201,...
func DeleteProject(w http.ResponseWriter, r *http.Request) { // Get Project ID // Perform db delete. // Return a response }
[ -0.13557517528533936, 0.3891313374042511, 0.41389885544776917, 1.3262009620666504, 0.7154986262321472, -0.35612788796424866, 0.19035181403160095, 0.19185589253902435, 0.46698877215385437, 0.0286051407456398, 0.7092039585113525, -0.47645819187164307, -0.9527897238731384, 0.32404497265815735...
func GetProjects(w http.ResponseWriter, r *http.Request) { // Get IDs for projects // Grab those projects. // Return those cool projects and response }
[ -0.37495899200439453, 0.5786865949630737, 0.36110106110572815, 0.3682985007762909, 0.760430097579956, -0.18926945328712463, -0.18299239873886108, -0.8719308376312256, 0.3781365156173706, -0.06992656737565994, -0.28658053278923035, 0.0042862724512815475, -0.6173567175865173, -0.336554735898...
func (callConversation *CallConversation) ParseTree(definitions *Definitions) { callConversation.ConversationNode.ParseTree(definitions) for i := 0; i < len(callConversation.ParticipantAssociation); i++ { callConversation.ParticipantAssociation[i].ParseTree(definitions) } }
[ 0.19812317192554474, 0.08831660449504852, 0.6441553831100464, -0.5639660358428955, 0.4380999803543091, 0.09053968638181686, -1.10671865940094, -0.9532538652420044, 0.0006091910181567073, -0.05995912849903107, 0.5309209227561951, 0.3195553421974182, -0.48768576979637146, 1.3205729722976685,...
func SquareOfSum(n int) int { sum := (n*n + n) / 2 return sum * sum }
[ -0.46645742654800415, -0.3625236451625824, 0.38593581318855286, 0.31090089678764343, 0.28882548213005066, -1.0057483911514282, 0.6980520486831665, -1.459312915802002, 0.8325682878494263, -0.4453122615814209, -0.9357627034187317, -0.1946866363286972, 0.42838260531425476, 0.02576159685850143...
func SumOfSquares(n int) int { return n * (n + 1) * (2*n + 1) / 6 }
[ -0.2803194224834442, 0.4008556604385376, 0.19754517078399658, -0.27660590410232544, -0.7477707266807556, -0.6522341370582581, 1.1895822286605835, -1.7010796070098877, 0.7883720397949219, 0.021573608741164207, -1.1864874362945557, -0.42690563201904297, 0.3005653917789459, 0.4941518008708954...
func Difference(n int) int { return SquareOfSum(n) - SumOfSquares(n) }
[ -0.49075639247894287, 0.23128722608089447, 0.3296040892601013, 0.38592493534088135, -0.5118714570999146, 0.45007240772247314, 1.2570502758026123, -0.7437325716018677, 1.421671986579895, -0.8075147867202759, -1.1238552331924438, -0.6915163993835449, 0.34615084528923035, 0.9970586895942688, ...
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 }
[ 0.08586183935403824, 0.6952881217002869, 0.45509710907936096, -0.2535969316959381, -0.4295264482498169, 0.6966725587844849, 0.07457680255174637, -0.26196762919425964, 0.6599565744400024, -0.09488334506750107, 0.009086528792977333, 0.8151621222496033, -0.6991428732872009, -0.305787384510040...
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) }
[ 0.013008064590394497, 0.3274841904640198, 0.741549551486969, 0.6674420833587646, 0.7289713025093079, 0.632520854473114, 0.13883739709854126, -0.9147132039070129, 0.37670013308525085, -0.6190953850746155, -0.11782040446996689, 0.5648810267448425, -1.3057359457015991, 0.31799349188804626, ...
func (client *Client) Close() error { return client.conn.Close() }
[ 0.04361285641789436, -0.4704079329967499, 0.20772646367549896, 0.10481478273868561, -0.5071231722831726, 0.42513060569763184, -0.08127361536026001, -0.5637118816375732, -1.2308546304702759, -0.8419881463050842, 0.43906348943710327, 0.17194843292236328, -1.067834496498108, -0.01205332484096...
func (client *Client) GetPeerIdentity() (*identity.PeerIdentity, error) { return client.conn.PeerIdentity() }
[ -0.15767550468444824, -0.18960051238536835, 0.7631179690361023, 0.3562796711921692, 0.9919245839118958, 0.6044347882270813, 0.2409384846687317, -0.2505567669868469, -0.20446789264678955, -0.48086798191070557, -0.9276614189147949, -0.4512875974178314, -2.1181092262268066, 0.1106572523713111...
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 }
[ -0.058838360011577606, 0.7813609838485718, 0.37965741753578186, 0.7080240845680237, -1.0209064483642578, 0.16992782056331635, 0.5541976690292358, -0.10219642519950867, 0.5259916186332703, -0.025584032759070396, 1.1059373617172241, -0.5088135600090027, -0.32842856645584106, 0.48930299282073...
func ignoreEOF(err error) error { if errors.Is(err, io.EOF) { return nil } return err }
[ 0.013706203550100327, 0.03966844081878662, 0.21553494036197662, 0.12574122846126556, -0.41588670015335083, 0.14311516284942627, -0.22589950263500214, -0.6345354914665222, 0.5232444405555725, 0.13258856534957886, -0.029266633093357086, -1.2228611707687378, 0.07267656177282333, 0.64702945947...