text
stringlengths
5.51k
28.1k
package ledgerservice import ( "context" "encoding/hex" "math" "time" _ "github.com/lib/pq" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/volatiletech/null" "github.com/volatiletech/sqlboiler/types" "golang.org/x/crypto/ed25519" "github.com/cachecashproject/go-cachecash/keypair" "githu...
package main import ( "bytes" "flag" "fmt" "go/ast" "go/build" "go/importer" "go/parser" "go/token" "go/types" "io/ioutil" "log" "os" "path/filepath" "reflect" "regexp" "strings" "unicode" "github.com/pkg/errors" "golang.org/x/tools/imports" ) var tagRegex = regexp.MustCompile(`([0-9a-zA-Z,_=&\(\)...
// 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/...
package cmd import ( "io/ioutil" "log" "os" "path" "path/filepath" "regexp" "runtime" "strings" "gopkg.in/urfave/cli.v2" "github.com/nuls-io/nuls-v2-package/config" "github.com/nuls-io/nuls-v2-package/util" ) var ( Separator = string(os.PathSeparator) addNulstar = false nulstarFileName = "" nulstarU...
package nokia_telemetry_gnmi import ( "context" "crypto/tls" "encoding/json" "fmt" "io" "net" "path" "strings" "sync" "time" "github.com/google/gnxi/utils/xpath" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/internal" internaltls "github.com/influxdata/telegraf/internal/tls" "github....
// Copyright 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 agre...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: peer/proposal_response.proto package peer import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp" // Reference imports to suppress errors if they are not other...
/** * Copyright 2017 Comcast Cable Communications Management, 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 requir...
// Copyright (c) 2017-2019 The Elastos Foundation // Use of this source code is governed by an MIT // license that can be found in the LICENSE file. // // Copyright (c) 2013-2016 The btcsuite developers // Copyright (c) 2017-2019 Elastos Foundation // Use of this source code is governed by an MIT // license that can b...
package bwmf import ( "fmt" "log" "math/rand" "os" "strconv" "time" "github.com/golang/protobuf/proto" "github.com/taskgraph/taskgraph" pb "github.com/taskgraph/taskgraph/example/bwmf/proto" "github.com/taskgraph/taskgraph/filesystem" "github.com/taskgraph/taskgraph/op" "golang.org/x/net/context" "google...
package log import ( "fmt" "io" "io/ioutil" "log" "os" "runtime" "strings" "sync" "time" ) // Level defines the log level type Level int const ( LevelDebug Level = iota LevelInfo LevelWarn LevelError LevelDisable // log nothing // used by Time levelTime // internal control messages between the log...
// Copyright 2018 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.15.3 // source: kythe/proto/status_service.proto package status_service_go_proto import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "g...
package functions import ( "context" "encoding/json" "fmt" "net/url" "sort" "strings" "sync" "time" "github.com/viliproject/vili/environments" "github.com/viliproject/vili/log" "github.com/viliproject/vili/repository" "github.com/viliproject/vili/templates" "github.com/viliproject/vili/util" "github.com...
/* Copyright 2015 Workiva Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: api/dapr/subscribe.proto package dapr import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.gola...
package main import ( "encoding/json" "errors" "flag" "fmt" log "github.com/cihub/seelog" "github.com/ziutek/mymysql/mysql" _ "github.com/ziutek/mymysql/native" "io/ioutil" "labix.org/v2/mgo" "os" "os/signal" "redis" "sync" "syscall" "time" ) const ( VERSION = "X.X.X" ) type Context struct { Name ...
// Copyright 2019 <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 writin...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package atom import ( "encoding/xml" "time" ) // All type ( AuthorizationRule struct { // Type is the type attribute, which indicates the type of AuthorizationRule // (today this is only `SharedAccessAuthorizationR...
// Code generated from SimplifiedCql.g4 by ANTLR 4.7.2. DO NOT EDIT. package parser // SimplifiedCql import "github.com/antlr/antlr4/runtime/Go/antlr" // BaseSimplifiedCqlListener is a complete listener for a parse tree produced by SimplifiedCqlParser. type BaseSimplifiedCqlListener struct{} var _ SimplifiedCqlList...
package phonenumbers import ( "io" "regexp" "strconv" "unicode" ) // A stateful class that finds and extracts telephone numbers fom text. // // Vanity numbers (phone numbers using alphabetic digits such as '1-800-SIX-FLAGS' are not found. type PhoneNumberMatcher struct { text string preferredRegion s...
package stratum import ( "bufio" "fmt" "net" "strings" "sync" "time" "github.com/andtheysay/set" jsoniter "github.com/json-iterator/go" "go.uber.org/zap" ) var json = jsoniter.ConfigCompatibleWithStandardLibrary var ( KeepAliveDuration time.Duration = 60 * time.Second ) type StratumOnWorkHandler func(wor...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.21.0 // protoc v3.11.2 // source: cloud_event.proto package common import ( proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/pr...
// Code generated by protoc-gen-go. // source: infra/tricium/api/admin/v1/workflow.proto // DO NOT EDIT! package admin import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import tricium2 "infra/tricium/api/v1" import tricium "infra/tricium/api/v1" import tricium1 "infra/tricium/api/v1"...
package auth import ( "bytes" "net/http" "time" dt "github.com/EricLagerg/pnwconference/controllers/datatypes" "github.com/EricLagerg/pnwconference/database" "github.com/EricLagerg/pnwconference/paths" "github.com/EricLagerg/pnwconference/tokens" "github.com/golang/glog" "github.com/gorilla/securecookie" "...
/* * Copyright 2012-2020 <NAME> and 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 * * Unless required by applicable law ...
package octad type engine struct{} func (engine) CalcMoves(pos *Position, first bool) []*Move { // generate possible moves moves := standardMoves(pos, first) // return moves including castles return append(moves, castleMoves(pos)...) } func (engine) Status(pos *Position) Method { var hasMove bool if pos.validM...
package fbnd import ( "fmt" "net/http" "net/url" "regexp" "sort" "strconv" "strings" "time" "github.com/PuerkitoBio/goquery" ) const timetableURL = "https://mpl-server.kr.hs-niederrhein.de/fb03/sp/stundenplan.php" // Degree is used to describe a DegreeProgram, either Bachelor or Master. type Degree string ...
package services import ( "fmt" "io/ioutil" "math" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "time" "unbalance/algorithm" "unbalance/common" "unbalance/domain" "unbalance/dto" "unbalance/lib" "github.com/jbrodriguez/actor" "github.com/jbrodriguez/mlog" "github.com/jbrodriguez/pubsub"...
// Copyright 2020 NGR Softlab // package errorLib import "errors" // Global Errors store (with default error texts) var GlobalErrors = ErrMap{ //500 (for updater) errorFailedMakeReport: errors.New("code: 500, message: failed make report"), //rights errorForbidden: errors.New("code: 403, message: forbidden"), li...
/* Package pathexp provides a representation of path expressions; locations of secrets within the org/project/environment/service/identity/instance hierarchy supporting globs and alternation. Grammar: <pathexp> ::= "/" <org> "/" <project> "/" <environment> "/" <service> "/" <identity> "/" <instance> <org> ...
package xmigrate import ( "bytes" "context" "database/sql" "fmt" "log" "sort" "strings" "github.com/akito0107/xsqlparser" "github.com/akito0107/xsqlparser/dialect" "github.com/akito0107/xsqlparser/sqlast" "github.com/jmoiron/sqlx" _ "github.com/lib/pq" "github.com/xo/dburl" errors "golang.org/x/xerrors"...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.20.1 // protoc v3.11.4 // source: RPCMessage.proto package Network import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtim...
package main import ( "bytes" "fmt" "log" "os/exec" "strings" "sync" "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" //apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/util/runtime" //"k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg...
// Copyright 2022 PayPal Inc. // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this file, // you can obtain one at https://mit-license.org/. // Package config defines data structure and logic for loading and // refreshing configurations for ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/api/v2/cluster/circuit_breaker.proto package envoy_api_v2_cluster import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" _type "github.com/envoyproxy/go-control-plane/envoy/ty...
// Copyright 2015 The go-ethereum Authors // Copyright 2017 The cypherBFT Authors // This file is part of the cypherBFT library. // // The cypherBFT 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 Foundat...
package cdsclient import ( "archive/tar" "context" "io" "net/http" "time" "github.com/ovh/cds/sdk" ) type Filter struct { Name, Value string } // AdminService expose all function to CDS services type AdminService interface { Services() ([]sdk.Service, error) ServicesByName(name string) (*sdk.Service, error...
package k8s import ( "github.com/astaxie/beego/logs" "encoding/json" "strings" "cloud/util" "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" "k8s.io/client-go/kubernetes" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "strconv" "time" "cloud/cache" "github.com/astaxie/beego" ) // docker build -t ITEMNAME...
// Copyright 2016 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package kubernetes import ( "bytes" "context" "fmt" "html/template" "os" "strconv" "strings" "time" "github.com/gorilla/mux" apiv1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8s.io/clie...
// Copyright Istio 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 wri...
// Package contexthandler contains the ContextHandler service. package contexthandler import ( "context" "errors" "net/http" "net/url" "strconv" "strings" "time" "github.com/grafana/grafana/pkg/components/apikeygen" "github.com/grafana/grafana/pkg/infra/log" "github.com/grafana/grafana/pkg/infra/network" "...
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. //go:build !windows // +build !windows package pkg import ( "bufio" "bytes" "en...
// Copyright 2014 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. // +build darwin linux,!android // TODO(crawshaw): Run tests on other OSs when more contexts are supported. package test import ( "encoding/binary" "image"...
package kimporter import ( "bytes" "encoding/hex" "fmt" "go/ast" "go/build" "go/token" "go/types" "golang.org/x/crypto/blake2b" "golang.org/x/net/context" "golang.org/x/sync/errgroup" "golang.org/x/tools/go/gcexportdata" "margo.sh/golang/gopkg" "margo.sh/golang/goutil" "margo.sh/memo" "margo.sh/mg" "ma...
package agent import ( "flag" "fmt" "io" "log" "os" "os/signal" "path/filepath" "strings" "syscall" "time" "github.com/armon/go-metrics" "github.com/armon/go-metrics/circonus" "github.com/armon/go-metrics/datadog" "github.com/hashicorp/consul/agent" "github.com/hashicorp/consul/agent/config" "github.c...
// Copyright 2021 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 noder import ( "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/typecheck" "cmd/compile/internal/types" "cmd/compile/in...
// Copyright 2018 The gVisor 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...
// Copyright 2017-2018 DERO Project. All rights reserved. // Use of this source code in any form is governed by RESEARCH license. // license can be found in the LICENSE file. // GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8 // // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A...
/* * mountpoint.go - Contains all the functionality for finding mountpoints and * using UUIDs to refer to them. Specifically, we can find the mountpoint of a * path, get info about a mountpoint, and find mountpoints with a specific UUID. * * Copyright 2017 Google Inc. * Author: <NAME> (<EMAIL>) * * Licensed und...
// // (C) Copyright 2020-2021 Intel Corporation. // // SPDX-License-Identifier: BSD-2-Clause-Patent // package control import ( "context" "fmt" "math" "sort" "github.com/pkg/errors" nd "github.com/daos-stack/daos/src/control/lib/netdetect" "github.com/daos-stack/daos/src/control/logging" "github.com/daos-st...
// sift // Copyright (C) 2014-2016 <NAME> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, version 3 of the License. // // This program is distributed in the hope that it will be useful, //...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/feed_mapping_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v0/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to supp...
package main import ( "bufio" "bytes" "encoding/base64" "encoding/json" "errors" "fmt" "io" "io/ioutil" "os" "path" "path/filepath" "strconv" "strings" "text/template" "github.com/urfave/cli" ) type token struct { ProjectID string `json:"project_id"` } var ( // Version is set at compile time. vers...
// Package orchestrator is responsible for instrumenting inbound xDS client // requests to the correct aggregated key, forwarding a representative request // to the upstream origin server, and managing the lifecycle of downstream and // upstream connections and associates streams. It implements // go-control-plane's Ca...
// Copyright 2016-2018 VMware, 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 appli...
// Copyright 2016-2017 Authors of Cilium // // 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 IBM Corporation 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 o...
package canvas import ( "image" "image/color" "io" "os" "sort" ) const mmPerPt = 25.4 / 72.0 const ptPerMm = 72.0 / 25.4 //const mmPerPx = 25.4 / 96.0 //const pxPerMm = 96.0 / 25.4 const mmPerInch = 25.4 const inchPerMm = 1.0 / 25.4 // ImageEncoding defines whether the embedded image shall be embedded as lossl...
package db import ( "context" "errors" "io" "sort" "time" "go.skia.org/infra/go/metrics2" "go.skia.org/infra/go/skerr" "go.skia.org/infra/go/sklog" "go.skia.org/infra/go/util" "go.skia.org/infra/task_scheduler/go/types" "go.skia.org/infra/task_scheduler/go/window" ) const ( // Retries attempted by Update...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/keyword_plan_keyword.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ad...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: auth/annotations.proto package auth import ( fmt "fmt" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ ...
package main import ( "bufio" "context" "flag" "fmt" "log" "os" "sort" "strings" "sync" "time" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/model" "github.com/grafana/dskit/tenant" "github.com/grafana/loki/pkg/logql/syntax" "github.com/prometheus/prometheus/model/la...
package kt import ( "regexp" "strconv" "syscall" "time" ) type Compression string const ( CompressionNone Compression = "none" CompressionGzip = "gzip" CompressionSnappy = "snappy" CompressionDeflate = "deflate" CompressionNull = "null" KENTIK_EVEN...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
// Code generated by capnpc-go. DO NOT EDIT. package fastnetmon import ( capnp "zombiezen.com/go/capnproto2" text "zombiezen.com/go/capnproto2/encoding/text" schemas "zombiezen.com/go/capnproto2/schemas" ) type SimplePacketType struct{ capnp.Struct } // SimplePacketType_TypeID is the unique identifier for the ty...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.1 // source: google/cloud/apigeeregistry/v1/apihub/display_settings.proto // (-- api-linter: core::0215::versioned-packages=disabled // aip.dev/not-precedent: Support protos for the apigeeregistry.v1 API...
package tests import ( "encoding/csv" "flag" "fmt" "os" "strings" "sync" "time" "github.com/onsi/ginkgo" "github.com/onsi/gomega" "github.com/portworx/sched-ops/task" "github.com/portworx/torpedo/drivers/node" "github.com/sirupsen/logrus" // import aws driver to invoke it's init _ "github.com/portworx/t...
// Copyright 2016-2021 terraform-provider-sakuracloud 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 b...
package presto import ( "context" "github.com/lyft/flyteplugins/go/tasks/pluginmachinery/ioutils" "k8s.io/apimachinery/pkg/util/rand" "fmt" "github.com/lyft/flyteplugins/go/tasks/plugins/presto/client" "time" "github.com/lyft/flytestdlib/cache" idlCore "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: flyteidl/core/compiler.proto package core 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...
// Package controller implements logic for following MetalLB announce events // and passing them to configured platform-specific Floating IP assigners. package controller import ( "context" "errors" "fmt" "path/filepath" "regexp" "sort" "time" "github.com/prometheus/client_golang/prometheus" v1 "k8s.io/api/c...
/* Copyright 2020 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 backup import ( "fmt" "strconv" "strings" "github.com/greenplum-db/gp-common-go-libs/gplog" "github.com/greenplum-db/gpbackup/toc" "github.com/greenplum-db/gpbackup/utils" ) /* * This file contains structs and functions related to backing up global cluster * metadata on the master that needs to be re...
// Code generated by protoc-gen-go. // source: ipv6_pfx_edm_ace.proto // DO NOT EDIT! /* Package cisco_ios_xr_ipv6_acl_oper_ipv6_acl_and_prefix_list_access_list_manager_prefixes_prefix_prefix_list_sequences_prefix_list_sequence is a generated protocol buffer package. It is generated from these files: ipv6_pfx_edm_ac...
/* * Copyright (c) 2008-2021, Hazelcast, 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 b...
package http1 import ( "bytes" "errors" "fmt" "io" "net/http" "net/textproto" "strconv" "strings" "github.com/foredata/nova/netx" "github.com/foredata/nova/pkg/bytex" ) var ( errInvalidHttpIdent = errors.New("invalid http ident") errInvalidHttpMethod = errors.New("invalid http method") errInvalidHttp...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: lorawan-stack/api/enums.proto package ttnpb import ( fmt "fmt" math "math" strconv "strconv" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" golang_proto "github.com/golang/protobuf/proto" ) // Reference imports to sup...
// Code generated by protoc-gen-go. // source: vtrpc.proto // DO NOT EDIT! /* Package vtrpc is a generated protocol buffer package. It is generated from these files: vtrpc.proto It has these top-level messages: CallerID RPCError */ package vtrpc import proto "github.com/golang/protobuf/proto" import fmt "fmt" im...
package node import ( "bytes" "io/ioutil" "net" "net/http" "strings" "time" . "github.com/tendermint/go-common" cfg "github.com/tendermint/go-config" "github.com/tendermint/go-crypto" dbm "github.com/tendermint/go-db" "github.com/tendermint/go-p2p" "github.com/tendermint/go-rpc" "github.com/tendermint/go...
// SPDX-License-Identifier: Apache-2.0 // Copyright Authors of Cilium package main import ( "context" "encoding/json" "strings" "sync" core_v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/ty...
package nlp import ( "bytes" "encoding/gob" "log" "os" "strings" ) /* nlp.go by <NAME> Natural Language Processing Natural Language Processing is the concept of taking regular human language (english in this instance) and converting into something a computer can understand, use, and interact with. Ambi...
// Copyright 2015 the GoSpatial Authors. All rights reserved. // Use of this source code is governed by an MIT-style // licence that can be found in the LICENCE.txt file. // This file was originally created by <NAME><<EMAIL>>, // Feb. 2015. package tools import ( "bufio" "fmt" "math" "os" "strconv" "strings" ...
// Copyright 2016-2017 VMware, 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 appli...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/ad_group_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v0/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress...
// Copyright 2019 <NAME>. All rights reserved. // Licensed under the MIT License that can be // found in the LICENSE file in the root directory. // Code generated by protoc-gen-go. DO NOT EDIT. // source: message.proto package rpc import ( "context" "fmt" "github.com/golang/protobuf/proto" "google.golang.org/grp...
package route import ( "context" "errors" "fmt" "net" "reflect" "strings" "sync/atomic" "github.com/ie310mu/ie310go/common/logsagent" "github.com/ie310mu/ie310go/common/obj" "github.com/ie310mu/ie310go/common/throw" "github.com/ie310mu/ie310go/forks/github.com/ethereum/go-ethereum/rpc" "github.com/ie310mu...
/* Copyright 2021. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed un...
package main import ( "encoding/csv" "encoding/json" "fmt" "log" "math" "net/http" "os" "sort" "strconv" "strings" "time" ) type object struct { Id string `json:"id"` Dec float64 `json:"dec"` Mag int `json:"mag"` Type string `json:"type"` Con string `json:"con"` } ...
package virtualdefund import ( "errors" "fmt" "math/big" "strings" "github.com/statechannels/go-nitro/channel" "github.com/statechannels/go-nitro/channel/consensus_channel" "github.com/statechannels/go-nitro/channel/state" "github.com/statechannels/go-nitro/channel/state/outcome" "github.com/statechannels/go...
package model // Accessdown. Use Layer 2 mode to bridge the packets sent to this service if it is marked as DOWN. If the service is DOWN, and this parameter is disabled, the packets are dropped.<br>Default value: NO<br>Possible values = YES, NO. // All. Display both user-configured and dynamically learned services....
// Copyright 2019 <NAME> // // 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, distribute...
// 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 a...
// Copyright 2015 <NAME>. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package pingo implements the basics for creating and running subprocesses // as plugins. The subprocesses will communicate via either TCP or Unix socket // to imple...
// 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 2020 The arhat.dev 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 main import ( "fmt" "github.com/chzyer/readline" "gopkg.in/alecthomas/kingpin.v2" "gopkg.in/yaml.v2" "io" "io/ioutil" "log" "os" "os/exec" "os/signal" "os/user" "path/filepath" "sort" "strings" "syscall" ) var ( app = kingpin.New("dcr", "A repl for docker compose").Author("<NAME>") file = app...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: github.com/yext/cloudprober/surfacers/proto/config.proto package cloudprober_surfacer import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import proto3 "github.com/yext/cloudprober/surfacers/file/proto" import proto4 "github.c...
/* Copyright 2021 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...