text
stringlengths
5.51k
28.1k
package kallax import ( "bytes" "database/sql" "errors" "fmt" "log" "time" "github.com/Masterminds/squirrel" "github.com/lann/builder" ) var ( // ErrNonNewDocument non-new documents cannot be inserted ErrNonNewDocument = errors.New("kallax: cannot insert a non new document") // ErrNewDocument a new docume...
/* Copyright The containerd Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
// Code generated by msgraph.go/gen DO NOT EDIT. package msgraph import "time" // CloudAppSecurityProfile undocumented type CloudAppSecurityProfile struct { // Entity is the base model of CloudAppSecurityProfile Entity // AzureSubscriptionID undocumented AzureSubscriptionID *string `json:"azureSubscriptionId,omi...
// Copyright 2016 The go-qemu Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package engine import ( "errors" "fmt" "path/filepath" "reflect" "strconv" "strings" "time" "github.com/golang/glog" kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" "github.com/nirmata/kyverno/pkg/engine/anchor" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" ) func startResultResponse(respons...
package dough import ( "reflect" "testing" ) var TestStringToIntData = []struct { Num string Alpha string AllowLoose bool Output interface{} }{ // Invalid values {"", "USD", false, ErrorInvalidStringFormat.Error()}, {" ", "USD", false, ErrorInvalidStringFormat.Error()}, {"abcd", "USD", f...
package chain import ( "errors" "fmt" "reflect" "sort" "strings" "github.com/AccumulateNetwork/accumulate/internal/url" "github.com/AccumulateNetwork/accumulate/protocol" "github.com/AccumulateNetwork/accumulate/smt/storage" "github.com/AccumulateNetwork/accumulate/types" "github.com/AccumulateNetwork/accum...
/* * Copyright 2019-2020 VMware, Inc. * All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law...
package main import ( "bytes" "crypto/sha256" "flag" "fmt" "github.com/gosimple/slug" _ "golang.org/x/image/bmp" _ "golang.org/x/image/tiff" _ "golang.org/x/image/webp" "image" _ "image/gif" _ "image/jpeg" _ "image/png" "io" "io/ioutil" "log" "mime" "net/http" "net/url" "os" "path" "path/filepath"...
package main import ( "encoding/json" "fmt" "net/http" "net/url" "os" "sort" "strconv" "strings" "time" "io/ioutil" "golang.org/x/net/html" ) var ( bots = []struct { name, url string }{ {"Chromium", ""}, {"(FYI) Clang Linux ToT", "https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/ToTLi...
package state import ( "encoding/json" "fmt" "github.com/ebuchman/fail-test" abci "github.com/tendermint/abci/types" "github.com/tendermint/go-crypto" "github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/types" dbm "github.com/tendermint/tmlibs/db" "github.com/tendermint/tmlibs/log...
package automaton import ( "bytes" "fmt" "strconv" "strings" ) // util/automaton/RegExp.java type Kind int const ( REGEXP_UNION = Kind(1) REGEXP_CONCATENATION = Kind(2) REGEXP_INTERSECTION = Kind(3) REGEXP_OPTIONAL = Kind(4) REGEXP_REPEAT = Kind(5) REGEXP_REPEAT_MIN = Kind(6) REGE...
/* Copyright 2016 The Perkeep Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
package address import ( "strings" ) // Street street information type Street struct { Number string Direction string Name string Suffix string } const ( // street format streetFormatErr = "invalid street type" ) var ( // streetAddressSuffix list of street suffixes with their abbreviations // Pr...
/* Copyright The KubeVault Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
package gps import ( "context" "errors" "fmt" "sync" "github.com/sdboyer/gps/pkgtree" ) // sourceState represent the states that a source can be in, depending on how // much search and discovery work ahs been done by a source's managing gateway. // // These are basically used to achieve a cheap approximation of...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: peer/proposal.proto package peer import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This s...
// // Holidaybalance computes and updates employees vacation balance on google calendar. // // USAGE // go install github.com/lvdlvd/holidaybalance // # obtain a client_secret.json as per https://developers.google.com/google-apps/calendar/quickstart/go // // holidaybalance [-n] <EMAIL> // // The -n flag...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: correctable/correctable.proto package correctable import ( _ "github.com/relab/gorums" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/ru...
package receive import ( "errors" "fmt" "github.com/robertzml/Glaucus/db" "github.com/robertzml/Glaucus/equipment" "github.com/robertzml/Glaucus/glog" "github.com/robertzml/Glaucus/send" "github.com/robertzml/Glaucus/tlv" "strconv" "time" ) // 热水器设备状态报文 type WHStatusMessage struct { SerialNumber string ...
package eth import ( "context" "fmt" "math/big" "os" "sort" "sync" "time" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/golang/glog" "github.com/livepeer/go-livepeer/common" ethTypes "github.com/livepeer/go-livepeer/eth/types" "github.com/livepeer...
package calendar import ( "fmt" "strconv" "time" ) const ( // MinYear smallest year of support MinYear = 1900 // MaxYear largest year of support MaxYear = 2050 ) var ( // 具体的方法是:用一位来表示一个月的大小,大月记为1,小月记为0, // 这样就用掉12位(无闰月)或13位(有闰月),再用高四位来表示闰月的月份,没有闰月记为0。 // 例如:2000年的信息数据是0xc96,化成二进制就是110010010110B,表示的 // 含义...
// Copyright 2017 Authors of Cilium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
package contact import ( "context" "fmt" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "github.com/go-resty/resty/v2" lib "github.com/maxiloEmmmm/go-tool" "github.com/opentracing/opentracing-go" "github.com/uber/jaeger-client-go" jaegercfg "github.com/uber/jaeger-client-go/config" "io" ...
/* Copyright 2019 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
package ui import ( "errors" "fmt" "go-musicfox/config" "go-musicfox/constants" "go-musicfox/db" "go-musicfox/ds" "go-musicfox/lyric" "go-musicfox/utils" "math" "math/rand" "strconv" "strings" "github.com/anhoder/netease-music/service" "github.com/buger/jsonparser" "github.com/mattn/go-runewidth" "git...
/* Copyright 2018 Comcast Cable Communications Management, LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable ...
// Copyright (c) 2015-2022 CloudJ Technology Co., Ltd. package policy import ( "cloudiac/common" "cloudiac/portal/consts/e" "cloudiac/portal/libs/db" "cloudiac/portal/models" "cloudiac/runner" "cloudiac/utils" "encoding/json" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" "strings" "time" "github.co...
package exchange import ( "context" "encoding/json" "fmt" "math/rand" "strings" "github.com/buger/jsonparser" "github.com/mxmCherry/openrtb" "github.com/prebid/prebid-server/gdpr" "github.com/prebid/prebid-server/openrtb_ext" "github.com/prebid/prebid-server/pbsmetrics" ) // cleanOpenRTBRequests splits the...
package mocking import ( "container/list" "errors" "fmt" "strings" "unicode/utf8" "github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes/timestamp" "github.com/hyperledger/fabric-chaincode-go/shim" "github.com/hyperledger/fabric-protos-go/ledger/queryresult" pb "github.com/hyperledger/fabric...
// Copyright 2019 <NAME> // Licensed under the terms of the Apache 2.0 license package main import ( "bytes" "encoding/base64" "encoding/xml" "flag" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sts" "github.com/jcmturner/gokrb5/v8/credentials" "git...
package cluster import ( "errors" "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/elbv2" "github.com/mumoshu/terraform-provider-eksctl/pkg/courier" "log" "sort" "strconv" "strings" ) // the key is listener ARN type ListenerStatuses = map[string...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package leveldbhelper import ( "bytes" "encoding/json" "fmt" "strconv" "strings" "sync" "github.com/hyperledger/fabric/common/ledger/dataformat" "github.com/pkg/errors" "github.com/syndtr/goleveldb/leveldb" "github.com/synd...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/mdb/mysql/v1/resource_preset_service.proto package mysql import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" _ "google.golang.org/genproto/googleapis/api/annotat...
package consumeroffset import ( "fmt" "strconv" "sync" "github.com/Shopify/sarama" "github.com/newrelic/infra-integrations-sdk/data/metric" "github.com/newrelic/infra-integrations-sdk/integration" "github.com/newrelic/infra-integrations-sdk/log" "github.com/newrelic/nri-kafka/src/args" "github.com/newrelic/n...
/* * Copyright: ⚛ <<EMAIL>> 2010 * * The contents of this file can be used freely, * except for usages in immoral contexts. */ // +build linux freebsd package sdl_output import ( "errors" "fmt" "github.com/scottferg/Go-SDL/sdl" sdl_audio "github.com/scottferg/Go-SDL/sdl/audio" "github.com/guntars-lemps/gos...
package main import ( "bufio" "encoding/json" "flag" "fmt" "github.com/jakewins/reactivesocket-go/pkg/rs" "github.com/jakewins/reactivesocket-go/pkg/transport/tcp" "log" "os" "strconv" "strings" "sync/atomic" "time" ) var ( server bool client bool host string port int file string ) func init()...
// Package saturday implements a SAT solver using the Davis-Putnam backtracking // algorithm plus a few optimizations as described in the 2001 paper // Chaff: Engineering an Efficient SAT Solver. package saturday import ( "fmt" "sort" "strings" ) type solver struct { // sourceVars lists each input var (we don't c...
/*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *----------------------------------------------------------------------------------...
/* Package detour provides a net.Conn interface to dial another dialer if a site fails to connect directly. It maintains three states of a connection: initial, direct and detoured along with a temporary whitelist across connections. It also add a blocked site to permanent whitelist. The action taken and state transist...
package handlers import ( "bytes" "encoding/json" "fmt" "infra/appengine/rotang" "net/http" "regexp" "sort" "strings" "time" "go.chromium.org/gae/service/memcache" "go.chromium.org/luci/common/clock" "go.chromium.org/luci/common/logging" "go.chromium.org/luci/server/router" "google.golang.org/grpc/codes...
// Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
package main import ( "compress/gzip" "fmt" "io" "io/ioutil" "net" "net/http" "net/url" "os" "path" "path/filepath" "runtime" "strings" "sync" "sync/atomic" "time" ) var ( defaultNoSuchHost = &resource{ body: []byte("no such host"), loaded: time.Now(), cnttype: "text/plain; charset=utf-8", ...
package phantomjs import ( "bytes" "encoding/base64" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" ) var client http.Client func init() { client = http.Client{Transport: &http.Transport{}} } type _Commands struct { Status Command NewSession ...
// Copyright 2015 CoreOS, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
package idtoken import ( "bytes" "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rsa" "encoding/base64" "encoding/binary" "encoding/json" "errors" "fmt" "hash" "math/big" "strings" "time" myhash "github.com/kura-lab/go-openid-connect-client/pkg/hash" "github.com/kura-lab/go-openid-connect-client/pkg...
package stake import ( "math/rand" "strconv" "testing" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) //changing the int in NewSource will allow you to test different, deterministic, sets of operations var r = rand.New(rand.NewSource(6595))...
// Code generated by go-swagger; DO NOT EDIT. package resources // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.co...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: service.proto package frontservice import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sy...
// Copyright (c) 2017-2018 Tigera, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
package consensus import ( "context" "fmt" "net" "strconv" "time" "github.com/cockroachdb/errors" "github.com/iotaledger/hive.go/autopeering/discover" "github.com/iotaledger/hive.go/autopeering/peer" "github.com/iotaledger/hive.go/autopeering/peer/service" "github.com/iotaledger/hive.go/daemon" "github.com...
package service_router import ( "encoding/json" "fmt" "io/ioutil" "net" "net/http" "reflect" "strconv" "strings" "sync" "time" "github.com/algo-data-platform/LaserDB/sdk/go/common/ip" "github.com/hashicorp/consul/api" "github.com/liubang/tally" promreporter "github.com/liubang/tally/prometheus" "github...
// Copyright 2020 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: get_version_permission_info.proto package version import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" artifact "github.com/easyopsapis/easyops-api-go/protorepo-mod...
package data import ( "bytes" "encoding/json" "fmt" "net" "reflect" "sort" "strconv" "strings" ) // FeedPtr represents the dynamic metadata value in which a feed is providing the value. type FeedPtr struct { FeedID string `json:"feed,omitempty"` } // PulsarMeta is currently only used for validation type Pul...
package store import ( "fmt" "io" "strings" "golang.org/x/crypto/ripemd160" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/merkle" dbm "github.com/tendermint/tendermint/libs/db" sdk "github.com/cosmos/cosmos-sdk/types" ) const ( latestVersionKey = "s/latest" c...
// Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
// Copyright 2018 Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
package main import ( "fmt" "os" "strings" "github.com/gorilla/websocket" "github.com/lxc/lxd/lxd/db" "github.com/lxc/lxd/lxd/migration" "github.com/lxc/lxd/lxd/project" "github.com/lxc/lxd/shared" "github.com/lxc/lxd/shared/logger" "github.com/pborman/uuid" ) type rbdMigrationSourceDriver struct { cont...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: transaction_internal_list.proto package models import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflec...
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package http2 import ( "fmt" "math" "sort" ) // RFC 7540, Section 5.3.5: the default weight is 16. const priorityDefaultWeight = 15 // 16 = 15 + 1 // Prio...
package mediator import ( "context" "fmt" "log" "math" "reflect" "strings" "sync" "time" "github.com/panjf2000/ants/v2" "github.com/pkg/errors" ) var ( _ IMediator = (*Mediator)(nil) _ IMediatorBuilder = (*Mediator)(nil) ) const ( // ErrorNotEventHandler ... ErrorNotEventHandler = "not found ha...
package hevc import ( "encoding/binary" "io" ) // 8.3.3.1 HEVC decoder configuration record // This subclause specifies the decoder configuration information for ISO/IEC // 23008-2 video content. This record contains the size of the length field used // in each sample to indicate the length of its contained NAL un...
// Copyright 2018 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. // +build kubeapiserver package app import ( "context" "fmt" "net/ht...
package main import ( "encoding/json" "flag" "fmt" "io/ioutil" "math/rand" "net/http" "os" "os/exec" "os/signal" "path/filepath" "runtime" "strconv" "strings" "syscall" "time" "github.com/JoshuaDoes/duckduckgolang" "github.com/JoshuaDoes/go-soundcloud" "github.com/JoshuaDoes/go-wolfram" "github.com...
package spark // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. ...
package elasticapm import ( "context" "fmt" "log" "regexp" "strings" "sync" "time" "github.com/elastic/apm-agent-go/model" "github.com/elastic/apm-agent-go/stacktrace" "github.com/elastic/apm-agent-go/transport" ) const ( defaultPreContext = 3 defaultPostContext = 3 transactionsChannelCap = 100...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not...
package theme import ( "encoding/hex" "fmt" "image/color" "gioui.org/layout" "gioui.org/op" "gioui.org/text" "gioui.org/unit" "gioui.org/widget" "gioui.org/widget/material" materials "gioui.org/x/component" "gioui.org/x/richtext" "git.sr.ht/~whereswaldon/forest-go/fields" "git.sr.ht/~whereswaldon/sprig/d...
package scanner import ( "database/sql" "fmt" "log" "reflect" "strings" "sync" ) /** tag 用法 column 设置行 `db:"column:'id'"` pk 设为主键 (primary_key) index 普通索引 unique_index 唯一索引 auto 自增 (AUTO_INCREMENT) size 字段长度 - 忽略字段 type 字段类型 type:varchar(100) 其他 not null;unique **/ //TagKey parse struct tag const TagKey = "...
// +build ignore package stat import ( "errors" "fmt" "log" "math" "sort" "strconv" "strings" "github.com/melias122/engine/csv" "github.com/montanaflynn/stats" ) type predictionData struct { last int step []float64 } type prediction struct { r1 int data map[string]predictionData candid...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: InitConnect.proto /* Package InitConnect is a generated protocol buffer package. It is generated from these files: InitConnect.proto It has these top-level messages: C2S S2C Request Response */ package InitConnect import proto "github.com/golang/proto...
/* Copyright 2020 Sorbonne Université Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0-devel // protoc v3.17.3 // source: token_get_nft_infos.proto package services import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "ref...
// Copyright 2018 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
// +build codegen package api import ( "bytes" "fmt" "regexp" "sort" "strings" "text/template" ) // An Operation defines a specific API Operation. type Operation struct { API *API `json:"-"` ExportedName string Name string Documentation string HTTP ...
/* Copyright 2017 <NAME> All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
package machine import ( "crypto/rand" "crypto/sha1" "encoding/hex" "encoding/json" "errors" "fmt" "strconv" "strings" "sync" "github.com/robertkrimen/otto" "github.com/tidwall/buntdb" "github.com/tidwall/finn" "github.com/tidwall/redcon" ) const scriptErrPrefix = "eval err:" const scriptKeyPrefix = sdb...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2021 Authors of KubeArmor package core import ( "os" "os/signal" "strings" "sync" "syscall" "time" kl "github.com/kubearmor/KubeArmor/KubeArmor/common" cfg "github.com/kubearmor/KubeArmor/KubeArmor/config" kg "github.com/kubearmor/KubeArmor/KubeArmor/log" ...
package consensus import ( "fmt" tmcon "github.com/arcology-network/consensus-engine/consensus" cstypes "github.com/arcology-network/consensus-engine/consensus/types" tmproto "github.com/arcology-network/consensus-engine/proto/tendermint/types" "github.com/arcology-network/consensus-engine/types" ) // Misbehavi...
package server import ( "reflect" "sort" "strings" "sync" "github.com/gobwas/glob" "go-home.io/x/server/plugins/common" "go-home.io/x/server/plugins/device/enums" "go-home.io/x/server/plugins/helpers" "go-home.io/x/server/providers" "go-home.io/x/server/settings" "go-home.io/x/server/systems" "go-home.io/...
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may // not use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" file ...
/* * Copyright (c) 2013-2017, <NAME> (<<EMAIL>>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
package mic import ( "fmt" "sync" "time" "github.com/Azure/aad-pod-identity/pkg/stats" "github.com/Azure/aad-pod-identity/version" aadpodid "github.com/Azure/aad-pod-identity/pkg/apis/aadpodidentity/v1" "github.com/Azure/aad-pod-identity/pkg/cloudprovider" "github.com/Azure/aad-pod-identity/pkg/crd" "githu...
//go:build go1.18 package main import ( "bytes" "encoding/json" "flag" "fmt" "go/parser" "go/token" "os" "os/exec" "path" "path/filepath" "regexp" "runtime" "strconv" "strings" ) var ctx struct { GOROOT string GOOS string GOARCH string GO1VER int GOTAGS map[string]bool StdDir string BasePkg ...
/* * Copyright (C) 2019 Synopsys, Inc. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Licens...
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. package runner import ( "encoding/json" "fmt" "sync" "time" "github.com/benbjohnson/clock" "github.com/linuxboot/contest/pkg/even...
// Copyright 2016-2017 VMware, Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
// Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lic...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import "unsafe" /* * defined constants */ const ( // G status // // If you add to this list, add to the list // of "okay during garbage ...
package problems import ( // "fmt" expr "github.com/verdverm/go-symexpr" "math" "math/rand" ) type RangeType int const ( _ RangeType = iota Uniform Equal ) type BenchmarkVar struct { Name string Index int Rtype RangeType L, H, S float64 // low,high,step of range } type Benchmark struct { Name ...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright 2018 The LUCI Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package main import ( "crypto/sha1" "encoding/hex" "fmt" "net/url" "os" "path/filepath" "strings" "github.com/maruel/subcommands" "g...
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
// Code generated from FaultParser.g4 by ANTLR 4.8. DO NOT EDIT. package parser // FaultParser import "github.com/antlr/antlr4/runtime/Go/antlr" // BaseFaultParserListener is a complete listener for a parse tree produced by FaultParser. type BaseFaultParserListener struct{} var _ FaultParserListener = &BaseFaultPar...
/* Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distrib...
// Copyright 2018, OpenCensus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...