text
stringlengths
5.51k
28.1k
package quartz import ( "errors" "fmt" "sort" "strconv" "strings" "time" ) // CronTrigger implements the quartz.Trigger interface. // Used to fire a Job at given moments in time, defined with Unix 'cron-like' schedule definitions. // // Examples: // // Expression Meaning // "0 0 12 * * ?" ...
package main //import "fmt" import "sync" import "math" import ( // "os" //"bufio" //"encoding/json" //"time" //"io/ioutil" ) const MINHEAT = 10 const MEDIUMHEAT = 20 const MAXHEAT = 30 var fireSpeed = float64(2) // OBS: 3 är 'standard'-värdet från py atm var pplSpeed = float64(1) type tile struct { xCoord...
package linux import ( "io/ioutil" "strconv" "strings" ) type VMStat struct { NrFreePages uint64 `json:"nr_free_pages"` NrAllocBatch uint64 `json:"nr_alloc_batch"` NrInactiveAnon uint64 `json:"nr_inactive_anon"` NrActiveAnon uint64 `json:"nr_ac...
/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package thumbnail import ( "fmt" "io/ioutil" "os" "strconv" "testing" "github.com/stretchr/testify/assert" "github.com/die-net/fotomat/v2/format" "github.com/die-net/fotomat/v2/vips" ) func TestMain(m *testing.M) { vips.Initialize() vips.LeakSet(true) r := m.Run() vips.ThreadShutdown() vips.Shutdown() ...
// Copyright (c) 2016 The btcsuite developers // Copyright (c) 2017-2020 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package connmgr import ( "context" "fmt" "net" "sync" "sync/atomic" "time" ) var ( // maxRetryDuration is the max d...
// Accepts Debian packages via HTTP, unpacks, strips and indexes them. package main import ( "flag" "fmt" "io" "io/ioutil" "log" "net/http" "os" "os/exec" "path/filepath" "runtime" "runtime/debug" "runtime/pprof" "strings" "time" "github.com/Debian/dcs/grpcutil" "github.com/Debian/dcs/internal/filter"...
// Copyright 2019 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 frontend import ( "context" "errors" "fmt" "net/http" "strings" "github.com/google/safehtml/template" "golang.org/x/mod/module" "golang.org/x/...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.15.5 // source: test.proto package testservice import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.o...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: uac/Workspace.proto package uac import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.g...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package ledgermgmt import ( "fmt" "io/ioutil" "os" "path/filepath" "testing" "time" "github.com/hyperledger/fabric-protos-go/common" "github.com/hyperledger/fabric/bccsp/sw" "github.com/hyperledger/fabric/common/configtx/tes...
package docker import ( "fmt" "os" "os/exec" "strings" "unicode/utf8" "github.com/pkg/errors" "github.com/havoc-io/mutagen/pkg/process" "github.com/havoc-io/mutagen/pkg/prompt" "github.com/havoc-io/mutagen/pkg/url" ) // windowsContainerNotification is a prompt about copying files into Windows // containers...
// Copyright (c) Acrosync LLC. All rights reserved. // Free for personal use and commercial trial // Commercial use requires per-user licenses available from https://duplicacy.com package duplicacy import ( "encoding/hex" "encoding/json" "fmt" "io/ioutil" "os" "path" "path/filepath" "strconv" "strings" "tim...
// Copyright © 2020 Infostellar, 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 agree...
package setting import ( "github.com/Unknwon/com" "github.com/go-macaron/session" log "gopkg.in/clog.v1" "gopkg.in/ini.v1" "net/mail" "net/url" "os" "os/exec" "path" "path/filepath" "runtime" "strconv" "strings" "time" ) // Scheme type type Scheme string // Schemes const ( SchemeHTTP Scheme = "h...
package main import ( "bufio" "flag" "fmt" "os" "runtime/pprof" "time" ) // type block struct { // i int // begin column // j int // end column // k []int // row indexes // } type blockset struct { i int j int k map[int]struct{} } // func min(x, y int) int { // if x < y { // return x // } // re...
// Copyright 2020 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...
package smallben import ( "github.com/go-logr/logr" "github.com/prometheus/client_golang/prometheus" "github.com/robfig/cron/v3" "sync" ) // Config is the struct configuring the overall // SmallBen object. type Config struct { // SchedulerConfig configures the scheduler SchedulerConfig SchedulerConfig // Logge...
package digest import ( "crypto/md5" "crypto/sha1" "crypto/sha512" "encoding/hex" "fmt" log "github.com/sirupsen/logrus" . "gopkg.in/check.v1" ) type TestStructSuite struct{} var _ = Suite(&TestStructSuite{}) type sampleContainer struct { TargetValue interface{} `digest:"1"` } func (c *sampleContainer) Str...
package parseGo import ( "github.com/songzhibin97/gkit/cache/buffer" "errors" "fmt" "go/ast" "io/ioutil" "strings" "text/template" ) // GoParsePB: .go 文件转成 pb文件 type GoParsePB struct { PkgName string // PkgName: 包名 FilePath string // FilePath: 文件的路径 Server []*Server // Serve...
// +build go1.13 /* * * Copyright 2020 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
// Copyright 2017 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package log is a structured logging library. package log import ( "bytes" "encoding/json" "fmt" "io" "runtime" "sort" "strings" "sync" "time" ) const ( /...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: comments/comments.proto // COMMENT: package goproto.protoc.comments; package comments import ( proto "github.com/golang/protobuf/proto" protoapi "github.com/golang/protobuf/protoapi" protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" prot...
package types import ( "fmt" "reflect" "sort" "strconv" "strings" "time" "unicode/utf8" "go.skia.org/infra/go/common" "go.skia.org/infra/go/gitiles" "go.skia.org/infra/go/sklog" "go.skia.org/infra/go/util" ) const ( // Swarming tags added by Task Scheduler. SWARMING_TAG_ATTEMPT = "sk_attempt" ...
package upgrade import ( "context" "errors" "fmt" "io/ioutil" "os" "os/user" "path/filepath" "github.com/influxdata/influxdb/v2" "github.com/influxdata/influxdb/v2/bolt" "github.com/influxdata/influxdb/v2/dbrp" "github.com/influxdata/influxdb/v2/internal/fs" "github.com/influxdata/influxdb/v2/kit/cli" "g...
package wallets import ( "fmt" "image/color" "strings" "gioui.org/io/key" "gioui.org/layout" "gioui.org/op" "gioui.org/text" "gioui.org/widget" "github.com/planetdecred/dcrlibwallet" "github.com/planetdecred/godcr/ui/decredmaterial" "github.com/planetdecred/godcr/ui/load" "github.com/planetdecred/godcr/...
package main import ( "flag" "fmt" "math" "math/rand" "net/url" "os" "strconv" "time" "github.com/briandowns/spinner" "github.com/dustin/go-humanize" "github.com/glentiki/hdrhistogram" "github.com/jbenet/goprocess" "github.com/olekukonko/tablewriter" "github.com/ttacon/chalk" "github.com/valyala/fastht...
// Package iso9660 implements reading and creating basic ISO9660 images. package iso9660 import ( "encoding" "encoding/binary" "errors" "fmt" "io" "strconv" "strings" "time" ) // ISO 9660 Overview // https://archive.fo/xs9ac const ( sectorSize uint32 = 2048 systemAreaSize = sectorSize * ...
package instance import ( "context" "fmt" "io/ioutil" "net/http/httptest" "os" "path" "strings" "sync" "testing" "time" "github.com/cortexproject/cortex/pkg/util/test" "github.com/go-kit/log" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" "git...
package http import ( "context" "encoding/hex" "fmt" "log" "net" "net/http" _ "net/http/pprof" "path" "strings" "time" "github.com/benbjohnson/hashfs" "github.com/benbjohnson/wtf" "github.com/benbjohnson/wtf/http/assets" "github.com/benbjohnson/wtf/http/html" "github.com/gorilla/mux" "github.com/goril...
package dom import ( "fmt" "strings" ) type domElement struct { localName string // The local part, without the (optional) namespace prefix. nodes []Node // Child nodes. parentNode Node // Parent node attributes NamedNodeMap // Attributes on this element. ownerDocument Doc...
package drpc import ( "crypto/tls" "errors" "github.com/gogf/gf/container/gtype" "github.com/gogf/gf/errors/gerror" "github.com/gogf/gf/os/grpool" "github.com/gogf/gf/util/grand" "github.com/osgochina/dmicro/drpc/codec" "github.com/osgochina/dmicro/drpc/internal" "github.com/osgochina/dmicro/drpc/netproto/kcp...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow_serving/apis/session_service.proto package serving import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" protobuf "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf" grpc "google.golang.org/grpc" codes "goo...
package main import ( "bytes" "context" "encoding/json" "errors" "fmt" "github.com/jetstack/cert-manager/pkg/issuer/acme/dns/util" "io" "io/ioutil" "net/http" "os" "strconv" "strings" "time" logrus "github.com/sirupsen/logrus" "github.com/snowdrop/godaddy-webhook/common" "github.com/snowdrop/godaddy-w...
package main import ( "fmt" "log" "math/rand" "os" "strings" "time" "github.com/jroimartin/gocui" zen_doctor "github.com/krixi/zen-doctor/internal" "github.com/pkg/errors" ) const ( threatView = "threat" progressBarView = "progress" itemsView = "items" ) var ( done = make(chan bool) // we n...
// Copyright 2016-2018 <NAME>. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
// Copyright 2021 New Relic Corporation. All rights reserved. // SPDX-License-Identifier: Apache-2.0 // Package agent implements injection of infrastructure-agent container into given Pod. package agent import ( "context" "crypto/sha1" "encoding/json" "fmt" "strings" "github.com/sirupsen/logrus" corev1 "k8s.i...
package twitch import ( "bufio" "crypto/tls" "errors" "fmt" "io" "net" "net/textproto" "strings" "sync" "sync/atomic" "time" ) const ( // ircTwitch constant for twitch irc chat address ircTwitchTLS = "irc.chat.twitch.tv:6697" ircTwitch = "irc.chat.twitch.tv:6667" pingSignature = "go-twitch-ir...
// Package admin provides an interface to connect to and manage a running // OpenTTD dedicated server. package admin // references // https://webcache.googleusercontent.com/search?q=cache:prtEeaJZJFQJ:https://wiki.openttd.org/Server_Admin_Port_Development+&cd=2&hl=en&ct=clnk&gl=au&client=safari // https://github.com/O...
package gokml_gx import ( "fmt" "testing" ) func TestMarshal(t *testing.T) { kml := CreateKml() b, err := kml.Marshal() if err != nil { t.Errorf("Error while marshalling: %q", err.Error()) } fmt.Printf("KML:\n %s\n", b) } func TestUnmarshal(t *testing.T) { // kml := CreateKml() // b, err := kml.Marshal(...
package main import ( "easy/cloud/cDb" "easy/db" "easy/inf/msgNode" pro "easy/inf/msgSys/msProB3" "easy/ui" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "time" "github.com/golang/protobuf/proto" "github.com/sirupsen/logrus" ) const ( MethodHeart = iota + 1 MethodPullConfig MethodPtyReq MethodU...
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.14.0 // source: join_party.proto package messages import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runti...
package windows import ( "fmt" "sort" "github.com/emily33901/lambda-core/core/math" "github.com/emily33901/go-forgery/formats" "github.com/emily33901/go-forgery/native" "github.com/emily33901/go-forgery/render" "github.com/emily33901/go-forgery/render/view" "github.com/emily33901/imgui-go" "github.com/emily...
/* * Copyright (C) 2015 Red Hat, Inc. * * 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 Licens...
/** Generic linux Fibre Channel utilities Inspired by github.com/openstack/os-brick @author <NAME> <<EMAIL>> */ package initiator import ( "fmt" osBrick "github.com/ydcool/os-brick-go" "log" "path/filepath" "regexp" "strconv" "strings" "time" ) //RemoveSCSIDevice Removes a scsi device based upon /dev/sdX n...
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/k8s/v1/version_service.proto package k8s import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/co...
package node import ( "fmt" "net" "sync" "syscall" "github.com/golang/glog" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/watch" networkapi "github.com/openshift/origin/pkg/network/apis/network" "github.com/openshift/origin/pkg/network/comm...
// Copyright 2018 The go-infinet Authors // This file is part of the go-infinet library. // // The go-infinet library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, o...
// ----------------------------------------------------------------------------- // github.com/balacode/udpt /[sender.go] // (c) <EMAIL> License: MIT // ----------------------------------------------------------------------------- package udp...
// 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. package cjson import ( "bytes" "encoding/base64" "encoding/json" "math" "reflect" "runtime" "sort" "strconv" "strings" "sync" "unicode" "unicode/u...
package main import ( "fmt" "path" "strings" "unicode" "github.com/veandco/go-sdl2/sdl" ) // @TODO (!important) copy files and folders // @TODO (!important) lazy initialize compnents that are not needed right away type Mode int32 const ( Mode_Normal Mode = iota Mode_Drive_Selection Mode_Goto ) type Clipbo...
// Copyright 2019 The Chromium 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 defines structure of YAML files with target definitions. package manifest import ( "fmt" "io" "io/ioutil" "net/url" "os" "path"...
package bitcoind /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ...
package main import ( "bufio" "flag" "fmt" "go/ast" "go/printer" "go/token" "go/types" "io" "log" "os" "strconv" "strings" "golang.org/x/tools/go/ast/astutil" "golang.org/x/tools/go/packages" ) var ( pkg *packages.Package serializeFmt = make(map[string]string) deserializeFmt = make(map[string]str...
package main import ( "errors" "bytes" "encoding/json" "fmt" "log" "os" "os/user" "path" "io" "io/ioutil" "net" "net/http" "net/url" //"math" "html/template" "strings" "time" "strconv" "reflect" //"path/filepath" "image/jpeg" ) import ( "github.com/ttacon/chalk" "github.com/imdario/mergo" "git...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: yandex/cloud/cdn/v1/raw_logs.proto package cdn import ( _ "github.com/yandex-cloud/go-genproto/yandex/cloud" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google....
// Package analyze uses bazel query to determine and locate missing imports // in TypeScript source files. package analyze import ( "context" "fmt" "os" "path/filepath" "strings" "github.com/bazelbuild/buildtools/edit" "github.com/bazelbuild/rules_typescript/ts_auto_deps/platform" "github.com/bazelbuild/rules...
// Copyright 2014 beego Author. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
// Copyright 2015 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 terraform import ( "fmt" "reflect" "regexp" "strconv" "strings" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/configs" ) // ResourceAddress is a way of identifying an individual resource (or, // eventually, a subset of resources) within the state. It is used for Targets. type ...
// Copyright 2017 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 2019 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, ...
/* * MinIO Cloud Storage, (C) 2015, 2016, 2017, 2018 MinIO, 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 require...
/* 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, ...
package gadget import ( "fmt" "strings" ) var ( // Map Windows NT versions to actual product versions. windowsVersions = map[string]string{ "CE": "CE", "5.0": "2000", "5.1": "XP", "5.2": "XP", "6.0": "Vista", "6.1": "7", "6.2": "8", "6.3": "8.1", "10.0": "10", // Note: Windows 11 is a...
package comms import ( "bytes" "context" "crypto/elliptic" "encoding/hex" "errors" "fmt" "io/ioutil" "net" "net/http" "os" "runtime" "sync" "sync/atomic" "testing" "time" "decred.org/dcrdex/dex" "decred.org/dcrdex/dex/msgjson" "github.com/decred/dcrd/certgen" "github.com/decred/slog" "github.com/g...
// Copyright (c) 2017-2020 Tigera, 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: chaincode_pinger.proto package pinger import ( context "context" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes"...
package v1 import ( "bytes" "strconv" "github.com/rancher/rio/pkg/apis/common" "github.com/rancher/wrangler/pkg/condition" "github.com/rancher/wrangler/pkg/genericcondition" appsv1 "k8s.io/api/apps/v1" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1...
package main import ( "fmt" "flag" "sync" "bytes" "errors" "strings" "os" "os/signal" "time" "io/ioutil" "encoding/json" // "encoding/pem" "encoding/base64" "crypto" "crypto/sha256" "crypto/rsa" "crypto/x509" "crypto/rand" "github.com/willf/bloom" "blockchain-service/blockchain" mqtt "github....
package rure // #cgo darwin LDFLAGS: -L${SRCDIR}/target/release -lrure // #cgo linux LDFLAGS: -lrure // // #include <stdio.h> // #include <stdlib.h> // #include "rure.h" // // /* // * rure_iter_collect exhausts the given iterator over the given haystack, // * and reports all successive non-overlapping match location...
// 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 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. // Parse "zoneinfo" time zone file. // This is a fairly standard file format used on OS X, Linux, BSD, Sun, and others. // See tzfile(5), http://en.wikipedia.or...
// Copyright (c) 2021 Target Brands, Inc. All rights reserved. // // Use of this source code is governed by the LICENSE file in this repository. package main import ( "encoding/json" "fmt" "os" "time" "github.com/Masterminds/semver" "github.com/go-vela/vela-terraform/version" "github.com/sirupsen/logrus" "...
// 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 2017 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 beacon import ( "bytes" "context" "errors" "fmt" "math" "strings" "sync" "time" "github.com/dedis/drand/log" "github.com/dedis/drand/protobuf/crypto" proto "github.com/dedis/drand/protobuf/drand" "go.dedis.ch/kyber/v3/share" "go.dedis.ch/kyber/v3/sign/bls" "go.dedis.ch/kyber/v3/sign/tbls" "goog...
/* 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 externaldns import ( "fmt" "reflect" "time" "github.com/alecthomas/kingpin" "github.com/sirupsen/logrus" "github.com/yangkailc/bigtree-dns/source" ) const ( passwordMask = "******" ) var ( // Version is the current version of the app, generated at build time Version = "unknown" ) // Config is a p...
// Code generated from PROV_N.g4 by ANTLR 4.7.2. DO NOT EDIT. package prov_n // PROV_N import "github.com/antlr/antlr4/runtime/Go/antlr" // BasePROV_NListener is a complete listener for a parse tree produced by PROV_NParser. type BasePROV_NListener struct{} var _ PROV_NListener = &BasePROV_NListener{} // VisitTermi...
// Copyright (c) 2019 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package main import ( "fmt" "net" _ "net/http/pprof" "os" "os/user" "path/filepath" "runtime" "sort" "strconv" "strings" "github.com/decred/dcrd/chaincfg" "github...
package coninput import ( "encoding/binary" "fmt" "strconv" "strings" ) const ( maxEventSize = 16 wordPaddingBytes = 2 ) // EventType denots the type of an event type EventType uint16 // EventUnion is the union data type that contains the data for any event. type EventUnion [maxEventSize]byte // InputRec...
package esphome import ( "bufio" "fmt" "net" "sync" "time" proto "github.com/golang/protobuf/proto" "maze.io/x/esphome/api" ) // Client defaults. const ( DefaultTimeout = 10 * time.Second DefaultPort = 6053 defaultClientInfo = "maze.io go/esphome" ) // Client for an ESPHome device. type Client s...
/* Copyright 2021 The KubeVela 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.8 // source: message.proto package __ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) co...
// Copyright (c) 2017 Cisco and/or its affiliates. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at: // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
package scalers import ( "context" "crypto/tls" "errors" "fmt" "math" "net/http" "strconv" "time" libs "github.com/dysnix/predictkube-libs/external/configs" pc "github.com/dysnix/predictkube-libs/external/grpc/client" tc "github.com/dysnix/predictkube-libs/external/types_convertation" "github.com/dysnix/p...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: messagingpb/kchief.proto package messagingpb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ ...
package requestorserver import ( "crypto/tls" "fmt" "regexp" "strconv" "strings" "github.com/go-errors/errors" irma "github.com/privacybydesign/irmago" "github.com/privacybydesign/irmago/internal/common" "github.com/privacybydesign/irmago/server" ) type Configuration struct { *server.Configuration `mapstru...
package yurit import ( "io" ) //mpegFrameHeader represents the information contained in the first frame header //encountered in an mp3 file. Much of this information would be consistent for //all frame headers in a file, but some would vary from frame to frame. For //instance, the version and layer will be the same ...
package requests import ( "bufio" "context" "fmt" "io" "io/ioutil" "net" "net/http" "net/url" "regexp" "strings" "time" "github.com/Knetic/govaluate" "github.com/projectdiscovery/nuclei/v2/pkg/extractors" "github.com/projectdiscovery/nuclei/v2/pkg/generators" "github.com/projectdiscovery/nuclei/v2/pkg/...
package xip_test import ( "encoding/binary" "math/rand" "net" "strings" "xip/xip" . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" "golang.org/x/net/dns/dnsmessage" ) var _ = Describe("Xip", func() { var ( err error headerId uint16 ) rand.Seed(Gin...
// Copyright 2020 Buf Technologies, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
// Copyright (c) 2017 // Author: <NAME> <<EMAIL> @ <EMAIL>> // Created: 2017-Sep-17 14:25 (EDT) // Function: emit json for web package monel import ( "encoding/json" "fmt" "sort" "strconv" "strings" "argus/argus" "argus/clock" "argus/darp" "argus/graph" "argus/notify" "argus/web" ) type objectDescr struc...
package lzfse import ( "bytes" "encoding/binary" "fmt" "io" "github.com/apex/log" "github.com/pkg/errors" ) // Decoder lzfse_decoder_state object type Decoder struct { blockMagic magic src *bytes.Reader r *io.SectionReader dst bytes.Buffer dstIdx int32 CompressedLzfseBlockState lzfseCompress...
// 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 staticinit import ( "fmt" "go/constant" "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/reflectdata" "cmd/compile/in...
// Copyright 2018 <NAME>.A.S. Atos Technologies - Bull, Rue Jean Jaures, B.P.68, 78340, Les Clayes-sous-Bois, France. // // 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...
package gui import ( "fmt" uberatomic "go.uber.org/atomic" "golang.org/x/exp/shiny/materialdesign/icons" l "gioui.org/layout" "gioui.org/text" "gioui.org/unit" p9icons "github.com/l0k18/pod/pkg/gui/ico/svg" ) // App defines an application with a header, sidebar/menu, right side button bar, changeable bod...