text
stringlengths
8.57k
38.1k
package raft import ( "bytes" "context" "fmt" "io" "io/ioutil" "os" "reflect" "sync" "testing" "time" "github.com/hashicorp/go-hclog" "github.com/hashicorp/go-msgpack/codec" ) var ( userSnapshotErrorsOnNoData = true ) // Return configurations optimized for in-memory func inmemConfig(t *testing.T) *Conf...
package configure type Options struct { Values map[string]OptionValue Bools map[string]OptionBool } type OptionValue struct { Name string Desc string Value *string } type OptionBool struct { Name string Desc string Enabled *bool } func MakeArgsBool() map[string]OptionBool { argsBool := make(map[st...
package nodemaker import ( "fmt" "regexp" "sort" "strconv" "strings" "github.com/google/go-jsonnet/ast" "github.com/pkg/errors" "github.com/kube-jsonnet/k/gen/astext" ) // Noder is an entity that can be converted to a jsonnet node. type Noder interface { Node() ast.Node } // ObjectOptOneline is a function...
// Copyright © 2017 <NAME> <<EMAIL>> // // 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, publish...
package testutil import ( "bytes" "fmt" "reflect" "sort" "strings" "testing" "time" "github.com/bwmarrin/discordgo" "github.com/jakevoytko/crbot/api" "github.com/jakevoytko/crbot/app" "github.com/jakevoytko/crbot/config" "github.com/jakevoytko/crbot/feature" "github.com/jakevoytko/crbot/feature/factspher...
package posseg var ( ProbStart = make(map[StateTag]float64) ) func init() { ProbStart[StateTag{'B', "a"}] = -4.762305214596967 ProbStart[StateTag{'B', "ad"}] = -6.680066036784177 ProbStart[StateTag{'B', "ag"}] = -3.14e+100 ProbStart[StateTag{'B', "an"}] = -8.697083223018778 ProbStart[StateTag{'B', "b"}] = -5.01...
// This MIB module provides data for accounting sessions // based on Authentication, Authorization, Accounting // (AAA) protocols. // // // References: // RFC 2139 RADIUS Accounting // The TACACS+ Protocol Version 1.78, Internet Draft package cisco_aaa_session_mib import ( "fmt" "github.com/CiscoDevN...
// Code generated by protoc-gen-go. // source: github.com/3zheng/railgun/protodefine/gate/gate.proto // DO NOT EDIT! /* Package bs_gate is a generated protocol buffer package. It is generated from these files: github.com/3zheng/railgun/protodefine/gate/gate.proto It has these top-level messages: PulseReq PulseRsp...
// Copyright © 2020, 2021 Attestant Limited. // 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 a...
package main // Test runner for functional tests defined as JSON documents // Expects the following environment variables to be defined: // APP = target server for requests e.g. "https://SERVER:PORT" // TESTCASES (optional) = regex for a set of test case JSON files import ( "bytes" "encoding/json" "errors" "flag"...
package main // speed-up compilation: // go install -a github.com/go-gl/gl/v4.1-core/gl // go install -a github.com/go-gl/glfw3/v3.2/glfw import ( "fmt" "image" "image/color" "io" "io/ioutil" "math" "net/http" "os" "runtime" "strings" "github.com/aubonbeurre/glplus" glfw "github.com/go-gl/glfw3/v3.2/glfw...
package fbcolly import "C" import ( "encoding/json" "fmt" "github.com/PuerkitoBio/goquery" "github.com/gocolly/colly/v2" "github.com/gocolly/colly/v2/extensions" "github.com/gocolly/colly/v2/storage" "github.com/google/logger" "github.com/olebedev/when" "github.com/olebedev/when/rules" "github.com/olebedev/w...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/service/ratelimit/v3alpha/rls.proto package envoy_service_ratelimit_v3alpha import ( context "context" fmt "fmt" core "github.com/envoyproxy/go-control-plane/envoy/api/v3alpha/core" ratelimit "github.com/envoyproxy/go-control-plane/envoy/api/v3alph...
package totalresourcequota import ( "context" "flag" "fmt" "io/ioutil" "log" "os" "testing" "time" apps_v1alpha "github.com/EdgeNet-project/edgenet/pkg/apis/apps/v1alpha" "github.com/EdgeNet-project/edgenet/pkg/generated/clientset/versioned" edgenettestclient "github.com/EdgeNet-project/edgenet/pkg/generat...
// 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 ( "container/heap" "io" "reflect" "sync" "time" lru "github.com/hashicorp/golang-lru" "github.com/eapache/channels" "github.com/keybase...
package types import ( "context" "encoding/csv" "errors" "fmt" "io" "log" "strconv" "strings" "sync" "time" "github.com/cortezaproject/corteza-server/compose/repository" cv "github.com/cortezaproject/corteza-server/compose/service/values" "github.com/cortezaproject/corteza-server/compose/types" "github....
// Copyright (c) 2021 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package blockchain import ( "context" "errors" "fmt" "os" "path/filepath" "time" "github.com/decred/dcrd/blockchain/standalone/v2" "github.com/decred/dcrd/chaincfg/ch...
package dltree import ( "testing" "github.com/infobloxopen/go-trees/domain" ) var ( strs = []string{ "mwjgsapga", "lmodylu", "guq", "iwwmnp", "qimge", "mgkbnptni", "dyjd", "voyafnndf", "kfgqdlci", "nbcsw", "cnvuxdm", "qjisqc", "lvhpdcsfx", "bphmkkkph", "dqhjwrm", "tbc", "equsltg"...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.17.3 // source: stroeer/page/section/v1/section_page.proto package section import ( v11 "github.com/stroeer/tapir/go/stroeer/core/v1" v1 "github.com/stroeer/tapir/go/stroeer/page/stage/v1" protoreflec...
package main import ( "bytes" "errors" "fmt" "io" "io/ioutil" "os" "os/exec" "path" "path/filepath" "regexp" "strings" "syscall" "time" bitriseConfigs "github.com/bitrise-io/bitrise/configs" "github.com/bitrise-io/go-steputils/stepconf" "github.com/bitrise-io/go-utils/command" "github.com/bitrise-io/...
package codegen import ( "fmt" "regexp" "strings" "github.com/LLKennedy/protoc-gen-tsjson/internal/version" "github.com/LLKennedy/protoc-gen-tsjson/tsjsonpb" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/descriptorpb" "google.golang.org/protobuf/types/pluginpb" ) var protocVersion = "u...
package ssi import ( "bytes" "encoding/base64" "encoding/json" "fmt" "github.com/allinbits/cosmos-cash-agent/pkg/helpers" "github.com/allinbits/cosmos-cash-agent/pkg/model" "github.com/hyperledger/aries-framework-go/component/storage/leveldb" "github.com/hyperledger/aries-framework-go/pkg/doc/verifiable" "git...
// This is free and unencumbered software released into the public domain. // // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any purpose, commercial or non-commercial, and by any // means. // // In jurisdictions ...
/* 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 distributed under the License ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/asset_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" _ "google.gola...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/v1beta1/cvss.proto package cvss_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 _ = math.Inf //...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/talent/v4beta1/application.proto package talent import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "googl...
package docker import ( "archive/tar" "bufio" "bytes" "fmt" "io" "net/url" "os" "os/exec" "path/filepath" "sort" "strings" "sync" "syscall" "github.com/fatih/color" dockerclient "github.com/fsouza/go-dockerclient" tarstream "github.com/openshift/source-to-image/pkg/tar" "github.com/openshift/source-t...
// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️ // 🤖 Github Repository: https://github.com/gofiber/fiber // 📌 API Documentation: https://docs.gofiber.io package fiber import ( "bytes" "fmt" "hash/crc32" "net" "strings" "sync/atomic" "time" utils "github.com/gofiber/utils" ) // Gener...
package logf import ( "fmt" "math" "reflect" "time" "unsafe" ) // Bool returns a new Field with the given key and bool. func Bool(k string, v bool) Field { var tmp int64 if v { tmp = 1 } return Field{Key: k, Type: FieldTypeBool, Int: tmp} } // Int returns a new Field with the given key and int. func Int(...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: fabric.proto /* Package protos is a generated protocol buffer package. It is generated from these files: fabric.proto chaincode.proto It has these top-level messages: Message PeerID PeerEndpoint Transaction */ package protos import proto "github.com/...
package node import ( "bytes" "context" "encoding/gob" "encoding/hex" "fmt" "io/ioutil" "math" "os" "os/exec" "strconv" "sync/atomic" "syscall" "time" "github.com/ethereum/go-ethereum/crypto" "github.com/harmony-one/harmony/core" "github.com/ethereum/go-ethereum/rlp" pb "github.com/golang/protobuf/...
package main import ( "os" "os/signal" "time" "syscall" "fmt" "log" "strings" "sync" "io" "runtime" "math" "math/rand" _ "github.com/go-sql-driver/mysql" "database/sql" "github.com/hansen1101/go_heating/learner" "github.com/hansen1101/go_heating/system" "github.com/hansen1101/go_heating/system/logger"...
package ddz /* * brief about Hand_Parse function * -------------------------------------- * * Landlord has few types of hands, * for example, solo-chain as 34567, trio-solo-chain as 333444555A26 * their patterns are 11111, 333111 * which can help us to determine the type of a specific hand * * for example, a ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: alameda_api/v1alpha1/datahub/common/types.proto package common 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 ...
// Package misc contains miscellaneous, unspecific commands. package misc import ( "context" "encoding/json" "fmt" "io/ioutil" "os" "sort" "strconv" "strings" "sync" "time" "github.com/spf13/cobra" "github.com/twmb/franz-go/pkg/kerr" "github.com/twmb/franz-go/pkg/kgo" "github.com/twmb/franz-go/pkg/kmsg...
// Copyright (c) 2016 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. // source: envoy/type/metadata/v2/metadata.proto package envoy_type_metadata_v2 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" math "math" ) // Refere...
/* Author: <NAME> Date: 2021-10-21 Email: <EMAIL> */ package mhice import ( "context" "fmt" "math" "strconv" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/kubernetes/pkg/scheduler/framework" ) // Name is the name of the plugin used in the plugin registry and configurations. const Name = "...
// pm25.in data crawler and proxy. // // The API provided by pm25.in has a request count limit rather small, this // program download the data from pm25.in and serves requests within company // as a proxy service. The inside air data crawlers should all request from // this service instead of pm25.in. // // This proxy ...
/* Copyright (c) 2017 OpenStack Foundation. 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: operator/v1alpha1/operator.proto package v1alpha1 import ( fmt "fmt" proto "github.com/golang/protobuf/proto" v1alpha1 "istio.io/api/mesh/v1alpha1" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marsh...
package ste import ( "context" "fmt" "net/http" "sync/atomic" "time" "net/url" "github.com/Azure/azure-pipeline-go/pipeline" "github.com/Azure/azure-storage-azcopy/azbfs" "github.com/Azure/azure-storage-azcopy/common" "github.com/Azure/azure-storage-blob-go/azblob" "github.com/Azure/azure-storage-file-go/...
/* Copyright 2016 GitHub Inc. See https://github.com/github/gh-ost/blob/master/LICENSE */ package base import ( "fmt" "os" "regexp" "strings" "sync" "sync/atomic" "time" "github.com/satori/go.uuid" "github.com/github/gh-ost/go/mysql" "github.com/github/gh-ost/go/sql" "gopkg.in/gcfg.v1" gcfgscanner...
package v1 import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/openshift/hive/apis/hive/v1/agent" "github.com/openshift/hive/apis/hive/v1/aws" "github.com/openshift/hive/apis/hive/v1/azure" "github.com/openshift/hive/apis/hive/v1/baremetal" "github.com/openshift/hive/...
/* Copyright 2017 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 writing, software dis...
package httpfile import ( "bufio" "fmt" "io" "io/ioutil" "log" "math" "mime" "net" "net/http" "net/url" "os" "strconv" "strings" "sync" "syscall" "time" goerrors "errors" humanize "github.com/dustin/go-humanize" "github.com/go-errors/errors" "github.com/itchio/httpkit/retrycontext" ) var forbidB...
package runtime import ( "context" "fmt" "io" "io/ioutil" "os" "os/exec" "path/filepath" "strings" "sync" "syscall" "time" "golang.org/x/sync/errgroup" "golang.org/x/time/rate" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/kolide/launcher/osquery/table" "github.com/kolide...
package ltdc // DO NOT EDIT THIS FILE. GENERATED BY xgen. import ( "bits" "mmio" "unsafe" "stm32/o/f40_41xxx/mmap" ) type LTDC_Layer_Periph struct { CR RCR WHPCR RWHPCR WVPCR RWVPCR CKCR RCKCR PFCR RPFCR CACR RCACR DCCR RDCCR BFCR RBFCR _ [2]uint32 CFBAR RCFBAR CFBLR RCFBLR CF...
package discovery import ( "errors" "fmt" "io" "io/ioutil" "log" "net/http" "os" "path/filepath" "runtime" "strconv" "strings" "github.com/hashicorp/errwrap" getter "github.com/hashicorp/go-getter" multierror "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/tfdiags" "git...
package config // import "github.com/pomerium/pomerium/config" import ( "crypto/tls" "encoding/base64" "errors" "fmt" "net/url" "reflect" "strconv" "strings" "time" "github.com/pomerium/pomerium/internal/cryptutil" "github.com/pomerium/pomerium/internal/log" "github.com/pomerium/pomerium/internal/telemetr...
// 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 ...
package services import ( "fmt" "time" "github.com/ovn-org/ovn-kubernetes/go-controller/pkg/config" "github.com/ovn-org/ovn-kubernetes/go-controller/pkg/metrics" "github.com/ovn-org/ovn-kubernetes/go-controller/pkg/ovn/loadbalancer" "github.com/ovn-org/ovn-kubernetes/go-controller/pkg/util" "github.com/pkg/err...
// 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. //go:build ignore package elliptic import ( "crypto/subtle" "internal/cpu" "math/big" "unsafe" ) const ( offsetS390xHasVX = unsafe.Offsetof(cpu.S390X.H...
package ask import ( "context" "errors" "flag" "fmt" "net" "reflect" "sort" "strings" "time" "unsafe" ) var HelpErr = errors.New("ask: help asked with flag") var UnrecognizedErr = errors.New("command was not recognized") // TypedValue is the interface to the dynamic value stored in a flag. // (The default...
package main import ( "bytes" "crypto/sha1" "encoding/csv" "flag" "fmt" "io" "io/ioutil" "net/http" "os" "sort" "strings" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws/external" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/schollz/progressbar/v3" ) // represent...
/* Copyright 2016 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 collector import ( "context" "encoding/json" "fmt" "os/exec" "regexp" "strconv" "strings" "sync" "github.com/prometheus/client_golang/prometheus" kingpin "gopkg.in/alecthomas/kingpin.v2" ) var ( bgpSubsystem = "bgp" bgpPeerMetricPrefix = "bgp_peer" bgpL2vpnMetricPrefix = "bgp_l2vpn_evpn...
package generator import ( "fmt" "sort" "strconv" "strings" "github.com/ExperienceOne/apikit/generator/xhttp" "github.com/ExperienceOne/apikit/generator/file" "github.com/ExperienceOne/apikit/generator/identifier" "github.com/ExperienceOne/apikit/generator/openapi" "github.com/ExperienceOne/apikit/generator...
// Copyright Suneido Software Corp. All rights reserved. // Governed by the MIT license found in the LICENSE file. package runtime import ( "fmt" "strings" "github.com/apmckinlay/gsuneido/options" "github.com/apmckinlay/gsuneido/runtime/types" "github.com/apmckinlay/gsuneido/util/assert" "github.com/apmckinlay...
package main import ( "bufio" "context" "encoding/json" "fmt" "io" "io/ioutil" "log" "net/http" "os" "os/exec" "os/signal" "path/filepath" "strconv" "strings" "syscall" "text/template" "time" "github.com/satindergrewal/kmdgo/kmdutil" "github.com/Meshbits/shurli/sagoutil" "github.com/satindergrewa...
// regrams parses regular expressions into trigram queries in conjunctive // normal form. To build a search engine that accepts regular expression // queries, index all text documents by trigrams, then use the MakeQuery method // provided in this package to transform any regular expression query into a // query over th...
// Copyright 2014 The Serviced 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.4 // source: isuxportal/resources/clarification.proto package resources import ( proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.gola...
package usersignup import ( "context" "crypto/md5" "encoding/hex" "fmt" "strings" toolchainv1alpha1 "github.com/codeready-toolchain/api/pkg/apis/toolchain/v1alpha1" crtCfg "github.com/codeready-toolchain/host-operator/pkg/configuration" "github.com/codeready-toolchain/host-operator/pkg/controller/usersignup/u...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: config.proto package configpb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" keyspb "github.com/google/trillian/crypto/keyspb" sigpb "github.com/google/trillian/crypto/sigpb" math "math" ) // Re...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: desc_test_comments.proto package testprotos // import "github.com/jhump/protoreflect/internal/testprotos" /* And now the package declaration */ import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import empty "github.com/gola...
// A gen server behavior for dataport consumer. // // Daemon listens for new connections and spawns a reader routine // for each new connection. // // concurrency model: // // Application back channels, // mutation channel and sideband channel // ...
// // Copyright 2020 The AVFS 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: api/config/data_lifecycle/config_request.proto package data_lifecycle // import "github.com/chef/automate/api/config/data_lifecycle" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import shared "github.com/chef/automate/a...
/* @file @copyright defined in aergo/LICENSE.txt */ package p2p import ( "github.com/aergoio/aergo-actor/actor" "github.com/aergoio/aergo/p2p/p2pkey" "strconv" "sync" "sync/atomic" "time" "github.com/aergoio/aergo-lib/log" "github.com/aergoio/aergo/message" "github.com/aergoio/aergo/p2p/metric" "github.com...
package aws import ( "fmt" "strconv" "strings" "github.com/aws/aws-sdk-go/service/ec2" aws "github.com/nikhilsbhat/neuron-cloudy/cloud/aws/interface" ) // NetworkCreateInput will implement almost all the creation of network and its components under cloud/operations. type NetworkCreateInput struct { // VpcCidr ...
package main import ( "flag" "fmt" "image" "log" "os" "os/signal" "path/filepath" "runtime" "strconv" "strings" "syscall" "time" "9fans.net/go/draw" "9fans.net/go/plumb" "github.com/rjkroege/edwood/frame" ) const ( NSnarf = 1000 ) var ( snarfrune [NSnarf + 1]rune command *Command...
// RTMP session package main import ( "bufio" "container/list" "encoding/binary" "io" "math" "net" "strconv" "strings" "sync" "time" ) type BitrateCache struct { intervalMs int64 last_update int64 bytes uint64 } type RTMPSession struct { server *RTMPServer conn net.Conn ip ...
// 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...
package randomizer import ( "bytes" "crypto/sha1" "fmt" "math/rand" "regexp" "sort" "strings" "gopkg.in/yaml.v2" ) const bankSize = 0x4000 var rings []string // only applies to seasons! used for warps var dungeonNameRegexp = regexp.MustCompile(`^d[1-8]$`) // a fully-specified memory address. "offset" isn'...
// Copyright 2014 <NAME> // Copyright 2014 Unknwon // // 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 xmrrpc import ( "encoding/json" "errors" "io/ioutil" "math/rand" "net/http" ) type DaemonClient struct { endpoint string username string password string } type jsonRPCRequest struct { Version string `json:"jsonrpc"` ID uint64 `json:"id"` Method string `json:"method"` Params ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: config/service/db/postgres/v1/database.proto package postgresv1 import ( _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" protoreflect "google....
package bulletprooftxmanager import ( "bytes" "context" "fmt" "math/big" "sync" "time" "github.com/smartcontractkit/chainlink/core/assets" "github.com/smartcontractkit/chainlink/core/chains" "github.com/smartcontractkit/chainlink/core/logger" "github.com/smartcontractkit/chainlink/core/null" "github.com/sm...
/* * Copyright (c) 2017-2020 The qitmeer developers */ package discover import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/ecdsa" "crypto/elliptic" crand "crypto/rand" "crypto/sha256" "errors" "fmt" "github.com/Qitmeer/qitmeer/crypto/ecc/secp256k1" "hash" "net" "time" "github.com/Qitmeer/qitmeer/c...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: message.proto package pb import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import google_protobuf1 "github.com/golang/protobuf/ptypes/any" import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" // Reference im...
// Copyright (c) 2017-2021 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 reconcilers import ( "context" "fmt" "sort" "sync" "time" apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" "k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/handler" "sigs.k8s.io/controller-runtime/pkg/reconcile" "sigs.k8s.io/controller-runtime...
// Copyright 2010 <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 writi...
// Copyright 2021 The web2go 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 main // import "modernc.org/web2go" import ( "fmt" "go/token" "math" "strings" "unsafe" "modernc.org/cc/v3" "modernc.org/strutil" ) var ( ...
package generatorControllers import ( . "eaciit/wfdemo-git/library/helper" . "eaciit/wfdemo-git/library/models" . "eaciit/wfdemo-git/processapp/summaryGenerator/controllers" "math" "os" // "sort" "strings" "sync" "time" "github.com/eaciit/dbox" _ "github.com/eaciit/dbox/dbc/mongo" tk "github.com/eaciit/to...
// Copyright 2014-2015 pendo.io // // 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 obs import ( "encoding/xml" "io" "net/http" "time" ) type BaseModel struct { StatusCode int `xml:"-"` RequestId string `xml:"RequestId"` ResponseHeaders map[string][]string `xml:"-"` } type Bucket struct { XMLName xml.Name `xml:"Bucket"` ...
package mws import ( "bytes" "context" "encoding/json" "fmt" "log" "net" "net/url" "strings" "time" "github.com/databrickslabs/terraform-provider-databricks/common" "github.com/databrickslabs/terraform-provider-databricks/tokens" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com...
package cpu type InstructionInfo struct { OpCode byte Nemonics string AddressingMode AddressingMode Cycles int VariableCycles bool } var InstructionInfos = [256]InstructionInfo{ 0x00: {0x00, "BRK", IMP, 7, false}, 0x01: {0x01, "ORA", IZX, 6, false}, 0x02: {0x02, "KIL", IMP, 0, false}, 0...
// This project is hosted at https://github.com/paulfdunn/external-sort. // Please see the README there for a description of the problem this code solves. // Summary - this is an external sort; used to sort very large, \n delimited, text files. package main import ( "bufio" "container/heap" "crypto/rand" "encoding...
// Package press provides wrappers for Fs and Object which implement compression. // This file is the backend implementation for seekable compression. package press /* NOTES: Structure of the metadata we store is: gzipExtraify(gzip([4-byte header size][4-byte block size] ... [4-byte block size][4-byte raw size of last...
package schedule import ( "context" "errors" "fmt" "net/url" "sync" "time" "github.com/grafana/grafana/pkg/expr" "github.com/grafana/grafana/pkg/infra/log" "github.com/grafana/grafana/pkg/services/alerting" "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions" "github.com/grafana/grafan...
// 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...
package controllers import ( "context" "fmt" "os" "path/filepath" "strings" gpuv1 "github.com/NVIDIA/gpu-operator/api/v1" secv1 "github.com/openshift/api/security/v1" promv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" apiconfigv1 "github.com/openshift/api/config/v1" apiimage...
package statesync import ( "context" "fmt" "sync" "testing" "time" "github.com/fortytw2/leaktest" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" dbm "github.com/tendermint/tm-db" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/config" "github...
// Copyright 2020 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 frontend import ( "context" "errors" "fmt" "net/http" "strconv" "strings" "sync" "time" "go.opencensus.io/stats" "go.opencensus.io/stats/vie...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/streetview/publish/v1/resources.proto package publish import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/genproto/googleapis/api/annotations" import google_protobuf3 "github.com/golang/proto...
package session import ( "context" "fmt" bsbpm "github.com/Genon2/ipfs-thesis-bitswap/internal/blockpresencemanager" cid "github.com/ipfs/go-cid" peer "github.com/libp2p/go-libp2p-core/peer" ) const ( // Maximum number of changes to accept before blocking changesBufferSize = 128 // If the session receives t...