text
stringlengths
5.51k
28.1k
/* 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 clientapi import ( context "context" "encoding/json" "encoding/pem" "fmt" "math/rand" "testing" "time" "gitee.com/openeuler/kunpengsecl/attestation/ras/cache" "gitee.com/openeuler/kunpengsecl/attestation/ras/config" "gitee.com/openeuler/kunpengsecl/attestation/ras/config/test" "gitee.com/openeuler/...
package sdl2 // #cgo LDFLAGS: -lSDL2 // #include <SDL2/SDL_scancode.h> // #include <SDL2/SDL_keyboard.h> import "C" import "unsafe" type Scancode int func NewScancodeFromName(name string) Scancode { cstr := C.CString(name) defer C.free(unsafe.Pointer(cstr)) return Scancode(C.SDL_GetScancodeFromName(cstr)) } func...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: envoy/extensions/rate_limit_descriptors/expr/v3/expr.proto package envoy_extensions_rate_limit_descriptors_expr_v3 import ( _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoypro...
package main import ( "time" ) type md5action struct { tp float64 t1 time.Time a0, b0, c0, d0 uint32 } func (a *md5action) Init() { a.t1 = time.Now() a.tp = 0.0 a.a0 = 0x67452301 a.b0 = 0xefcdab89 a.c0 = 0x98badcfe a.d0 = 0x10325476 return } func F(x, y, z uint32) uint32 { return (x & y) | ((^x) & z) } ...
/* This file is taken from Helm source and has been modified to work as part of operator-deployer. Original file: helm/cmd/helm/install.go */ /* 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 m...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: get_difference.proto package archive import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" file_repository "github.com/easyopsapis/easyops-api-go/protorepo-models/ea...
package client import ( "bufio" "context" "errors" "fmt" "io" "io/ioutil" "net/http" "go.gazette.dev/core/broker/codecs" pb "go.gazette.dev/core/broker/protocol" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) // Reader adapts a Read RPC to the io.Reader interface. The first byte read fro...
// Copyright The Linux Foundation and each contributor to CommunityBridge. // SPDX-License-Identifier: MIT package sign import ( "bytes" "context" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "strings" "github.com/communitybridge/easycla/cla-backend-go/projects_cla_groups" "github.com/sirupsen/lo...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: zenia/authz/v1/authz_service.proto package authz import ( proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/p...
// SPDX-License-Identifier: Apache-2.0 package network import ( "encoding/json" "fmt" "io/ioutil" "net" "net/http" "path/filepath" "strings" "github.com/api-routerd/api-routerd/cmd/share" log "github.com/sirupsen/logrus" ) const ( networkdUnitPath = "/etc/systemd/network" ) // Address JSON message type ...
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package syncer import ( "fmt" "time" stdmath "math" "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow" "github.com/ava-labs/avalanc...
// HEAD_PLACEHOLDER // +build ignore // Package groestl implements Grøstl-256 algorithm. // // This Go implementation is a port of the original C implementation which is // included in Monero as follows: // src/crypto/groestl.c // src/crypto/groestl.h // src/crypto/groestl_tables.h // // Most comments in t...
package araalictl import ( "bytes" "fmt" "os" "os/exec" "strconv" "strings" "syscall" "time" "gopkg.in/yaml.v2" ) // Constants const ONE_DAY = 24 * 60 * time.Minute // FileExists - check if file exists func FileExists(filename string) bool { _, err := os.Stat(filename) if os.IsNotExist(err) { return fa...
package internal_test import ( "math" "math/big" "reflect" "testing" "time" "github.com/tada/dgo/dgo" "github.com/tada/dgo/internal" "github.com/tada/dgo/test/assert" "github.com/tada/dgo/test/require" "github.com/tada/dgo/tf" "github.com/tada/dgo/typ" "github.com/tada/dgo/vf" ) func TestFloat(t *testing...
package main import ( "encoding/hex" "errors" "fmt" "math/rand" "os" "os/signal" "regexp" "strings" "syscall" "time" "github.com/bwmarrin/discordgo" "github.com/kenshaw/baseconv" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" ) var ( buildNumber string liveTime time.Time config Configu...
package captcha import ( "fmt" "github.com/golang/freetype" "github.com/louismax/HumanCaptcha/assets" "github.com/louismax/HumanCaptcha/toft" "golang.org/x/image/draw" "golang.org/x/image/font" "image" "image/color" "math" mRand "math/rand" ) // DrawDot 绘制点 type DrawDot struct { Dx int Dy int F...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/core/example/example_parser_configuration.proto package tensorflow import ( fmt "fmt" "github.com/RedisAI/aibench/cmd/aibench_run_inference_tensorflow_serving/tensorflow/core/framework" proto "github.com/golang/protobuf/proto" math "math" ) /...
package ds2480 import ( //"encoding/hex" "errors" "fmt" "io" "time" "github.com/schmidtw/go1wire" serial "github.com/schmidtw/go232" ) const ( MODE_DATA = 0xe1 MODE_COMMAND = 0xe3 MODE_STOP_PULSE = 0xf1 CMD_RESET = 0xc1 CMD_PULLUP = 0x3b CMD_PULLUP_ARM = 0xef CMD_PU...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: pkg/secrets/protocol.proto package secrets import ( proto "github.com/golang/protobuf/proto" empty "github.com/golang/protobuf/ptypes/empty" protoreflect "google.golang.org/protobuf/reflect/...
// Code generated by protoc-gen-go. // source: keymaster.proto // DO NOT EDIT! /* Package keymaster is a generated protocol buffer package. It is generated from these files: keymaster.proto It has these top-level messages: Metadata SigningKey VerifyingKey KeySet */ package keymaster import proto "github.com/go...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package elastictranscoder import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" "github.com/aws/aws-sdk-go-v2/private/protocol" ) // The CreatePipelineRequest structure. type CreatePipelineInput ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/group_placement_view_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" ...
// 数据同步需要注意的是,必须在节点完成election选举之后才能进行数据通信。 // 也就是说repl通信需要建立在raft成功作为前提 package dister import ( "net" "time" "fmt" "strconv" "sync/atomic" "gitee.com/johng/gf/g/os/glog" "gitee.com/johng/gf/g/os/gfile" "gitee.com/johng/gf/g/os/gcache" "gitee.com/johng/gf/g/os/gtime" "gitee.com/j...
package launcher_test import ( "context" "errors" "testing" "time" "github.com/influxdata/influxdb" "github.com/influxdata/influxdb/cmd/influxd/launcher" "github.com/influxdata/influxdb/pkger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestLauncher_Pkger(t *testing.T) ...
package main import ( "archive/zip" "fmt" "fyne.io/fyne" "fyne.io/fyne/app" "fyne.io/fyne/dialog" "fyne.io/fyne/layout" "fyne.io/fyne/widget" "github.com/cavaliercoder/grab" "io" "io/ioutil" "os" "os/exec" "os/user" "path/filepath" "runtime" "strings" "time" ) // Application name // (preferably witho...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/enums/bidding_strategy_type.proto package enums import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they ...
package kgo import ( "math" "math/rand" "sync/atomic" "time" "github.com/twmb/franz-go/pkg/kbin" ) // Partitioner creates topic partitioners to determine which partition messages // should be sent to. // // Note that a record struct is unmodified (minus a potential default topic) // from producing through parti...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/asset.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/googleads/v2...
package streams import ( "bytes" "compress/gzip" "encoding/base64" "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kinesis" "github.com/elastic/beats/libbeat/beat" "github.com/elastic/beats/libbea...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
package uast import ( "bytes" "encoding/json" "fmt" "reflect" "sort" "strconv" "strings" "github.com/mcuadros/go-lookup" "gopkg.in/src-d/go-errors.v1" ) var ( ErrEmptyAST = errors.NewKind("empty AST given") ErrTwoTokensSameNode = errors.NewKind("token was already set (%s != %s)") ErrTwoTyp...
package astits import ( "bytes" "testing" "github.com/asticode/go-astikit" "github.com/stretchr/testify/assert" ) var descriptors = []*Descriptor{{ Length: 0x1, StreamIdentifier: &DescriptorStreamIdentifier{ComponentTag: 0x7}, Tag: DescriptorTagStreamIdentifier, }} func descriptorsByte...
package fleet import "time" type CarveStore interface { NewCarve(metadata *CarveMetadata) (*CarveMetadata, error) UpdateCarve(metadata *CarveMetadata) error Carve(carveId int64) (*CarveMetadata, error) CarveBySessionId(sessionId string) (*CarveMetadata, error) CarveByName(name string) (*CarveMetadata, error) Li...
package peer import ( "bytes" "container/list" "context" "encoding/hex" "encoding/json" "errors" "fmt" "io/ioutil" "log" "math/bits" "math/rand" "net" "net/http" "strings" "time" "github.com/Gskartwii/roblox-dissector/datamodel" "github.com/olebedev/emitter" "github.com/pierrec/xxHash/xxHash32" "gi...
// Copyright Suneido Software Corp. All rights reserved. // Governed by the MIT license found in the LICENSE file. // +build !portable package builtin import ( "unsafe" "github.com/apmckinlay/gsuneido/builtin/goc" "github.com/apmckinlay/gsuneido/builtin/heap" . "github.com/apmckinlay/gsuneido/runtime" ) var co...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v4.0.0 // source: proto/ConsensusTopicInfo.proto package proto import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/prot...
//Copyright 2011 <NAME> (<EMAIL>). All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions //are met: // // 1. Redistributions of source code must retain the above copyright // notice, this list of cond...
package mcache import ( "bytes" "context" "crypto" "crypto/sha256" "crypto/x509" "errors" "fmt" "hash" "io/ioutil" "math/big" mrand "math/rand" "net/http" "path/filepath" "strings" "sync" "time" "github.com/jmhodges/clock" "golang.org/x/crypto/ocsp" "github.com/rolandshoemaker/stapled/common" "gi...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: tests/enum/enum_renames.proto // clang-format off package enum import ( _ "github.com/alta/protopatch/patch/gopb" proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/pr...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: bussiness/tables/address.proto package pbm_address import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "r...
// +build sam,atsamd51 // Hardware interface implementation of GPIO-driven HUB75 RGB LED matrix panels // for SAMD51 targets. package native import ( "device/sam" "machine" "runtime/interrupt" "runtime/volatile" ) // Timer/counter peripherals configuration const ( TC_ROW = 4 // timer peripheral f...
package ilo // Users struct declares payload to un/marshal user accounts. type Users struct { UsersInfo []UserInfo `json:"users"` } // DirectoryGroupAccts struct declares directory group account payload. type DirectoryGroupAccts struct { Groups []DirectoryGroups `json:"group_accts"` } // LicenseInfo declares Licen...
// 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...
/* Copyright 2012 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
// Responsible for creating all resources for a lab. Pods, services, networks, etc. package scheduler import ( "errors" "fmt" "net" "strconv" "strings" "sync" "time" log "github.com/sirupsen/logrus" "golang.org/x/crypto/ssh" pb "github.com/nre-learning/syringe/api/exp/generated" config "github.com/nre-lea...
package handle import ( "das_register_server/cache" "das_register_server/config" "das_register_server/http_server/api_code" "das_register_server/internal" "das_register_server/notify" "das_register_server/tables" "das_register_server/timer" "encoding/json" "fmt" "github.com/DeAccountSystems/das-lib/common" ...
package parse import ( "bufio" "bytes" "fmt" "go/ast" "go/parser" "go/printer" "go/token" "io" "os" "reflect" "regexp" "strings" "unicode" "golang.org/x/tools/go/ast/astutil" "golang.org/x/tools/imports" ) var header = []byte(` // Code generated by genny. DO NOT EDIT. // This file was automatically g...
package main import ( "errors" ) var ( corpus = map[int]*httpcode{ 100: { 100, "Continue", "This interim response indicates that everything so far is OK and that the client should continue the request, or ignore the response if the request is already finished.", "https://developer.mozilla.org/en-US/do...
// Package test contains the test harness, which controls browser based tests. // Tests should call RegisterTestFunction to register a particular test. These tests get presented to the user // in the test form available at the address "/test", and the user can select a test and execute it. // The form is also a reposit...
// Copyright (c) 2017 // Author: <NAME> <jaw @ <EMAIL>> // Created: 2018-Jul-28 14:39 (EDT) // Function: anti-entropy package merkle import ( "expvar" "golang.org/x/net/context" "sync" "time" "github.com/jaw0/acgo/diag" "github.com/jaw0/yentablue/gclient" "github.com/jaw0/yentablue/proto" "github.com/jaw0/ye...
// Package cli implements the CLI functionality, main defers // execution to the exported methods in this package package cli import ( "bufio" "errors" "fmt" "io" "io/fs" "os" "path/filepath" "regexp" "strconv" "strings" "syscall" "github.com/FollowTheProcess/py/pkg/interpreter" "github.com/sirupsen/logr...
package ciscobcs import ( "encoding/json" "time" ) // Demo Data // lines: 996 // types = // done - device 300 // done - track_summary 20 // done - track_smupie_recommendation 2 // done - sw_eox_bulletin 34 // done - hw_eox_bulletin 184 // done - fn_bulletin 103 // done - psirt_bulletin 353 // // BulkTypeChecker en...
package config import ( "errors" "fmt" "github.com/coreos/etcd/embed" "io/ioutil" "net/url" "os" "reflect" "testing" "time" "github.com/signalfx/embetcd/embetcd" "github.com/signalfx/golib/log" "github.com/signalfx/golib/pointer" "github.com/smartystreets/goconvey/convey" "github.com/stretchr/testify/as...
package slavesync import ( "context" "sync" "github.com/pkg/errors" "github.com/zero-os/0-Disk/config" "github.com/zero-os/0-Disk/log" "github.com/zero-os/0-Disk/nbd/ardb" "github.com/zero-os/0-Disk/nbd/ardb/storage" ) // NewSlaveCluster creates a new SlaveCluster. // See `SlaveCluster` for more information. ...
// Copyright 2016 @wren. 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 applica...
package testhelper import ( "fmt" "reflect" "strings" "testing" "time" "unicode" "unicode/utf8" "github.com/davecgh/go-spew/spew" "github.com/stretchr/testify/require" "github.com/woodensquares/greenery" ) // NopNoArgs is a command handler that doesn't do anything func NopNoArgs(lcfg greenery.Config, args ...
// Copyright 2014 beego Author. 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 applica...
// Copyright (c) 2016-2017 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package rpctest import ( "bytes" "encoding/binary" "fmt" "sync" "github.com/frankcsx/bglutil" "github.com/frankcsx/bglutil/hdkeychain" "github.com/frankcsx/bgld...
// Code generated by GoVPP's binapi-generator. DO NOT EDIT. // source: /usr/share/vpp/api/core/vpe.api.json /* Package vpe is a generated VPP binary API for 'vpe' module. It consists of: 1 type 18 messages 9 services */ package vpe import ( "bytes" "context" "io" "strconv" api "git.fd.io/govpp.git/api"...
// Copyright (c) 2017 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package blockchain import ( "fmt" "math/rand" "reflect" "testing" "github.com/byndsuite/byndd/wire" ) // testNoncePrng provides a deterministic prng for the nonce in ...
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package s390x import ( "cmd/compile/internal/gc" "cmd/internal/obj" "cmd/internal/obj/s390x" "fmt" ) // clearLoopCutOff is the (somewhat arbitrary) value ...
/* Copyright 2019 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.10.1 // source: envoy/config/filter/network/ext_authz/v2/ext_authz.proto package envoy_config_filter_network_ext_authz_v2 import ( _ "github.com/cncf/udpa/go/udpa/annotations" core "github.com/envoyproxy/go-...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package wafv2 type ComparisonOperator string // Enum values for ComparisonOperator const ( ComparisonOperatorEq ComparisonOperator = "EQ" ComparisonOperatorNe ComparisonOperator = "NE" ComparisonOperatorLe ComparisonOperator = "LE" ComparisonOp...
package crud import ( "database/sql" "encoding/json" "errors" "fmt" "io/ioutil" "strings" "unicode" //github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql" ) //map for converting mysql type to golang types var typeForMysqlToGo = map[string]string{ "int": "int", "integer": ...
package sortFuncs import ( "fmt" "go-videoSorter/requests" "log" "os" "path" "path/filepath" "strconv" "strings" ) var ( videoFormats = []string{"mp4", "mkv", "avi", "m4v", "m4p", "mov", "qt", "wmv", "mpg", "mpv", "webm", /*"sub", "srt"*/} unwantedString = []string{"720", "1080", "480", "dvd", "twod...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: batch_update_permission.proto package basic import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Reference...
// 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 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, ...
// Copyright 2020 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...
// Copyright (C) 2019 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
package rdb_test import ( "fmt" "os" "strings" "testing" "github.com/dongmx/rdb" . "gopkg.in/check.v1" ) // Hook gocheck into the gotest runner. func Test(t *testing.T) { TestingT(t) } type DecoderSuite struct{} var _ = Suite(&DecoderSuite{}) func (s *DecoderSuite) TestEmptyRDB(c *C) { r := decodeRDB("empt...
package kubelet import ( "fmt" "path/filepath" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubeletconfig "k8s.io/kubelet/config/v1beta1" "sigs.k8s.io/yaml" "github.com/flexkube/libflexkube/internal/util" "github.com/flexkube/libflexkube/pkg/container" "github.com/flexkube/libflexkube/pkg/container/runtime/dock...
package discord import ( "fmt" "log" "regexp" "strings" "github.com/denverquane/amongusdiscord/game" "github.com/denverquane/amongusdiscord/storage" "github.com/bwmarrin/discordgo" "github.com/nicksnyder/go-i18n/v2/i18n" ) const downloadURL = "https://github.com/denverquane/amonguscapture/releases/latest/do...
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may not // use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" fil...
package models import ( "encoding/json" "reflect" "strings" "time" "github.com/gin-gonic/gin" "github.com/t2wu/betterrest/libs/datatypes" "github.com/t2wu/betterrest/libs/urlparam" "github.com/t2wu/betterrest/libs/utils/jsontrans" "github.com/asaskevich/govalidator" "github.com/jinzhu/gorm" ) // UserRole ...
package telegram import ( "encoding/json" "net/url" "strconv" "strings" ) // APIResponse is a response from the Telegram API with the result // stored raw. type APIResponse struct { Ok bool `json:"ok"` Result *json.RawMessage `json:"result"` ErrorCode int `json:"error_c...
package cluster import ( "encoding/json" "fmt" "io" "io/ioutil" "math/rand" "os" "time" "github.com/cdipaolo/goml/base" ) /* TriangleKMeans implements the k-means unsupervised clustering algorithm sped up to use the Triangle Inequality to reduce the number of reduntant distance calculations between datapoint...
package kube import ( "fmt" "os" "strconv" "time" "github.com/jenkins-x/jx-logging/pkg/log" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/kubernetes" ) // Labels required to be a lock. Anything e...
// Copyright 2019 <NAME>. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
// Copyright ©2017 The go-hep 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 fastjet import ( "errors" "fmt" "math" "go-hep.org/x/hep/fmom" ) // history holds information about the clustering type history struct { pa...
// Copyright (c) 2017, <NAME> // See LICENSE for details. package stakedb import ( "encoding/binary" "fmt" "os" "strings" "sync" apitypes "github.com/coolsnady/hcexplorer/dcrdataapi" "github.com/coolsnady/hcexplorer/rpcutils" "github.com/coolsnady/hcexplorer/txhelpers" "github.com/coolsnady/hcd/blockchain/s...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package opqueue import ( "context" "encoding/json" "fmt" "sync" "time" "github.com/ThreeDotsLabs/watermill" "github.com/ThreeDotsLabs/watermill/message" "github.com/google/uuid" "github.com/hyperledger/arie...
// // // Copyright 2018 gRPC authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
package main import ( "fmt" "os" "net" "syscall" "bufio" "io" "time" "flag" "sync" "strings" "strconv" "io/ioutil" "hash/fnv" "github.com/rcrowley/goagain" "github.com/BurntSushi/toml" "github.com/bmizerany/perks/quantile" "github.com/bmizerany/perks/...
package app import ( "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "net/http" "os" "sort" "strings" "sync" "time" "github.com/fsnotify/fsnotify" "github.com/fullstorydev/grpcurl" "github.com/gorilla/mux" "github.com/jhump/protoreflect/desc" "github.com/karimra/gnmic/collector" "gi...
package tencentcloud import ( "context" "errors" "fmt" "sort" "strings" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" cloudErrors "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" cvm "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm/v20170312" v1 "k8s.i...
/* 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, ...
package main import ( "C" "encoding/json" "fmt" "os" "os/user" "strconv" "strings" "time" "log" "github.com/xorrior/poseidon/pkg/commands/cat" "github.com/xorrior/poseidon/pkg/commands/executeassembly" "github.com/xorrior/poseidon/pkg/commands/getprivs" "github.com/xorrior/poseidon/pkg/commands/keys" "g...
// Copyright (C) 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
/* 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 2013 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 main import ( "bytes" "fmt" "go/ast" "go/build" "go/token" "go/types" "io" "log" "sort" "strings" "sync" "github.com/Go-zh/tools/cmd/guru/...
package browser import ( _ "github.com/whosonfirst/go-reader-cachereader" _ "github.com/whosonfirst/go-reader-findingaid" ) import ( "context" "flag" "fmt" "github.com/aaronland/go-http-bootstrap" "github.com/aaronland/go-http-ping/v2" "github.com/aaronland/go-http-server" "github.com/aaronland/go-http-tangr...
/* Sniperkit-Bot - Status: analyzed */ // Copyright 2015-present, Cyrill @ <EMAIL>umacher.fm and the CoreStore contributors // // 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...
package iperf import ( "bytes" "encoding/json" "fmt" ) const ( GB = 1000 * 1000 * 1000 MB = 1000 * 1000 KB = 1000 GbitsSec = "Gbits/sec" MbitsSec = "Mbits/sec" KbitsSec = "Kbits/sec" BitsSec = "bits/sec" GBytes = "GBytes" MBytes = "MBytes" KBytes = "KBytes" Bytes = "Bytes" htmlTableTitle = ` <...
package components // Copyright 2020 The GoVision Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use 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 applicab...
package tests import ( "equalstest" "strconv" "testing" ) func TestEquals(t *testing.T) { // test basic field basicTgt, basicSrc := genBasicFoo(), genBasicFoo() if !basicTgt.Equals(basicSrc) { t.Error("BasicEqualsFoo.Equals() test failed") } basicSrc.EnumFoo = equalstest.EnumFoo_e2 if basicTgt.Equals(basic...
// Copyright (C) 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...