text
stringlengths
8.57k
38.1k
// Copyright 2019 The gVisor 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...
/* Copyright 2021 The RamenDR 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, software ...
package zkp import ( "crypto/sha256" "errors" "fmt" "math/big" "math/rand" "time" ) type FormatProof struct { C, Z1, Z2 []byte } type BalanceProof struct { C, R_v, R_r, S_v, S_r, S_or []byte } type LinearEquationProof struct { S [][]byte T []byte } type EqualityProof struct { LinearEquationProof } func...
package objects import ( "fmt" "github.com/esurdam/go-sophos" ) // Awe is a generated struct representing the Sophos Awe Endpoint // GET /api/nodes/awe type Awe struct { AllowedInterfaces []interface{} `json:"allowed_interfaces"` Clients []interface{} `json:"clients"` Devices []interface{} `...
package txscript import ( "fmt" `github.com/p9c/node9/pkg/chain/config/netparams` "github.com/p9c/node9/pkg/chain/wire" "github.com/p9c/node9/pkg/util" ) // ScriptClass is an enumeration for the list of standard types of script. type ScriptClass byte // A bunch of constants const ( // MaxDataCarrierSize is...
package main import ( "log" "net" "sort" "strings" "sync" "time" "github.com/aristanetworks/goarista/dscp" "github.com/klauspost/reedsolomon" ) type UDPListener struct { // Listener // inherits common options from listener // channels for local connections management addch...
// Code generated by protoc-gen-go. // source: common/configtx.proto // DO NOT EDIT! package common 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 //...
package checkconfig import ( "fmt" "hash/fnv" "net" "path/filepath" "sort" "strconv" "strings" "time" "gopkg.in/yaml.v2" "github.com/DataDog/datadog-agent/pkg/autodiscovery/integration" "github.com/DataDog/datadog-agent/pkg/collector/check/defaults" "github.com/DataDog/datadog-agent/pkg/util/log" "gith...
// Copyright 2012-2016 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file // xmlseq.go - version of xml.go with sequence # injection on Decoding and sorting on Encoding. // Also, handles comments, directives and process instructions. pac...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/http/fault/v2/fault.proto package envoy_config_filter_http_fault_v2 import ( fmt "fmt" route "github.com/cilium/proxy/go/envoy/api/v2/route" v2 "github.com/cilium/proxy/go/envoy/config/filter/fault/v2" _type "github.com/cilium/proxy/g...
// Code generated by YGOT. DO NOT EDIT. /* Package plproxy_1_0_0 is a generated package which contains definitions of structs which represent a YANG schema. The generated schema can be compressed by a series of transformations (compression was false in this case). This package was generated by /root/go/pkg/mod/github....
package cloudant import ( "encoding/base64" "encoding/binary" "encoding/json" "fmt" "net/url" "os" "strconv" "strings" utils "github.com/alessiosavi/GoUtils" request "github.com/alessiosavi/Requests" "github.com/tidwall/gjson" "go.uber.org/zap" ) // Conf struct is delegated to save the information relate...
/* The gobin command installs/runs main packages. */ package main import ( "bytes" "crypto/sha256" "encoding/json" "errors" "flag" "fmt" "io" "io/ioutil" "os" "os/exec" "path" "path/filepath" "regexp" "runtime" "strings" "time" "github.com/rogpeppe/go-internal/module" ) const ( debug = false tem...
package translator import ( "code.google.com/p/go.tools/go/types" "fmt" "go/ast" "go/token" "sort" "strings" ) var ReservedKeywords = make(map[string]bool) func init() { for _, keyword := range []string{"abstract", "arguments", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue",...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/tasks/v2beta3/task.proto package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import duration "github.com/golang/protobuf/ptypes/d...
// Copyright (c) 2015 Western Digital Corporation or its affiliates. All rights reserved. // SPDX-License-Identifier: MIT package raft import ( "sort" log "github.com/golang/glog" ) // coreLeader represents the state of leader. type coreLeader struct { c *core peers map[string]*peer // peers in Raft group,...
// Copyright 2019 Yunion // // 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...
// This file holds Mapper-related code. // The Mapper is responsible for mapping // EECerts from the Log to the Map. // The current implementation does not use // this anymore, since the BFT already // add the certificates to both the Map and the Log. package mapper import ( "bufio" "context" "crypto" "crypto/x50...
package main import ( "fmt" "log" "net" "time" "strings" "sort" // "math/rand" "strconv" context "golang.org/x/net/context" "google.golang.org/grpc" "github.com/nyu-distributed-systems-fa18/algorand/pb" ) // Persistent and volatile state type ServerState struct { privateKey int64 publicKey int6...
// Copyright 2014 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. // +build ignore package main import ( "bytes" "flag" "fmt" "log" "os" "strings" "code.google.com/p/rsc/cc" ) func main() { log.SetFlags(0) flag.P...
package l5x import ( "errors" "fmt" "io" "strings" "unicode" "github.com/stellentus/go-plc" ) type Type interface { // PlcName is the name of the type, as used by the PLC (e.g. "my_struct" or "INT") PlcName() string // GoName is the name of the type, as used by go (e.g. "MyStruct" or "int16") GoName() str...
// Copyright 2020 <NAME> // // 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 2021 The cpuworker 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 agr...
package main import ( "encoding/binary" "errors" "flag" "io" "log" "net" "os" "os/signal" "strconv" "syscall" "time" "github.com/satori/go.uuid" proxy "github.com/shadowsocks/shadowsocks-go/cmd/proxy-server/proxy" ss "github.com/shadowsocks/shadowsocks-go/shadowsocks" ) const ( idAddrTypeIndex = 0 id...
// Package canvas is an API wrapper for Instructure's Canvas API written in Go. // // For the official Canvas API documentation, see https://canvas.instructure.com/doc/api/all_resources.html package canvas import ( "encoding/json" "errors" "fmt" "io" "net/http" "net/url" "os" "path" "path/filepath" "time" ...
// Copyright (c) 2012, <NAME>, SoundCloud Ltd. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Source code and contact info at http://github.com/streadway/amqp package amqp import ( "bufio" "crypto/tls" "io" "net" "reflect" "strconv" "strings" "sync" ...
package mempool import ( "crypto/rand" "crypto/sha256" "encoding/binary" "fmt" "io/ioutil" mrand "math/rand" "os" "path/filepath" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" amino "github.com/tendermint/go-amino" "github.com/tendermint/tendermint/abci/ex...
// Copyright 2018 The gVisor 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: envoy/extensions/filters/http/lua/v3/lua.proto package envoy_extensions_filters_http_lua_v3 import ( v3 "github.com/antJack/go-control-plane-v3/envoy/config/core/v3" _ "github.com/cncf/xds/go...
// Copyright 2020 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 w...
// Copyright 2018-2019 opcua authors. All rights reserved. // Use of this source code is governed by a MIT-style license that can be // found in the LICENSE file. package uasc import ( "context" "crypto/rand" "crypto/rsa" "crypto/x509" "fmt" "io" "math" "sync" "sync/atomic" "time" "github.com/gopcua/opcua...
// +build linux // Internal functions for libseccomp Go bindings // No exported functions package seccomp import ( "fmt" "syscall" ) // Unexported C wrapping code - provides the C-Golang interface // Get the seccomp header in scope // Need stdlib.h for free() on cstrings // To compile libseccomp-golang against a...
package controller import ( "context" "encoding/json" "fmt" "reflect" "strings" "sync" "sync/atomic" "time" "github.com/sirupsen/logrus" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/tools/cache" acidv1 "github.com/zalando/postg...
package hncconfig import ( "context" "fmt" "sort" "strings" "sync" "time" "github.com/go-logr/logr" apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: alameda_api/v1alpha1/datahub/common/metrics.proto package common import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference imports to suppress errors if they are not ot...
package cmd import ( "bufio" "context" "encoding/json" "fmt" "io/ioutil" "log" "os" "strconv" "strings" "time" "github.com/docker/docker/api/types" "github.com/docker/docker/client" ui "github.com/gizak/termui/v3" "github.com/gizak/termui/v3/widgets" "github.com/spf13/cobra" "github.com/bunseokbot/Ho...
// Copyright (c) 2016 Company 0, LLC. // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. // Package ratchet implements the axolotl ratchet, by <NAME>. See // https://github.com/trevp/axolotl/wiki. package ratchet import ( "crypto/hmac" "crypto/sha256" "encoding/binar...
// Copyright 2017 HootSuite Media 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 validation import ( "errors" "flag" "time" "github.com/prometheus/common/model" "github.com/prometheus/prometheus/pkg/relabel" "github.com/cortexproject/cortex/pkg/util/flagext" ) var ( errMaxGlobalSeriesPerUserValidation = errors.New("The ingester.max-global-series-per-user limit is unsupported if d...
package ec2 import ( "bytes" "context" "errors" "fmt" "io/ioutil" "strings" "text/template" "time" "github.com/aws/aws-k8s-tester/ec2config" "github.com/aws/aws-k8s-tester/pkg/aws/cfn" aws_ec2 "github.com/aws/aws-k8s-tester/pkg/aws/ec2" "github.com/aws/aws-k8s-tester/pkg/timeutil" "github.com/aws/aws-k8s...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/google_ads_field_service.proto package services // import "google.golang.org/genproto/googleapis/ads/googleads/v1/services" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import resources ...
/* * Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved * * This source code file is licensed under the MIT License, you may obtain a copy of the License at * * http://opensource.org/licenses/MIT * */ package fastbuild import ( "fmt" "time" "github.com/Tencent/bk-ci/src/booster/comm...
package main import ( "context" "encoding/json" "fmt" "io/ioutil" "log" "os" "os/exec" "os/user" "path/filepath" "strconv" "strings" //"sync" "time" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/mount" "github.com/docker/docke...
// This code is available on the terms of the project LICENSE.md file, // also available online at https://blueoakcouncil.org/license/1.0.0. package msgjson import ( "encoding/binary" "encoding/json" "fmt" "decred.org/dcrdex/dex" ) // Error codes const ( RPCErrorUnspecified = iota // 0 RPCParseError ...
// Command motionserver provides a UDP motion server for use with DualShock 4 // controllers. // // udp packet header (ittle endian): // ----- // 4 byte magic ("DSUC" or "DSUS") // 2 byte protocol version // 2 byte message length // 4 byte ieee crc32 checksum // 4 byte client/server id // 4 byte message typ...
/* Copyright 2020 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, ...
/* SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the Submariner project. 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 requ...
// Copyright 2020 The gRPC 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 t...
/* * Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved * * This source code file is licensed under the MIT License, you may obtain a copy of the License at * * http://opensource.org/licenses/MIT * */ package cl import ( "bytes" "fmt" "io/ioutil" "os" "path/filepath" "runtime" "s...
// Copyright (C) 2021 The Android Open Source Project // // 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 applica...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: extension_user/extension_user.proto package extension_user import ( fmt "fmt" proto "github.com/tron-us/protobuf/proto" extension_base "github.com/tron-us/protobuf/protoc-gen-gogo/testdata/extension_base" extension_extra "github.com/tron-us/protobuf/pr...
package store import ( "context" "database/sql" "embed" "fmt" "io/fs" "path/filepath" "sort" "strconv" "strings" "time" "github.com/blang/semver/v4" "github.com/bytebase/bytebase/common/log" dbdriver "github.com/bytebase/bytebase/plugin/db" "github.com/pkg/errors" // Register postgres driver. _ "gith...
// Copyright (c) 2018-2019 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 ap...
package main import ( "flag" "fmt" "io" "math/rand" "os" "time" ) // Board is internal representation of a 5x5 tictactoe style // game board. type Board [5][5]int // Manifest constants used repeatedly. const ( WIN = 10000 LOSS = -10000 MAXIMIZER = 1 MINIMIZER = -1 UNSET = 0 ) var leafNodeC...
// Code generated by protoc-gen-go. // source: lol.proto // DO NOT EDIT! /* Package messages is a generated protocol buffer package. It is generated from these files: lol.proto nba.proto common.proto It has these top-level messages: LolAdvancedStatsIngest LolBasicStatsIngest LolEloDataProcess LolMatchDownload...
package editor import ( "fmt" "os/exec" "path/filepath" "strconv" "strings" "github.com/akiyosi/gonvim/osdepend" "github.com/therecipe/qt/core" "github.com/therecipe/qt/gui" "github.com/therecipe/qt/svg" "github.com/therecipe/qt/widgets" ) // Statusline is type Statusline struct { ws *Workspace widge...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc (unknown) // source: einride/avro/example/v1/example_wrappers.proto package examplev1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoi...
package date import ( "encoding/json" "fmt" "testing" "time" "github.com/domonda/go-types/language" "github.com/stretchr/testify/assert" ) func Test_Normalize(t *testing.T) { dateTable := map[string]Date{ "2006-01-02": "2006-01-02", "2006/01/02": "2006-01-02", "2006.01.02": "2006-01-02", "2006 01 02":...
// Copyright (c) 2021 The utreexo developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package blockchain import ( "bytes" "fmt" "sort" "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/txscript" ...
package hardcoding import "github.com/chitoku-k/ejaculation-counter/reactor/repository" var ( DoubletVariants = []string{ "-dom -- doom", "Egyptian -- gypsy", "abbreviate -- abridge", "abet -- bet", "absolve -- assoil", "acajou -- cashew", "achievement -- hatchment", "acute -- ague -- cute", "adama...
package sgfw import ( "fmt" "strconv" "strings" "sync" // "encoding/binary" // nfnetlink "github.com/subgraph/go-nfnetlink" "github.com/google/gopacket/layers" nfqueue "github.com/subgraph/go-nfnetlink/nfqueue" "github.com/subgraph/go-procsnitch" "net" "os" "syscall" "unsafe" ) var _interpreters = []st...
/** * 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 License, Version 2.0 * (the "License"); you may...
package proxy import ( "bytes" "context" "errors" "io" "io/ioutil" "net" "net/http" "net/url" "sort" "strings" "time" apexlog "github.com/apex/log" uuid "github.com/satori/go.uuid" "github.com/richiefi/rrrouter/config" "github.com/richiefi/rrrouter/usererror" "github.com/richiefi/rrrouter/util" ) co...
// Copyright 2010 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 ubjson import ( "bytes" "encoding" "encoding/binary" "fmt" "math" "reflect" "sort" "strconv" "strings" "sync" "unicode" ) func Marshal(v in...
package exporter import ( "bytes" "crypto/sha256" "errors" "fmt" "hash" "io" "os" "regexp" "sort" "strconv" "strings" "time" "github.com/BurntSushi/toml" "github.com/barkadron/siebel_exporter/srvrmgr" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/log" ) // Metric obje...
package models import ( "crypto/sha256" "fmt" "time" "github.com/transcom/mymove/pkg/random" "github.com/go-openapi/swag" "github.com/gobuffalo/pop/v5" "github.com/gobuffalo/validate/v3" "github.com/gobuffalo/validate/v3/validators" "github.com/gofrs/uuid" "github.com/jackc/pgerrcode" "github.com/pkg/erro...
/* Copyright 2018 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, ...
// Package goff provides a basic Yahoo Fantasy Sports API client. // // This package is designed to facilitate communication with the Yahoo Fantasy // Sports API. It is recommended, but not required, to use the // golang.org/x/oauth2 package to generate a HTTP client to make authenticated // API request. The steps requ...
package main import ( "fmt" // Used for printing "io/ioutil" // Used for reading files and directories "os" // Used for creating files and directories "strings" // Used for string manipulation "webes/lib" // Used for various utility functions specific to webes ) // The structure of a command that...
// Copyright 2021 <NAME> // SPDX-License-Identifier: ISC package main import ( "bytes" "context" "errors" "flag" "fmt" "go/ast" "go/format" "go/token" "go/types" "os" "os/exec" "os/signal" slashpath "path" "strconv" "golang.org/x/tools/go/ast/astutil" "golang.org/x/tools/go/packages" goimports "gola...
// Copyright 2020 The Matrix.org Foundation C.I.C. // // 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) 2016 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package mempool import ( "bytes" "encoding/binary" "errors" "fmt" "io" "math" "math/rand" "sort" "strings" "sync" "github.com/btcsuite/btcd/chaincfg/chainhash" ...
// Code generated by capnpc-go. DO NOT EDIT. package rpctwoparty import ( capnp "capnproto.org/go/capnp/v3" text "capnproto.org/go/capnp/v3/encoding/text" schemas "capnproto.org/go/capnp/v3/schemas" ) type Side uint16 // Side_TypeID is the unique identifier for the type Side. const Side_TypeID = 0x9fd69ebc87b971...
package module_manager import ( "encoding/json" "fmt" "reflect" "sort" "strings" "github.com/romana/rlog" utils_checksum "github.com/flant/shell-operator/pkg/utils/checksum" "github.com/flant/addon-operator/pkg/helm" "github.com/flant/addon-operator/pkg/kube_config_manager" "github.com/flant/addon-operato...
package vaultclient import ( "container/heap" "fmt" "math/rand" "net/http" "strings" "sync" "time" "github.com/armon/go-metrics" hclog "github.com/hashicorp/go-hclog" "github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/nomad/structs/config" vaultapi "github.com/hashicorp/vault/api" ) /...
// Copyright 2019 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. //go:build ppc64le // +build ppc64le package elliptic import ( "crypto/subtle" "encoding/binary" "math/big" ) // This was ported from the s390x implementa...
package client type RevisionDTO struct { // A client identifier used to make a request. By including a client identifier, the API can allow multiple // requests without needing the current revision. Due to the asynchronous nature of requests/responses this // was implemented to allow the client to make numerous req...
package main import ( "image" "sort" "github.com/rjkroege/edwood/draw" "github.com/rjkroege/edwood/file" "github.com/rjkroege/edwood/frame" "github.com/rjkroege/edwood/util" ) var ( Lheader = []rune("New Cut Paste Snarf Sort Zerox Delcol ") ) type Column struct { display draw.Display Border int r i...
//go:build go1.16 // +build go1.16 // 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 cod...
package network import ( "context" "crypto/rand" "errors" "fmt" "math/big" "net" "regexp" "strings" "sync" "sync/atomic" "time" "github.com/0xPolygon/polygon-edge/chain" "github.com/0xPolygon/polygon-edge/secrets" "github.com/hashicorp/go-hclog" "github.com/libp2p/go-libp2p" "github.com/libp2p/go-libp...
// In this game you have to win a running race between a lot of old people. // You have to alternatingly press left and right to speed up. package main import ( "math/rand" "time" "github.com/gonutz/prototype/draw" ) type gameState int const ( outsideFadingIn gameState = iota outsideFadingOut insideFadingIn ...
// Package sortedMap implements a functional Map data structure that preserves // the ordering of the keys. The internal data structure of the sortedMap is // a regular Red-Black Tree (as opposed to a Left-Leaning Red-Black Tree). // // Functional means that each data structure is immutable and persistent. // The Map i...
// Copyright Project Contour 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...
package vmesh import ( "bytes" "context" "crypto/sha256" "crypto/tls" "crypto/x509" "encoding/hex" "encoding/json" "encoding/pem" "errors" "fmt" "io/ioutil" "log" "net" "sort" "strconv" "strings" "sync" "time" "github.com/google/gopacket" "github.com/google/gopacket/layers" "github.com/losfair/vm...
package filesystem import ( "context" "log" "os" "path/filepath" "runtime" "sort" "strings" "sync" "sync/atomic" "time" lru "github.com/hashicorp/golang-lru" "github.com/kiteco/kiteco/kite-go/client/component" "github.com/kiteco/kiteco/kite-go/client/internal/clienttelemetry" "github.com/kiteco/kiteco/k...
package famigo type ppu struct { FrameBuffer [256 * 240 * 4]byte GenerateVBlankNMIs bool MasterSlaveExtSelector bool UseBigSprites bool UseUpperBGPatternTable bool UseUpperSpritePatternTable bool IncrementStyleSelector bool ManuallyGenerateNMI bool ManuallyGene...
// Copyright 2020 The LUCI 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...
// Copyright 2021 The sypl Authors. All rights reserved. // Use of this source code is governed by a MIT // license that can be found in the LICENSE file. package sypl import ( "bufio" "errors" "fmt" "log" "os" "strings" "github.com/saucelabs/sypl/debug" "github.com/saucelabs/sypl/fields" "github.com/saucel...
package template import ( "fmt" "reflect" "strconv" "strings" "unicode/utf8" "github.com/coveooss/gotemplate/v3/collections" "github.com/coveooss/gotemplate/v3/hcl" "github.com/coveooss/gotemplate/v3/json" "github.com/coveooss/gotemplate/v3/utils" "github.com/coveooss/gotemplate/v3/xml" "github.com/coveoos...
// This module contains a collection of generally useful // derived YANG data types. // // Copyright (c) 2013-2017 by Cisco Systems, Inc. // All rights reserved. package ipv4_acl_datatypes import ( "fmt" "github.com/CiscoDevNet/ydk-go/ydk" ) func init() { ydk.YLogDebug(fmt.Sprintf("Registering top level ...
package internal type CurveOperations struct { Params *SidhParams } // Computes j-invariant for a curve y2=x3+A/Cx+x with A,C in F_(p^2). Result // is returned in jBytes buffer, encoded in little-endian format. Caller // provided jBytes buffer has to be big enough to j-invariant value. In case // of SIDH, buffer siz...
// Copyright © 2018 Heptio // 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 writin...
/* Copyright 2019 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, ...
/* * Copyright 2017-2018 IBM Corporation * * 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...
// Copyright 2018 The CUE 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...
// Copyright 2019 Huawei Technologies Co.,Ltd. // 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: capsule8/api/v0/types.proto /* Package capsule8_api_v0 is a generated protocol buffer package. It is generated from these files: capsule8/api/v0/types.proto capsule8/api/v0/telemetry_event.proto capsule8/api/v0/telemetry_service.proto capsule8/api/v0/sub...
package sql import ( "testing" "time" "github.com/stretchr/testify/require" "vitess.io/vitess/go/sqltypes" "vitess.io/vitess/go/vt/proto/query" ) func TestIsNull(t *testing.T) { require.True(t, IsNull(nil)) n := numberT{sqltypes.Uint64} require.Equal(t, sqltypes.NULL, mustSQL(n.SQL(nil))) require.Equal(t, ...
/* Copyright 2014 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 or agreed to in ...
// Copyright 2017 The go-interpreter 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 exec provides functions for executing WebAssembly bytecode. package exec import ( "encoding/binary" "errors" "fmt" "io" "math" "...