text
stringlengths
5.51k
28.1k
package function import ( "encoding/json" "fmt" sdk "github.com/s8sg/faas-flow/sdk" "io/ioutil" "log" "net/http" "net/url" "os" "strings" ) const ( GRAPH_NODESPEC = 0 GRAPH_RANKSPEC = 0 GRAPH_PAD = 1 GRAPH_PACK = 1 NODE_CLUSTER_BORDER_COLOR = "grey" NODE_CLUSTER_STYLE = "rounded" OPE...
// // 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 ...
// Package gopher is used to start and change the core settings for the Gopher Game Server. The // type ServerSettings contains all the parameters for changing the core settings. You can either // pass a ServerSettings when calling Server.Start() or nil if you want to use the default server // settings. package gopher ...
package gallery import ( "bytes" "context" "fmt" stdimage "image" "io" "path/filepath" "sort" "strings" "sync" "time" "github.com/google/uuid" "github.com/modernice/goes/event" "github.com/modernice/nice-cms/internal/concurrent" "github.com/modernice/nice-cms/media" "github.com/modernice/nice-cms/media...
// 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...
// Package app // // @author: xwc1125 package app import ( "container/heap" "errors" "github.com/chain5j/chain5j-pkg/collection/queues/queue" "github.com/chain5j/chain5j-pkg/math" "github.com/chain5j/chain5j-protocol/models" "github.com/chain5j/chain5j-stateApp" "github.com/chain5j/logger" "math/big" "sort" ...
// Copyright 2015 <NAME>. 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 gray14 implements functions specifically to manipulate image.Gray16 // containing a 14 bits intensity image. package gray14 import ( "fmt" ...
/* * Copyright (c) 2020 Huawei Technologies Co., Ltd. * isula-transform is licensed under the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR * IMPLIED, INCLUDIN...
// Package secp256k1 is an implementation of the kyber.{Group,Point,Scalar} //////////////////////////////////////////////////////////////////////////////// // XXX: Do not use in production until this code has been audited. //////////////////////////////////////////////////////////////////////////////// // interf...
/* Copyright 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
package xlate var currentLanguage string var xlateStrings map[string]string // SetLanguage sets active language func SetLanguage(newLanguage string) { currentLanguage = newLanguage if currentLanguage == "fi" { xlateStrings = map[string]string{ // Main window, buttons "Start Exam Server": "K...
package minersc import ( cstate "0chain.net/chaincore/chain/state" "0chain.net/chaincore/config" "0chain.net/core/datastore" "math/rand" "testing" "0chain.net/chaincore/block" "0chain.net/chaincore/state" "github.com/stretchr/testify/require" ) //prime numbers const BlockReward, TransactionFee state.Balance...
package metronome import ( "encoding/json" "errors" "fmt" "regexp" ) var whitespaceRe = regexp.MustCompile(`\s+`) var errConstraintViol = errors.New("Bad constraint. Must be EQ,LIKE,UNLIKE") var errMountViol = errors.New("Mount point must designate RW,RO") var errContainerPathViol = errors.New("Bad container pa...
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: authz.proto package authz_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 c...
package ledge import ( "bufio" "io" "sync" "time" ) const ( // DefaultColumns is the default number of columns to use for the V3 text marshaller. DefaultColumns = 100 ) var ( // DebugFilter is a Filter that only includes Entries with a Level of at least Level_DEBUG. DebugFilter = newLevelFilter(Level_DEBUG) ...
package mmail import ( "bytes" "crypto/tls" "encoding/base64" "fmt" "log" "mime" "net/mail" "os" "regexp" "strings" "time" "unicode/utf8" "github.com/jhillyerd/go.enmime" "github.com/mattermost/platform/model" "github.com/mxk/go-imap/imap" "github.com/paulrosania/go-charset/charset" _ "github.com/pau...
// Copyright 2019 The LUCI 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...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
package main import ( "context" "errors" "log" "sort" "sync" "time" "github.com/incognitochain/incognito-chain/common" "github.com/incognitochain/incognito-chain/common/base58" "github.com/incognitochain/incognito-chain/incognitokey" "github.com/incognitochain/incognito-chain/privacy/coin" "github.com/kamv...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: app/mconf/pb/service.proto package mconf import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" ) ...
// prototype (not used) // TODO: delete all package rlserver import ( "sync" "roolet/options" "roolet/helpers" "roolet/rllogger" "roolet/protocol" //"roolet/connectionsupport" "bufio" "fmt" "io" "net" "net/http" "syscall" "os" "os/signal" "time" "github...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: moc_cloudagent_identity.proto package security import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "github.com/microsoft/moc/rpc/common" grpc "google.golang.org/grpc...
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package fidlgen_cpp import ( "fmt" "strings" "go.fuchsia.dev/fuchsia/tools/fidl/lib/fidlgen" ) const transportNamespaceMarker = "[TRANSPORT]" var zx...
// Copyright 2019 Yunion // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
/* Copyright 2019 The Vitess 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, soft...
package harmony import ( "encoding/json" "fmt" "github.com/skwair/harmony/discord" "github.com/skwair/harmony/voice" ) const ( eventHello = "HELLO" eventReady = "READY" eventResumed = "RESUMED" eventInvalidSession = "INVALID_SESSION" e...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
package main import ( "flag" "fmt" "image" "image/color" "log" "os" "runtime" "unicode" "github.com/go-gl/gl/v3.3-core/gl" "github.com/qeedquan/go-media/glew" "github.com/qeedquan/go-media/image/ttf" "github.com/qeedquan/go-media/math/f64" "github.com/qeedquan/go-media/math/mathutil" "github.com/qeedqua...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: yandex/cloud/billing/v1/billable_object.proto package billing import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ...
// This code is available on the terms of the project LICENSE.md file, // also available online at https://blueoakcouncil.org/license/1.0.0. package book import ( "bytes" "container/heap" "fmt" "sort" "sync" "decred.org/dcrdex/dex/order" "decred.org/dcrdex/server/account" ) type orderEntry struct { order ...
package awsresourcemanager import ( "encoding/base64" "errors" log "github.com/Sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" "strings" ) // We'...
package session import ( "context" "math/rand" "time" lru "github.com/hashicorp/golang-lru" bsgetter "github.com/ipfs/go-bitswap/getter" notifications "github.com/ipfs/go-bitswap/notifications" bssd "github.com/ipfs/go-bitswap/sessiondata" blocks "github.com/ipfs/go-block-format" cid "github.com/ipfs/go-cid"...
package models import "time" type List struct { Id *string `json:"id,omitempty"` // Identity of the user, device, or application which created the item. Read-only. CreatedBy *IdentitySet `json:"createdBy,omitempty"` // Date and time of item creation. Read-only. CreatedDateTime *time.Time `json:"createdDateTime,o...
package main import ( "fmt" "github.com/gertd/go-pluralize" "github.com/iancoleman/strcase" "io/ioutil" "log" "os" "path" "strings" ) type KotlinClass struct { table *Table Name string Annotations []string Fields []*KotlinField PKFields []*KotlinField UniqueFields []*KotlinFiel...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/securitycenter/v1p1beta1/notification_config.proto package securitycenter import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress ...
package server import ( "encoding/json" "fmt" "io/ioutil" "os" "strconv" "strings" "time" apiv1 "k8s.io/api/core/v1" "github.com/nmarus/autoscaler/vsphere-autoscaler/constantes" "github.com/nmarus/autoscaler/vsphere-autoscaler/types" "github.com/nmarus/autoscaler/vsphere-autoscaler/utils" "github.com/nma...
// (c) 2019-2020, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package networking // #include "salticidae/network.h" // bool checkPeerCertificate(msgnetwork_conn_t *, bool, void *); // void unknownPeerHandler(netaddr_t *, x509_t *, void *); // void peerHandler(peernetwork_conn_t *,...
package test import ( "fmt" v "github.com/abelfletcher/goversion" "strconv" "testing" ) func TestParsing(t *testing.T) { newVersion := func(maj int, min int, pat int, hrc bool, rc int, hb bool, beta int) *v.Version { s := "" s += strconv.Itoa(maj) + "." + strconv.Itoa(min) + "." + strconv.Itoa(pat) if h...
package execute import ( "fmt" "os" "path/filepath" "strings" "time" "github.com/pingcap/ticat/pkg/builtin" "github.com/pingcap/ticat/pkg/cli/core" "github.com/pingcap/ticat/pkg/cli/display" "github.com/pingcap/ticat/pkg/utils" ) type ExecFunc func(cc *core.Cli, flow *core.ParsedCmds, env *core.Env) bool t...
package ghostferry import ( "encoding/json" "errors" "fmt" "html/template" "net/http" "os/exec" "path/filepath" "sort" "sync" "time" "github.com/gorilla/mux" "github.com/sirupsen/logrus" ) type ControlServerTableStatus struct { TableName string PaginationKeyName string Stat...
package main import ( "crypto/md5" "encoding/hex" "encoding/json" "fmt" "io" "kara" "model" "net/http" "os" "os/exec" "sync" "time" "github.com/labstack/echo" "github.com/nareix/joy4/av" "github.com/nareix/joy4/av/avutil" "github.com/nareix/joy4/av/pktque" "github.com/nareix/joy4/av/pubsub" "github....
// NOTE: THIS API IS UNSTABLE RIGHT NOW. package neutrino import ( "fmt" "sync" "sync/atomic" "time" "github.com/lightninglabs/neutrino/filterdb" "github.com/roasbeef/btcd/blockchain" "github.com/roasbeef/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/wire" "github.com/roasbeef/btcutil" "github.com/roa...
// Copyright 2019 Kaleido // 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, s...
package checker import "fmt" type bindings struct { Parms map[*ParmDef]*ParmDef Locals map[*LocalDef]*LocalDef Caps map[*BlockCap]*BlockCap Types map[*TypeParm]Type Funcs map[*FuncDecl]Func } func subFuncInst(inst *FuncInst) { bindings := bindings{ Parms: make(map[*ParmDef]*ParmDef), Locals: make(map...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: go.chromium.org/luci/server/cmd/statsd-to-tsmon/config/config.proto package config 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...
package alternative import ( "fmt" "net" "net/http" "net/url" "strings" "sync" "time" "k8s.io/apimachinery/pkg/util/clock" utilerrors "k8s.io/apimachinery/pkg/util/errors" utilnet "k8s.io/apimachinery/pkg/util/net" "k8s.io/klog/v2" netutils "k8s.io/utils/net" ) const ( blockPeriod = 20 * ti...
// Package generator code generator module for protoconf package generator import ( "fmt" "log" "path/filepath" "reflect" "strings" "github.com/golang/protobuf/proto" "github.com/yoozoo/protoapi/generator/data" "github.com/yoozoo/protoapi/util" // this is to let the output plugins initialize themselves and...
package service import ( "encoding/json" "github.com/cihub/seelog" "github.com/cloudfoundry-community/gogobosh" "github.com/influxdata/influxdb1-client/v2" "github.com/jinzhu/gorm" "kr/paasta/monitoring/paas/dao" "kr/paasta/monitoring/paas/model" "kr/paasta/monitoring/paas/util" "kr/paasta/monitoring/utils" ...
package smtpd import ( "bufio" "crypto/tls" "fmt" "io" "net" "os" "regexp" "strconv" "strings" "time" "github.com/fitraditya/surelin-smtpd/config" "github.com/fitraditya/surelin-smtpd/log" ) var fromRegex = regexp.MustCompile("(?i)^FROM:\\s*<((?:\\\\>|[^>])+|\"[^\"]+\"@[^>]+)>( [\\w= ]+)?$") const ( //...
// This program exports Microsoft LAPS(Local Administrator Password Solution) // managed computer/login information to an 1Password vault as replacement to // the LAPS-UI programm package main import ( "errors" "flag" "fmt" "math" "os" "strconv" "strings" "time" "github.com/1Password/connect-s...
// Copyright 2019 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-2021, Alibaba Group Holding 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...
/* 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 newsrover import ( "bufio" "bytes" "compress/flate" "crypto/tls" "fmt" "io" "io/ioutil" "log" "net" "net/textproto" "os" "strconv" "strings" "sync" "time" ) type RoverConfig struct { Host string `json:"host"` SSL bool `json:"use_ssl"` Group string `json:"newsgroup"` AuthUser string `j...
//node 1 package main import ( "log" "fmt" "time" "os" "strings" "strconv" "net/rpc" "./govec" // "sync" ) // args in get(args) type GetArgs struct { Key string // key to look up VStamp []byte // vstamp(nil) } // args in put(args) type PutArgs struct { Key string // key to associate value with Val ...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package cloudfirewall import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) type GetControlPoliciesPolicy struct { // Th...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/maps/routes/v1/compute_route_matrix_request.proto package routes import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotat...
package profiles import ( "fmt" "log" "os" "reflect" "runtime" "strings" "sync" "time" "github.com/rzh/hammer.mongo/stats" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" ) const ( SYSBENCH_POINT_SELECTS = iota SYSBENCH_POINT_SELECTS_AGG = iota SYSBENCH_SIMPLE_RANGES = iota SYSBENCH_SIMPLE_RAN...
package engine import ( "context" "encoding/base64" "errors" "fmt" "sync" dt "github.com/filecoin-project/go-data-transfer" "github.com/filecoin-project/go-legs" "github.com/filecoin-project/go-legs/dtsync" "github.com/filecoin-project/go-legs/httpsync" provider "github.com/filecoin-project/index-provider" ...
package helmfile import ( "fmt" "github.com/broadinstitute/thelma/internal/thelma/render/helmfile/argocd" "github.com/broadinstitute/thelma/internal/thelma/render/helmfile/stateval" "github.com/broadinstitute/thelma/internal/thelma/render/resolver" "github.com/broadinstitute/thelma/internal/thelma/state/api/terra...
package runtime import ( "context" "encoding/json" "fmt" "html/template" "io/ioutil" "net/http" "os" "path" "strconv" "time" dockertypes "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" "github.com/docker/docker/client" "github.com/go-logr/logr" "github.com/joewalnes/...
/* Copyright 2018 The Service Fabrik 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 writi...
// Copyright 2020 PingCAP, 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 i...
// Copyright 2009 <NAME> <<EMAIL>> All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* This package provides an event based IRC client library. It allows to register callbacks for the events you need to handle. Its features include handling s...
// Copyright DataStax, Inc. // Please see the included license file for details. package v1beta1 import ( "encoding/json" "fmt" "github.com/Jeffail/gabs" "github.com/pkg/errors" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "github.com/datastax/cas...
package start import ( "errors" "fmt" "io" "io/ioutil" "net" "os" "path" "path/filepath" "github.com/coreos/go-systemd/daemon" "github.com/golang/glog" "github.com/openshift/origin/pkg/cmd/openshift-controller-manager" "github.com/spf13/cobra" kerrors "k8s.io/apimachinery/pkg/api/errors" utilwait "k8s....
// Copyright 2018 <NAME>. All rights reserved. package mdb import ( "bufio" "bytes" "context" "encoding/gob" "errors" "fmt" "io/ioutil" "log" "os" "sort" "strings" "time" "github.com/simagix/gox" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mong...
package main import ( "context" "encoding/json" "errors" "fmt" ggproto "github.com/gogo/protobuf/proto" p2p_crypto "github.com/libp2p/go-libp2p-crypto" p2p_host "github.com/libp2p/go-libp2p-host" p2p_peer "github.com/libp2p/go-libp2p-peer" p2p_pstore "github.com/libp2p/go-libp2p-peerstore" p2p_ping "github.c...
// Copyright 2021 PingCAP, 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 i...
package cdn /* * 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 * "Li...
/* Copyright 2015-2019 Gravitational, 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,...
package cluster //a small websocket client that talk between server nodes, same data center //although there are general purpose db cluster / distributed key-value store, it is faster when code is simple; so I build the basic cluster as follow import ( "bytes" stdCtx "context" "encoding/binary" "fmt" "log" "net...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.8 // source: getdice.proto package pb import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protob...
package karmadactl import ( "context" "fmt" "io" "os" "github.com/spf13/cobra" "github.com/spf13/pflag" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pk...
// Package goutubedl provides a wrapper for youtube-dl. package goutubedl import ( "bufio" "bytes" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" "os" "os/exec" "path" "strconv" "strings" ) // Path to youtube-dl binary. Default look for "youtube-dl" in PATH. var Path = "youtube-dl"...
package cmd import ( "bytes" "fmt" cid2 "github.com/ipfs/go-cid" "time" "github.com/docker/go-units" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/go-state-types/big" power2 "github.com/filecoin-project/specs-actors/v2/actors/builtin/po...
// Copyright (c) 2012-2016 The Revel Framework Authors, All rights reserved. // Revel Framework source code and usage is governed by a MIT style // license that can be found in the LICENSE file. package harness import ( "fmt" "go/build" "os" "os/exec" "path" "path/filepath" "regexp" "runtime" "sort" "strcon...
package dbtypes import ( "database/sql/driver" "encoding/json" "fmt" "strconv" "strings" "github.com/decred/dcrdata/db/dbtypes/internal" ) // Tickets have 6 states, 5 possible fates: // Live -...---> Voted // \-> Missed (unspent) [--> Revoked] // \--...--> Expired (unspent) [--> Revoked] ...
// Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package v1alpha1api20210401 type StorageAccount_StatusARM struct { //ExtendedLocation: The extendedLocation of the resource. ExtendedLocation *ExtendedLocation_StatusARM `json:...
// Copyright 2012 The LevelDB-Go and Pebble 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 manifest import ( "bufio" "bytes" "encoding/binary" "io" "sync/atomic" "github.com/cockroachdb/errors" "github.com/cockroach...
package pvss // A Simple Publicly Verifiable Secret Sharing // Scheme and its Application to Electronic Voting import ( "crypto/ecdsa" "crypto/rand" "errors" "log" "math/big" "sort" ethCrypto "github.com/ethereum/go-ethereum/crypto" logging "github.com/sirupsen/logrus" "github.com/torusresearch/torus-common...
// Copyright 2014 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...
package qln import ( "bytes" "container/heap" "encoding/json" "fmt" "io/ioutil" "math" "os" "path/filepath" "strconv" "time" "github.com/awalterschulze/gographviz" "github.com/mit-dci/lit/bech32" "github.com/mit-dci/lit/coinparam" "github.com/mit-dci/lit/consts" "github.com/mit-dci/lit/crypto/fastsha25...
// 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, sof...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.19.4 // source: proto/calculadora.proto package calculadoraProto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "ref...
// Copyright 2019 TiKV Project 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 agr...
/* * Copyright (C) 2016 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy ofthe License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// // Copyright 2021 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
// Copyright 2013 <NAME> // License: MIT // Moonphase: Chapter 49, Phases of the Moon package moonphase import ( "math" "github.com/mooncaker816/learnmeeus/v3/base" ) const ck = 1 / 1236.85 // (49.1) p. 349 func mean(T float64) float64 { return base.Horner(T, 2451550.09766, 29.530588861/ck, .00015437, -.00000...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/enums/vanity_pharma_text.proto package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v0/enums" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppres...
package monitor import ( "fmt" "math" "os" "path/filepath" "sort" "strings" "time" log "github.com/sirupsen/logrus" "github.com/jonoton/scout/dir" "github.com/jonoton/scout/notify" "github.com/jonoton/scout/runtime" "github.com/jonoton/scout/videosource" ) // Alert Constants const ( MaxTextFileSize = 3...
/* Copyright 2018 The Kubernetes 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 ag...
package restic import ( "encoding/json" "fmt" "io/ioutil" "os" "path" "time" "git.vshn.net/vshn/wrestic/kubernetes" "git.vshn.net/vshn/wrestic/output" "github.com/prometheus/client_golang/prometheus" ) // BackupStruct holds the state of a backup command. type BackupStruct struct { genericCommand folderLis...
// Copyright 2019 eBay Inc. // Primary authors: <NAME>, <NAME>, // <NAME>, and <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 // https://www.apache.org/licenses/...
// // Copyright Strimzi authors. // License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). // // Package services defines some canary related services package services import ( "sort" "strconv" "time" "github.com/Shopify/sarama" "github.com/golang/glog" "github.com/p...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/services/user_location_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources" _...
// Package of gutils common function. package gutils import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/md5" "encoding/base64" "encoding/binary" "encoding/hex" "fmt" "hash/crc32" "html" "io" "math/rand" "net" "net/url" "os" "reflect" "strconv" "strings" "time" "unicode" "unicode/utf8" "github...
package block import ( "errors" "fmt" "github.com/ubiq/go-ubiq/v3/log" "math/big" "strconv" "time" "github.com/octanolabs/go-spectrum/models" "github.com/octanolabs/go-spectrum/syncronizer" ) func (c *Crawler) RunLoop() { c.logChan = make(chan *logObject) c.crawBlocks() close(c.logChan) var startBlo...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obta...