text
stringlengths
5.51k
28.1k
// MIT License // // (C) Copyright [2020-2021] Hewlett Packard Enterprise Development LP // // 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 limitatio...
package stream import ( "bufio" "bytes" "fmt" "github.com/rabbitmq/rabbitmq-stream-go-client/pkg/logs" "github.com/rabbitmq/rabbitmq-stream-go-client/pkg/message" "sync" "sync/atomic" "time" ) type ConfirmationStatus struct { message message.StreamMessage producerID uint8 publishingId int64 confirm...
package main import ( "code.google.com/p/freetype-go/freetype/truetype" "code.google.com/p/rog-go/canvas" "code.google.com/p/rog-go/values" "code.google.com/p/x-go-binding/ui" "code.google.com/p/x-go-binding/ui/x11" "fmt" "image" "image/color" "io/ioutil" "log" "math" "math/rand" "os" "time" ) // to add...
// Package vm contains the RiSC-32 VM. // // The architecture of this VM is inspired to that of the RiSC-16 // architecture <https://user.eng.umd.edu/~blj/RiSC/>. // // Instruction format // // Each instruction is 32 bits wide. We have three instructions formats: // // 1. RRR (register, register, register); // 2. RRI (...
// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: auth.proto package proto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/pr...
/* posts parses blog posts and generates the static output of the blog. To generate the output call BuildPosts() */ package posts import ( "container/list" "fmt" "io" "io/ioutil" "os" "path/filepath" "regexp" "sort" "strings" "sync" "time" "github.com/gomarkdown/markdown" "github.com/gomarkdown/markdo...
// Copyright 2020 WHTCORPS INC, 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...
// Copyright 2020 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Package arcappcompat will have tast tests for android apps on Chromebooks. package arcappcompat import ( "context" "time" "chromiumos/tast/erro...
package encoders import ( "fmt" //"github.com/cznic/mathutil" //"github.com/zacg/floats" "github.com/nupic-community/htm" "github.com/nupic-community/htm/utils" "github.com/zacg/ints" "math" ) /* n -- The number of bits in the output. Must be greater than or equal to w radius -- Two inputs separated by more ...
package v1 /** * Copyright 2015 <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
package cmd import ( "bufio" "crypto/md5" "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "reflect" "strings" "github.com/pkg/errors" "code.cloudfoundry.org/cf-operator/pkg/bosh/bpm" "code.cloudfoundry.org/cf-operator/pkg/bosh/manifest" "github.com/spf13/cobra" "github.com/spf13/viper" btg "git...
package client import ( "errors" "fmt" "os" "strconv" "strings" "tsunami" ) /*------------------------------------------------------------------------ * int Command_close(Command_t *Command, session_t *session) * * Closes the given open Tsunami control session if it's active, thus * making it invalid for f...
// meek-client-torbrowser is an auxiliary program that helps with connecting // meek-client to meek-http-helper running in Tor Browser. // // Sample usage in torrc (exact paths depend on platform): // ClientTransportPlugin meek exec ./meek-client-torbrowser --log meek-client-torbrowser.log -- ./meek-client --url=https...
package main import ( "bytes" "encoding/binary" "encoding/gob" "encoding/json" "flag" "fmt" "log" "os" "os/signal" "runtime/pprof" "time" "github.com/uber-common/cpustat/lib" "github.com/uber/tchannel-go" "github.com/uber/tchannel-go/raw" ) func main() { var fetchCount = flag.Int("c", 300, "number of ...
package countries // TypeCurrencyCode for Typer interface const TypeCurrencyCode string = "countries.CurrencyCode" // TypeCurrency for Typer interface const TypeCurrency string = "countries.Currency" // Currencies. Two codes present, for example CurrencyUSDollar == CurrencyUSD == 840. const ( CurrencyUnknown ...
package telemetry import ( "encoding/json" "errors" "fmt" "io" "io/ioutil" "reflect" ) // TelemetryEventType represents the type of a telemetry event type EventType int func findIndex(key string, possibleKeys []string) int { for idx, possibleKey := range possibleKeys { if key == possibleKey { return idx ...
package shardkv import "labrpc" import "raft" import "sync" import "labgob" import "log" import "time" import "bytes" import "shardmaster" import "strconv" type Op struct { Ch chan (interface{}) Req interface{} } var shardKvOnce sync.Once type ShardKV struct { mu sync.Mutex me int rf ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: uniqueidentifier/integerbased.proto package uniqueidentifier import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ...
// Copyright (c) 2019, Sylabs Inc. All rights reserved. // This software is licensed under a 3-clause BSD license. Please consult the // LICENSE.md file distributed with the sources of this project regarding your // rights to use or distribute this software. package sympi import ( "bufio" "fmt" "io/ioutil" "log" ...
package main import "fmt" import "strings" import "flag" import "log" import "os" import "io/ioutil" import "bufio" import "time" import "runtime" import "math/rand" import "path/filepath" import "sync" import "genomics/common" import "genomics/bed" import "genomics/storage" var nthreads int var plat_threads int var...
package main import ( "fmt" "image" "image/draw" _ "image/png" "log" "math" "os" "runtime" "strings" "github.com/go-gl/gl/v4.1-core/gl" "github.com/go-gl/glfw/v3.2/glfw" "github.com/go-gl/mathgl/mgl32" ) const windowWidth = 800 const windowHeight = 600 //camera init var ( cameraPos = mgl32.Vec3([3]fl...
/* Copyright IBM Corp. 2018 All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package cluster import ( "context" "math" "math/rand" "reflect" "sync" "sync/atomic" "time" "github.com/hyperledger/fabric-protos-go/common" "github.com/hyperledger/fabric-protos-go/orderer" "github.com/jxu86/fabric-gm...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: ligato/linux/linux.proto package linux import ( interfaces "go.ligato.io/vpp-agent/v3/proto/ligato/linux/interfaces" l3 "go.ligato.io/vpp-agent/v3/proto/ligato/linux/l3" protoreflect "google...
// 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 batch implements support for running batches of reflow // (stateful) evaluations. The user specifies a reflow program and // enumerates each run by wa...
package main import ( "os" "fmt" "log" "time" "strings" "runtime" "github.com/aws/aws-lambda-go/events" "github.com/aws/aws-lambda-go/lambda" "encoding/json" "net/http" "bytes" "io/ioutil" "strconv" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go...
package route import ( "context" "crypto/tls" "crypto/x509" "encoding/pem" "errors" "fmt" "net/http" "strings" "time" // k8s corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachine...
package db import ( "context" _ "embed" "fmt" "io" "sort" "strings" "time" "github.com/rs/zerolog/log" "gitlab.com/thorchain/midgard/internal/util/jobs" "gitlab.com/thorchain/midgard/internal/util/timer" ) //go:embed aggregates.sql var aggDDLPrefix string const ( aggregatesRefreshInterval = 1 * time.Minu...
// Package eval executes the condition for an alert definition, evaluates the condition results, and // returns the alert instance states. package eval import ( "context" "fmt" "runtime/debug" "sort" "strconv" "strings" "time" "github.com/grafana/grafana/pkg/components/simplejson" "github.com/grafana/grafana...
// Copyright (c) 2013 Couchbase, 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 w...
// Package cosmosclient provides a standalone client to connect to Cosmos SDK chains. package cosmosclient import ( "context" "encoding/hex" "fmt" "io" "os" "path/filepath" "strings" "sync" "time" "github.com/cenkalti/backoff" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flag...
// Copyright (c) 2014-2017 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. // NOTE: This file is intended to house the RPC commands that are supported by // a kaspa rpc server. package model import ( "encoding/json" "fmt" ) // ConnectCmd d...
package db import ( "errors" "log" "runtime" "sort" "strings" "sync" "time" "github.com/server-may-cry/highloadcup_18/accounthelper" "github.com/server-may-cry/highloadcup_18/structures" ) // const ( // minBirthYear = 1950 // maxBirthYear = 2005 // ) type Storage struct { storage []compressedAccount...
package collectors // import "bosun.org/cmd/scollector/collectors" import ( "bufio" "encoding/json" "fmt" "net" "os" "path/filepath" "regexp" "runtime" "sort" "strings" "sync" "time" "unicode" "unicode/utf8" "bosun.org/cmd/scollector/conf" "bosun.org/metadata" "bosun.org/opentsdb" "bosun.org/slog" ...
// Code generated by tutone: DO NOT EDIT package types // OpenInstallationCategory - Categorization of a Quickstart type OpenInstallationCategory string var OpenInstallationCategoryTypes = struct { // COMMUNITY category COMMUNITY OpenInstallationCategory // NEWRELIC category NEWRELIC OpenInstallationCategory // ...
package evergreen import ( "os" "time" "github.com/mongodb/grip" "github.com/pkg/errors" ) const ( User = "mci" GithubPatchUser = "github_pull_request" HostRunning = "running" HostTerminated = "terminated" HostUninitialized = "initializing" HostBuilding = "building" HostS...
// Copyright 2016-2021, Pulumi 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...
package parser_test import ( "math" "regexp" "testing" "github.com/lyraproj/dgo/stringer" "github.com/lyraproj/dgo/internal" "github.com/lyraproj/dgo/dgo" require "github.com/lyraproj/dgo/dgo_test" "github.com/lyraproj/dgo/tf" "github.com/lyraproj/dgo/typ" "github.com/lyraproj/dgo/vf" ) func TestParse_d...
package state import ( "bytes" "context" "errors" "fmt" "time" abci "github.com/tendermint/tendermint/abci/types" cryptoenc "github.com/tendermint/tendermint/crypto/encoding" tmstate "github.com/tendermint/tendermint/proto/tendermint/state" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" "...
package orchestrator import ( "context" "fmt" "sort" "strings" "sync" "time" "github.com/rs/zerolog" "github.com/viciious/go-tarantool" "github.com/shmel1k/qumomf/internal/metrics" "github.com/shmel1k/qumomf/internal/quorum" "github.com/shmel1k/qumomf/internal/util" "github.com/shmel1k/qumomf/internal/vs...
package config // Package the default resources into binary data that is embedded in centrifuge // executable // //go:generate go-bindata -pkg resources -prefix "../../" -o ../resources/data.go ../build/configs/... import ( "bytes" "fmt" "io/ioutil" "math/big" "os" "reflect" "strings" "sync" "time" "github...
// Copyright (c) 2021 PaddlePaddle 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...
package base import ( "errors" "testing" "github.com/spiegel-im-spiegel/go-cvss/cvsserr" ) func TestDecodeError(t *testing.T) { testCases := []struct { vector string err error }{ {vector: "CVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:N", err: nil}, {vector: "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:N...
package rwtxt import ( "bytes" "compress/gzip" "crypto/sha256" "fmt" "html/template" "io" "net/http" "net/url" "strings" "time" log "github.com/cihub/seelog" "github.com/schollz/rwtxt/pkg/db" "github.com/schollz/rwtxt/pkg/utils" ) const introText = "This note is empty. Click to edit it." var languageCS...
package parquet import ( "fmt" "io" ) // RowGroup is an interface representing a parquet row group. From the Parquet // docs, a RowGroup is "a logical horizontal partitioning of the data into rows. // There is no physical structure that is guaranteed for a row group. A row // group consists of a column chunk for ea...
package widget import ( img "image" "image/color" "math" "strings" "sync/atomic" "time" "github.com/blizzy78/ebitenui/event" "github.com/blizzy78/ebitenui/image" "github.com/blizzy78/ebitenui/input" "github.com/hajimehoshi/ebiten/v2" "golang.org/x/image/font" ) type TextInput struct { ChangedEvent *event...
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 // // Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. // package contrailCni import ( "bytes" "encoding/json" "fmt" "net/http" "strconv" "strings" "../common" log "../logging" "github.com/containernetworking/cni/pkg/skel" "g...
package api import ( "bytes" "encoding/json" "fmt" "io" "strconv" "strings" "time" "github.com/mitchellh/mapstructure" ) const ( ServiceDefaults string = "service-defaults" ProxyDefaults string = "proxy-defaults" ServiceRouter string = "service-router" ServiceSplitter string = "service-sp...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package base64 implements base64 encoding as specified by RFC 4648. package base64 import ( "encoding/binary" "io" "strconv" ) /* * Encodings */ // A...
// Copyright 2014 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// // Copyright (c) 2014-2019 Cesanta Software Limited // 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 // // Un...
// 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...
package dynamodb import ( "bytes" "context" "math" "strconv" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/dynamodb" "github.com/aws/aws-sdk-go-v2/service/dynamodb/dynamodbiface" "github.com/golang/protobuf/proto" dynamodbutil "github.com/kinecosystem/agora-common/aws/dynam...
/* Copyright 2018 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, so...
package cliconfig import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "os" "path/filepath" "github.com/zclconf/go-cty/cty" ctyjson "github.com/zclconf/go-cty/cty/json" svchost "github.com/hashicorp/terraform-svchost" svcauth "github.com/hashicorp/terraform-svchost/auth" "github.com/hashicorp/terrafo...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright 2020 Coinbase, 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 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. // Copyright 2011 The Snappy-Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the SNAPPY-G...
package pmdmanager import ( "context" "errors" "fmt" "strconv" "strings" "sync" api "github.com/intel/pmem-csi/pkg/apis/pmemcsi/v1beta1" pmemerr "github.com/intel/pmem-csi/pkg/errors" pmemexec "github.com/intel/pmem-csi/pkg/exec" pmemlog "github.com/intel/pmem-csi/pkg/logger" "github.com/intel/pmem-csi/pkg...
/* 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...
// Copyright 2019 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package netlink import ( "encoding/binary" "errors" "fmt" "sync" "github.com/meandrewdev/periph" "github.com/meandrewdev/periph/conn/...
package client import ( "bytes" "encoding/json" "io/ioutil" "net/http" "net/http/httputil" "net/url" "strconv" "strings" "testing" "time" "github.com/tidwall/gjson" "github.com/matrix-org/complement/internal/b" ) // RequestOpt is a functional option which will modify an outgoing HTTP request. // See fun...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: test/test.proto package test import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) ...
package tor import ( "bytes" "crypto/hmac" "crypto/rand" "crypto/sha256" "encoding/hex" "errors" "fmt" "io/ioutil" "net/textproto" "strconv" "strings" "sync/atomic" ) const ( // success is the Tor Control response code representing a successful // request. success = 250 // invalidNumOfArguments is th...
/* Copyright (c) 2013, <NAME> <<EMAIL>> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRAN...
// Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package conf import ( "fmt" "net/mail" "net/url" "os" "path/filepath" "strconv" "strings" "time" _ "github.com/go-macaron/cache/memcache" _ "githu...
// Copyright 2012 The go-gl 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 ( "flag" "runtime" "github.com/banthar/Go-SDL/sdl" "github.com/go-gl/gl" ) var iterations *int = flag.Int("i", 1024, "number of i...
// Copyright © 2022, Cisco Systems Inc. // 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. package manage import ( "cto-github.cisco.com/NFV-BU/go-msx/integration" "cto-github.cisco.com/NFV-BU/go-msx/types" "encoding/js...
/* * Adyen API * * Contact: <EMAIL> * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package common import ( "bytes" "context" "encoding/json" "encoding/xml" "errors" "fmt" "io" _ioutil "io/ioutil" "log" "mime/multipart" "net/http" "net/http/httputil" "net/url" "os" "path/file...
package kubernetes import ( "fmt" "strings" log "github.com/sirupsen/logrus" "github.com/zalando/skipper/dataclients/kubernetes/definitions" "github.com/zalando/skipper/eskip" "github.com/zalando/skipper/loadbalancer" ) const backendNameTracingTagName = "skipper.backend_name" // TODO: // - consider catchall ...
package parser import ( "bufio" "bytes" "fmt" "io" "log" "os" "os/user" "path/filepath" "regexp" "strconv" "strings" "github.com/fatih/color" "github.com/olekukonko/tablewriter" ) // Parser type definition type Parser struct { path string text string filter string lines int page int regex ...
/* 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 sanitise import ( "regexp" "strconv" "strings" "unicode" ) func Phone(input string, defaultCountry string) string { log.Printf("Input: %v , DefaultCountry: %v", input, defaultCountry) output := removeAfterAlphaSlash(input) output = trimSpace(output) hasPrefix := hasPrefix(output) output = removeC...
// Package markdown provides a Markdown renderer. package markdown import ( "bufio" "bytes" "fmt" "go/format" "io" "io/ioutil" "strings" "github.com/mattn/go-runewidth" "github.com/shurcooL/go/indentwriter" "gopkg.in/russross/blackfriday.v2" ) var _ blackfriday.Renderer = (*markdownRenderer)(nil) type mar...
// Copyright © 2020, 2021 Weald Technology Trading. // 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...
// Copyright 2019, OpenTelemetry 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 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright (c) 2021 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package pi import ( "bytes" "encoding/base64" "encoding/hex" "encoding/json" "fmt" "io" "sort" "strconv" "strings" "time" "github.com/pkg/errors" backend "github...
// I would be grateful if I had the chance to see the whole work-in-progress in a codebase when I started. // You have the chance to learn faster nowdays, don't underestimate that, that's the only reason that this "_future" folder exists now. // // // The whole "router" package is a temp place to test my ideas and impl...
// Copyright 2015 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...
// Code generated by msgraph-generate.go DO NOT EDIT. package msgraph import "time" // MobileApp An abstract class containing the base properties for Intune mobile apps. type MobileApp struct { // Entity is the base model of MobileApp Entity // DisplayName The admin provided or imported title of the app. Display...
package prometheus import ( "context" "fmt" "regexp" "strings" "sync" "time" "github.com/prometheus/client_golang/api/prometheus/v1" "github.com/prometheus/common/model" "github.com/kiali/kiali/config" "github.com/kiali/kiali/prometheus/internalmetrics" ) var ( invalidLabelCharRE = regexp.MustCompile(`[^...
/* * Copyright (c) 2018 VMware, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, ...
// Copyright 2015 The Vanadium 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" "flag" "fmt" "io" "os" "regexp" "sort" "strings" "sync" "sync/atomic" "time" v23 "v.io/v23" "v.io/v23/context...
// Copyright (c) 2018 The Jaeger 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 ( "encoding/json" "fmt" "log" "os" "path/filepath" "strings" "syscall" "time" "github.com/Necroforger/dgrouter/exrouter" "github.com/bwmarrin/discordgo" "github.com/fatih/color" "github.com/hako/durafmt" "github.com/kennygrant/sanitize" ) // Multiple use messages to save space and ma...
/* Package uds provides a server and client for Unix Domain Sockets. This provides a lot of convenience around the "net" package for handling all the file setup and detecting closed connections. It also provides the ability to authenticate connections. The package currently only works for Linux/Darwin, as those are th...
// Copyright (c) 2016 ECS Team, Inc. - All Rights Reserved // https://github.com/ECSTeam/cloudfoundry-top-plugin // // 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.or...
// Copyright (c) 2018 ContentBox Authors. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package chain import ( "math" "runtime" "strings" "time" "github.com/BOXFoundation/boxd/core" "github.com/BOXFoundation/boxd/core/txlogic" "github.com/BOXFoundation...
// Package types contains helper functions for arbitrary types (deep less, // deep equal, deep sort). package types import ( "fmt" "math" "reflect" "sort" "unsafe" ) // Less returns whether l is deeply less than r. The input values must have the // same type, or this will panic. // // Structs are deeply less if ...
package keeper import ( "fmt" "time" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/osmosis-labs/osmosis/v7/x/incentives/types" lockuptypes "github.com/osmosis-labs/osmosis/v7/x/lockup/types" db "github.com/tendermint/tm-db" ) func (k Keeper) getDistributedCoinsFromGauges(gauges []types.Gauge) sdk.Coins ...
// Package api provides the local go-spacemesh API endpoints. e.g. json-http and grpc-http2 package api import ( "encoding/hex" "fmt" "github.com/golang/protobuf/ptypes/empty" "github.com/spacemeshos/go-spacemesh/activation" "github.com/spacemeshos/go-spacemesh/api/pb" "github.com/spacemeshos/go-spacemesh/common...
package types import ( "bytes" "crypto/sha512" "encoding/base64" "fmt" "github.com/provenance-io/provenance/x/metadata/types/p8e" "github.com/btcsuite/btcd/btcec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/gogo/protobuf/proto" "github.com/google/uuid" tmcrypt "github.com/tendermint/tendermint/cry...
package goka import ( "context" "errors" "fmt" "strings" "sync" "time" "github.com/Shopify/sarama" "github.com/lovoo/goka/logger" "github.com/lovoo/goka/multierr" "github.com/lovoo/goka/storage" ) const ( // ProcStateIdle indicates an idling partition processor (not started yet) ProcStateIdle State = iot...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.8.0 // source: protobuf/users/model.proto package users import ( proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protob...
package abcconfig import ( "fmt" "reflect" "strings" "time" "github.com/friendsofgo/errors" "github.com/kat-co/vala" "github.com/spf13/pflag" "github.com/spf13/viper" ) // Config object used to initialize configuration type Config struct { // The config file path, overwritten in tests to point to a tmp file...
package log import ( "fmt" "os" "path/filepath" "runtime" "sync" "sync/atomic" "time" "unsafe" "github.com/lrita/cache" "github.com/lrita/ratelimit" ) // ExitOnFatal decides whether or not to exit when fatal log printing. var ExitOnFatal = true type Logger interface { // New return a new log handler whic...
package udt import ( "time" "github.com/PeernetOfficial/core/udt/packet" ) type udtSocketRecv struct { // channels sockClosed <-chan struct{} // closed when socket is closed recvEvent <-chan recvPktEvent // receiver: ingest the specified packet. Sender is readPacket, receiver is goReceiveEvent messageIn...
package main import ( "bufio" "encoding/json" "flag" "fmt" "io" "os" "github.com/ANSSI-FR/transdep/dependency" dep_msg "github.com/ANSSI-FR/transdep/messages/dependency" "github.com/ANSSI-FR/transdep/graph" "strings" "github.com/hashicorp/go-immutable-radix" "github.com/ANSSI-FR/transdep/tools/radix" "git...
package cloudasset import ( "bufio" "bytes" "context" "encoding/json" "fmt" "io" "io/ioutil" "os" "os/exec" "path" "strconv" "strings" "text/template" "time" "cloud.google.com/go/storage" "github.com/cloud-ace/terraformit-gcp/utils" "github.com/google/oauth2l/sgauth" "github.com/google/oauth2l/util"...
package raft import ( "bytes" crand "crypto/rand" "labgob" "labrpc" "log" "math/big" "math/rand" "sync" "time" ) const AppendEntriesInterval = time.Duration(100 * time.Millisecond) // sleep time between successive AppendEntries call const ElectionTimeout = time.Duration(1000 * time.Millisecond) // seed rand...