text
stringlengths
5.51k
28.1k
// Copyright 2015 Andrew 'Diddymus' Rolfe. All rights reserved. // // Use of this source code is governed by the license in the LICENSE file // included with the source code. package attr import ( "errors" "fmt" "strings" "code.wolfmud.org/WolfMUD.git/attr/internal" "code.wolfmud.org/WolfMUD.git/has" "code.wol...
// Copyright (c) 2020, 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 main import ( "fmt" "log" "math" "math/rand" "github.com/emer/emergent/env" "github.com/emer/emergent/erand" "github.com/emer/emerge...
package abci import ( "bytes" "crypto/sha256" _ "crypto/sha256" "encoding/json" "errors" "fmt" "runtime/debug" "time" "github.com/AccumulateNetwork/accumulate" "github.com/AccumulateNetwork/accumulate/internal/logging" "github.com/AccumulateNetwork/accumulate/internal/url" "github.com/AccumulateNetwork/ac...
// Copyright (c) 2020, 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 etorch import ( "errors" "fmt" "io" "log" "sort" "github.com/emer/emergent/emer" "github.com/emer/emergent/params" "github.com/emer...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/enums/placeholder_type.proto package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v0/enums" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress ...
// Copyright IBM Corp. All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // package bft import ( "math" "sync" "time" "github.com/SmartBFT-Go/consensus/pkg/api" "github.com/SmartBFT-Go/consensus/pkg/types" protos "github.com/SmartBFT-Go/consensus/smartbftprotos" ) //go:generate mockery -dir . -na...
// Package cspacegen provides types and functions for generating and JSON serializing // 3D configuration spaces with obstacles. package cspacegen import ( "errors" "fmt" "math/rand" ) // Indexes of coordinates. const ( X = 0 // x coordinate Y = 1 // y coordinate Z = 2 // z coordinate ) // Default vales of par...
package gaerecords import ( "os" "fmt" "reflect" "appengine" "appengine/datastore" ) // NoIDValue is the ID value of a record that indicates there is no ID. A record // will have no ID if it has not yet been saved, or if it has been deleted. var NoIDValue int64 = 0 // IDFieldKey is the field key used to store ...
// Copyright 2021 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. // This proto definition describes some basic units in deployment. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1....
package core import ( "context" "fmt" "sync/atomic" "time" "github.com/ash2k/iam4kube" "github.com/ash2k/iam4kube/pkg/util" "github.com/ash2k/iam4kube/pkg/util/logz" "github.com/ash2k/stager" "github.com/aws/aws-sdk-go/aws/arn" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" "go.u...
// Copyright 2011 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 packet implements parsing and serialization of OpenPGP packets, as // specified in RFC 4880. package packet // import "golang.org/x/crypto/open...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/keyword_plan.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ads/googl...
package processor import ( "bytes" "context" "encoding/base64" "strings" "time" "github.com/kinecosystem/agora-common/kin" "github.com/kinecosystem/agora-common/metrics" "github.com/kinecosystem/agora-common/retry" "github.com/kinecosystem/agora-common/retry/backoff" "github.com/kinecosystem/agora-common/so...
package rfm95 // https://www.hoperf.com/data/upload/portal/20190801/RFM96W-V2.0.pdf const ( // FXOSC is the radio's oscillator frequency in Hertz. FXOSC = 32000000 // SPIWriteMode is used to encode register addresses for SPI writes. SPIWriteMode = 1 << 7 ) // FIFO const ( RegFifo = 0x00 // FIFO read/write acce...
/* Copyright 2019 Cisco Systems 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 d...
// Copyright 2017 Anki, Inc. // Author: <EMAIL> // Package track represents a physical track, which is comprised of road pieces. // It also defines an internal coordinate system, track regions, and other // concepts to help express game design concepts elegantly. package track import ( "fmt" "math" "github.com/an...
/************************************************************************************ **Author:  <NAME>; Email: <EMAIL> **Package: bufio **Element: bufio.Reader **Type: struct ------------------------------------------------------------------------------------ **Definition: type Reader struct { // contains f...
//go:build arm64 && darwin // +build arm64,darwin package mtldriver import ( "image" "image/color" "math" "math/bits" "golang.org/x/image/math/f64" ) // This file is a copy of much of x/image/draw and draw/image // To enable fast conversions from RGBA (which Oak uses everywhere internally) // and BGRA (which m...
package rivescript // Tag processing functions. import ( "fmt" "regexp" "strconv" "strings" "github.com/aichaos/rivescript-go/sessions" ) // formatMessage formats a user's message for safe processing. func (rs *RiveScript) formatMessage(msg string, botReply bool) string { // Lowercase it. msg = strings.ToLow...
package worker import ( "encoding/json" "github.com/MG-RAST/AWE/lib/core/cwl" //"errors" "fmt" "github.com/MG-RAST/AWE/lib/conf" "github.com/MG-RAST/AWE/lib/core" //"github.com/MG-RAST/AWE/lib/core/cwl" e "github.com/MG-RAST/AWE/lib/errors" "github.com/MG-RAST/AWE/lib/logger" "github.com/MG-RAST/AWE/lib/l...
// Copyright 2019 The Fuchsia 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 ( "context" "encoding/hex" "fmt" "io" "io/ioutil" "net" "os" "path/filepath" "strings" "time" "go.fuchsia.dev/fuchsia/tool...
// Copyright 2016 <NAME>. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package dbx import ( "errors" "fmt" "sort" "strings" ) // Builder supports building SQL statements in a DB-agnostic way. // Builder mainly provides two sets of qu...
/** * Copyright (C) 2015 Red Hat, 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...
/* Copyright (c) 2019-2021 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and ...
// Copyright © 2017 The virtual-kubelet 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 la...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: go.chromium.org/luci/resultdb/proto/rpc/v1/predicate.proto package rpcpb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" _type "go.chromium.org/luci/resultdb/proto/type" _ "google.golang.org/genproto/googleapis/api/annotations" math "math" )...
/* * Copyright 2020 ICON 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...
package snow3g var sr = [...]byte{ 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31,...
/* Copyright 2021 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 IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package election import ( "bytes" "sync" "sync/atomic" "time" "github.com/hyperledger/udo/gossip/util" "github.com/spf13/viper" ) // Gossip leader election module // Algorithm properties: // - Peers break symmetry by comparing...
/* 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, ...
package validation import ( "encoding/json" "fmt" "strconv" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" unversionedvalidation "k8s.io/apimachinery/pkg/apis/meta/v1/validation" "k8s.io/apimachinery/pkg/util/intstr" validationutil "k8s.io/apimachinery/pkg/util/validation" "k8s.io/...
package v1 import ( "errors" "fmt" "sync" "time" "github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/types" ) // Blockchain Reactor State type bcReactorFSMState struct { name string // called when transitioning out of current state handle fu...
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei...
package goIPyKernel import ( "context" "encoding/json" "fmt" "io" "io/ioutil" "log" "os" "sync" "time" "github.com/go-zeromq/zmq4" "golang.org/x/xerrors" ) // ConnectionInfo stores the contents of the kernel connection // file created by Jupyter. type ConnectionInfo struct { SignatureScheme string `json...
package basicauth import ( "context" "log" "net/http" "net/url" "strconv" "strings" "sync" "time" ) const ( // DefaultRealm is the default realm directive value on Default and Load functions. DefaultRealm = "Authorization Required" // DefaultMaxTriesCookie is the default cookie name to store the // curren...
package dubbo import ( "context" "errors" "fmt" "github.com/bytepowered/flux/flux-node" jsoniter "github.com/json-iterator/go" "reflect" "sync" "time" ) import ( "github.com/bytepowered/flux/flux-node/ext" "github.com/bytepowered/flux/flux-node/logger" "github.com/bytepowered/flux/flux-node/transporter" "...
package controllers import ( "encoding/base64" "net/url" "github.com/astaxie/beego" "github.com/astaxie/beego/orm" "moshopserver/models" "moshopserver/utils" ) type GoodsController struct { beego.Controller } type SkuRtnJson struct { ProductList []models.NideshopProduct `json:"productList"` Specifi...
package main import ( "bytes" "fmt" "image" "image/color" "image/png" "io" "log" "math" "regexp" "strings" "golang.org/x/image/draw" "github.com/TKMAX777/MinecraftDiscordSlackWrapper/discord_webhook" "github.com/TKMAX777/MinecraftDiscordSlackWrapper/mcheads" "github.com/TKMAX777/Minec...
package testHelper import ( "bytes" "encoding/json" "flag" "fmt" "io/ioutil" "net/http" "os" "path/filepath" "reflect" "strconv" "testing" "time" "github.com/stretchr/testify/assert" "github.com/DCNT-developer/dcnt/common/globals" "github.com/DCNT-developer/dcnt/common/interfaces" "github.com/DCNT-de...
/* * 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 ...
// Copyright (c) 2018 IoTeX // This is an alpha (internal) release and is not suitable for production. This source code is provided 'as is' and no // warranties are given as to title or non-infringement, merchantability or fitness for purpose and, to the extent // permitted by law, all liability for your use of the cod...
/* Copyright The Helm 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 di...
package mundipagg import ( "encoding/json" "time" ) type Boleto struct { Bank Bank `json:"bank,omitempty"` Instructions string `json:"instructions,omitempty"` DueAt *time.Time `json:"due_at,omitempty"` NossoNumero string `json...
package master import ( "bytes" "context" "fmt" "net" "os/exec" "strings" "sync" "testing" "time" "github.com/flipkart-incubator/dkv/internal/stats" "github.com/flipkart-incubator/dkv/internal/storage" "github.com/flipkart-incubator/dkv/internal/storage/badger" "github.com/flipkart-incubator/dkv/internal...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/campaign_draft.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads/goog...
// Copyright 2016-2018, Kulado 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...
// Copyright 2021 ChainSafe Systems // SPDX-License-Identifier: LGPL-3.0-only package substrate import ( "errors" "fmt" "github.com/ChainSafe/log15" gsrpc "github.com/centrifuge/go-substrate-rpc-client/v3" "github.com/centrifuge/go-substrate-rpc-client/v3/types" "github.com/chainx-org/AssetBridge/chains/chainse...
// Copyright 2021 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // // https://adventofcode.com/2021/day/23 package main /* day23 computes the cost to move amphipods from four rooms into their proper ro...
// Copyright (C) 2014-2016 Nippon Telegraph and Telephone 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 req...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.13.0 // source: uricanonicalizer/v1/uricanonicalizer.proto package uricanonicalizer import ( v1 "github.com/nlnwa/veidemann-api/go/commons/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" ...
/* Copyright 2019 Cisco Systems 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 d...
package icp import ( "crypto/md5" "encoding/base64" "errors" "fmt" "github.com/go-resty/resty/v2" "gocv.io/x/gocv" "net/http" "strconv" "time" ) type BeiAnResponse struct { Total int UnitName string List []*Info } type Info struct { ContentTypeName string `json:"contentTypeName"` Domain ...
//go:build linux && unit // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may // not use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or ...
package agent import ( "encoding/json" "fmt" "github.com/golang/glog" . "github.com/infradash/dash/pkg/dash" "github.com/qorio/maestro/pkg/docker" _ "github.com/qorio/maestro/pkg/mqtt" "github.com/qorio/maestro/pkg/pubsub" "github.com/qorio/maestro/pkg/registry" "github.com/qorio/maestro/pkg/template" "githu...
package controller import ( "context" "encoding/json" "fmt" "log" "reflect" "regexp" "time" "math/rand" customConfigMapv1alpha1 "github.com/gopaddle-io/configurator/pkg/apis/configuratorcontroller/v1alpha1" clientset "github.com/gopaddle-io/configurator/pkg/client/clientset/versioned" configscheme "github...
package s3 import ( "errors" "fmt" "io/ioutil" "math" "math/rand" "os" "path" "path/filepath" "sort" "strconv" "sync" "time" "github.com/minio/minio-go" "github.com/ozontech/file.d/fd" "github.com/ozontech/file.d/longpanic" "github.com/ozontech/file.d/pipeline" "github.com/ozontech/file.d/plugin/outp...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: helloworld.proto package helloworld import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference imp...
package eval import ( "bytes" "context" "io" "mime" "net/http" "net/url" "os" "strconv" "strings" "time" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/hcl/v2/hclsyntax" pkce "github.com/jimlambrt/go-oauth-pkce-code-verifier" "github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty/function"...
/* Copyright (c) Facebook, Inc. and its affiliates. 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...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: package_ext.proto package artifact import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Reference imports to suppress errors if they are not other...
package ppu import ( "goNES/bus" "goNES/cpu_interrupts" ) // PPU power up state // see. https://wiki.nesdev.com/w/index.php/PPU_power_up_state // // Memory map /* | addr | description | +----------------+----------------------------+ | 0x0000-0x0FFF | Pattern table#0 | | 0x1000...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: validator.proto /* Package validator is a generated protocol buffer package. It is generated from these files: validator.proto It has these top-level messages: FieldValidator */ package validator import proto "github.com/gogo/protobuf/proto" import fmt...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: token_update.proto package rpc import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" wrappers "github.com/golang/protobuf/ptypes/wrappers" grpc "google.golang...
/*************************** @File : log.go @Time : 2021/07/09 17:37:42 @AUTHOR : small_ant @Email : <EMAIL> @Desc : 交易日志收集 ****************************/ package model import ( "fmt" "strconv" "time" "github.com/shopspring/decimal" "gorm.io/gorm" ) // RebotLog 机器人日志 type RebotLo...
package main import ( "encoding/json" "fmt" "io/ioutil" "log" "os" "os/exec" "regexp" "runtime" "strings" "github.com/alecthomas/kingpin" ) var ( app string version string branch string revision string buildDate string goVersion = runtime.Version() ) var ( // flags paramsJSON = ki...
package kvscheduler import ( "bytes" "errors" "fmt" "io" "log" "net/http" "os" "path/filepath" "strconv" "strings" "text/template" "time" "github.com/goccy/go-graphviz" "github.com/golang/protobuf/proto" "github.com/unrolled/render" kvs "go.ligato.io/vpp-agent/v3/plugins/kvscheduler/api" "go.ligato....
// ----------------------------------------------------------------------------- // ZR Library zr/[numbers_test.go] // (c) <EMAIL> License: MIT // ----------------------------------------------------------------------------- package zr ...
package modules import ( "encoding/hex" "encoding/json" "errors" "io" "strings" "time" "gitlab.com/NebulousLabs/encoding" "go.sia.tech/siad/build" "go.sia.tech/siad/crypto" "go.sia.tech/siad/types" ) const ( // SubscriptionEntrySize is the estimated size of a single subscribed to // entry takes up in mem...
//////////////////////////////////////////////////////////////////////////////// // // // Copyright 2019 Broadcom. The term Broadcom refers to Broadcom Inc. and/or // // its subsidiaries. ...
// SPDX-License-Identifier: MIT package main // Rudimentary GUI chat client, that interacts with the chat apps to // receive and send messages. Unlike other examples this is rather // incomplete and more an experiment, there are "TODO" comments around // the code and a larger section by the end of the file. // // Th...
package endpoint import ( "github.com/a10networks/terraform-provider-thunder/thunder/axapi" "github.com/clarketm/json" "net/url" ) //based on ACOS 5_2_1-P4_90 type HealthMonitor struct { Inst struct { DefaultStateUp int `json:"default-state-up"` DisableAfterDown int ...
package renter import ( "context" "github.com/opentracing/opentracing-go" "gitlab.com/SkynetLabs/skyd/build" "gitlab.com/SkynetLabs/skyd/skykey" "gitlab.com/SkynetLabs/skyd/skymodules" "go.sia.tech/siad/crypto" "go.sia.tech/siad/types" "gitlab.com/NebulousLabs/errors" ) var ( // SkylinkDataSourceRequestSiz...
/* Package jsonrpc implements the JSON-RPC 2.0 specification over HTTP. Regular functions can be registered to a Handler and then called using standard JSON-RPC 2.0 semantics. The only limitations on functions are as follows: - the first parameter may be a context.Context - the remaining parameters must be able to ...
// Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen. DO NOT EDIT. package wallet import ( "context" address "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-jsonrpc/auth" "github.com/filecoin-project/go-state-types/crypto" "github.com/filecoin-project/venus/venus...
// Copyright 2018-2022 (c) The Go Service Components authors. All rights reserved. Issued under the Apache 2.0 License. package minio_local // import "github.com/karlmutch/go-service/pkg/minio_local" // This file contains a skeleton wrapper for running a minio // server in-situ and is principally useful for when test...
package main import ( "bufio" "container/heap" "encoding/json" "fmt" "io/ioutil" "math" "os" "sort" "strconv" "strings" ) const ( MAX_RACK_NUM = 100 MAX_SERVER_CAPACITY = 50 SERVER_PER_RACK = 40.0 DSP_WEIGHT = 10000 ) /* type Server struct { VMs int } type Rack struct { Servers [...
package crud import ( "errors" "fmt" "strconv" "strings" "time" ) // Table 是对CRUD进一层的封装 type Table struct { *DataBase *Search tableName string Columns Columns } // Name 返回名称 func (t *Table) Name() string { return t.tableName } // HaveColumn 是否有这个列 func (t *Table) HaveColumn(key string) bool { return t....
/* Copyright 2019 Cisco Systems 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 d...
package main import ( "bytes" "errors" "flag" "fmt" "github.com/jpillora/backoff" "io/ioutil" "log" "net" "net/http" _ "net/http/pprof" "os" "os/signal" "runtime" "strconv" "strings" "sync" "syscall" "time" "github.com/patrickmn/go-cache" ) const VERSION string = "0.0.9" // BUFFERSIZE contr...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.4 // source: isuxportal/services/registration/create_team.proto package registration import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" proto...
package main import ( "fmt" "math/rand" "sync" ) type analyzerI interface { // Called for all new test cases (with new hash). isFit(seed *seedT, orgHash uint64) bool // Called at the end of each round. roundEnd() distCalcGetter cull([]uint64) // Verbose and/or debug makeRecStatus() recStatus epilogue(...
/* * * k6 - a next-generation load testing tool * Copyright (C) 2016 Load Impact * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your o...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: system/v1alpha1/zone_insight.proto package v1alpha1 import ( fmt "fmt" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference im...
package internal import ( "fmt" "github.com/name5566/leaf/gate" "github.com/patrickmn/go-cache" "gopkg.in/mgo.v2/bson" "proj_bcbm/src/server/constant" "proj_bcbm/src/server/log" "proj_bcbm/src/server/msg" "proj_bcbm/src/server/util" "reflect" "sort" "time" ) func (dl *Dealer) handleBet(args []interface{}) ...
// Package rplidar implements a general rplidar LIDAR as a camera. package rplidar import ( "bufio" "context" "errors" "fmt" "image" "image/color" "math" "os" "sync" "time" "go.viam.com/rplidar/gen" "go.viam.com/utils" "github.com/edaniels/golog" "github.com/golang/geo/r3" "go.viam.com/rdk/component/c...
package main import ( "context" "encoding/json" "fmt" "sort" "strconv" "strings" "time" astilectron "github.com/asticode/go-astilectron" bootstrap "github.com/asticode/go-astilectron-bootstrap" ) var aiBusy = false const yasumi = `date,name 2019-01-01,元日 2019-01-14,成人の日 2019-02-11,建国記念の日 2019-03-21,春分の日 20...
package main import ( "bytes" "flag" "fmt" "image" _ "image/gif" _ "image/jpeg" _ "image/png" "math" "os" "github.com/dhowden/tag" "github.com/nfnt/resize" "github.com/veandco/go-sdl2/sdl" "github.com/veandco/go-sdl2/ttf" colors "gopkg.in/go-playground/colors.v1" ) var DIMEN = 500 type Config struct {...
package cmd import ( "fmt" "log" pasapi "github.com/infamousjoeg/cybr-cli/pkg/cybr/api" "github.com/infamousjoeg/cybr-cli/pkg/cybr/api/queries" "github.com/infamousjoeg/cybr-cli/pkg/cybr/api/requests" "github.com/infamousjoeg/cybr-cli/pkg/cybr/helpers/prettyprint" "github.com/spf13/cobra" ) // Safe is the saf...
package config import ( "fmt" "regexp" "strings" "sync" "github.com/evanw/esbuild/internal/compat" "github.com/evanw/esbuild/internal/fs" "github.com/evanw/esbuild/internal/js_ast" "github.com/evanw/esbuild/internal/logger" ) var localFS, _ = fs.RealFS(fs.RealFSOptions{}) type LanguageTarget int8 type JSXO...
package main import ( "bytes" "encoding/json" "fmt" _ "io/ioutil" "log" _ "math" "math/rand" "net/http" "os" "sort" "strconv" "time" "github.com/gorilla/websocket" ) type RequestJSON struct { Req string `json:"req"` Param string `json:"param"` } type MapRequest struct { XStart int64 `json:"xStart"...
package cdek import ( "time" ) //NewDeliveryRequest Order registration request builder // number: ID number of the acceptance certificate/waybill, // accompanying document attached upon the transfer of the cargo to CDEK, generated in the online store's system. // Identifier of the list of cargoes in the IS of the CD...
// Package dsync implements point-to-point merkle-DAG-syncing between a local // instance and remote source. It's like rsync, but specific to merkle-DAGs. // dsync operates over HTTP and (soon) libp2p connections. // // dsync by default can push & fetch DAGs to another dsync instance, called // the "remote". Dsync inst...
// Code generated by "packer-sdc mapstructure-to-hcl2"; DO NOT EDIT. package main import ( "github.com/hashicorp/hcl/v2/hcldec" "github.com/zclconf/go-cty/cty" ) // FlatCloudInitConfig is an auto-generated flat version of CloudInitConfig. // Where the contents of a field with a `mapstructure:,squash` tag are bubbl...
// 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...
// Copyright 2017 Annchain Information Technology Services 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 requi...
/* Copyright 2019 GM Cruise 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...
package katzenmint import ( "bytes" "encoding/binary" "errors" "fmt" "sync" "github.com/cosmos/iavl" "github.com/hashcloak/katzenmint-pki/config" "github.com/hashcloak/katzenmint-pki/s11n" katvoting "github.com/katzenpost/authority/voting/server/config" "github.com/katzenpost/core/pki" abcitypes "github.co...
/* * MIT No Attribution * * Copyright 2021 <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,...
package timetrace import ( "cycles" "fmt" "log" "os" "strings" "sync" ) /** * This class implements a circular buffer of entries, each of which * consists of a fine-grain timestamp, a short descriptive string, and * a few additional values. It's typically used to record times at * various points in an opera...