text stringlengths 5.51k 28.1k |
|---|
package main
// DONTCOVER
import (
"bufio"
"encoding/json"
"fmt"
"net"
"os"
"path/filepath"
"strings"
"time"
authvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
"github... |
package turn
import (
b64 "encoding/base64"
"fmt"
"math"
"net"
"sync"
"time"
"github.com/carrotsong/logging"
"github.com/carrotsong/stun"
"github.com/carrotsong/transport/vnet"
"github.com/carrotsong/turn/v2/internal/client"
"github.com/carrotsong/turn/v2/internal/proto"
)
const (
defaultRTO = 200... |
// Copyright 2015 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 applicabl... |
// Copyright 2017 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 i... |
/*
Copyright 2019 IBM.
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
distribute... |
/*
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
package workloadmeta
import (
"context"
"errors"
"fmt"
"strings"
"t... |
// Copyright 2018 The etcd Authors. All rights reserved.
// Use of this source code is governed by a Apache
// license that can be found in the LICENSES/etcd-LICENSE file.
//
// Copyright 2018 vip.com.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complianc... |
package queryrange
import (
"context"
"flag"
"fmt"
"net/http"
"sort"
"time"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/gogo/protobuf/proto"
"github.com/gogo/protobuf/types"
"github.com/opentracing/opentracing-go"
otlog "github.com/opentracing/opentracing-go/log"
"github.com... |
/*
* Copyright (C) 2018 The DNA Authors
* This file is part of The DNA library.
*
* The DNA 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, or
* (at your option) ... |
package controllers
import (
"context"
"fmt"
"sort"
"strconv"
"strings"
"time"
"github.com/AbsaOSS/k8gb/controllers/internal/utils"
"github.com/AbsaOSS/k8gb/controllers/depresolver"
coreerrors "errors"
k8gbv1beta1 "github.com/AbsaOSS/k8gb/api/v1beta1"
ibclient "github.com/infobloxopen/infoblox-go-client... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/customer_feed.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
wrappers "github.com/catper/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/googleapis/ads/goog... |
// Copyright © 2019. All rights reserved.
// Author: <NAME>.
// Contacts: <<EMAIL>>.
// License: https://opensource.org/licenses/MIT
package registrator
import (
"reflect"
"unsafe"
"github.com/qioalice/devola/core/event"
"github.com/qioalice/devola/core/sys/fn"
"github.com/qioalice/devola/core/view"
)
// Regis... |
/*
Copyright (c) 2016 IBM Corporation and other 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 or ag... |
package blockchain
import (
"github.com/autom8ter/dagger"
"github.com/overline-mining/gool/src/coin"
"github.com/overline-mining/gool/src/common"
"github.com/overline-mining/gool/src/database"
//"github.com/overline-mining/gool/src/validation"
"encoding/hex"
"errors"
p2p_pb "github.com/overline-mining/gool/src... |
// Copyright 2021 IBM Corp.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.3.0
// source: github.com/cloudprober/cloudprober/metrics/proto/dist.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/... |
package main
// Assignment: a,b,c = expr1,expr2,expr3
func emitAssignMultiToMulti(ast *StmtAssignment) {
emit("# emitAssignMultiToMulti")
// The number of operands on the left hand side must match the number of values.
if len(ast.lefts) != len(ast.rights) {
errorft(ast.token(), "number of exprs does not match")
... |
// Copyright 2016 <NAME>, Inc. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
package chunks
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"sync"
"time"
"github.com/attic-labs/noms/go/constants"
"github.com/attic-labs/noms/go/d"
"github.co... |
package Display
import (
"fmt"
ui "github.com/airking05/termui"
"github.com/nsf/termbox-go"
"github.com/opensatelliteproject/SatHelperApp"
"github.com/opensatelliteproject/SatHelperApp/Logger"
"github.com/opensatelliteproject/SatHelperApp/XRIT"
"log"
"regexp"
"strconv"
"sync"
"time"
)
const MaxStoredConsol... |
package parse
import (
"fmt"
"strings"
"unicode"
"unicode/utf8"
)
// item represents a token or text string returned from the scanner.
type item struct {
typ ItemType // The type of this item.
pos Pos // The starting position, in bytes, of this item in the input string.
val string // The value of thi... |
package collectors
import (
"context"
"fmt"
"strconv"
"github.com/btcsuite/btcutil"
"github.com/lightninglabs/lndclient"
"github.com/lightningnetwork/lnd/routing/route"
"github.com/prometheus/client_golang/prometheus"
)
// ChannelsCollector is a collector that keeps track of channel infromation.
type Channels... |
/* Copyright © 2019 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: BSD-2-Clause */
package metadata
// Note:
// Parser is incomplete
// Only valid to find resource metadata for given params info
import (
"encoding/json"
"github.com/vmware/vsphere-automation-sdk-go/runtime/l10n"
"github.com/vmware/v... |
package geometry
import (
"encoding/binary"
"errors"
"flag"
"fmt"
eplpbv1 "github.com/geo-grpc/api/golang/epl/protobuf/v1"
"github.com/twpayne/go-geom"
"github.com/twpayne/go-geom/encoding/ewkb"
"github.com/twpayne/go-geom/encoding/geojson"
"github.com/twpayne/go-geom/encoding/wkb"
"github.com/twpayne/go-geo... |
package merkletree2
import (
"bytes"
"fmt"
"sync"
"github.com/keybase/client/go/logger"
"github.com/keybase/go-codec/codec"
"golang.org/x/net/context"
)
// Tree is the MerkleTree class; it needs an engine and a configuration
// to run
type Tree struct {
sync.RWMutex
logger.Logger
cfg Config
eng StorageEng... |
package dockeradapter
import (
"context"
"fmt"
"io"
"os"
"strconv"
dockertypes "github.com/docker/docker/api/types"
dockercontainer "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/client"
"github.com/puppetlabs/lumogon/logging"
"github.c... |
package cedar
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
)
// defines max & min value of chinese CJK code
const (
valueLimit = int(^uint(0) >> 1)
CJKZhMin = '\u4E00'
CJKZhMax = '\u9FFF'
acsiiMax = '\u007F'
asciiA = 'A'
asciiz = 'z'
)
type node struct {
Value int
Check int
}
type nvalue st... |
/*
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, ... |
// Code generated by protoc-gen-go.
// source: google/api/servicecontrol/v1/operation.proto
// DO NOT EDIT!
package servicecontrol
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google/api"
import google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
// Referen... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.7.1
// source: trade.proto
package proto
import (
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protorefle... |
// Copyright (c) 2021 rookie-ninja
//
// Use of this source code is governed by an Apache-style
// license that can be found in the LICENSE file.
// Package rkmongo is an implementation of rkentry.Entry which could be used mongo client instance.
package rkmongo
import (
"context"
"crypto/tls"
"encoding/json"
"fmt... |
package messages
import (
"fmt"
"github.com/inkyblackness/imgui-go/v3"
"github.com/inkyblackness/hacked/editor/external"
"github.com/inkyblackness/hacked/editor/graphics"
"github.com/inkyblackness/hacked/editor/render"
"github.com/inkyblackness/hacked/editor/values"
"github.com/inkyblackness/hacked/ss1/conten... |
package indentfile
import (
"bufio"
"bytes"
"container/list"
"errors"
"fmt"
"io"
)
// Tokenizer provides a stream of tokens from an input stream.
type Tokenizer struct {
r *bufio.Reader
lineno, offset int
line []byte
lastToken TokenType
lastWordEnd int
indentStack list.Li... |
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
package pebble
import (
"fmt"
"sort"
"github.com/petermattis/pebble/internal/bytealloc"
"github.com/petermattis/pebble/internal/rangede... |
/*
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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: planets.proto
package schema_proto3
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
// Thi... |
package main
import (
"errors"
"flag"
"fmt"
"html/template"
"math"
"net/http"
"os"
"time"
"github.com/mhlias/trusted_advisor_go/awsadvisor"
)
// Output structure
var output = &awsadvisor.Output{}
type Page struct {
Header string
Footer string
Column1 template.HTML
Column2 template.HTML
Column3 tem... |
// Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
//
// For more information, please visit: https://github.com/tengge1/ShadowEditor
// You can also visit: https://gitee.com/tengge1/ShadowEditor
//... |
package main
import (
"fmt"
"io"
"math"
)
// is Half Floating Point (float16)
func isHFP(_ *Type) bool {
return false
}
// is Single Floating Point (float32)
func isSFP(ty *Type) bool {
return ty.kind == F32
}
// is Double Floating Point (float64)
func isDFP(ty *Type) bool {
return ty.kind == F64
}
// is Qua... |
package provider
import (
"bytes"
"fmt"
"regexp"
"strings"
"sync"
"text/template"
"github.com/golang/glog"
"github.com/kubernetes-incubator/custom-metrics-apiserver/pkg/provider"
apimeta "k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime/schema"
prom "github.com/kairosinc/custom-metrics-p... |
package main
import (
"crypto/tls"
"fmt"
"io"
"math/rand"
"net"
"net/http"
"regexp"
"strings"
"sync"
"time"
"github.com/getlantern/cloudflare"
"github.com/getlantern/enproxy"
// Temporarily disable CloudFront/DNSimple.
//"github.com/getlantern/go-dnsimple/dnsimple"
//"github.com/getlantern/peerscanner/... |
package resources
import (
"strings"
)
type google_sql_database_instance struct {
Type string `json:"type"`
DependsOn []string `json:"depends_on"`
Primary struct {
ID string `json:"id"`
Attributes struct {
ConnectionName string `json:"connection_name"`
DatabaseVersion ... |
/*
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 ui
import (
"fmt"
"image"
"image/color"
"strings"
"github.com/raedahgroup/godcr/wallet"
"gioui.org/gesture"
"gioui.org/io/pointer"
"gioui.org/layout"
"gioui.org/unit"
"gioui.org/widget"
"github.com/raedahgroup/dcrlibwallet"
"github.com/raedahgroup/godcr/ui/decredmaterial"
)
const PageOverview = ... |
/*
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... |
package handler
import (
"encoding/json"
"fmt"
"net/http"
"github.com/gorilla/mux"
)
// 1. get services
// http://192.168.0.152:31635/api/v1/services?clustername=cluster2
// name : items > metatdata > name
// namespace : items > metadata > namespace (project)
// type : items > spec > type(string)
// selector : i... |
package gql
import (
"context"
"runtime"
"sync"
"sync/atomic"
"github.com/grailbio/base/errors"
"github.com/grailbio/base/log"
"github.com/grailbio/base/traverse"
"golang.org/x/sync/semaphore"
"github.com/grailbio/gql/hash"
"github.com/grailbio/gql/marshal"
"github.com/grailbio/gql/symbol"
)
// largeFlatT... |
// connpool.go
//
// Author: blinklv <<EMAIL>>
// Create Time: 2018-07-05
// Maintainer: blinklv <<EMAIL>>
// Last Change: 2019-12-31
// Package connpool implements a concurrency-safe connection pool. It can be used to
// manage and reuse connections based on the destination address of which. This design
// makes a po... |
package azure
import (
"context"
"crypto/md5"
"encoding/base64"
"fmt"
"io"
"math"
"math/rand"
"net/url"
"strings"
"time"
"github.com/Azure/azure-pipeline-go/pipeline"
a "github.com/Azure/azure-storage-blob-go/azblob"
"github.com/mattetti/filebuffer"
bitsgo "github.com/cloudfoundry-incubator/bits-servic... |
/*
Copyright (C) 2018 Intel Corporation.
SPDX-License-Identifier: Apache-2.0
*/
package oimcontroller
import (
"context"
"sync"
"time"
"github.com/pkg/errors"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/status"
"github.com/intel/oim... |
package main
type ioSwitch uint8
const (
ioSwitchAUXRAMRD ioSwitch = iota // 1 = Aux RAM read enabled, 0 = main RAM read enabled
ioSwitchAUXRAMWRT // 1 = Aux RAM write enabled, 0 = main ram write enabled
ioSwitchALTCHARSET // 1 = Alt char set on, 0 = off
ioSwitchTEXT ... |
package disk
import (
"context"
"crypto"
"crypto/ecdsa"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"errors"
"io"
"math/big"
"net/url"
"os"
"path/filepath"
"testing"
"time"
"github.com/spiffe/go-spiffe/v2/spiffeid"
"github.com/spiffe/spire/pkg/common/catalog"
"github.com/spiffe/spire/pkg/common/cryptou... |
package analysis
import (
"go/types"
)
// TypeKind indicates the specific kind of a Go type.
type TypeKind uint
const (
// basic
TypeKindInvalid TypeKind = iota
_basic_kind_start
TypeKindBool
TypeKindInt
TypeKindInt8
TypeKindInt16
TypeKindInt32
TypeKindInt64
TypeKindUint
TypeKindUint8
TypeKindUint16
T... |
// 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 elf implements access to ELF object files.
package elf
import (
"bytes";
"debug/dwarf";
"encoding/binary";
"fmt";
"io";
"os";
)
// TODO: err... |
package keymanager
import (
"context"
"encoding/hex"
"fmt"
"io"
"sync"
"time"
"github.com/pkg/errors"
"github.com/oasislabs/oasis-core/go/common"
"github.com/oasislabs/oasis-core/go/common/accessctl"
"github.com/oasislabs/oasis-core/go/common/cbor"
"github.com/oasislabs/oasis-core/go/common/crypto/hash"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: koinos/json/json_test_objects.proto
package json
import (
_ "github.com/koinos/koinos-proto-golang/koinos"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.go... |
package proxy
import (
"sync"
"github.com/coyove/goflyway/pkg/logg"
"github.com/coyove/goflyway/pkg/msg64"
"github.com/coyove/goflyway/pkg/rand"
"crypto/aes"
"crypto/cipher"
"encoding/base64"
"encoding/binary"
"strings"
)
const (
ivLen = 16
sslRecordLen = 18 * 1024 // 18kb
streamBufferSiz... |
package cmd
import (
"fmt"
"io/ioutil"
"log"
"os"
"strconv"
"strings"
"thy/auth"
cst "thy/constants"
"thy/errors"
"thy/format"
preds "thy/predictors"
"thy/utils"
"thy/version"
"github.com/posener/complete"
flag "github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/thycotic-rd/cli"
"golang.... |
package aigo
import (
"os"
"path"
"reflect"
"sort"
"strings"
)
type (
// 这是一个路由表,类似于Go语言 net/http 包的 serveMux, 为请求的api,分配对应的handler
IRoutes struct {
name string
relativePath string
path string
methods []string
handlers []Handler
paramInfos []ParamInfo
notes []... |
package pandascore
import (
"fmt"
"strings"
"time"
)
// MatchSortField defines the values usable to sort on matches.
type MatchSortField string
const (
// MatchSortIDAsc can be set to sort per id asc order
MatchSortIDAsc MatchSortField = "id"
// MatchSortIDDesc can be set to sort per id desc order
MatchSortID... |
package acc
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
import (
"bits"
"mmio"
"unsafe"
)
type ACC_Periph struct {
ITCMCR RITCMCR
DTCMCR RDTCMCR
AHBPCR RAHBPCR
CACR RCACR
AHBSCR RAHBSCR
_ uint32
ABFSR RABFSR
}
func (p *ACC_Periph) BaseAddr() uintptr {
return uintptr(unsafe.Pointer(p))
}
//emgo:... |
/*
Copyright AppsCode Inc. 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 or agreed to in writing... |
// Code generated by protoc-gen-go.
// source: proto/raft.proto
// DO NOT EDIT!
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
proto/raft.proto
It has these top-level messages:
Peer
Configuration
Metadata
Snapshot
LogEntry
Packet
VoteRequest
VoteResponse
AppendEn... |
//nolint: gosec
package e2e
import (
"errors"
"fmt"
"io"
"math/rand"
"net"
"path/filepath"
"sort"
"strconv"
"strings"
"github.com/mydexchain/tendermint/crypto"
"github.com/mydexchain/tendermint/crypto/ed25519"
"github.com/mydexchain/tendermint/crypto/secp256k1"
rpchttp "github.com/mydexchain/tendermint/r... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
// Copyright 2018 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 packages
import (
"encoding/json"
"fmt"
"go/build"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"sort"
"strings"
"golang.org/x/tools/go/intern... |
// Copyright (c) 2021 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... |
package wsserver
import (
"crypto/tls"
"crypto/x509"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
"strings"
"sync"
"time"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
"github.com/kubeedge/kubeedge/cloud/edgecontroller/pkg/cloudhub/channelq"
hubio "github.com/kubeedge/kubeedge/cloud/edge... |
/*
Copyright 2017-2020 by the 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 or agreed to in writing... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/bigtable/admin/cluster/v1/bigtable_cluster_data.proto
package cluster // import "google.golang.org/genproto/googleapis/bigtable/admin/cluster/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/... |
// Copyright © 2018 The Knative Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
// Copyright 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 main
import (
"bytes"
"fmt"
"io"
"strings"
"github.com/robbydyer/exp/apidiff"
"golang.org/x/mod/module"
"golang.org/x/mod/semver"
"golang.org/... |
/*
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, ... |
// 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 (c) 2018 The MATRIX Authors
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php
package downloader
import (
"fmt"
"hash"
"sync"
"time"
"github.com/MatrixAINetwork/go-matrix/common"
"github.com/MatrixAINetwork/go-... |
//go:generate mcube enum -m -p
//
// Code generated by protoc-gen-go-ext. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.1
// source: pkg/verifycode/pb/verifycode.proto
package verifycode
import (
_ "github.com/infraboard/mcube/cmd/protoc... |
package alleles
import (
"fmt"
"github.com/vertgenlab/gonomics/dna"
"github.com/vertgenlab/gonomics/numbers"
"github.com/vertgenlab/gonomics/vcf"
"path"
"path/filepath"
)
// FindNewVariation calls variants from a set of samples and normals that DO NOT already exist in the graph structure.
func FindNewVariation(... |
/*
Copyright 2021 The terraform-docs Authors.
Licensed under the MIT license (the "License"); you may not
use this file except in compliance with the License.
You may obtain a copy of the License at the LICENSE file in
the root directory of this source tree.
*/
package cli
import (
"fmt"
"strings"
"github.com/t... |
// 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 redis
import (
"errors"
"io"
"os"
"runtime"
"sync"
"syscall"
"time"
"unsafe"
)
var initErr error
func init() {
var d syscall.WSAData
e := s... |
// Copyright the Hyperledger Fabric contributors. All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.12.1
// source: protos/txaggregator.proto
package protos
import (
protoreflect "google.golang.... |
// Copyright (c) Inlets Author(s) 2019. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package cmd
import (
"encoding/base64"
"fmt"
"strings"
"time"
"github.com/inlets/cloud-provision/provision"
"github.com/inlets/inletsctl/pkg/env"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.12.4
// source: pkg/options/descriptor.proto
package options
import (
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimp... |
/*
Package goroslib is a library in pure Go that allows to build clients (nodes)
for the Robot Operating System (ROS).
Basic example (more are available at https://github.com/aler9/goroslib/tree/master/examples):
package main
import (
"fmt"
"github.com/aler9/goroslib"
"github.com/aler9/goroslib... |
package components
import (
"compress/gzip"
"errors"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/data/binding"
"fyne.io/fyne/v2/dialog"
"fyne.io/fyne/v2/layout"
"fyne.io/fyne/v2/theme"
"fyne.io/fyne/v2/widget"
"github.com/buger/jsonparser"
"goXdagWallet/config"
"goXdagWallet/i18n"
"io"
... |
package modules
import (
"encoding/base32"
"testing"
"gitlab.com/NebulousLabs/Sia/crypto"
"gitlab.com/NebulousLabs/errors"
"gitlab.com/NebulousLabs/fastrand"
)
// TestSkylinkManualExamples checks a pile of manual examples using table driven
// tests.
func TestSkylinkManualExamples(t *testing.T) {
if testing.S... |
//go:build (!noasm && arm64) || (!noasm && amd64)
// +build !noasm,arm64 !noasm,amd64
package p384
import (
"fmt"
"math/big"
)
// affinePoint represents an affine point of the curve. The point at
// infinity is (0,0) leveraging that it is not an affine point.
type affinePoint struct{ x, y fp384 }
func newAffinePo... |
// +build windows
package taskmaster
import (
"errors"
"fmt"
"time"
ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
)
func parseRunningTask(task *ole.IDispatch) (RunningTask, error) {
var err error
currentAction, err := oleutil.GetProperty(task, "CurrentAction")
if err != nil {
return R... |
package k8s
import (
"strings"
"k8s.io/client-go/kubernetes"
"github.com/astaxie/beego/logs"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/api/core/v1"
"cloud/util"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"strconv"
"sort"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/ut... |
package golang
import (
"context"
"encoding/base64"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"reflect"
"strings"
"sync"
"time"
gobuild "go/build"
"github.com/ipfs/testground/pkg/api"
"github.com/ipfs/testground/pkg/aws"
"github.com/ipfs/testground/pkg/docker"
"github.co... |
// Copyright 2020 ConsenSys Software 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 webrtc is a golang wrapper on native code WebRTC.
For consistency with the browser-based WebRTCs, the interface here is based
loosely on: w3c.github.io/webrtc-pc
The main goal of this project is to present a golang WebRTC package in the most
idiomatic and simple-to-use way.
However, to provide a better ex... |
// Copyright 2016 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 main
import (
"bytes"
"compress/gzip"
"context"
"crypto/sha256"
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"math/rand"
"net/http"
"os"
"path"
"runtime"
"strings"
"time"
"github.com/gin-gonic/contrib/static"
"github.com/gin-gonic/gin"
"github.com/spf13/cobra"
"golang.org... |
// Copyright Ngo Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
// This module contains a collection of YANG definitions
// for Cisco IOS-XR ncs1001-ots package configuration.
//
// This module contains definitions
// for the following management objects:
// hardware-module: NCS1k HW module config
//
// Copyright (c) 2013-2017 by Cisco Systems, Inc.
// All rights reserved.
pack... |
// 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... |
// Copyright 2021 EMQ Technologies Co., Ltd.
//
// 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... |
// Copyright (c) 2018-2021, Sylabs Inc. All rights reserved.
// Copyright (c) 2017, SingularityWare, LLC. All rights reserved.
// Copyright (c) 2017, <NAME> <<EMAIL>> All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
// LICENSE file distributed with the sources of this p... |
// Copyright 2018 The Operator-SDK 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 ... |
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package s3
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
"github.com/aws/aws-sdk-go-v2/service/s3/internal/arn"
)
type ListObjectVe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.