text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func SendDataOrion(header http.Header, body map[string]interface{}, hashString string) error {
// Copy the body into a new variable.
// This will be the body of the http request to Orion
var bodyOrion = body
// Add the field hash to the metadata that will be send to Orion
var hash = make(map[string]interface{})
... | [
-0.4604038596153259,
-0.26870065927505493,
0.8966772556304932,
-0.27461057901382446,
0.40944555401802063,
0.5821886658668518,
-1.1308165788650513,
0.19470837712287903,
-0.4770776629447937,
-0.19073206186294556,
-0.9878020882606506,
1.321250081062317,
-0.9363811612129211,
0.0340618975460529... |
func Abs(n int) int {
if n < 0 {
return -n
}
return n
} | [
-1.3449478149414062,
0.22807852923870087,
0.3316569924354553,
0.030939411371946335,
-0.3366847634315491,
0.7812650799751282,
-0.874115526676178,
-0.45927485823631287,
-0.5474478602409363,
-0.5536212921142578,
0.45941561460494995,
0.6448625326156616,
0.498579204082489,
1.033571481704712,
... |
func (p *parser) ParseNextFileHeader() (*File, string, error) {
var preamble strings.Builder
var file *File
for {
// check for disconnected fragment headers (corrupt patch)
frag, err := p.ParseTextFragmentHeader()
if err != nil {
// not a valid header, nothing to worry about
goto NextLine
}
if frag !... | [
0.33822864294052124,
-1.0621345043182373,
0.8354207873344421,
-0.3569090962409973,
-0.9508943557739258,
-0.37927883863449097,
-0.10716953873634338,
0.22494883835315704,
-0.8160690069198608,
0.21342037618160248,
0.06688246130943298,
-0.3230466842651367,
-0.020920932292938232,
0.336341589689... |
func parseGitHeaderName(header string) (string, error) {
header = strings.TrimSuffix(header, "\n")
if len(header) == 0 {
return "", nil
}
var err error
var first, second string
// there are 4 cases to account for:
//
// 1) unquoted unquoted
// 2) unquoted "quoted"
// 3) "quoted" unquoted
// 4) "q... | [
0.15793655812740326,
-0.831864595413208,
1.0408964157104492,
-0.7863823771476746,
-1.0504931211471558,
-0.6729186177253723,
-0.5241622924804688,
-0.6563931703567505,
-0.6598613262176514,
0.9035349488258362,
-0.2539605498313904,
-0.32605597376823425,
-0.5610859990119934,
0.7793515920639038,... |
func parseGitHeaderData(f *File, line, defaultName string) (end bool, err error) {
if len(line) > 0 && line[len(line)-1] == '\n' {
line = line[:len(line)-1]
}
for _, hdr := range []struct {
prefix string
end bool
parse func(*File, string, string) error
}{
{"@@ -", true, nil},
{"--- ", false, parseG... | [
-0.10011021792888641,
0.03981585428118706,
1.1225574016571045,
-0.7136345505714417,
-0.24039186537265778,
0.5406596660614014,
-0.4411848783493042,
-0.36170104146003723,
-0.8808115720748901,
0.0927642434835434,
-0.6159874200820923,
-0.39973536133766174,
-0.5659250617027283,
0.40258884429931... |
func parseName(s string, term byte, dropPrefix int) (name string, n int, err error) {
if len(s) > 0 && s[0] == '"' {
name, n, err = parseQuotedName(s)
} else {
name, n, err = parseUnquotedName(s, term)
}
if err != nil {
return "", 0, err
}
if name == devNull {
return name, n, nil
}
return cleanName(name... | [
-0.2051762342453003,
-0.6991901993751526,
0.7845569252967834,
0.14246399700641632,
-1.291107416152954,
-1.085737943649292,
-0.4359144866466522,
0.38133108615875244,
0.2870267629623413,
0.9992089867591858,
-0.4637214243412018,
0.04026499018073082,
0.3122495710849762,
0.5962575674057007,
1... |
func verifyGitHeaderName(parsed, existing string, isNull bool, side string) error {
if existing != "" {
if isNull {
return fmt.Errorf("expected %s, but filename is set to %s", devNull, existing)
}
if existing != parsed {
return fmt.Errorf("inconsistent %s filename", side)
}
}
if isNull && parsed != dev... | [
0.799222469329834,
-0.05791166052222252,
0.6584116816520691,
-0.03994664549827576,
0.972351610660553,
0.5845852494239807,
-0.3760247230529785,
-0.5034124255180359,
-0.33846357464790344,
0.30811378359794617,
-0.7594619989395142,
0.6479765772819519,
-0.45995044708251953,
0.9253822565078735,
... |
func cleanName(name string, drop int) string {
var b strings.Builder
for i := 0; i < len(name); i++ {
if name[i] == '/' {
if i < len(name)-1 && name[i+1] == '/' {
continue
}
if drop > 0 {
drop--
b.Reset()
continue
}
}
b.WriteByte(name[i])
}
return b.String()
} | [
-0.6451942920684814,
0.009804285131394863,
0.8580179214477539,
0.16810570657253265,
-1.630889892578125,
0.2923102080821991,
0.5055829882621765,
-1.0837701559066772,
-0.011689874343574047,
1.3465921878814697,
-0.3781011402606964,
-1.0928291082382202,
-0.6677363514900208,
-0.1199692636728286... |
func trimTreePrefix(name string, n int) string {
i := 0
for ; i < len(name) && n > 0; i++ {
if name[i] == '/' {
n--
}
}
return name[i:]
} | [
-0.38499146699905396,
0.13036395609378815,
0.6855133175849915,
-0.1765475571155548,
-0.5296056866645813,
-0.43702638149261475,
-0.6604013442993164,
-0.1400063931941986,
-0.018293598666787148,
1.222455620765686,
-0.40144839882850647,
-0.5765470862388611,
-0.6159818172454834,
0.0210522077977... |
func hasEpochTimestamp(s string) bool {
const posixTimeLayout = "2006-01-02 15:04:05.9 -0700"
start := strings.IndexRune(s, '\t')
if start < 0 {
return false
}
ts := strings.TrimSuffix(s[start+1:], "\n")
// a valid timestamp can have optional ':' in zone specifier
// remove that if it exists so we have a si... | [
0.5514676570892334,
-0.6752057075500488,
0.7323682904243469,
-0.21058744192123413,
-0.2336721122264862,
-0.15106582641601562,
-0.2577163875102997,
0.6284485459327698,
0.3360319435596466,
0.3621183931827545,
-0.7818859219551086,
-0.8762796521186829,
0.37809309363365173,
0.364317387342453,
... |
func getExternalAddress(t *testing.T) net.IP {
t.Helper()
iface, err := net.InterfaceByName("eth0")
skip.If(t, err != nil, "Test not running with `make test-integration`. Interface eth0 not found: %s", err)
ifaceAddrs, err := iface.Addrs()
assert.NilError(t, err)
assert.Check(t, 0 != len(ifaceAddrs))
if len(if... | [
0.3788895010948181,
0.44981053471565247,
0.7400055527687073,
-0.047697972506284714,
0.08566249161958694,
-0.23798435926437378,
0.7490570545196533,
0.23443342745304108,
0.8184875845909119,
-0.011298410594463348,
0.43892255425453186,
-0.11405159533023834,
-0.7063353061676025,
0.8864941000938... |
func checkFileList(destDir string, extractedFiles []string, expectedFiles fileMap) error {
// We are going to remove elements from the map, but we don't want to modify the map used by the caller
expectedFiles = copyFileMap(expectedFiles)
for _, file := range extractedFiles {
rel, err := filepath.Rel(destDir, fil... | [
0.26421982049942017,
-0.41456618905067444,
0.6863195896148682,
0.11072228103876114,
-0.06505155563354492,
0.3701816201210022,
0.27936816215515137,
1.581130862236023,
0.30089646577835083,
0.6886430978775024,
0.14501260221004486,
-0.23759226500988007,
-0.3296706974506378,
0.6765790581703186,... |
func checkFiles(destDir string, files fileMap) error {
// We are going to remove elements from the map, but we don't want to modify the map used by the caller
files = copyFileMap(files)
err := filepath.Walk(destDir, func(path string, info os.FileInfo, err error) error {
logging.Debugf("Walking %s", path)
if er... | [
0.14920280873775482,
0.00034041283652186394,
0.8529199957847595,
-0.25969138741493225,
0.05640695244073868,
0.057008083909749985,
0.4536610245704651,
0.5901694893836975,
0.04881909862160683,
0.17936287820339203,
0.7141878604888916,
-0.3114163875579834,
-0.5206224918365479,
-0.2529919147491... |
func (clcMap ClassLoaderContextMap) addContext(ctx android.ModuleInstallPathContext, sdkVer int, lib string,
hostPath, installPath android.Path, nestedClcMap ClassLoaderContextMap) error {
// For prebuilts, library should have the same name as the source module.
lib = android.RemoveOptionalPrebuiltPrefix(lib)
dev... | [
-0.6873587369918823,
-0.31856828927993774,
1.1125200986862183,
0.3924146890640259,
-0.10302479565143585,
0.35851848125457764,
0.36164990067481995,
-0.356319785118103,
0.8997804522514343,
0.2927192747592926,
0.2706504166126251,
-0.2907628118991852,
-0.37872418761253357,
0.8355168700218201,
... |
func (clcMap ClassLoaderContextMap) AddContext(ctx android.ModuleInstallPathContext, sdkVer int,
lib string, hostPath, installPath android.Path, nestedClcMap ClassLoaderContextMap) {
err := clcMap.addContext(ctx, sdkVer, lib, hostPath, installPath, nestedClcMap)
if err != nil {
ctx.ModuleErrorf(err.Error())
}
} | [
-0.45251092314720154,
-0.5145539045333862,
0.9137600660324097,
1.016918659210205,
0.4792952835559845,
0.3251053988933563,
0.007033807225525379,
0.1452353596687317,
0.43455231189727783,
-0.04506954550743103,
0.3203659653663635,
-0.44966548681259155,
-0.1882338672876358,
0.8616483807563782,
... |
func (clcMap ClassLoaderContextMap) AddContextMap(otherClcMap ClassLoaderContextMap, implicitRootLib string) {
if otherClcMap == nil {
return
}
// If the implicit root of the merged map is already present as one of top-level subtrees, do
// not merge it second time.
for _, clc := range clcMap[AnySdkVersion] {
... | [
0.03420963138341904,
-0.49109935760498047,
1.12687087059021,
0.6996490955352783,
0.3270999491214752,
0.2270369678735733,
0.18007861077785492,
-0.0989394560456276,
0.9864780306816101,
0.09665140509605408,
0.12747864425182343,
-0.15918344259262085,
-1.0278784036636353,
0.9639317989349365,
... |
func (clcMap ClassLoaderContextMap) UsesLibs() (ulibs []string) {
if clcMap != nil {
clcs := clcMap[AnySdkVersion]
ulibs = make([]string, 0, len(clcs))
for _, clc := range clcs {
ulibs = append(ulibs, clc.Name)
}
}
return ulibs
} | [
-1.181754469871521,
-0.7344233989715576,
1.1000326871871948,
0.3879467248916626,
-0.20232108235359192,
-0.15453805029392242,
-0.20451679825782776,
0.01424881350249052,
0.7233512997627258,
0.3318473994731903,
0.552598774433136,
-0.35678935050964355,
-0.3138260543346405,
0.7375025749206543,
... |
func fixClassLoaderContext(clcMap ClassLoaderContextMap) {
usesLibs := clcMap.UsesLibs()
for sdkVer, clcs := range clcMap {
if sdkVer == AnySdkVersion {
continue
}
fixedClcs := []*ClassLoaderContext{}
for _, clc := range clcs {
if android.InList(clc.Name, usesLibs) {
// skip compatibility libraries... | [
-0.3991362452507019,
-0.490081250667572,
0.8503944277763367,
0.6999350190162659,
-0.01744147762656212,
0.7682911157608032,
0.4948553442955017,
0.3841163218021393,
0.713569164276123,
0.736862301826477,
0.5558346509933472,
-0.4180788993835449,
-0.3463590741157532,
1.559501051902771,
-0.219... |
func validateClassLoaderContext(clcMap ClassLoaderContextMap) (bool, error) {
for sdkVer, clcs := range clcMap {
if valid, err := validateClassLoaderContextRec(sdkVer, clcs); !valid || err != nil {
return valid, err
}
}
return true, nil
} | [
-0.9152922630310059,
-0.34078824520111084,
0.6195339560508728,
0.6778282523155212,
-0.3725840151309967,
0.5025976300239563,
0.4093940258026123,
-0.6364302039146423,
0.008234286680817604,
0.41308021545410156,
-0.2312764674425125,
-0.292245090007782,
-0.6373494267463684,
1.5493290424346924,
... |
func validateClassLoaderContextRec(sdkVer int, clcs []*ClassLoaderContext) (bool, error) {
for _, clc := range clcs {
if clc.Host == nil || clc.Device == UnknownInstallLibraryPath {
if sdkVer == AnySdkVersion {
// Return error if dexpreopt doesn't know paths to one of the <uses-library>
// dependencies. I... | [
-0.7313455939292908,
0.1985938549041748,
1.0010262727737427,
0.12554290890693665,
0.13660304248332977,
0.31777793169021606,
0.7779960036277771,
-0.3155497908592224,
-0.239765465259552,
0.08916587382555008,
0.2160966843366623,
-0.6437447667121887,
-0.6625370979309082,
1.1702648401260376,
... |
func ComputeClassLoaderContext(clcMap ClassLoaderContextMap) (clcStr string, paths android.Paths) {
// CLC for different SDK versions should come in specific order that agrees with PackageManager.
// Since PackageManager processes SDK versions in ascending order and prepends compatibility
// libraries at the front, ... | [
-0.7531020641326904,
-0.35965606570243835,
0.7352508306503296,
0.20910391211509705,
0.25553643703460693,
-0.4095326066017151,
0.2045014500617981,
0.18577980995178223,
0.19463641941547394,
0.7120876312255859,
0.5671318173408508,
-0.46150416135787964,
0.7494569420814514,
0.8015182614326477,
... |
func computeClassLoaderContextRec(clcs []*ClassLoaderContext) (string, string, android.Paths) {
var paths android.Paths
var clcsHost, clcsTarget []string
for _, clc := range clcs {
subClcHost, subClcTarget, subPaths := computeClassLoaderContextRec(clc.Subcontexts)
if subPaths != nil {
subClcHost = "{" + subC... | [
-0.28787943720817566,
-0.2162138819694519,
0.7906472682952881,
0.0644698441028595,
0.25580424070358276,
-0.1859399527311325,
0.28570127487182617,
0.417224258184433,
-0.4322109818458557,
0.16534923017024994,
0.4133214056491852,
0.23872245848178864,
0.45518505573272705,
0.5382036566734314,
... |
func fromJsonClassLoaderContext(ctx android.PathContext, jClcMap jsonClassLoaderContextMap) ClassLoaderContextMap {
clcMap := make(ClassLoaderContextMap)
for sdkVerStr, clcs := range jClcMap {
sdkVer, ok := strconv.Atoi(sdkVerStr)
if ok != nil {
if sdkVerStr == "any" {
sdkVer = AnySdkVersion
} else {
... | [
-0.9783313870429993,
-0.598987877368927,
0.4941372871398926,
-0.05551164224743843,
-0.5922790765762329,
-0.13530628383159637,
-0.13413357734680176,
-0.796251654624939,
1.1913087368011475,
0.5670888423919678,
-0.2781110107898712,
-0.2860248386859894,
0.7718762755393982,
0.7746134400367737,
... |
func fromJsonClassLoaderContextRec(ctx android.PathContext, jClcs []*jsonClassLoaderContext) []*ClassLoaderContext {
clcs := make([]*ClassLoaderContext, 0, len(jClcs))
for _, clc := range jClcs {
clcs = append(clcs, &ClassLoaderContext{
Name: clc.Name,
Host: constructPath(ctx, clc.Host),
Devi... | [
-0.82545006275177,
-0.43945568799972534,
0.659144937992096,
-0.029903225600719452,
-0.42175057530403137,
-0.46783915162086487,
0.30130353569984436,
-0.6794660687446594,
0.7197559475898743,
0.12528783082962036,
-0.05642647668719292,
0.08245554566383362,
0.7005854249000549,
0.661768019199371... |
func toJsonClassLoaderContext(clcMap ClassLoaderContextMap) jsonClassLoaderContextMap {
jClcMap := make(jsonClassLoaderContextMap)
for sdkVer, clcs := range clcMap {
sdkVerStr := fmt.Sprintf("%d", sdkVer)
jClcMap[sdkVerStr] = toJsonClassLoaderContextRec(clcs)
}
return jClcMap
} | [
-1.0784662961959839,
-0.26319748163223267,
0.6771179437637329,
-0.1071377620100975,
-0.25850486755371094,
-0.3176194429397583,
0.2611907720565796,
-0.6598101854324341,
1.0592583417892456,
0.6390147805213928,
-0.4105740487575531,
0.3470771610736847,
0.47964441776275635,
0.812997579574585,
... |
func toJsonClassLoaderContextRec(clcs []*ClassLoaderContext) []*jsonClassLoaderContext {
jClcs := make([]*jsonClassLoaderContext, len(clcs))
for i, clc := range clcs {
jClcs[i] = &jsonClassLoaderContext{
Name: clc.Name,
Host: clc.Host.String(),
Device: clc.Device,
Subcontexts: toJsonC... | [
-1.0352240800857544,
-0.17088474333286285,
0.8975827693939209,
0.08840163052082062,
-0.10869178175926208,
-0.31656119227409363,
0.3702413737773895,
-0.7268165349960327,
0.590653657913208,
0.3343698978424072,
-0.10819485783576965,
0.6394526362419128,
0.5178009271621704,
0.6432865262031555,
... |
func InitBufferSize(size int) Options {
return func(c *config) {
if size > 0 {
c.initBufferSize = size
}
}
} | [
0.4012008607387543,
0.20491382479667664,
0.9351503849029541,
0.3233121931552887,
-0.17483025789260864,
-0.03411310166120529,
0.6414849758148193,
0.14657829701900482,
0.6150022149085999,
-0.6643169522285461,
-1.398990511894226,
0.5061506628990173,
-0.9911673069000244,
1.4568973779678345,
... |
func MaxBufferSize(size int) Options {
return func(c *config) {
c.maxBufferSize = size
}
} | [
1.0137652158737183,
0.17241044342517853,
0.5165536403656006,
0.1593935787677765,
-0.42723506689071655,
0.14447686076164246,
0.15614299476146698,
0.01247924380004406,
1.4839580059051514,
-0.3067459166049957,
-1.3520445823669434,
0.21443137526512146,
-0.9114952683448792,
0.6744887232780457,
... |
func DropClosedBufferData() Options {
return func(c *config) {
c.dropClosedBufferData = true
}
} | [
0.02209007553756237,
-0.43030306696891785,
0.40118810534477234,
-0.10388150811195374,
-0.16757774353027344,
2.3164608478546143,
0.546638548374176,
-0.2312667816877365,
0.07627036422491074,
-0.858430027961731,
-0.6896878480911255,
-0.0023386962711811066,
-1.2601927518844604,
0.4380759894847... |
func (ch *ChannX) processObjectFromInput(v interface{}) bool {
if ch.buffer.IsEmpty() {
// try to send v through channel directly
select {
case ch.out <- v:
return true
default:
// output channel is full, put item to buffer
}
}
// try send to buffer
if !ch.mustPutToBuffer(v) {
ch.processTerminati... | [
-0.11202018707990646,
-0.36087849736213684,
0.7138087749481201,
-0.5195554494857788,
0.021959777921438217,
0.8007459044456482,
0.26661115884780884,
-1.0988112688064575,
0.2930581569671631,
0.06813231855630875,
-0.6052824854850769,
-0.3334812819957733,
-0.5984275341033936,
-0.52814066410064... |
func (ch *ChannX) mustPutToBuffer(v interface{}) bool {
if ch.buffer.Put(v) {
return true
}
// buffer is full
peek, _ := ch.buffer.Peek()
select {
case ch.out <- peek:
case <-ch.close:
return false
}
ch.buffer.Pop() //nolint
ch.buffer.Put(v)
return true
} | [
-1.2981271743774414,
0.5086052417755127,
0.7924689650535583,
-0.9123345017433167,
-0.5329982042312622,
0.9696381092071533,
0.2795608639717102,
-0.9221794009208679,
0.5588662028312683,
0.18531404435634613,
-0.8791770339012146,
0.07363329827785492,
-0.8290765285491943,
0.16904592514038086,
... |
func (pk PrivateKey) Sign(message []byte) Signature {
var signature Signature
copy(signature[:], ed25519.Sign(pk[:], message)[:])
return signature
} | [
-1.0108160972595215,
-0.08419319987297058,
0.043221477419137955,
-0.23234254121780396,
-0.0710577592253685,
-0.2982155978679657,
-0.117874875664711,
-0.09064747393131256,
0.1811106950044632,
0.9553202390670776,
-0.9049652218818665,
-0.012673642486333847,
-1.527510166168213,
0.6316307783126... |
func (pk PrivateKey) GetPublicKey() PublicKey {
return NewPublicKey(pk[32:])
} | [
0.8669163584709167,
0.8842533230781555,
0.3418531119823456,
0.12060568481683731,
0.746462881565094,
0.42141488194465637,
-0.09020828455686569,
-0.8483766913414001,
-0.24985355138778687,
0.2130046933889389,
-0.8990194201469421,
0.5476320385932922,
-0.27518925070762634,
0.3377562463283539,
... |
func (pk PrivateKey) String() string {
return base64.StdEncoding.EncodeToString(pk[:])
} | [
-0.7652153968811035,
-0.8944299221038818,
-0.047340575605630875,
-0.032018449157476425,
0.061146628111600876,
0.8995252847671509,
-0.4099521338939667,
-0.9803751111030579,
0.45184463262557983,
1.19072687625885,
-0.1396181732416153,
0.7140011191368103,
-0.7662797570228577,
-0.06229133531451... |
func (m *AlertDefinitionMonitorGroup) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlertDefinition(formats); err != nil {
res = append(res, err)
}
if err := m.validateMonitorGroup(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeVal... | [
0.3114423453807831,
0.10972563177347183,
-0.10129444301128387,
0.4396141767501831,
0.2992956340312958,
-0.4263363480567932,
0.33440491557121277,
-0.8848222494125366,
-0.7130612134933472,
0.5018404126167297,
0.8219934701919556,
0.9102601408958435,
-0.36501920223236084,
1.2533037662506104,
... |
func userExist(name string) User {
u := User{}
fmt.Println(name)
fmt.Println(reflect.TypeOf(name))
var theQuery = "SELECT * FROM users WHERE name=$1"
row := db.QueryRow(theQuery, name)
err := row.Scan(&u.ID, &u.Name, &u.Score);
if err != nil && err != sql.ErrNoRows {
fmt.Println(err.Error())
}
return u... | [
-0.6756234765052795,
-0.27183422446250916,
0.5878706574440002,
0.4710334539413452,
0.08923938125371933,
0.3916873037815094,
0.1672259420156479,
-0.3484446108341217,
-0.11709847301244736,
0.7744810581207275,
-0.21366259455680847,
-0.40062978863716125,
-0.5070809125900269,
-0.254187494516372... |
func ListAllUsers(w http.ResponseWriter, r *http.Request){
rows, err:= db.Query("SELECT * FROM users LIMIT 20")
if err != nil {
fmt.Println(err.Error())
panic("failed to connect database")
}
listUsers := Users{}
for rows.Next() {
p := User{}
if err := rows.Scan(&p.ID, &p.Name, &p.Score); err != nil {
... | [
-0.7306151986122131,
-0.8167663216590881,
0.635925829410553,
-0.21053895354270935,
-0.3476625680923462,
-0.021364126354455948,
-0.5737535953521729,
0.16400085389614105,
0.3259682357311249,
0.7395589351654053,
-0.4616548418998718,
0.2186301350593567,
0.1351921409368515,
0.7941082715988159,
... |
func ListBestScores(w http.ResponseWriter, r *http.Request){
rows, err:= db.Query("SELECT * FROM users ORDER BY score DESC LIMIT 20")
if err != nil {
fmt.Println(err.Error())
panic("failed to connect database")
}
listUsers := Users{}
for rows.Next() {
p := User {}
if err := rows.Scan(&p.ID, &p.Name, &p... | [
-0.33627429604530334,
-0.7244437336921692,
0.5945815443992615,
0.11249835044145584,
0.015221805311739445,
-0.05739732086658478,
-0.5634873509407043,
-0.21821750700473785,
0.0576859712600708,
0.9180527329444885,
-0.760097086429596,
0.7626391053199768,
0.2053775191307068,
0.8158227205276489,... |
func CreateUser(w http.ResponseWriter, r *http.Request){
u := User{}
err:= json.NewDecoder(r.Body).Decode(&u)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
// Checks if name is Empty
fmt.Printf("name: [%+v]\n", u.Name)
if u.Name == "" {
fmt.Println("Empty string")... | [
-1.1032758951187134,
0.09392748028039932,
1.130292296409607,
0.6105444431304932,
0.054715316742658615,
0.9804718494415283,
0.43193069100379944,
-0.34187740087509155,
0.4264501929283142,
0.5454652905464172,
-0.7263380289077759,
-0.9142007827758789,
-0.6617773175239563,
0.26318421959877014,
... |
func getUser(w http.ResponseWriter, r *http.Request){
u := User{}
u.Name = chi.URLParam(r, "name")
//checks if user already exists
user := userExist(u.Name)
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
json.NewEncoder(w).Encode(user)
} | [
-1.0786194801330566,
-0.685580849647522,
0.6732494235038757,
0.6829450726509094,
0.06269749253988266,
0.08017649501562119,
0.5943272113800049,
-0.7531930208206177,
0.12607164680957794,
0.5868714451789856,
-0.8844379782676697,
-0.03327656164765358,
0.19052433967590332,
0.403215229511261,
... |
func UpdateScore(w http.ResponseWriter, r *http.Request) {
u := User{}
id := chi.URLParam(r, "id")
err := json.NewDecoder(r.Body).Decode(&u)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
w.Write([]byte(`{"status":"error"}`))
return
}
fmt.Fprintf(w, "Person: %+v", u)
if _, err = db.Ex... | [
-0.9897218346595764,
-0.8611198663711548,
0.8692507147789001,
0.6951777338981628,
-0.09004762023687363,
0.11738668382167816,
-0.28838369250297546,
-0.24298195540905,
0.017528576776385307,
0.8612734079360962,
0.1548900008201599,
0.27804890275001526,
-0.6364279389381409,
0.010149958543479443... |
func handleRequests() {
router := chi.NewRouter()
router.Use(cors.Handler(cors.Options{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
ExposedHeaders: []st... | [
-0.15174521505832672,
0.06957591325044632,
0.6255369782447815,
0.34978747367858887,
0.7984932065010071,
0.5791383385658264,
0.18884404003620148,
-0.18714044988155365,
-0.3420014977455139,
-0.4723513126373291,
0.17582449316978455,
-0.07641833275556564,
-0.02461322396993637,
0.38086241483688... |
func init() {
var err error
db, err = sql.Open("postgres","user=snake dbname=snake_game sslmode=disable port=26257")
if err != nil {
log.Fatal("error connecting to the database: ", err, nil)
}
if err != nil {
log.Fatal("error connecting to the database: ", err, nil)
}
} | [
0.1886928826570511,
0.09280989319086075,
0.8313179016113281,
-0.5148466229438782,
0.3873823285102844,
0.709327220916748,
-0.4108002483844757,
0.7819304466247559,
-1.2147293090820312,
0.588109016418457,
0.030407069250941277,
1.0582345724105835,
-0.775002121925354,
0.44551050662994385,
1.0... |
func getNewsInstance() *News {
once.Do(func() {
if newsInstance == nil {
newsInstance = &News{}
}
})
return newsInstance
} | [
0.06663134694099426,
0.593340277671814,
0.0401134192943573,
-0.6423922777175903,
-0.7320243120193481,
0.21564728021621704,
-0.7558635473251343,
-0.5304484367370605,
0.12074464559555054,
-1.3129929304122925,
-0.2282564342021942,
-0.42730891704559326,
-0.9867084622383118,
0.4883888065814972,... |
func (n *News) fetch() {
mutex.Lock()
defer mutex.Unlock()
if !storiesCached {
storiesCached = true
log.Println("loading stories...")
n.loadTopStoryIDs()
n.loadStories()
time.AfterFunc(refreshTimer, func() {
mutex.Lock()
storiesCached = false
mutex.Unlock()
n.fetch()
})
}
} | [
0.3518960475921631,
-0.11105764657258987,
-0.03888491168618202,
0.45505568385124207,
-0.006905263289809227,
0.4714488387107849,
-1.1475087404251099,
-0.9808106422424316,
-0.49854591488838196,
-1.254289984703064,
-0.17546430230140686,
-0.404623806476593,
0.37428852915763855,
1.5467104911804... |
func (n *News) loadTopStoryIDs() {
resp, err := http.Get(topStoriesURL)
if err != nil {
log.Fatalf("problem loading top news stories: %v\n", err)
}
defer resp.Body.Close()
if err = json.NewDecoder(resp.Body).Decode(&n.topStoryIDs); err != nil {
log.Fatalf("error parsing top stories ids: %v\n", err)
}
} | [
-0.8442066311836243,
-0.22303035855293274,
0.08462852984666824,
-0.509246289730072,
-0.8001718521118164,
0.17995823919773102,
-1.0885465145111084,
-0.5891079902648926,
-0.7797122001647949,
-0.3523400127887726,
-0.6018812656402588,
-0.6783213019371033,
-0.3133418560028076,
0.449322670698165... |
func (n *News) sortStories() (stories []Story) {
stories = make([]Story, numWantedStories)
mutex.RLock()
for index, id := range n.topStoryIDs[:numWantedStories] {
stories[index] = n.Stories[id]
}
mutex.RUnlock()
return
} | [
-0.1288706511259079,
-0.11416324973106384,
0.1546986699104309,
0.13121792674064636,
0.024405401200056076,
0.39514827728271484,
-0.06785399466753006,
-1.2480403184890747,
-0.34049147367477417,
-0.8837751150131226,
0.39969614148139954,
0.11239070445299149,
-0.8302927613258362,
0.576556086540... |
func nthPrime(n int) int {
count := 0
number := 1
for count < n {
number++
if isPrime(number) {
count++
}
}
return number
} | [
-0.2913084030151367,
0.5778279304504395,
0.6744053959846497,
0.37750357389450073,
0.32719185948371887,
0.5571368932723999,
-0.29569536447525024,
-0.46538814902305603,
0.2468414306640625,
0.21091453731060028,
-0.4104807674884796,
-0.6336191296577454,
-1.3710789680480957,
0.9431104063987732,... |
func Entropy(p mat.Vector) float64 {
var r float64
for i := 0; i < p.Len(); i++ {
v := p.AtVec(i)
if v > 0.0 {
r -= v * math.Log(v)
}
}
return r
} | [
-0.6608417630195618,
0.4756741225719452,
0.23124469816684723,
-0.3648250699043274,
-0.875419020652771,
0.3288969397544861,
0.46990251541137695,
0.1435898393392563,
-0.6680622100830078,
0.9938600063323975,
1.0647971630096436,
-0.2812325060367584,
-0.5697316527366638,
-0.5440880656242371,
... |
func FindUser(service *Service, userId string) (*models.User, error) {
beego.Info("userService.FindUser() is called ~~~", "FindUser: ", userId)
var usr models.User
f := func(collection *mgo.Collection) error {
queryMap := bson.M{"userId": userId}
beego.Info(service.UserID, "FindUser, MGO :", mongo.ToString(que... | [
-0.5375739932060242,
-0.14607076346874237,
0.4165494441986084,
0.33878085017204285,
0.21846653521060944,
0.20655027031898499,
0.7336429953575134,
-0.8929112553596497,
0.2725076377391815,
0.10565017908811569,
0.10178377479314804,
0.18129242956638336,
-0.7189030051231384,
1.1429011821746826,... |
func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{
(*Metric_StringData)(ni... | [
0.08503726124763489,
1.0959988832473755,
0.5519289374351501,
-0.7172853350639343,
0.3381468653678894,
-0.17014959454536438,
0.7711809277534485,
-1.2097457647323608,
-0.6084052324295044,
-0.47629326581954956,
0.052367035299539566,
-0.18869958817958832,
0.11322766542434692,
0.911590158939361... |
func NewBytewiseComparator() Comparator {
return &BytewiseComparatorImpl{}
} | [
0.436341255903244,
-0.28989046812057495,
0.14012594521045685,
-0.8194308876991272,
-1.5684828758239746,
-1.0277076959609985,
-0.8475500345230103,
-0.3337683379650116,
0.25142255425453186,
-0.5243178009986877,
-1.1092925071716309,
-0.454531192779541,
-0.6328316926956177,
0.7007425427436829,... |
func NewTaskMonitor(ctx context.Context, publisher events.Publisher, ns *metrics.Namespace) (runtime.TaskMonitor, error) {
collector := NewCollector(ns)
oom, err := newOOMCollector(ns)
if err != nil {
return nil, err
}
return &cgroupsMonitor{
collector: collector,
oom: oom,
context: ctx,
publishe... | [
-0.32352760434150696,
-0.16918599605560303,
0.24578946828842163,
0.4784325659275055,
-0.7541689872741699,
-0.3546205461025238,
-0.1004682406783104,
-0.5609416365623474,
-0.1494104564189911,
-0.1261638104915619,
-1.1118420362472534,
-0.24005943536758423,
-0.055785875767469406,
1.22800457477... |
func NewSoftwarerepositoryCategoryMapper(classId string, objectType string) *SoftwarerepositoryCategoryMapper {
this := SoftwarerepositoryCategoryMapper{}
this.ClassId = classId
this.ObjectType = objectType
var fileType string = "Distributable"
this.FileType = &fileType
var source string = "Cisco"
this.Source = ... | [
-0.10545465350151062,
-0.2989589273929596,
0.06723657250404358,
0.6381667852401733,
-0.7588697075843811,
-0.14893746376037598,
-0.3261256515979767,
0.05225815996527672,
0.42353948950767517,
-0.5774792432785034,
-0.16704848408699036,
-1.0417561531066895,
0.8611253499984741,
1.67225658893585... |
func NewSoftwarerepositoryCategoryMapperWithDefaults() *SoftwarerepositoryCategoryMapper {
this := SoftwarerepositoryCategoryMapper{}
var classId string = "softwarerepository.CategoryMapper"
this.ClassId = classId
var objectType string = "softwarerepository.CategoryMapper"
this.ObjectType = objectType
var fileTyp... | [
-0.2505198121070862,
-0.02428608015179634,
-0.16249728202819824,
0.6201324462890625,
0.12853208184242249,
-0.45973777770996094,
-0.7502769827842712,
-0.1901526302099228,
0.5103994607925415,
-1.2281259298324585,
-0.6232842206954956,
-1.9750854969024658,
0.3958522379398346,
1.503497362136840... |
func (o *SoftwarerepositoryCategoryMapper) GetClassId() string {
if o == nil {
var ret string
return ret
}
return o.ClassId
} | [
0.37922850251197815,
-0.42004695534706116,
-0.20195817947387695,
0.4944426119327545,
0.3276890218257904,
0.8987908959388733,
0.24344787001609802,
0.28230801224708557,
1.3171743154525757,
-0.675653874874115,
0.366610586643219,
-0.4531792104244232,
-0.4207148253917694,
0.424243688583374,
0... |
func (o *SoftwarerepositoryCategoryMapper) GetClassIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ClassId, true
} | [
-0.5427589416503906,
0.1901858150959015,
0.5478886365890503,
0.8292317390441895,
0.45230013132095337,
0.696065366268158,
0.5321526527404785,
0.8003485202789307,
0.6417381763458252,
-0.051398519426584244,
-0.976277768611908,
-0.709367573261261,
-0.09108221530914307,
0.8295481204986572,
-0... |
func (o *SoftwarerepositoryCategoryMapper) SetClassId(v string) {
o.ClassId = v
} | [
-0.003605269594117999,
-0.6425842642784119,
-0.26298442482948303,
-0.24177497625350952,
-0.45837825536727905,
0.4640823304653168,
0.007241187151521444,
0.5686551928520203,
0.9745186567306519,
0.34279051423072815,
0.03756879270076752,
0.026060042902827263,
-0.010984551161527634,
0.453755438... |
func (o *SoftwarerepositoryCategoryMapper) GetObjectType() string {
if o == nil {
var ret string
return ret
}
return o.ObjectType
} | [
0.19343338906764984,
0.19000664353370667,
-0.30093398690223694,
-0.42908796668052673,
0.7390429973602295,
0.5183175802230835,
-0.10336975753307343,
-0.24980130791664124,
0.3973519206047058,
-0.03301239758729935,
-0.08065077662467957,
-1.202917456626892,
-0.7618045806884766,
-0.336160272359... |
func (o *SoftwarerepositoryCategoryMapper) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ObjectType, true
} | [
-0.44957152009010315,
0.09334609657526016,
0.4890097677707672,
-0.470682829618454,
0.2532597780227661,
0.32784464955329895,
-0.03352439031004906,
0.29264241456985474,
-0.12130573391914368,
1.8348278999328613,
-1.3242229223251343,
-1.7199267148971558,
0.22887194156646729,
-0.060126539319753... |
func (o *SoftwarerepositoryCategoryMapper) SetObjectType(v string) {
o.ObjectType = v
} | [
-0.12940414249897003,
-0.20395830273628235,
-0.35481205582618713,
-0.957727313041687,
-0.029277309775352478,
0.4634302854537964,
-0.2609485983848572,
-0.23620326817035675,
-0.031434565782547,
0.6499682664871216,
-0.5996683835983276,
-0.8009307384490967,
-0.11576765775680542,
-0.27942004799... |
func (o *SoftwarerepositoryCategoryMapper) GetCategory() string {
if o == nil || o.Category == nil {
var ret string
return ret
}
return *o.Category
} | [
0.4200976490974426,
0.30915501713752747,
-0.054793357849121094,
0.5160748362541199,
0.19213208556175232,
-0.24605482816696167,
0.6055904030799866,
-0.2838243842124939,
1.003133773803711,
-0.8270052075386047,
0.43658357858657837,
-1.4070990085601807,
-0.03925284743309021,
0.8361782431602478... |
func (o *SoftwarerepositoryCategoryMapper) GetCategoryOk() (*string, bool) {
if o == nil || o.Category == nil {
return nil, false
}
return o.Category, true
} | [
-0.18153347074985504,
0.6688987016677856,
0.21323682367801666,
0.2901633083820343,
0.4047735333442688,
-0.5320733785629272,
0.5412442684173584,
0.5012772083282471,
-0.042635347694158554,
-0.609510600566864,
-0.5895006060600281,
-1.0242568254470825,
0.6418244242668152,
0.7801058888435364,
... |
func (o *SoftwarerepositoryCategoryMapper) HasCategory() bool {
if o != nil && o.Category != nil {
return true
}
return false
} | [
0.33981621265411377,
0.2005373239517212,
0.010036922991275787,
0.2526634931564331,
0.5758157968521118,
-0.2730036973953247,
0.1265648454427719,
0.6405206918716431,
0.8264822363853455,
-1.0260215997695923,
0.021055372431874275,
-1.0540847778320312,
0.3887922167778015,
0.5473272204399109,
... |
func (o *SoftwarerepositoryCategoryMapper) SetCategory(v string) {
o.Category = &v
} | [
0.30356723070144653,
-0.18550509214401245,
-0.5443553924560547,
0.0688486099243164,
-0.6241931915283203,
-0.2767055332660675,
-0.3464445471763611,
-0.33535659313201904,
0.18024004995822906,
-0.38602370023727417,
0.2598918080329895,
0.444192111492157,
0.11084237694740295,
-0.283217161893844... |
func (o *SoftwarerepositoryCategoryMapper) GetFileType() string {
if o == nil || o.FileType == nil {
var ret string
return ret
}
return *o.FileType
} | [
0.8308584094047546,
0.07253919541835785,
0.19069935381412506,
0.44240593910217285,
0.7441778779029846,
-0.3186566233634949,
0.17069770395755768,
0.19004574418067932,
0.8238049745559692,
-0.05665852874517441,
0.05167669430375099,
-1.5400235652923584,
-0.6752499938011169,
1.083795189857483,
... |
func (o *SoftwarerepositoryCategoryMapper) GetFileTypeOk() (*string, bool) {
if o == nil || o.FileType == nil {
return nil, false
}
return o.FileType, true
} | [
0.0022164967376738787,
0.13113795220851898,
0.43758538365364075,
0.21984708309173584,
0.3709704279899597,
-0.3775729537010193,
0.39749571681022644,
0.7396419048309326,
-0.060139525681734085,
1.1307318210601807,
-0.9453575611114502,
-1.5347981452941895,
0.17154228687286377,
0.93444859981536... |
func (o *SoftwarerepositoryCategoryMapper) HasFileType() bool {
if o != nil && o.FileType != nil {
return true
}
return false
} | [
1.131242275238037,
0.08177675306797028,
0.04648349806666374,
-0.23952841758728027,
1.1383295059204102,
-1.042665958404541,
-0.0295224841684103,
0.7611932754516602,
0.032191671431064606,
-0.13697683811187744,
-0.602140486240387,
-1.4489473104476929,
-0.19274020195007324,
1.2830584049224854,... |
func (o *SoftwarerepositoryCategoryMapper) SetFileType(v string) {
o.FileType = &v
} | [
1.0256417989730835,
-0.2915932238101959,
-0.1957636922597885,
-0.26250317692756653,
0.05802685022354126,
-0.6457656025886536,
-0.35882025957107544,
-0.4460204541683197,
0.06902649253606796,
0.06110810115933418,
0.13545209169387817,
0.13403242826461792,
-0.010101564228534698,
0.075671084225... |
func (o *SoftwarerepositoryCategoryMapper) GetImageType() string {
if o == nil || o.ImageType == nil {
var ret string
return ret
}
return *o.ImageType
} | [
-0.1386060118675232,
0.32841619849205017,
0.1430843472480774,
-0.04329803213477135,
0.3046759366989136,
-0.7739884853363037,
-0.06922587007284164,
-0.05848212167620659,
0.8710785508155823,
-0.013821144588291645,
-0.09120769798755646,
-1.5804054737091064,
-0.4802401661872864,
1.122668743133... |
func (o *SoftwarerepositoryCategoryMapper) GetImageTypeOk() (*string, bool) {
if o == nil || o.ImageType == nil {
return nil, false
}
return o.ImageType, true
} | [
-1.1282293796539307,
0.1773136854171753,
0.39110538363456726,
-0.514135479927063,
0.3065479099750519,
-0.5183503031730652,
0.08612789213657379,
0.5524729490280151,
0.15892447531223297,
1.3453816175460815,
-1.1338750123977661,
-1.3840988874435425,
0.42583465576171875,
0.7195128202438354,
... |
func (o *SoftwarerepositoryCategoryMapper) HasImageType() bool {
if o != nil && o.ImageType != nil {
return true
}
return false
} | [
-0.05146266520023346,
0.5939306616783142,
0.046450041234493256,
-1.023887276649475,
0.9071073532104492,
-1.328757643699646,
-0.5344767570495605,
0.4394848942756653,
0.02685420960187912,
0.12286102026700974,
-1.0208806991577148,
-1.411067008972168,
-0.04566953331232071,
1.2730697393417358,
... |
func (o *SoftwarerepositoryCategoryMapper) SetImageType(v string) {
o.ImageType = &v
} | [
0.12567366659641266,
-0.005896691232919693,
-0.3597707748413086,
-0.8653994202613831,
-0.1357482671737671,
-0.80445796251297,
-0.7726975679397583,
-0.5591050982475281,
0.03299231454730034,
0.2475423663854599,
-0.10798125714063644,
0.04379482567310333,
0.04685741662979126,
-0.01848113164305... |
func (o *SoftwarerepositoryCategoryMapper) GetIsNfsUpgradeSupported() bool {
if o == nil || o.IsNfsUpgradeSupported == nil {
var ret bool
return ret
}
return *o.IsNfsUpgradeSupported
} | [
-1.011773943901062,
0.5759855508804321,
0.19569094479084015,
0.9471911787986755,
-0.2869490087032318,
-0.9444273710250854,
-0.29758092761039734,
0.018668808043003082,
-0.3876390755176544,
0.010729466564953327,
-1.100939154624939,
-1.22193443775177,
-0.9708661437034607,
0.1826462596654892,
... |
func (o *SoftwarerepositoryCategoryMapper) GetIsNfsUpgradeSupportedOk() (*bool, bool) {
if o == nil || o.IsNfsUpgradeSupported == nil {
return nil, false
}
return o.IsNfsUpgradeSupported, true
} | [
-0.9075866341590881,
0.3130737841129303,
0.11869140714406967,
0.8536520004272461,
-0.6075446009635925,
-0.6979641914367676,
-0.12819667160511017,
0.4161412715911865,
-0.8054531216621399,
0.5900747179985046,
-0.9904698133468628,
-1.043384075164795,
-0.1100819781422615,
0.6777700781822205,
... |
func (o *SoftwarerepositoryCategoryMapper) HasIsNfsUpgradeSupported() bool {
if o != nil && o.IsNfsUpgradeSupported != nil {
return true
}
return false
} | [
-0.8037329316139221,
0.7760217189788818,
-0.03818288818001747,
0.4841177761554718,
0.3260101079940796,
-1.4139437675476074,
-0.2504397928714752,
0.5403348207473755,
-0.8386970162391663,
-0.14790283143520355,
-1.0060374736785889,
-1.129853367805481,
-0.20715555548667908,
0.7450635433197021,... |
func (o *SoftwarerepositoryCategoryMapper) SetIsNfsUpgradeSupported(v bool) {
o.IsNfsUpgradeSupported = &v
} | [
-1.173285722732544,
0.44430461525917053,
-0.07104630768299103,
0.6857402920722961,
-0.4700142443180084,
-0.414808452129364,
-0.557294487953186,
-0.06325314193964005,
-0.9868795275688171,
0.3474453091621399,
-0.7080268263816833,
-0.9382123947143555,
-0.37263742089271545,
0.2942926287651062,... |
func (o *SoftwarerepositoryCategoryMapper) GetMdfId() string {
if o == nil || o.MdfId == nil {
var ret string
return ret
}
return *o.MdfId
} | [
0.6258252859115601,
-0.044736187905073166,
0.1702461540699005,
0.4843432903289795,
-0.2398197501897812,
0.2896576523780823,
0.08418487757444382,
-0.1696024090051651,
0.7745834589004517,
-0.46310552954673767,
0.0698823407292366,
-0.7774319052696228,
-0.6962881684303284,
0.4295256435871124,
... |
func (o *SoftwarerepositoryCategoryMapper) GetMdfIdOk() (*string, bool) {
if o == nil || o.MdfId == nil {
return nil, false
}
return o.MdfId, true
} | [
0.0903548076748848,
0.5544469952583313,
0.30871501564979553,
0.3018767833709717,
0.08593668788671494,
0.3474576473236084,
0.7878528833389282,
0.8815643787384033,
0.10273270308971405,
-0.27209779620170593,
-0.6556589603424072,
-0.46244627237319946,
-0.07741006463766098,
0.40946152806282043,... |
func (o *SoftwarerepositoryCategoryMapper) HasMdfId() bool {
if o != nil && o.MdfId != nil {
return true
}
return false
} | [
0.5568035840988159,
0.12180633842945099,
-0.016399117186665535,
-0.5505622625350952,
0.1620996743440628,
-0.8060659766197205,
-0.33652955293655396,
0.7844991683959961,
-0.04235083982348442,
-0.6272369623184204,
-0.5110834240913391,
-0.3023208677768707,
-0.15316402912139893,
0.7046933174133... |
func (o *SoftwarerepositoryCategoryMapper) SetMdfId(v string) {
o.MdfId = &v
} | [
0.7633281946182251,
-0.43275418877601624,
-0.3650549650192261,
-0.5958256721496582,
-0.8810638189315796,
0.09836830198764801,
-0.4864223599433899,
-0.27225735783576965,
0.04182039946317673,
-0.06846649944782257,
-0.10580077022314072,
0.6138899326324463,
-0.3084748387336731,
-0.340497851371... |
func (o *SoftwarerepositoryCategoryMapper) GetRegexPattern() string {
if o == nil || o.RegexPattern == nil {
var ret string
return ret
}
return *o.RegexPattern
} | [
-0.07202072441577911,
0.07607390731573105,
0.23084594309329987,
0.51068514585495,
0.41658541560173035,
-0.43043798208236694,
0.04104304686188698,
0.6327515840530396,
0.8071054816246033,
-0.7252793312072754,
-0.8837533593177795,
-1.2985711097717285,
-1.0036897659301758,
0.3642951250076294,
... |
func (o *SoftwarerepositoryCategoryMapper) GetRegexPatternOk() (*string, bool) {
if o == nil || o.RegexPattern == nil {
return nil, false
}
return o.RegexPattern, true
} | [
-0.38712015748023987,
0.6338598132133484,
0.5733743906021118,
0.1660277545452118,
-0.06501282751560211,
-0.08241195231676102,
0.43192166090011597,
0.8914676308631897,
0.6992047429084778,
-0.1756284236907959,
-1.1758774518966675,
-1.3184263706207275,
-0.3186300992965698,
0.19935552775859833... |
func (o *SoftwarerepositoryCategoryMapper) HasRegexPattern() bool {
if o != nil && o.RegexPattern != nil {
return true
}
return false
} | [
0.015432973392307758,
0.028164541348814964,
0.27279138565063477,
-0.1132938489317894,
1.0091315507888794,
-0.9193123579025269,
-0.06889472156763077,
0.751798152923584,
0.17748726904392242,
-1.0885361433029175,
-1.4066393375396729,
-1.0743523836135864,
-0.4849967360496521,
0.613526105880737... |
func (o *SoftwarerepositoryCategoryMapper) SetRegexPattern(v string) {
o.RegexPattern = &v
} | [
-0.2514300048351288,
-0.4354281425476074,
-0.180734321475029,
-0.22711127996444702,
-0.04507873207330704,
-0.42974814772605896,
-0.07058122754096985,
0.3518148362636566,
0.10244230180978775,
-0.663312554359436,
-0.7671846151351929,
0.02977164275944233,
-0.5993483662605286,
-0.2190635204315... |
func (o *SoftwarerepositoryCategoryMapper) GetSource() string {
if o == nil || o.Source == nil {
var ret string
return ret
}
return *o.Source
} | [
0.2851414978504181,
0.6983048319816589,
-0.10899442434310913,
0.788882851600647,
-0.07938925921916962,
-0.356513112783432,
0.7535678148269653,
-0.03226025775074959,
1.1639117002487183,
-0.3207222521305084,
-0.4633541405200958,
-1.385725498199463,
-0.7690527439117432,
0.6143718361854553,
... |
func (o *SoftwarerepositoryCategoryMapper) GetSourceOk() (*string, bool) {
if o == nil || o.Source == nil {
return nil, false
}
return o.Source, true
} | [
-0.18692930042743683,
0.3768256902694702,
0.33811211585998535,
0.5185703635215759,
-0.2180316299200058,
-0.06229724362492561,
0.8654764890670776,
0.6972169876098633,
0.6920403838157654,
0.6559814214706421,
-1.270336627960205,
-0.8578175902366638,
0.08972440659999847,
0.7287546992301941,
... |
func (o *SoftwarerepositoryCategoryMapper) HasSource() bool {
if o != nil && o.Source != nil {
return true
}
return false
} | [
-0.05360914766788483,
0.44943323731422424,
-0.20543818175792694,
0.4097807705402374,
0.26709628105163574,
-0.6625717878341675,
0.17042508721351624,
0.8217132687568665,
1.05154550075531,
-0.516447901725769,
-0.8920390605926514,
-1.2080599069595337,
-0.29560327529907227,
0.728786826133728,
... |
func (o *SoftwarerepositoryCategoryMapper) SetSource(v string) {
o.Source = &v
} | [
-0.2114119529724121,
0.21608535945415497,
-0.6161338686943054,
0.11168453097343445,
-1.1636086702346802,
-0.5966823101043701,
-0.22036059200763702,
-0.6924586892127991,
0.4535200595855713,
-0.1443324238061905,
-0.25435107946395874,
0.25493577122688293,
-0.33941903710365295,
-0.214806929230... |
func (o *SoftwarerepositoryCategoryMapper) GetSupportedModels() []string {
if o == nil {
var ret []string
return ret
}
return o.SupportedModels
} | [
-0.8276892900466919,
-0.05125963315367699,
-0.13789913058280945,
0.8414871692657471,
0.48794591426849365,
0.9027110934257507,
-0.024153202772140503,
-0.02323431894183159,
0.10410503298044205,
-0.3234410583972931,
-1.136899709701538,
-0.7316973805427551,
-0.8629868626594543,
0.2709988057613... |
func (o *SoftwarerepositoryCategoryMapper) GetSupportedModelsOk() ([]string, bool) {
if o == nil || o.SupportedModels == nil {
return nil, false
}
return o.SupportedModels, true
} | [
-0.6989032626152039,
0.759780764579773,
0.18258722126483917,
0.6620526909828186,
0.09901286661624908,
-0.23000457882881165,
0.03479393571615219,
0.3446884751319885,
0.22254084050655365,
-0.18089991807937622,
-1.6202481985092163,
-1.1925172805786133,
0.34810498356819153,
0.5575239062309265,... |
func (o *SoftwarerepositoryCategoryMapper) HasSupportedModels() bool {
if o != nil && o.SupportedModels != nil {
return true
}
return false
} | [
-0.6291168332099915,
0.7671146392822266,
-0.08321904391050339,
-0.1696338653564453,
0.429259717464447,
-0.2532765567302704,
-0.5490570664405823,
0.5397676229476929,
-0.4483321011066437,
-0.2389906942844391,
-1.349386215209961,
-1.7467187643051147,
0.2799299359321594,
0.49642834067344666,
... |
func (o *SoftwarerepositoryCategoryMapper) SetSupportedModels(v []string) {
o.SupportedModels = v
} | [
-1.0861924886703491,
-0.1929226666688919,
-0.35370925068855286,
0.026388363912701607,
-0.26048386096954346,
0.5999987721443176,
-0.23660972714424133,
-0.12866093218326569,
-0.2231522649526596,
0.16355355083942413,
-1.0650100708007812,
-1.1077640056610107,
-0.46119454503059387,
0.2301513701... |
func (o *SoftwarerepositoryCategoryMapper) GetSwId() string {
if o == nil || o.SwId == nil {
var ret string
return ret
}
return *o.SwId
} | [
0.9617672562599182,
-0.27905622124671936,
0.06655747443437576,
0.3040165305137634,
-0.5699447393417358,
0.9334749579429626,
0.6086453795433044,
-0.01607057824730873,
1.445676326751709,
-1.059094786643982,
0.2800724506378174,
-0.6247161626815796,
-0.5334373712539673,
1.4634430408477783,
0... |
func (o *SoftwarerepositoryCategoryMapper) GetSwIdOk() (*string, bool) {
if o == nil || o.SwId == nil {
return nil, false
}
return o.SwId, true
} | [
-0.031037289649248123,
0.4891427755355835,
0.3360074758529663,
0.30119723081588745,
0.20299410820007324,
0.8215243816375732,
0.7917121052742004,
1.1727439165115356,
0.6817041039466858,
-0.6338880658149719,
-0.7204253077507019,
-0.5882160663604736,
0.2826853096485138,
0.7865055799484253,
... |
func (o *SoftwarerepositoryCategoryMapper) HasSwId() bool {
if o != nil && o.SwId != nil {
return true
}
return false
} | [
0.8103767037391663,
0.0823383703827858,
-0.046768076717853546,
-0.3241530656814575,
-0.3929207921028137,
0.0117887482047081,
-0.1988469660282135,
0.5363662838935852,
0.47762709856033325,
-0.5176072120666504,
-0.4791616201400757,
-0.7866144776344299,
0.15985015034675598,
0.9859107732772827,... |
func (o *SoftwarerepositoryCategoryMapper) SetSwId(v string) {
o.SwId = &v
} | [
0.8708890676498413,
-0.7634469866752625,
-0.32721802592277527,
-0.3789319097995758,
-1.2489700317382812,
0.6868119835853577,
-0.5560590028762817,
-0.2611744999885559,
0.5070029497146606,
-0.5497567653656006,
0.2451697289943695,
0.6373986005783081,
0.043045610189437866,
0.19098225235939026,... |
func (o *SoftwarerepositoryCategoryMapper) GetTagTypes() []string {
if o == nil {
var ret []string
return ret
}
return o.TagTypes
} | [
0.34530243277549744,
0.8546034097671509,
-0.07406314462423325,
0.703470766544342,
0.9244328141212463,
-0.0876535028219223,
-0.3158109188079834,
-0.8344666957855225,
0.05212642252445221,
-0.5184932947158813,
-0.3944683074951172,
-0.8192960023880005,
-0.8114224076271057,
1.1554031372070312,
... |
func (o *SoftwarerepositoryCategoryMapper) GetTagTypesOk() ([]string, bool) {
if o == nil || o.TagTypes == nil {
return nil, false
}
return o.TagTypes, true
} | [
0.3182266354560852,
1.5253998041152954,
0.02662370353937149,
0.7359893918037415,
0.503277599811554,
-0.9825096726417542,
-0.208217591047287,
-0.6151365041732788,
-0.17441482841968536,
0.3940770626068115,
-1.4333137273788452,
-0.976253092288971,
0.33894088864326477,
1.0268473625183105,
-0... |
func (o *SoftwarerepositoryCategoryMapper) HasTagTypes() bool {
if o != nil && o.TagTypes != nil {
return true
}
return false
} | [
0.5564773082733154,
1.458176612854004,
-0.09345602244138718,
-0.026589564979076385,
0.6775176525115967,
-1.3651468753814697,
-0.49478840827941895,
-0.45752429962158203,
-0.36934947967529297,
-0.44827044010162354,
-0.7358942627906799,
-1.4308995008468628,
-0.2463318109512329,
1.479558587074... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.