text stringlengths 5.51k 28.1k |
|---|
/*
Copyright 2019 The Seldon Team.
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, softwar... |
// Package types contains types that are common across libnetwork project
package types
import (
"bytes"
"fmt"
"net"
"strconv"
"strings"
"github.com/ishidawataru/sctp"
)
// constants for the IP address type
const (
IP = iota // IPv4 and IPv6
IPv4
IPv6
)
// EncryptionKey is the libnetwork representation of ... |
// Copyright (c) 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 applica... |
package util
import (
"path"
"path/filepath"
"time"
"go.skia.org/infra/go/swarming"
)
const (
// Use the CTFE proxy to Google Storage. See skbug.com/6762
GCS_HTTP_LINK = "https://ct.skia.org/results/"
// File names and dir names.
CHROMIUM_BUILDS_DIR_NAME = "chromium_builds"
PAGESETS_DIR_NAME ... |
// Copyright 2016 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// Package qf implements a quotient filter data
// structure which supports:
// 1. external storage per entry
// 2. dynamic doubling
// 3. packed or unpacked representations (choose time or space)
// 4. a user overrideable hash function (defau... |
// Copyright 2017 The Ebiten 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... |
package data
import (
"context"
"testing"
"github.com/evergreen-ci/evergreen"
"github.com/evergreen-ci/evergreen/apimodels"
"github.com/evergreen-ci/evergreen/db"
"github.com/evergreen-ci/evergreen/model"
"github.com/evergreen-ci/evergreen/model/build"
"github.com/evergreen-ci/evergreen/model/distro"
"github... |
// Copyright 2015 <NAME>.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package etree
import (
"strconv"
"strings"
)
/*
A Path is an object that represents an optimized version of an
XPath-like search string. Although path strings are XPath-like,
only the ... |
// Copyright 2019 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 2017 ETH Zurich
//
// 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... |
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
package gateway
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net"
"net/http"
"net/url"
"strings"
)
// KongGateway holds the configuration and values for a pre-defined Kong API Gateway.
type KongGateway struct {
// GatewayURL is the admin URL of the kong gateway. This is usually the URL (host plus por... |
// Copyright © 2022 Kaleido, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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
//
// Unle... |
// Copyright 2018 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: protocol.proto
package protocol
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is... |
package util
import (
"crypto/rsa"
"crypto/x509"
"encoding/json"
"encoding/pem"
"errors"
"fmt"
"io"
"os"
"strconv"
"strings"
"sync"
"time"
"golang.org/x/crypto/ed25519"
"golang.org/x/crypto/ssh"
"github.com/gin-gonic/gin"
"github.com/kthomas/go-auth0"
"github.com/kthomas/go-pgputil"
jwt "github.co... |
//
// (C) Copyright 2021 Intel Corporation.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// +build linux,amd64
//
package promexp
import (
"context"
"fmt"
"regexp"
"strings"
"sync"
"unicode"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/daos-stack/daos/src/co... |
// Copyright (C) MongoDB, Inc. 2014-present.
//
// 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
// Package mongoimport allows importing content fr... |
//
// SPDX-License-Identifier: BSD-3-Clause
//
package redfish
import (
"encoding/json"
"reflect"
"github.com/stmcginnis/gofish/common"
)
// BaseModuleType is the type of module.
type BaseModuleType string
const (
// RDIMMBaseModuleType Registered DIMM.
RDIMMBaseModuleType BaseModuleType = "RDIMM"
// UDIMMBa... |
/*
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 not use this fi... |
// Copyright © 2018 Pinpoint (PinPT, 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... |
package kube
import (
"context"
"fmt"
"strings"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/tools/pager"
crd "github.com/ovrclk/akash/pkg/apis/akash.network/v2beta1"
"github.com/ovrclk/... |
/*
Broker acts as the HTTP signaling channel.
It matches clients and snowflake proxies by passing corresponding
SessionDescriptions in order to negotiate a WebRTC connection.
*/
package main
import (
"container/heap"
"crypto/tls"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"os/signal"
"string... |
package telemetry
import (
"context"
"errors"
"fmt"
"net"
"net/http"
"strconv"
"time"
"github.com/golang/protobuf/ptypes/duration"
"github.com/prometheus/client_golang/api"
"github.com/prometheus/client_golang/api/prometheus/v1"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/commo... |
/*
Copyright The containerd Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
package schedulerapi
import (
"time"
"github.com/jenkins-x/lighthouse/pkg/config/job"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// Scheduler is configuration for a pipeline s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: infra/unifiedfleet/api/v1/proto/rack.proto
package ufspb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// Refe... |
package complaintdb
import(
"fmt"
"sort"
"time"
"github.com/skypies/util/date"
"github.com/skypies/util/histogram"
)
// Yay, sorting things is so easy in go
func keysByIntValDesc(m map[string]int) []string {
// Invert the map
inv := map[int][]string{}
for k,v := range m { inv[v] = append(inv[v], k) }
// L... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/text_sentiment.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/go... |
package driver
// Driver defines the Go driver interface to the RPLIDAR device. The implemenation is a Go wrapper around a C++ driver
// supplied by the manufacturer Slamtec. RPLidar is a family of device that use a laser beam mounted on a spinning platform to scan nearby objects in a circle
// and return a list of a... |
// 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.
// The /doc/codewalk/ tree is synthesized from codewalk descriptions,
// files named $GOROOT/doc/codewalk/*.xml.
// For an example and a description of the form... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: html.proto
package web
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 compile-time ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/resources/user_interest.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/googleapis/ads/goog... |
// Code generated by protoc-gen-go.
// source: server/pfs/db/persist/persist.proto
// DO NOT EDIT!
/*
Package persist is a generated protocol buffer package.
It is generated from these files:
server/pfs/db/persist/persist.proto
It has these top-level messages:
Clock
ClockID
Repo
BlockRef
Diff
Commit
Provenan... |
/*
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 under the License... |
/*
* Copyright 2012-2019 the original author or 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 a... |
// Copyright © 2016-2021 <NAME> <<EMAIL>>
//
// 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, pu... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: downloader.proto
package downloader
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
... |
package main
import (
"context"
"crypto/tls"
"fmt"
"net/http"
"net/http/httputil"
"os"
"strings"
"time"
"golang.org/x/crypto/acme/autocert"
_ "github.com/joho/godotenv/autoload"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"
"github.com/dfang/qor-demo/app/account"
admi... |
/*
Copyright 2016 - 2017 Huawei Technologies Co., Ltd. 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 applic... |
// Copyright 2020-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 writing... |
package plugins
import (
"bufio"
"bytes"
"fmt"
"github.com/alexandre-normand/slackscot"
"github.com/alexandre-normand/slackscot/actions"
"github.com/alexandre-normand/slackscot/plugin"
"github.com/alexandre-normand/slackscot/store"
"github.com/nlopes/slack"
"regexp"
"sort"
"strings"
"text/tabwriter"
)
// ... |
package log
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"net/url"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
"sync"
"time"
)
const (
KB = 1024
MB = 1024 * KB
GB = 1024 * MB
)
func parseSize(s string) (int64, error) {
n := len(s)
if n == 0 {
return 0, errors.New("invalid size")
}
u := s... |
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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
//
// Based on github.com/aws/aws-sdk-go by Amazon.... |
package cloudformationresources
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
"github.com/Sirupsen/logrus"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws... |
package drivers
import (
"context"
"encoding/json"
"errors"
"fmt"
"github.com/hashicorp/go-multierror"
"github.com/jitsucom/jitsu/server/logging"
"github.com/jitsucom/jitsu/server/safego"
"github.com/jitsucom/jitsu/server/singer"
"github.com/jitsucom/jitsu/server/uuid"
"go.uber.org/atomic"
"io"
"io/ioutil"... |
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... |
// Copyright 2017-2021 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... |
// Copyright 2015 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
package database
import (
// Stdlib
"encoding/json"
"strconv"
"strings"
// RPC
"github.com/goscorum/scorumgo/types"
)
type DynamicGlobalProperties struct {
ID uint32 `json:"id"`
Time types.Time `json:"time"`
HeadBlockNumber types.UInt32 `json:"head... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/enums/bidding_strategy_type.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 supp... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.21.0
// protoc v3.11.2
// source: github.com/google/cloudprober/probes/udp/proto/config.proto
package proto
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
pro... |
// Copyright 2015 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.
// based on golang.org/x/exp/shiny:
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that... |
package source
import (
"context"
"io"
"io/ioutil"
"mime"
"net/url"
"os"
"path/filepath"
"strings"
"sync"
"time"
"github.com/djherbis/fscache"
"github.com/h2non/filetype"
"github.com/h2non/filetype/matchers"
"github.com/neilotoole/lg"
"golang.org/x/sync/errgroup"
"github.com/neilotoole/sq/libsq/core... |
package cclf
import (
"archive/zip"
"context"
"database/sql"
"io/ioutil"
"os"
"path/filepath"
"sort"
"strings"
"testing"
"time"
"github.com/pborman/uuid"
"github.com/sirupsen/logrus/hooks/test"
"github.com/CMSgov/bcda-app/bcda/constants"
"github.com/CMSgov/bcda-app/bcda/models/postgres"
"github.com/CM... |
// Copyright 2020 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
/*
Copyright 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 maps
import (
"context"
"errors"
"fmt"
"sync"
"time"
"github.com/keybase/client/go/chat/globals"
"github.com/keybase/client/go/chat/storage"
"github.com/keybase/client/go/chat/types"
"github.com/keybase/client/go/chat/utils"
"github.com/keybase/client/go/libkb"
"github.com/keybase/client/go/protoco... |
// Copyright (C) 2018 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
package control
import (
"bytes"
"context"
"encoding/gob"
"fmt"
"github.com/goradd/gengen/pkg/maps"
"github.com/goradd/goradd/pkg/config"
"github.com/goradd/goradd/pkg/html"
"github.com/goradd/goradd/pkg/page"
html2 "html"
"strconv"
)
const (
TextboxTypeDefault = "text"
TextboxTypePassword = "password"
... |
// 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.
//go:generate go run makeisprint.go -output isprint.go
package strconv
import (
"internal/bytealg"
"unicode/utf8"
)
const (
lowerhex = "0123456789abcdef"
... |
package internal
import (
"context"
"fmt"
"github.com/nathanhack/sibyl/core"
"github.com/nathanhack/sibyl/core/database"
"github.com/sirupsen/logrus"
"math/rand"
"time"
)
const (
defaultHistoryStartYears = 20 //years
defaultHistoryDurationToWait = 1 * time.Second
maxHSRRetry = 1
)
type... |
//
//Copyright (C) 2020 The Falco Authors.
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to... |
package predict
import (
"fmt"
"math/rand"
"path"
"sort"
"strings"
"sync"
"time"
lru "github.com/hashicorp/golang-lru"
"github.com/kiteco/kiteco/kite-golib/errors"
"github.com/kiteco/kiteco/kite-golib/fileutil"
"github.com/kiteco/kiteco/kite-golib/kitectx"
"github.com/kiteco/kiteco/kite-golib/lexicalv0"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/cluster/circuit_breaker.proto
package cluster
import (
fmt "fmt"
core "github.com/cilium/proxy/go/envoy/api/v2/core"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes... |
/*
Copyright 2021 Contributors to the Egeria project.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
// Package to work with VHD images
// See https://technet.microsoft.com/en-us/virtualization/bb676673.aspx
package vhd
import (
"bytes"
"encoding/binary"
"encoding/hex"
"fmt"
"math"
"os"
"strconv"
"time"
"golang.org/x/text/encoding/unicode"
"golang.org/x/text/transform"
)
const (
VHD_COOKIE = "... |
package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"os"
"os/signal"
"path"
"strings"
"syscall"
"text/template"
"time"
"github.com/mitchellh/hashstructure"
"github.com/obicons/avis/detector"
"github.com/obicons/avis/entities"
"github.com/obicons/avis/executor"
"github.com/obicons/avis/hinj"
"git... |
// Code generated by protoc-gen-gogo.
// source: proto3_proto/proto3.proto
// DO NOT EDIT!
/*
Package proto3_proto is a generated protocol buffer package.
It is generated from these files:
proto3_proto/proto3.proto
It has these top-level messages:
Message
Nested
MessageWithMap
*/
package proto3_proto
import pro... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.12.3
// source: judger.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grp... |
package bitswap
import (
"context"
"fmt"
"io"
"net/http"
"runtime/debug"
"time"
"github.com/libp2p/go-libp2p-core/host"
"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/protocol"
"github.com/libp2p/go-msgio"
bsmsg "github.com/ipfs/go-bit... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: 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"
codes "googl... |
package operate
import (
"github.com/gogf/gf/container/gmap"
"github.com/gogf/gf/database/gdb"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/util/gconv"
"github.com/xinjiayu/SimServerUnicom/app/model/analyse"
"github.com/xinjiayu/SimServerUnicom/app... |
package avgsManager
import (
"fmt"
"gateserver/dataformats"
"gateserver/exportManager"
"gateserver/storage/coredbs"
"gateserver/storage/diskCache"
"gateserver/support/globals"
"github.com/fpessolano/mlogger"
"time"
)
// calculateAbsoluteFlows extracts the flows from variation data
func calculateAbsoluteFlows(... |
package command
import (
"bufio"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"strconv"
"time"
"github.com/hashicorp/errwrap"
"github.com/hashicorp/go-getter"
"github.com/hashicorp/terraform/config"
"github.com/hashicorp/terraform/config/module"
"github.com/hashicorp/terraform/helper/experi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: opts/ps_opts_cli.proto
package opts
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a ... |
package platform
import (
"context"
"flag"
"fmt"
"runtime"
"strconv"
"strings"
"github.com/buildbuddy-io/buildbuddy/server/environment"
"github.com/buildbuddy-io/buildbuddy/server/util/log"
"github.com/buildbuddy-io/buildbuddy/server/util/status"
"google.golang.org/grpc/metadata"
repb "github.com/buildbud... |
package gui
import (
"fmt"
"fyne.io/fyne"
"fyne.io/fyne/canvas"
"fyne.io/fyne/dialog"
"fyne.io/fyne/layout"
"fyne.io/fyne/theme"
"fyne.io/fyne/widget"
"image/color"
"nmap/client/application/service/network"
"sync"
"time"
)
//查询相关
func search(window fyne.Window) fyne.CanvasObject {
return widget.NewTabCon... |
package dplay
import (
"fmt"
"log"
"net/http"
"strconv"
"strings"
"time"
"github.com/egeback/playapi/internal/models"
"github.com/egeback/playapi/internal/parsers"
"github.com/egeback/playapi/internal/utils"
"github.com/google/uuid"
)
// Parser struct
type Parser struct {
uuid string
uuidTime time.Ti... |
package chat
import (
"context"
"errors"
"fmt"
"io/ioutil"
"os"
"regexp"
"strings"
"sync"
"github.com/keybase/client/go/chat/attachments"
"github.com/keybase/client/go/chat/globals"
"github.com/keybase/client/go/chat/types"
"github.com/keybase/client/go/chat/utils"
"github.com/keybase/client/go/protocol/... |
// Package with methods to work with a Tarantool cluster.
//
// Main features:
//
// - Check the active connection with a configurable time interval and switch
// to the next connection in the pool if there is a connection failure.
//
// - Get the address list from the server and reconfigure it for use in
// MultiConne... |
package main
import (
"compress/gzip"
"encoding/xml"
"flag"
"fmt"
"golang.org/x/net/html"
"io"
"log"
"net/http"
"net/url"
"os"
"strings"
"sync"
"time"
)
const (
version = "1.0"
defaultUA = "Optimus Sitemap Generator/" + version + " (http://patrickmylund.com/projects/osg/)"
)
var (
// Sitemap time f... |
package azure
import (
"context"
"errors"
"fmt"
"regexp"
"strconv"
"strings"
"github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-04-01/compute"
"github.com/Azure/azure-sdk-for-go/services/preview/commerce/mgmt/2015-06-01-preview/commerce"
"github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2... |
/*-
*
* Hedera Mirror Node
*
* Copyright (C) 2019 - 2021 Hedera Hashgraph, 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-... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/kernel_def.proto
package framework
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 _ ... |
package chainsaw
import (
"bytes"
"context"
"fmt"
"github.com/matryer/is"
"log"
"os"
"os/exec"
"sync"
"testing"
"time"
)
const (
testDefaultLogBufferSize = 50
testDefaultChanBufferSize = 0 // In tests we run with unbuffered channels to detect deadlocks.
defaultSleepTime = 1 *... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: greet/greetPb/streamming.proto
package GreetAPIManyTimes
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math... |
package rangeproof
import (
"encoding/binary"
"fmt"
"io"
"math/big"
"github.com/pkg/errors"
ristretto "github.com/bwesterb/go-ristretto"
"github.com/dusk-network/dusk-blockchain/pkg/crypto/rangeproof/fiatshamir"
"github.com/dusk-network/dusk-blockchain/pkg/crypto/rangeproof/innerproduct"
"github.com/dusk-ne... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/services/keyword_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/v2/resources"
_ "goog... |
/*
Copyright 2019 PlanetScale 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, softwar... |
package smtp
import (
"bufio"
"bytes"
"crypto/tls"
"fmt"
"io"
"net"
"net/textproto"
"regexp"
"strconv"
"strings"
"time"
"github.com/inbucket/inbucket/pkg/policy"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
// State tracks the current mode of our SMTP state machine.
type State int
const (
//... |
// Code generated by smithy-go-codegen DO NOT EDIT.
package transcribestreaming
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/eventstreamapi"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/FileGetInfo.proto
package 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 ... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright(c) 2019 Wind River Systems, Inc. */
package v1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const (
// List of valid certificate types. These must align with the system
// API expected values.
PlatformCertificate = "ssl"
PlatformCACertificat... |
// Package collectd provides a service for InfluxDB to ingest data via the collectd protocol.
package collectd // import "github.com/ivopetiz/influxdb/services/collectd"
import (
"bytes"
"fmt"
"io/ioutil"
"net"
"os"
"path/filepath"
"strings"
"sync"
"sync/atomic"
"time"
"collectd.org/api"
"collectd.org/net... |
// 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.