text
stringlengths
8.57k
38.1k
// Copyright 2018 the LinuxBoot 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 visitors import ( "bytes" "encoding/binary" "fmt" "log" "sort" "github.com/linuxboot/fiano/pkg/compression" "github.com/linuxboot/fiano/p...
// 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...
// Copyright (c) 2019 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.18.0 // source: envoy/type/v3/percent.proto package envoy_type_v3 import ( _ "github.com/cncf/xds/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobu...
// Copyright (c) 2021 Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project // adopted from https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/get/get.go /* Copyright 2014 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file...
/* * Copyright (c) 2013-2014 <NAME> (Gmail: kurt.w.jung) * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
package astrewrite import ( "fmt" "go/ast" "go/constant" "go/token" "go/types" ) type simplifyContext struct { info *types.Info varCounter int simplifyCalls bool } func Simplify(file *ast.File, info *types.Info, simplifyCalls bool) *ast.File { c := &simplifyContext{info: info, s...
package conf import ( "v2ray.com/core/app/router" ) const ( anySubDomain = "^(.*\\.)?" dotAm = "\\.am$" dotCc = "\\.cc$" dotCn = "\\.cn$" dotCom = "\\.com$" dotInfo = "\\.info$" dotIo = "\\.io$" dotLa = "\\.la$" dotMe = "\\.me$" dotNet = "\\.net$" ...
// // February 2016, cisco // // Copyright (c) 2016 by cisco Systdialin. Inc. // All rights reserved. // // // gRPC client for server side streaming telemetry, and server for // client side streaming. // // The client sets up a connection with the server, subscribes for all // paths, and then kicks off go routines to s...
package executor import ( "context" "fmt" "io/ioutil" "log" "net" "os" "os/exec" "path/filepath" "runtime" "strconv" "strings" "sync" "syscall" "time" "github.com/armon/circbuf" "github.com/hashicorp/go-multierror" "github.com/mitchellh/go-ps" "github.com/shirou/gopsutil/process" "github.com/hashi...
// Copyright (c) 2018, The GoKi 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 gi import ( "fmt" "image" "log" "reflect" "github.com/iancoleman/strcase" "github.com/goki/gi/gist" "github.com/goki/gi/oswin" "github...
// Copyright (c) 2019 <NAME>. All rights reserved. // Use of this source code is governed by a MIT license found in the LICENSE file. package cbor import ( "bytes" "fmt" "io/ioutil" "math/big" "reflect" "time" "github.com/fxamacker/cbor" ) type ( claims struct { Iss string `cbor:"1,keyasint"` Sub strin...
package sdl // #include "sdl_wrapper.h" import "C" const K_SCANCODE_MASK = 1 << 30 // The SDL virtual key representation. // (https://wiki.libsdl.org/SDL_Keycode) // (https://wiki.libsdl.org/SDLKeycodeLookup) const ( K_UNKNOWN = C.SDLK_UNKNOWN // "" (no name, empty string) K_RETURN = C.SDLK_RETURN // "Ret...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: static.proto package proto import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-t...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.13.0 // source: notification.proto package appserver_serves_m2m import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protore...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: transformer/request/request.proto package request import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf ...
package forward_indi import ( "cloud.google.com/go/pubsub" "context" "encoding/json" "fmt" forwarderCommon "github.com/manycore-com/forwarder/common" forwarderDb "github.com/manycore-com/forwarder/database" forwarderEsp "github.com/manycore-com/forwarder/esp" forwarderIQ "github.com/manycore-com/forwarder/indi...
// Copyright 2014 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 2019 Antrea 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 order import ( "bytes" "crypto/sha256" "encoding/hex" "errors" "fmt" "net" "github.com/btcsuite/btcutil" "github.com/lightninglabs/pool/account" "github.com/lightninglabs/pool/auctioneerrpc" "github.com/lightninglabs/pool/sidecar" "github.com/lightninglabs/pool/terms" "github.com/lightningnetwork/...
package wdte import ( "context" "errors" "fmt" "io" "sort" "strings" "github.com/DeedleFake/wdte/ast" "github.com/DeedleFake/wdte/scanner" ) // Parse parses an AST from r and then translates it into a top-level // compound. im is used to handle import statements. If im is nil, a // no-op importer is used. In...
// Copyright 2012-present <NAME>. All rights reserved. // Use of this source code is governed by a MIT-license. // See http://olivere.mit-license.org/license.txt for details. package elastic import ( "context" "encoding/json" "fmt" "net/url" "strings" "github.com/reborn-go/elastic/uritemplates" ) // NodesStat...
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go package orm import ( "database/sql" "encoding/json" "errors" "fmt" "io/ioutil" "log" "os" "path/filepath" "sort" "time" "gorm.io/gorm" "github.com/tealeg/xlsx/v3" "github.com/fullstack-lang/gongdoc/go/models" ) // dummy variable to...
package sdo import ( "archive/tar" "archive/zip" "bufio" "bytes" "compress/gzip" "encoding/base64" "encoding/json" "errors" "fmt" "github.com/google/uuid" "github.com/open-horizon/anax/cli/cliutils" "github.com/open-horizon/anax/cli/exchange" "github.com/open-horizon/anax/config" anaxExchange "github.com...
// Copyright 2017 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 sfnt /* This file contains opt-in tests for popular, high quality, proprietary fonts, made by companies such as Adobe and Microsoft. These fonts are ge...
package api import ( "fmt" "path" "path/filepath" "strings" "time" ) const ( // RestartPolicyModeDelay causes an artificial delay till the next interval is // reached when the specified attempts have been reached in the interval. RestartPolicyModeDelay = "delay" // RestartPolicyModeFail causes a job to fail...
package main import ( "fmt" "time" "os" "path/filepath" "k8s.io/klog" "strconv" "encoding/json" "strings" "reflect" "log" "k8s.io/client-go/util/workqueue" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/client-go/kubernet...
package main import ( "bytes" "encoding/binary" "strings" ) type MAT struct { NumOfMats uint16 _ uint16 } type MATOffset struct { Offset uint32 } type MATMaterials struct { Name [20]byte ForeColor [4]int16 BackColor [4]int16 ColorReg3 [4]int16 TevColor1 [4]uint8 TevColor2 [4]uint8 TevColor...
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go package orm import ( "database/sql" "encoding/json" "errors" "fmt" "io/ioutil" "log" "os" "path/filepath" "sort" "time" "gorm.io/gorm" "github.com/tealeg/xlsx/v3" "github.com/fullstack-lang/gongsvg/go/models" ) // dummy variable to...
// 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 connmgr import ( nativeerrors "errors" "fmt" "github.com/kaspanet/kaspad/addrmgr" "github.com/kaspanet/kaspad/config" "github.com/kaspanet/kaspad/wire" "net" ...
// Code generated by protoc-gen-go. // source: google/devtools/build/v1/publish_build_event.proto // DO NOT EDIT! package build import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/genproto/googleapis/api/annotations" import _ "google.golang.org/genproto/goog...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/google_ads_field_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" _ "...
// Copyright 2019 <NAME>. All rights reserved. Use of this source // code is governed by the MIT license that can be found in the LICENSE // file. // Package pile provides a widget for organizing other widgets in a vertical stack. package pile import ( "fmt" "strings" "github.com/gcla/gowid" "github.com/gcla/go...
// Package renterhost implements the handshake and transport for the Sia // renter-host protocol. package renterhost // import "lukechampine.com/us/renterhost" import ( "bytes" "crypto/cipher" "crypto/ed25519" "crypto/subtle" "encoding/binary" "errors" "fmt" "io" "io/ioutil" "net" "strings" "sync" "githu...
// Copyright 2018 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 "strings" var regNamesGenM = []string{ "R00", "R01", "R02", "R03", "R04", "R05", "R06", "R07", "R08", "R09", "R0A", "R0...
package main import ( "bytes" "fmt" "math/rand" "sort" ) // MAXSECS is the maximum number of seconds in a year. const MAXSECS = 365 * 24 * 3600 // SIMU_SEED is used to make the random generator deterministic const SIMU_SEED = 4321 const ( N_NODES = 12 N_ZONES = 3 N_ROLLING_UPGRADES ...
package exchange import ( "bytes" "context" "errors" "fmt" "os" "path/filepath" "sort" "text/tabwriter" "time" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-multistore" "github.com/filecoin-project/go-state-types/abi" cid "github.com/ipfs/go-cid" chunk "github.com/ipfs/go-ipfs...
package torrent import ( "bytes" "fmt" "io" "log" "math/rand" "net/http" "os" "strconv" "strings" "sync" "testing" "time" "github.com/anacrolix/missinggo/bitmap" "github.com/anacrolix/torrent" "github.com/lkslts64/charo-torrent/bencode" "github.com/lkslts64/charo-torrent/metainfo" "github.com/lkslts6...
// Package staticoverflow provides an azblob.TransferManager that is more adjustable to users needs. // The TransferManager can be a: // Static buffer manager - memory is preset to a limit of blockSize * staticBlocks // Dyanmaic buffer manager - uses a sync.Pool that is.args.DynamicLimited by concurrency and sync.Pool...
package main import ( "crypto/tls" "encoding/json" "flag" "fmt" valid "github.com/asaskevich/govalidator" "github.com/julienschmidt/httprouter" "io/ioutil" "log" "net" "net/http" "net/smtp" "os" "path/filepath" "regexp" "strings" "sync" "time" ) // main configuration strct type configuration struct {...
// Copyright 2013 <NAME> // License: MIT // Planetary: Chapter 36, The Calculation of some Planetary Phenomena. // // Incomplete: Some functions unimplemented for lack of test data. package planetary import ( "math" "github.com/mooncaker816/learnmeeus/v3/base" "github.com/soniakeys/unit" ) // Mean computes some ...
package sqlBits import ( "regexp" "strconv" "strings" ) type DbModeler interface { DbMetatater DbTransactioner } type IDataSource interface { IsKeyDefined( aKey string ) bool IsKeyValueAList( aKey string ) bool GetValueForKey( aKey string ) *string GetValueListForKey( aKey string ) *[]string } // OrderByLi...
// 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 ...
package amqp import ( "bytes" "crypto/tls" "errors" "io" "math" "net" "sync" "time" ) // Default connection options const ( DefaultIdleTimeout = 1 * time.Minute DefaultMaxFrameSize = 512 DefaultMaxSessions = 65536 ) // Errors var ( ErrTimeout = errors.New("amqp: timeout waiting for response") // ErrC...
package ilium import "fmt" import "math/rand" type ParticleTracer struct { pathTypes TracerPathType weighingMethod TracerWeighingMethod beta float32 russianRouletteContribution TracerRussianRouletteContribution russianRouletteState *RussianRouletteStat...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: sawtooth-sdk/protobuf/processor_pb2/processor.proto package processor_pb2 import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import transaction_pb2 "github.com/daludaluking/sawtooth-sdk/protobuf/transaction_pb2" // Reference...
package glmatrix import ( "fmt" "math" ) // NewMat3 creates a new identity mat3 func NewMat3() []float64 { return []float64{ 1, 0, 0, 0, 1, 0, 0, 0, 1, } } // Mat3Create creates a new identity mat3 func Mat3Create() []float64 { return NewMat3() } // Mat3FromMat4 copies the upper-left 3x3 values into the ...
// Copyright 2016 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, ...
package action import ( "strings" "time" luar "layeh.com/gopher-luar" lua "github.com/yuin/gopher-lua" "github.com/zyedidia/micro/internal/buffer" "github.com/zyedidia/micro/internal/config" "github.com/zyedidia/micro/internal/display" ulua "github.com/zyedidia/micro/internal/lua" "github.com/zyedidia/micro...
package cache import ( "crypto/ecdsa" "crypto/x509" "sort" "sync" "time" "github.com/sirupsen/logrus" "github.com/spiffe/spire/pkg/common/bundleutil" "github.com/spiffe/spire/pkg/common/telemetry" "github.com/spiffe/spire/proto/spire/common" ) type Selectors []*common.Selector type Bundle = bundleutil.Bundl...
// 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. package info import ( "fmt" "sort" "strconv" "strings" "sync" "syn...
// Copyright 2019 Qubit 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 agreed to in w...
package create import ( "context" "encoding/json" "fmt" "github.com/Azure/go-autorest/autorest/to" "github.com/SumoLogic-Labs/sumocli/api" "github.com/SumoLogic-Labs/sumocli/internal/cloud" "github.com/SumoLogic-Labs/sumocli/pkg/cmd/factory" "github.com/SumoLogic-Labs/sumocli/pkg/logging" "github.com/aws/aws-...
package avmwallet import ( "encoding/json" "errors" "fmt" "log" "sort" "sync" "time" stdmath "math" "github.com/johnthethird/thresher/constants" "github.com/johnthethird/thresher/user" "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/codec/linearcodec" "github.com/ava-labs/avala...
package main import ( "fmt" "net" "net/http" "strconv" "strings" scandaloriantypes "github.com/charles-d-burton/scandalorian-types" "github.com/gin-gonic/gin" "github.com/google/uuid" log "github.com/sirupsen/logrus" "github.com/spf13/viper" ) var ( messageBus MessageBus //Definitions pulled from NMAP ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: nav_map.proto package Anki_Vector_external_interface 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 _ =...
package player import ( "errors" "expvar" "flag" "fmt" "log" "math/rand" "net" "strings" "time" "chunkymonkey/gamerules" "chunkymonkey/nbtutil" //"chunkymonkey/physics" "chunkymonkey/proto" . "chunkymonkey/types" "chunkymonkey/window" "nbt" ) var ( ...
package platform import ( "fmt" logger "github.com/marcozj/golang-sdk/logging" "github.com/marcozj/golang-sdk/restapi" ) type SamlWebApp struct { WebApp apiGetSpMetadataFromUrl string //TemplateName string `json:"TemplateName,omitempty" schema:"template_name,omitempty"` // "Generic SAML", "AWSConsoleS...
// // Modified BSD 3-Clause Clear License // // Copyright (c) 2019 Insolar Technologies GmbH // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted (subject to the limitations in the disclaimer below) provided that // the following conditions a...
package lib import ( "fmt" "os" "path" "strings" "github.com/dbsteward/dbsteward/lib/config" "github.com/dbsteward/dbsteward/lib/format" "github.com/dbsteward/dbsteward/lib/model" "github.com/dbsteward/dbsteward/lib/util" "github.com/alexflint/go-arg" "github.com/rs/zerolog" ) // NOTE: 2.0.0 is the intend...
// Package req simplify working with an HTTP requests package req // ////////////////////////////////////////////////////////////////////////////////// // // // // Copyright (c) 2021 ESSENTIAL KAOS ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/api/v2/core/config_source.proto package core import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" duration "github.com/golang/protobuf/ptypes/duration" wrappers "github.com/golang/protobuf/ptypes/wrapp...
// Copyright (c) 2019 Uber Technologies, 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 o...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.10.1 // source: envoy/config/trace/v2/zipkin.proto package envoy_config_trace_v2 import ( _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/datawire/ambassador/pkg/api/envoy/annotations" _ "github....
// Copyright 2016 Sorint.lab // // 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 2014 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...
package v3 type RancherKubernetesEngineConfig struct { // Kubernetes nodes Nodes []RKEConfigNode `yaml:"nodes" json:"nodes,omitempty"` // Kubernetes components Services RKEConfigServices `yaml:"services" json:"services,omitempty"` // Network configuration used in the kubernetes cluster (flannel, calico) Network ...
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
/* 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, ...
/* Copyright 2020 Red Hat Community of Practice. 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 wr...
package board import ( "bufio" "math/rand" "math" "os" "strconv" //"time" ) type Bomb struct { X int8 Y int8 PlayerOwns bool //True if we own it Ticks int8 } type Portal struct { X int8 Y int8 Orientation int8 } type...
package main import ( "context" "errors" "flag" "fmt" "io/ioutil" "log" "net/url" "os" "os/signal" "os/user" "path" "path/filepath" "regexp" "strconv" "strings" "time" "github.com/benbjohnson/litestream" "github.com/benbjohnson/litestream/abs" "github.com/benbjohnson/litestream/file" "github.com/b...
// 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-2019 Datadog, Inc. package extendeddaemonset import ( "context" "fmt" "math/rand" "strings...
// Package qingcloud ... // Most borrowed from: // github.com/yunify/qingcloud-sdk-go/service // package qingcloud import ( "errors" "fmt" "strconv" "strings" "time" "github.com/bbklab/inf/pkg/orderparam" "github.com/bbklab/inf/pkg/ptype" ) // BaseResponse is exported // type BaseResponse struct { Message ...
// 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. // Annotate Crefs in Prog with C types by parsing gcc debug output. // Conversion of debug output to Go types. package main import ( "bytes"; "debug/dwarf"...
package tohtml import ( "bytes" "fmt" "html" "path" "strings" "github.com/kjk/notionapi" ) func maybePanic(format string, args ...interface{}) { notionapi.MaybePanic(format, args...) } func isSafeChar(r rune) bool { if r >= '0' && r <= '9' { return true } if r >= 'a' && r <= 'z' { return true } if ...
package kubernetes import ( "fmt" "strings" "github.com/kiali/kiali/config" apps_v1 "k8s.io/api/apps/v1" autoscaling_v1 "k8s.io/api/autoscaling/v1" core_v1 "k8s.io/api/core/v1" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) const (...
// Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 // package emulator provides tools to emulate Ethereum chains and contracts. // // Code adapted from go-ethereum/accounts/abi/bind/backends/simulated.go package emulator import ( "context" "errors" "fmt" "math/big" "github.com/ethereum/go-ethereum"...
// Copyright (c) 2021 Terminus, 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 agree...
package main import ( "bufio" "bytes" "fmt" "image" _ "image/png" "math" "math/bits" "strings" _ "github.com/klauspost/gad/dentro/data" // Load data. "github.com/klauspost/gad/dentro/screen" "github.com/klauspost/gfx" ) // Generates binary data. // To install go-bindata, do: go get -u github.com/jteeuwen/...
package main import ( "./utils" "encoding/json" "fmt" "github.com/axgle/mahonia" "github.com/chain-zhang/pinyin" "github.com/daviddengcn/go-colortext" "io/ioutil" "log" "net/http" "os" "os/signal" "path/filepath" "sort" "strconv" "strings" "sync" "syscall" "time" ) func main() { ticker := time.NewT...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/v1/attestation.proto package attestation_go_proto import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = mat...
// Copyright 2022 The CubeFS 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...
/* Utilities to test plugins. Trivial example: package main import ( "testing" "github.com/Kong/go-pdk/test" "github.com/stretchr/testify/assert" ) func TestPlugin(t *testing.T) { env, err := test.New(t, test.Request{ Method: "GET", Url: "http://example.com?q=search&x=9", Headers: map[strin...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/core/framework/variable.proto package variable_go_proto import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf ...
// disk.go // Copyright (C) 2019 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publ...
package carpe import ( "crypto/md5" "flag" "fmt" "image" "image/color" "io" "log" "math/rand" "os" P "path/filepath" "regexp" "runtime/debug" "sort" "strings" "sync" "time" "github.com/strickyak/resize" "github.com/strickyak/rxtx/font5x7" ) const WHOM = "W6REK" const MAX_GIF = 200 // Problems with ...
package httptransport import ( "context" "errors" "fmt" "io" "net" "net/http" "sync" "time" "github.com/filecoin-project/boost/car" "github.com/filecoin-project/boost/transport/types" "github.com/google/uuid" "github.com/ipfs/go-cid" blockstore "github.com/ipfs/go-ipfs-blockstore" logging "github.com/ip...
// Copyright 2013 The Prometheus 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 controllers import ( "context" "fmt" "net" "strings" oconfig "github.com/openshift/api/config/v1" mapi "github.com/openshift/api/machine/v1beta1" mclient "github.com/openshift/client-go/machine/clientset/versioned/typed/machine/v1beta1" "github.com/pkg/errors" core "k8s.io/api/core/v1" k8sapierrors ...
// Copyright 2020 The Chromium OS 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 ui import ( "context" "strings" "time" "chromiumos/tast/common/action" "chromiumos/tast/common/perf" "chromiumos/tast/ctxutil" "chromi...
// Copyright 2019 PayPal 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 License, Version 2....
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkbfs import ( "fmt" "sync" "time" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/logger" keybase1 "github.com/keybase/client/go/pr...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.3 // source: ci/travis.proto package ci import ( proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" client "github.com/spinnaker/kleat/api/client" protoreflec...
package markdown import ( "bytes" "fmt" stdcolor "image/color" "io" "math" "net/http" "os" "regexp" "strings" "time" "unicode" text "github.com/MichaelMure/go-term-text" "github.com/alecthomas/chroma" "github.com/alecthomas/chroma/formatters" "github.com/alecthomas/chroma/lexers" "github.com/alecthoma...
package main_test import ( "os" "os/exec" "strings" "regexp" "path/filepath" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" "github.com/onsi/gomega/gexec" "math/rand" "net" "strconv" "time" ) var _ = Describe("PCF Dev provision", func() { var ( dockerID ...
// Copyright (c) 2015 Rackspace // // 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...
// SPDX-FileCopyrightText: 2019 SAP SE or an SAP affiliate company and Gardener contributors. // // SPDX-License-Identifier: Apache-2.0 package scaler import ( "context" "crypto/sha256" "errors" "fmt" "reflect" "time" "github.com/gardener/dependency-watchdog/pkg/scaler/api" extensionscontroller "github.com/g...
package raymond import ( "bytes" "fmt" "reflect" "strconv" "strings" "github.com/aymerick/raymond/ast" ) var ( // @note borrowed from https://github.com/golang/go/tree/master/src/text/template/exec.go errorType = reflect.TypeOf((*error)(nil)).Elem() fmtStringerType = reflect.TypeOf((*fm...
// Copyright (c) 2019, The Emergent 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 deep import ( "fmt" "testing" "github.com/chewxy/math32" "github.com/emer/emergent/emer" "github.com/emer/emergent/params" "github.co...