text
stringlengths
5.51k
28.1k
package processor import ( "context" "fmt" "sort" "strings" "time" "github.com/nci/gsky/metrics" "github.com/nci/gsky/utils" ) type featureInfo struct { Raster []utils.Raster Namespaces []string DsFiles []string DsDates []string } func GetFeatureInfo(ctx context.Context, params utils.WMSParams,...
package autodelete import ( "encoding/json" "fmt" "sync" "time" "github.com/bwmarrin/discordgo" ) type smallMessage struct { MessageID string PostedAt time.Time // implicit in which ManagedChannel this is a member of //ChannelID string } const minTimeBetweenDeletion = time.Second * 5 const minTimeBetween...
package statmodel import ( "fmt" "math" "math/rand" "strings" "github.com/kshedden/dstream/dstream" "gonum.org/v1/gonum/floats" "gonum.org/v1/gonum/mat" ) // Knockoff is a dstream that creates knockoff versions of variables // from another dstream. The specific approach implemented here is // the "equivarian...
// Copyright 2017 Monax Industries 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...
/* http://www.apache.org/licenses/LICENSE-2.0.txt Copyright 2015 Intel 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 ...
// Copyright 2015-present, Cyrill @ <EMAIL> 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://www.apache.org/licenses/LICENSE-2.0 // // Unles...
// //Copyright [2016] [SnapRoute 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...
// Copyright 2016-2019 DutchSec (https://dutchsec.com/) // // 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 applicabl...
// Copyright 2012 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 jpeg import ( "bytes" "encoding/base64" "fmt" "io" "math/rand" "os" "strings" "testing" "time" "fxkt.tech/mango/image" "fxkt.tech/mango/im...
/* * This file is part of the KubeVirt 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 applicable la...
package prpqr_reconciler import ( "context" "crypto/md5" "encoding/hex" "fmt" "reflect" "time" "github.com/sirupsen/logrus" kerrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/util...
package test import ( "fmt" "testing" "github.com/onflow/cadence" jsoncdc "github.com/onflow/cadence/encoding/json" "github.com/onflow/cadence/runtime/interpreter" emulator "github.com/onflow/flow-emulator" "github.com/onflow/flow-go-sdk" "github.com/onflow/flow-go-sdk/crypto" "github.com/stretchr/testify/as...
package manager import ( "bytes" "compress/lzw" "crypto/md5" "encoding/gob" "fmt" "log" "path" "sync" "time" "github.com/hashicorp/consul-template/config" dep "github.com/hashicorp/consul-template/dependency" "github.com/hashicorp/consul-template/template" "github.com/hashicorp/consul-template/version" ...
package duit import ( "image" "strings" "unicode/utf8" draw "github.com/ktye/duitdraw" ) // Cursor and SelectionStart start at 1 for sane behaviour of an empty Field struct. // Field is a single line text field. The cursor is always visible, and determines which part of the text is shown. type Field struct { T...
package handler import ( "context" "fmt" pb "github.com/aibotsoft/gen/fortedpb" "github.com/aibotsoft/micro/status" "github.com/aibotsoft/micro/util" "github.com/aibotsoft/surebet-service/pkg/clients" "math" "strings" "time" ) var FastServiceList = []string{"bf", "mbook", "bdaq", "pin", "pin88", "isn", "sing...
/* Copyright 2016, Cossack Labs 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 agreed to in writing, softwa...
package brotli import "math" /* Copyright 2013 Google Inc. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ func initialEntropyCodesCommand(data []uint16, length uint, stride uint, num_histograms uint, histograms []histogramComma...
package fileio // .scd - Script data import ( "encoding/binary" "fmt" "io" "log" ) const ( OP_NO_OP = 0 OP_EVT_END = 1 OP_EVT_NEXT = 2 OP_EVT_CHAIN = 3 OP_EVT_EXEC = 4 OP_EVT_KILL = 5 OP_IF_START = 6 OP_ELSE_START = 7 OP_END_IF =...
package a1upgrade import ( "encoding/json" "os" "path/filepath" ) // DeliveryRunning represents the data we're extracting from the A1 // /etc/delivery/delivery-running.json configuration file. type DeliveryRunning struct { Delivery struct { FQDN string `json:"fqdn"` IPVersion string `json:"ip_version"` ...
package engine import ( "database/sql" "fmt" "os" "path" "strings" "sync" "time" "github.com/miekg/dns" log "github.com/sirupsen/logrus" "github.com/chrisruffalo/gudgeon/config" "github.com/chrisruffalo/gudgeon/rule" "github.com/chrisruffalo/gudgeon/util" ) // lit of valid sort names (lower case for eas...
package node import ( "crypto/ecdsa" "fmt" "sync" "time" "github.com/ethereum/go-ethereum/common" "github.com/harmony-one/harmony/accounts" "github.com/harmony-one/harmony/api/client" clientService "github.com/harmony-one/harmony/api/client/service" msg_pb "github.com/harmony-one/harmony/api/proto/message" ...
package reindexer import ( "bytes" "encoding/json" "errors" "fmt" "log" "reflect" "strconv" "strings" "time" "github.com/restream/reindexer" ) const ( opAND = iota opNOT opOR ) var queryNames = map[int]string{ reindexer.EQ: "==", reindexer.GT: ">", reindexer.LT: "<", reindexer.GE: ">=",...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/enums/job_placeholder_field.proto package enums import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they ...
package ui import ( "fmt" "strconv" "strings" "github.com/darkhz/invidtui/lib" "github.com/darkhz/tview" "github.com/gdamore/tcell/v2" "golang.org/x/sync/semaphore" ) var ( // ResultsFlex contains the arranged page marker // and ResultsList table elements. ResultsFlex *tview.Flex // ResultsList is a tabl...
// Copyright 2012-2018 The NATS Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
package hall import ( "encoding/json" "game_server/easygo" "game_server/easygo/base" "game_server/for_game" "game_server/pb/client_hall" "game_server/pb/share_message" "io/ioutil" "net/http" "net/url" "sort" "strings" "time" "github.com/astaxie/beego/logs" ) /* 云通商支付服务入口 */ type WebYunTongShangPay str...
package main import ( "flag" "fmt" "io" "log" "os" "os/signal" "path/filepath" "regexp" "sort" "strings" "syscall" ) func backupCmd(args []string, name string) { fs := flag.NewFlagSet("backup", flag.ExitOnError) fs.Usage = func() { log.Println("usage: bolong [flags] backup [flags] [directory]") fs.Pr...
package main import ( "crypto/sha1" "encoding/hex" "encoding/json" "flag" "fmt" "github.com/hdm/inetdata-parsers" ct "github.com/google/certificate-transparency-go" "github.com/google/certificate-transparency-go/tls" "github.com/google/certificate-transparency-go/x509" "golang.org/x/net/publicsuffix" "io" ...
// Copyright 2012 The Freetype-Go Authors. All rights reserved. // Use of this source code is governed by your choice of either the // FreeType License or the GNU General Public License version 2 (or // any later version), both of which can be found in the LICENSE file. package freetype const kEpsilon = 16384 type C...
package peerv2 import ( "context" "encoding/hex" "math/rand" "reflect" "sort" "time" "github.com/incognitochain/incognito-chain/common" "github.com/incognitochain/incognito-chain/incognitokey" "github.com/incognitochain/incognito-chain/peerv2/proto" "github.com/incognitochain/incognito-chain/peerv2/rpcclien...
// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. package terraform import ( "bytes" "encoding/json" "fmt" "io/ioutil" "os" "strings" "time" "github.com/mattermost/mattermost-load-test-ng/deployment" "github.com/mattermost/mattermost-load-test-ng...
// Copyright 2018 <NAME>. All rights reserved. package sim import ( "bufio" "context" "encoding/json" "fmt" "log" "os" "os/signal" "runtime" "strings" "sync" "syscall" "time" "github.com/simagix/gox" anly "github.com/simagix/keyhole/analytics" "github.com/simagix/keyhole/mdb" "go.mongodb.org/mongo-dr...
package tests import ( "bytes" "encoding/hex" "encoding/json" "fmt" "io/ioutil" "math/big" "runtime" "strconv" "strings" "time" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" "gith...
// Copyright 2018 The gg 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
package router import ( "bytes" "encoding/binary" "fmt" "io" "net" "sync" "syscall" "time" . "github.com/weaveworks/weave/common" ) const ( macMaxAge = 10 * time.Minute // [1] acceptMaxTokens = 100 // [2] acceptTokenDelay = 100 * time.Millisecond // [3] ) // [1] should b...
package base2048 import ( "fmt" "reflect" "testing" ) type testset struct { decoded, encoded string } var testsets = []testset{ {"\x14\xfb\x9c\x03\xd9\x7e", "\xC7\xAF\xE0\xB8\x8B\xC5\x8F\xE0\xAC\x87\xC5\x96"}, {"\x14\xfb\x9c\x03\xd9", "\xC7\xAF\xE0\xB8\x8B\xC5\x8F\xC6\xA1"}, {"\x14\xfb\x9c\x03", "\xC7\xAF\xE0...
package cryptonym import ( "bytes" "encoding/json" "errors" "fmt" "fyne.io/fyne" "fyne.io/fyne/dialog" "fyne.io/fyne/layout" "fyne.io/fyne/theme" "fyne.io/fyne/widget" fioassets "github.com/blockpane/cryptonym/assets" errs "github.com/blockpane/cryptonym/errLog" "github.com/fioprotocol/fio-go" "github.com...
package datamodel import ( "fmt" "log" "regexp" "strconv" "strings" "time" ) /* The code consists of (up to) 6 group sub-identifiers marked by letters A to F. All these may or may not be present in the identifier (e.g. groups A and B are often omitted). In order to decide to which group the sub-identifier belon...
// Package unbound implements a wrapper for libunbound(3). // Unbound is a DNSSEC aware resolver, see https://unbound.net/ // for more information. It's up to the caller to configure // Unbound with trust anchors. With these anchors a DNSSEC // answer can be validated. // // The method's documentation can be found in l...
// Copyright 2018-2019 The logrange 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...
package builtin_libs import ( "regexp" "time" . "github.com/zgg-lang/zgg-go/runtime" ) var timeClass ValueType func libTime(*Context) ValueObject { lib := NewObject() lib.SetMember("Time", timeClass, nil) lib.SetMember("time", NewNativeFunction("time", func(c *Context, this Value, args []Value) Value { retu...
// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package cmd import ( "bytes" "context" "encoding/base64" "fmt" "io" "io/ioutil" "os" "strconv" "strings" "time" "github.com/coreos/go-oidc/v3/oidc" "github.com/spf13/cobra" metav1 "k8s.io/apimac...
package main import ( "os" "strings" "io/ioutil" "fmt" "encoding/json" "strconv" "net/http" "errors" "time" "net/url" ) type NestConfig struct { Token string `json:"token"` ThermostatID string `json:"thermostat-id"` Minutes int `json:"minutes"` Output string `json:"output"` LastOutput...
package db import ( "database/sql/driver" "fmt" "math/rand" "os" "testing" "time" "github.com/golang/protobuf/jsonpb" "gopkg.in/DATA-DOG/go-sqlmock.v1" api "github.com/kubeflow/katib/pkg/api" ) var dbInterface VizierDBInterface var mock sqlmock.Sqlmock func TestMain(m *testing.M) { db, sm, err := sqlmock...
package gopay type AliPayNotifyRequest struct { NotifyTime string `json:"notify_time,omitempty"` NotifyType string `json:"notify_type,omitempty"` NotifyId string `json:"notify_id,omitempty"` AppId string `json:"a...
package marketplace import ( "encoding/json" "io/ioutil" "strings" "time" "qxklmrhx7qkzais6.onion/Tochka/tochka-free-market/modules/util" ) var localizationMap map[string]Localization var vendorshipAgreementMap map[string]string type LocalizationLayout struct { BTCRates string `json:"btcrates"` BuyerGuid...
package service import ( "context" "crypto/tls" "fmt" "os" "os/signal" "strings" "sync" "syscall" "time" "github.com/plgd-dev/cloud/pkg/security/oauth/manager" kitSync "github.com/plgd-dev/kit/sync" "go.uber.org/zap" "github.com/plgd-dev/cloud/pkg/sync/task/queue" "google.golang.org/grpc" pbAS "gith...
package geographiclibgo import "math" type GeodesicLine struct { tiny_ float64 _A1m1 float64 _A2m1 float64 _A3c float64 _A4 float64 _B11 float64 _B21 float64 _B31 float64 _B41 float64 _C1a [_GEODESIC_ORDER + 1]float64 _C1pa [_GEODESIC_ORDER + 1]float64 _C2a [_GEODESIC_ORDER + 1]float6...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: jarvisnodeex.proto package pluginjarvisnodeexpb import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: oauth.proto package oauth import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang....
package workflow import ( "database/sql" "fmt" "time" "github.com/go-gorp/gorp" "github.com/lib/pq" "github.com/ovh/cds/engine/api/application" "github.com/ovh/cds/engine/api/cache" "github.com/ovh/cds/engine/api/environment" "github.com/ovh/cds/engine/api/secret" "github.com/ovh/cds/sdk" "github.com/ovh/...
package tsm1 import ( "encoding/binary" "fmt" "io" "math" "math/bits" "unsafe" ) // FloatArrayEncodeAll encodes src into b, returning b and any error encountered. // The returned slice may be of a different length and capacity to b. // // Currently only the float compression scheme used in Facebook's Gorilla is...
package option import ( "fmt" "go/ast" "go/constant" stdtypes "go/types" stdstrings "strings" "github.com/iancoleman/strcase" "github.com/swipe-io/swipe/pkg/domain/model" "github.com/swipe-io/swipe/pkg/errors" "github.com/swipe-io/swipe/pkg/graph" "github.com/swipe-io/swipe/pkg/openapi" "github.com/swipe-...
// Copyright (c) 2014-2016 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package chaincfg import ( "time" "github.com/monasuite/monad/chaincfg/chainhash" "github.com/monasuite/monad/wire" ) // genesisCoinbaseTx is the coinbase transacti...
package webtech import ( "bytes" "context" "encoding/json" "fmt" "net/http" "regexp" "runtime" "strings" "time" "text/template" "github.com/gammazero/workerpool" "github.com/linkai-io/am/am" "github.com/linkai-io/am/pkg/parsers" "github.com/rs/zerolog/log" "golang.org/x/net/html" ) const jsInjectionT...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: opencensus/proto/agent/metrics/v1/metrics_service.proto package v1 import ( fmt "fmt" v1 "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1" v11 "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1" v12 "github.co...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/feature/strategy.proto package feature 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 // T...
package cardproduct // CardProduct represent the infos from a Network. type CardProduct struct { Network string Code string Descirption string } // GetInfo is returning from the given code the infos on the card. // This will send a nil CardoProduct if not found. func GetInfo(code string) *CardProduct { ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/campaign_draft.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads/goog...
package ladoktypes import ( "encoding/xml" "strconv" "strings" ) // FeedID is the feeds id type FeedID string // trim remove "urn" func (id FeedID) trim() FeedID { return FeedID(strings.Split(string(id), ":")[2]) } func (id FeedID) int() (int, error) { i, err := strconv.Atoi(string(id)) if err != nil { retu...
package raftstore import ( "bytes" "fmt" "time" "github.com/coreos/etcd/raft" etcdraftpb "github.com/coreos/etcd/raft/raftpb" "github.com/deepfabric/beehive/metric" "github.com/deepfabric/beehive/pb" "github.com/deepfabric/beehive/pb/metapb" "github.com/deepfabric/beehive/pb/raftpb" "github.com/deepfabric/b...
/* 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...
// The MIT License // // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. // // Copyright (c) 2020 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 Soft...
package a2l import "errors" //enums used in several A2L Datatypes: type encodingEnum string const ( undefinedEncoding encodingEnum = emptyToken UTF8 encodingEnum = "UTF8" UTF16 encodingEnum = "UTF16" UTF32 encodingEnum = "UTF32" ) func parseEncodingEnum(tok *tokenGenerator)...
// Package pypi // // A client for PyPI's simple project API as described in // https://peps.python.org/pep-0503/. // // Nomenclature: // // A "project" on PyPI is the name of a collection of releases and files, and // information about them. Projects on PyPI are made and shared by other members // of the Python commun...
/* Copyright 2021. 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 un...
/* ================================================================================== Copyright (c) 2019 AT&T Intellectual Property. Copyright (c) 2019 Nokia 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 t...
package uglycharts import ( "github.com/gotk3/gotk3/cairo" "github.com/gotk3/gotk3/gtk" "image/color" "math" "strconv" ) type Chart interface { AddSeries(s Series) GetDrawingArea() *gtk.DrawingArea toLocalCoordinates(p Point) Point toRealCoordinates(p Point) Point SetTitle(title string) ShowLegend(show boo...
package quip2md import ( "fmt" "log" "strconv" "strings" "golang.org/x/net/html" ) const ZERO_WIDTH_SPACE = "\u200b" const ( UnorderedList string = "5" OrderedList string = "6" CheckedList string = "7" ) const ( Bold string = "b" Italic string = "i" Underline string = "u" Strike...
package storage import ( "context" "crypto/sha256" "database/sql" "errors" "fmt" "time" "github.com/jmoiron/sqlx" "github.com/sirupsen/logrus" "github.com/authelia/authelia/v4/internal/authentication" "github.com/authelia/authelia/v4/internal/configuration/schema" "github.com/authelia/authelia/v4/internal...
package raft // // this is an outline of the API that raft must expose to // the service (or tester). see comments below for // each of these functions for more details. // // rf = Make(...) // create a new Raft server. // rf.Start(command interface{}) (index, term, isleader) // start agreement on a new log entry ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // deprecated/deprecated.proto is a deprecated file. // package deprecated contains only deprecated messages and services. package deprecated import ( context "context" fmt "fmt" proto "github.com/akqp2019/protobuf/proto" grpc "google.golang.org/grpc" math "mat...
// Copyright 2018 The Operator-SDK 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 ...
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build freebsd || openbsd || netbsd || dragonfly || darwin // +build freebsd openbsd netbsd dragonfly darwin package fsnotify import ( "errors" "fmt" "...
package cmd import ( "bufio" "bytes" "encoding/json" "fmt" crypto "github.com/cosmos/cosmos-sdk/crypto/types" "io" "io/ioutil" "os" "path/filepath" "runtime" "sort" "strings" "github.com/pkg/errors" "github.com/spf13/cobra" cfg "github.com/tendermint/tendermint/config" tmos "github.com/tendermint/tend...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: protos/plugin/orm.proto package plugin import ( helpers "code-analyser/protos/pb/helpers" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/...
package vmware import ( "bytes" "errors" "fmt" "io/ioutil" "log" "net" "os" "os/exec" "path/filepath" "regexp" "strconv" "strings" "time" "github.com/cbednarski/lovm/core" ) // Note: See paths* for platform-specific constants const ( DHCPDateFormat = `2006/01/02 15:04:05` Identifier = "vmware" ) ...
package api import ( "encoding/json" "errors" "strconv" ) var ( // ErrNotFound is returned when the resource was not found in New Relic. ErrNotFound = errors.New("newrelic: Resource not found") ) // LabelLinks represents external references on the Label. type LabelLinks struct { Applications []int `json:"appli...
package canvas import ( "strings" "unicode" "unicode/utf8" canvasFont "github.com/tdewolff/canvas/font" "golang.org/x/image/font" "golang.org/x/image/font/sfnt" ) // TypographicOptions are the options that can be enabled to make typographic or ligature substitutions automatically. type TypographicOptions int ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common.proto package common_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 // This is a...
package terraform import ( "fmt" "log" "sort" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/configs" "github.com/hashicorp/terraform/configs/configschema" "github.com/hashicorp/terraform/dag" "github.com/hashicorp/terraform/lang" "github.com/hashicorp/t...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/resultstore/v2/file.proto package resultstore import ( fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" math "math" ) // Reference imports to suppress errors if they are not otherwi...
/*- * Copyright (c) 2016-2021, F5 Networks, 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 l...
package main import ( "bufio" "flag" "fmt" "github.com/fatih/color" "github.com/kardianos/osext" homedir "github.com/mitchellh/go-homedir" "github.com/zupzup/calories/command" "github.com/zupzup/calories/datasource" "github.com/zupzup/calories/renderer" "io/ioutil" "os" "path/filepath" "strings" ) // VER...
package internal import ( "github.com/kahing/goofys/api/common" "bytes" "context" "fmt" "io" "net" "path" "strings" "syscall" "cloud.google.com/go/storage" "github.com/jacobsa/fuse" "golang.org/x/sync/errgroup" syncsem "golang.org/x/sync/semaphore" "google.golang.org/api/googleapi" "google.golang.or...
/* Copyright 2020 The Tekton 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, softw...
package vrf_test import ( "crypto/ecdsa" "math/big" mrand "math/rand" "strings" "testing" proof2 "github.com/smartcontractkit/chainlink/core/services/vrf/proof" "github.com/ethereum/go-ethereum/eth/ethconfig" "github.com/ethereum/go-ethereum/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/core...
package mongodb import ( "sort" "testing" "time" "github.com/stretchr/testify/require" "github.com/influxdata/telegraf/testutil" ) var tags = make(map[string]string) func TestAddNonReplStats(t *testing.T) { d := NewMongodbData( &StatLine{ StorageEngine: "", Time: time.Now(), U...
package nl import ( "unsafe" ) // LinkLayer const ( LINKLAYER_UNSPEC = iota LINKLAYER_ETHERNET LINKLAYER_ATM ) // ATM const ( ATM_CELL_PAYLOAD = 48 ATM_CELL_SIZE = 53 ) const TC_LINKLAYER_MASK = 0x0F // Police const ( TCA_POLICE_UNSPEC = iota TCA_POLICE_TBF TCA_POLICE_RATE TCA_POLICE_PEAKRATE TCA_POL...
/* * Copyright 2020 Mandelsoft. All rights reserved. * This file is licensed under the Apache Software License, v. 2 except as noted * otherwise in the LICENSE file * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
package azureiothub import ( "bytes" "context" "encoding/base64" "fmt" "strings" "sync" "time" "github.com/Azure/azure-amqp-common-go/cbs" "github.com/Azure/azure-amqp-common-go/sas" "github.com/Azure/azure-amqp-common-go/uuid" servicebus "github.com/Azure/azure-service-bus-go" "github.com/pkg/errors" lo...
// +build !bootstrap // RPC-based remote cache. Similar to HTTP but likely higher performance. package cache import ( "bytes" "core" "crypto/tls" "crypto/x509" "encoding/base64" "fmt" "io/ioutil" "os" "path" "runtime" "sync/atomic" "time" "golang.org/x/net/context" "google.golang.org/grpc" "google.go...
// Copyright 2017 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// Copyright 2016 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
// Copyright 2017 GRAIL, Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package local import ( "context" "crypto/rand" "encoding/json" "fmt" "math" "os" "path/filepath" "sync" "time" "docker.io/go-docker" "docker.io/go-d...
package main import ( "os" "fmt" "time" "math/rand" "log" "os/exec" "bufio" "strings" ) //Clears terminal screen func clearscreen() { c := exec.Command("clear") c.Stdout = os.Stdout c.Run() } // Reads in words from dictionary text file and stores in map func readDictionary() ma...
package docker import ( "context" "encoding/json" "fmt" "net/http" "path" "strings" "github.com/fnproject/fn/api/agent/drivers" "github.com/fnproject/fn/api/common" "github.com/fnproject/fn/api/models" "github.com/fsouza/go-dockerclient" "github.com/sirupsen/logrus" "go.opencensus.io/trace" ) // A cooki...
package main import ( "context" "fmt" "net/http" "os" "runtime" "strings" "github.com/doitintl/kube-secrets-init/cmd/secrets-init-webhook/registry" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" log "github.com/sirupsen/logrus" whhttp "github.co...
package e2e import ( "context" "fmt" cqlclient "github.com/datastax/go-cassandra-native-protocol/client" "github.com/datastax/go-cassandra-native-protocol/primitive" "github.com/k8ssandra/k8ssandra-operator/apis/k8ssandra/v1alpha1" reaperapi "github.com/k8ssandra/k8ssandra-operator/apis/reaper/v1alpha1" "github...
package handler import ( "bufio" "crypto/sha256" "encoding/hex" "fmt" "io/ioutil" "net" "os" "path/filepath" "regexp" "strings" "time" "github.com/GeertJohan/yubigo" "github.com/glauth/glauth/pkg/config" "github.com/glauth/glauth/pkg/stats" "github.com/go-logr/logr" "github.com/nmcclain/ldap" "github...