text stringlengths 5.51k 28.1k |
|---|
/*
Copyright 2020 The Tekton Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
package snapshots
import (
"bytes"
"crypto/sha256"
"errors"
"fmt"
"io"
"math"
"sort"
"sync"
"github.com/tendermint/tendermint/libs/log"
"github.com/cosmos/cosmos-sdk/snapshots/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
// Manager manages snapshot and restore operations for an app, mak... |
// Copyright (c) 2017 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 wui
import (
"syscall"
"unicode"
"unicode/utf8"
"unsafe"
"github.com/gonutz/w32/v2"
)
// Anchor defines how a child control is resized when its parent changes size.
// Children can be anchored to min (left or top), center and max (right or
// bottom) of their parents.
type Anchor int
const (
// Anchor... |
/*
Copyright 2019-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 writ... |
//go:build go1.16
// +build go1.16
package toml_test
import (
"bytes"
"encoding/json"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
"testing"
"github.com/BurntSushi/toml"
"github.com/BurntSushi/toml/internal/tag"
tomltest "github.com/BurntSushi/toml/internal/toml-test"
)
// Test if the error message matc... |
package dynamic
import (
"runtime/debug"
)
////Fast Paxos
func (dp *DynamicPaxos) handleFpProposal(p *FpProposal) {
fpExecTM := dp.getFpShardExecTM(p.FpT.Shard)
nat := dp.tm.GetCurrentTime()
//logger.Infof("cmdId = %s, timestamp = %d, execT = %d nat = %d, over execT = %d, over nat = %d",
// p.Cmd.Id, p.FpT.Time... |
// 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 applicabl... |
// This is free and unencumbered software released into the public domain.
// See the UNLICENSE file for details.
// Package main - tnt2 is an encryption system based on the article in
// Dr. Dobbs Journal Volume 9, Number 94, 1984 titled
// "An Infinite Key Encryption System" by <NAME> and <NAME>.
package main
impo... |
/*
MIT License
Copyright (c) 2020-2021 <NAME>
This file is part of NGSI Go
https://github.com/lets-fiware/ngsi-go
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 ... |
// Copyright (C) 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
//go:build windows
package win
import (
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
const (
// Button IDs
IDOK = 1
IDCANCEL = 2
IDABORT = 3
IDRETRY = 4
IDIGNORE = 5
IDYES = 6
IDNO = 7
// MessageBox types
MB_OK = windows.MB_OK
MB_OKCANCEL = windows.MB_OKCANCEL
... |
package keeper_test
import (
"math/rand"
"strings"
"testing"
"time"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/simapp"
sdk "gith... |
package v1alpha1
import (
"k8s.io/api/apps/v1beta1"
"k8s.io/api/autoscaling/v2beta1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
func init() {
SchemeBuilder.Register(&KanaryDeployment{}, &KanaryDeploymentList{})
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Objec... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.1
// source: calories.proto
package calories
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.go... |
// Copyright (c) 2018 Intel 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 agr... |
/*
* Copyright 2019 Armory, 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, ... |
// Copyright 2019 Polyaxon, 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... |
package s
import (
"encoding/json"
"fmt"
"github.com/ssgo/discover"
"github.com/ssgo/log"
"github.com/ssgo/u"
"net/http"
"reflect"
"regexp"
"strings"
)
type webServiceType struct {
authLevel int
priority int
method string
path string
pathMatcher *... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/securitycenter/v1/notification_config.proto
package securitycenter
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors ... |
/*
* portal - marshal
*
* a library that implements an algorithm for doing consumer coordination within Kafka, rather
* than using Zookeeper or another external system.
*
*/
package marshal
import (
"fmt"
"sync"
"sync/atomic"
"time"
"github.com/dropbox/kafka"
"github.com/dropbox/kafka/proto"
"github.com... |
// Copyright 2018 The Chromium OS 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 ready provides functions to be passed as a "ready" function to the
// bundle main function.
package ready
import (
"context"
"fmt"
"os"
... |
// Go implementation of the elliptic curve Edwards25519 of which the
// Ristretto group is a subquotient.
package edwards25519
import (
"crypto/subtle"
"encoding/hex"
"fmt"
)
// (X:Y:Z:T) satisfying x=X/Z, y=Y/Z, X*Y=Z*T. Aka P3.
type ExtendedPoint struct {
X, Y, Z, T FieldElement
}
// ((X:Z),(Y:T)) satisfying ... |
package qln
import (
"bytes"
"encoding/binary"
"fmt"
"sync"
"time"
"github.com/boltdb/bolt"
"github.com/mit-dci/lit/crypto/koblitz"
"github.com/mit-dci/lit/dlc"
"github.com/mit-dci/lit/eventbus"
"github.com/mit-dci/lit/lncore"
"github.com/mit-dci/lit/lndc"
"github.com/mit-dci/lit/lnp2p"
"github.com/mit-d... |
package core
import (
"bytes"
"fmt"
"io/ioutil"
"math/rand"
gnet "net"
"os"
"path"
"sync"
"testing"
"time"
"google.golang.org/grpc"
"github.com/dedis/drand/beacon"
"github.com/dedis/drand/key"
"github.com/dedis/drand/net"
"github.com/dedis/drand/protobuf/drand"
"github.com/dedis/drand/test"
"github.... |
// Copyright 2020 The Chromium OS 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 wifi
import (
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"chromiumos/tast/common/testexec"
"chromi... |
// Copyright (c) 2021 <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, distri... |
package exif
import (
"encoding/binary"
"errors"
"fmt"
"sort"
)
const (
// sub-IFD names
ifd0exifSub = 0x8769
ifd0gpsSub = 0x8825
ifd0interopSub = 0xA005
// other data
ifd1thumbOffset = 0x201
ifd1thumbLength = 0x202
)
var (
// ErrCorruptHeader is returned if the Exif header is corrupt.
ErrCorrup... |
package main
import (
"errors"
"fmt"
"io/ioutil"
"net/http"
"os"
"sort"
"strconv"
"strings"
)
var ILLEGAL_FILENAME_CHARS []string = []string{"%", "!", "/", ".", "\\", "_", "'", "\"", "?", "=", "+", "&"}
var WORKDIR = "files/"
func main() {
http.HandleFunc("/upload", Upload)
http.HandleFunc("/report", Repor... |
package libdevfile
import (
"fmt"
"reflect"
"regexp"
"strings"
"github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
"github.com/devfile/api/v2/pkg/validation/variables"
"github.com/devfile/library/pkg/devfile/parser"
"github.com/devfile/library/pkg/devfile/parser/data"
"github.com/devfile/library/pkg/dev... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/common/value.proto
package common // import "google.golang.org/genproto/googleapis/ads/googleads/v0/common"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors i... |
package yeelight
import (
"bufio"
"bytes"
"encoding/json"
"io"
"net"
"net/http"
"strconv"
"strings"
"sync/atomic"
"time"
ssdp "github.com/pulento/go-ssdp"
log "github.com/sirupsen/logrus"
)
var (
mcastAddress = "192.168.127.12:1982"
searchType = "wifi_bulb"
connTimeout = time.Duration(3) * ti... |
// Copyright (c) 2020-2021 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package ticketvote
import (
"encoding/hex"
"encoding/json"
"fmt"
"os"
"path/filepath"
"sort"
"strconv"
"sync"
"github.com/decred/dcrd/chaincfg/v3"
"github.com/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: proto/auth/service.proto
package auth
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow_serving/apis/get_model_status.proto
package tensorflow_serving
import (
fmt "fmt"
"github.com/RedisAI/aibench/cmd/aibench_run_inference_tensorflow_serving/tensorflow_serving/util"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Refe... |
package ovsdb
import (
"crypto/tls"
"crypto/x509"
"encoding/json"
"errors"
"github.com/TomCodeLV/OVSDB-golang-lib/pkg/dbcache"
"github.com/TomCodeLV/OVSDB-golang-lib/pkg/dbmonitor"
"github.com/TomCodeLV/OVSDB-golang-lib/pkg/dbtransaction"
"io/ioutil"
"math/rand"
"net"
"strconv"
"sync"
"time"
)
type Lock ... |
package pelicantun
import (
"bytes"
"fmt"
"net"
"strings"
"sync"
"time"
)
// A LongPoller (aka tunnel) is the server-side implementation
// of long-polling. We connect the http client (our pelican socks proxy)
// with the downstream target, typically an http server or sshd.
// For the client side implementation... |
package main
import (
"flag"
"fmt"
"io"
"log"
"math/rand"
"net/http"
"os"
"strconv"
"strings"
"time"
"github.com/esimov/pigo/core"
"github.com/nlopes/slack"
"github.com/pkg/errors"
"regexp"
"unicode"
)
type Player struct {
round, correct, incorrect, rightAnswer int
state ... |
package tester
import (
"bufio"
"bytes"
"errors"
"fmt"
"html/template"
"io"
"io/ioutil"
"net"
"net/http"
"os"
"os/exec"
"os/signal"
"path/filepath"
"runtime"
"strconv"
"sync"
"syscall"
"time"
)
// Config is used to configure how Tester is executed
type Config struct {
// Dir is the directory that h... |
// Code generated by protoc-gen-go.
// source: common/common.proto
// DO NOT EDIT!
/*
Package common is a generated protocol buffer package.
It is generated from these files:
common/common.proto
It has these top-level messages:
Header
ChainHeader
SignatureHeader
Payload
Envelope
Block
BlockHeader
BlockData
... |
// Copyright 2018 <NAME> (<EMAIL>).
//
// 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 database
import (
"fmt"
"github.com/heyLu/fressian"
"time"
"github.com/heyLu/mu/index"
)
type Db struct {
eavt *index.MergedIndex
aevt *index.MergedIndex
avet *index.MergedIndex
vaet *index.MergedIndex
basisT int
nextT int
useHistory boo... |
package main
import (
"io"
"unicode/utf8"
)
// Table stolen from https://github.com/denisenkom/go-mssqldb
var cp437 = [256]rune{
0x0000, //NULL
0x0001, //START OF HEADING
0x0002, //START OF TEXT
0x0003, //END OF TEXT
0x0004, //END OF TRANSMISSION
0x0005, //ENQUIRY
0x0006, //ACKNOWLEDGE
0x0007, //BELL
0x000... |
/*
* This file is part of the kubevirt 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 la... |
// Copyright 2020 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
package yaml
import (
"io"
)
// Set the reader error and return 0.
func yamlParserSetReaderError(parser *yamlParserT, problem string, offset int, value int) bool {
parser.error = yamlReaderError
parser.problem = problem
parser.problemOffset = ... |
package cui
import (
"fmt"
"github.com/jroimartin/gocui"
"github.com/michael-reichenauer/gmc/utils/log"
"golang.org/x/sync/semaphore"
"strings"
)
const (
currentLineMarker = '│' // The marker for current line (left)
)
type BoundFunc func(ww, wh int) Rect
func FullScreen() BoundFunc {
return func(ww, wh int) ... |
package clean
import (
"context"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/sirupsen/logrus"
)
const (
DockerPipe = "\\\\.\\pipe\\docker_engine"
... |
package test
import (
"crypto/md5"
"encoding/hex"
"hash"
"io"
"net/http"
"runtime"
"test/util"
"time"
"github.com/golang/glog"
"github.com/golang/protobuf/proto"
"github.com/golang/snappy"
"golang.org/x/net/context"
)
// S3PutObject is the class to handle object creation
type S3PutObject struct {
ctx ... |
// ==============================================================
// Copyright 2020 FireEye, 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/LICENS... |
// Copyright (c) 2017 Couchbase, 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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.14.0
// source: spire/service/private/init/v1/init.proto
package initv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
refle... |
package client
import (
"encoding/json"
"errors"
"fmt"
"github.com/phayes/freeport"
"github.com/wailsapp/wails"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/tools/clientcmd/api... |
// Package main implements an execution server for the Remote Execution API.
package main
import (
"fmt"
"os"
"runtime"
"runtime/pprof"
"strings"
"time"
"github.com/peterebden/go-cli-init/v4/flags"
"github.com/peterebden/go-cli-init/v4/logging"
"github.com/thought-machine/please-servers/cli"
"github.com/th... |
// signs.go
/*
Copyright ©2019 H.F.M - Magic Numbers detection library v0.5 github.com/hfmrow
This program comes with absolutely no warranty. See the The MIT License (MIT) for details:
https://opensource.org/licenses/mit-license.php
This library determine type of files by examining his magic number.
*/
package m... |
package cloud
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"time"
"k8s.io/klog"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aw... |
/* Copyright 2014 Ooyala, Inc. All rights reserved.
*
* This file is 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... |
package shared
import (
"context"
"github.com/pulumi/pulumi/sdk/v3/go/auto"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// StackSpec defines the desired state of Pulumi Stack being managed by this operator.
type StackSpec struct {
//... |
package recurly
import (
"bytes"
"encoding/xml"
"fmt"
"net/http"
"reflect"
"testing"
"time"
)
// TestPlansEncoding ensures structs are encoded to XML properly.
// Because Recurly supports partial updates, it's important that only defined
// fields are handled properly -- including types like booleans and integ... |
/*
Copyright 2019 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 agreed to in writing, soft... |
// Copyright 2019 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 2020 The Crossplane 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 2018, RadiantBlue Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
// Copyright 2015 go-swagger maintainers
//
// 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... |
package main
import (
"encoding/hex"
"flag"
"fmt"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"time"
"github.com/kolide/kit/version"
"github.com/kolide/launcher/pkg/autoupdate"
"github.com/kolide/launcher/pkg/launcher"
"github.com/peterbourgon/ff/v3"
"github.com/pkg/errors"
)
const (
defaultRoo... |
/*-
*
* Hedera Mirror Node
*
* Copyright (C) 2019 - 2022 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-... |
package service
import (
"context"
"fmt"
"log"
"net"
"net/url"
"time"
"github.com/lil-smile/selenoid/config"
"github.com/lil-smile/selenoid/session"
"github.com/aerokube/util"
"github.com/docker/docker/api/types"
ctr "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/networ... |
/*
Copyright 2014 Workiva, 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 writing, software
distr... |
// Copyright 2017 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, ... |
//
// 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 ... |
/*
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 2016 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 controllers
import (
"github.com/revel/revel"
// "encoding/json"
"github.com/leanote/leanote/app/info"
. "github.com/leanote/leanote/app/lea"
"gopkg.in/mgo.v2/bson"
"os"
"os/exec"
"regexp"
"strings"
"time"
"runtime"
// "github.com/leanote/leanote/app/types"
// "io/ioutil"
"fmt"
// "bytes"
// "o... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: message.proto
package pb
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "goo... |
package vial
import (
"context"
"fmt"
"os"
"reflect"
"sort"
"strings"
"strconv"
"log"
"net/http"
"crypto/tls"
"io"
"io/ioutil"
"github.com/pkg/errors"
"github.com/daihasso/slogging"
"github.com/daihasso/peechee"
"github.com/google/uuid"
"github.com/... |
// Copyright (c) 2019 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 appli... |
package progressui
// TODO: https://github.com/moby/buildkit/blob/master/LICENSE
import (
"bytes"
"context"
"fmt"
"io"
"os"
"sort"
"strconv"
"strings"
"time"
"github.com/containerd/console"
"github.com/jaguilar/vt100"
"github.com/morikuni/aec"
"github.com/tonistiigi/units"
"golang.org/x/time/rate"
)
f... |
package convUtils
import (
"encoding/json"
"fmt"
"os"
)
type E struct {
EF []EXIF
}
type EXIF struct {
SourceFile string
ExifToolVersion float64
FileName string
Directory string
FileSize string
FileModifyDate string
FileAccessD... |
/*
Copyright 2021 The KubeVela Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
// Package records contains functions to generate resource records from
// mesos master states to serve through a dns server
package records
import (
"crypto/sha1" // nolint: gosec
"encoding/json"
"errors"
"net"
"net/http"
"strconv"
"strings"
"time"
"github.com/AVENTER-UG/mesos-dns/httpcli"
"github.com/AVEN... |
package discv5
import (
"context"
"crypto/ecdsa"
"errors"
"fmt"
"math"
"math/rand"
"net"
"strconv"
"sync"
"time"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/enr"
"github.com/ethereum/go-ethereum/p2p/nat"
"github.com/libp2p/go-libp2p-core/discovery"
"github.com/libp2... |
// Code generated from emailaddress.g4 by ANTLR 4.7.2. DO NOT EDIT.
package emailaddress
import (
"fmt"
"unicode"
"github.com/antlr/antlr4/runtime/Go/antlr"
)
// Suppress unused import error
var _ = fmt.Printf
var _ = unicode.IsLetter
var serializedLexerAtn = []uint16{
3, 24715, 42794, 33075, 47597, 16764, 153... |
// 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 applicabl... |
// Code generated by protoc-gen-go.
// source: auth.proto
// DO NOT EDIT!
/*
Package auth is a generated protocol buffer package.
It is generated from these files:
auth.proto
It has these top-level messages:
User
RegisterRequest
RegisterResponse
Certificate
Result
*/
package auth
import proto "github.com/gola... |
// Copyright (c) 2019, The Decred developers
// See LICENSE for details.
package agendas
import (
"fmt"
"sync"
"github.com/decred/dcrd/chaincfg/v2"
chainjson "github.com/decred/dcrd/rpc/jsonrpc/types"
)
const (
statusDefined = "defined"
statusStarted = "started"
statusLocked = "lockedin"
statusActive = "a... |
// Copyright 2016 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 gg
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"image"
"image/color"
"image/png"
"math"
"reflect"
"sort"
"strconv"
"github.co... |
/*
Copyright 2020 The Tekton 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, softw... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/genomics/v1/cigar.proto
package genomics
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
... |
/*
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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.6.1
// source: github.com/solo-io/gloo/projects/gloo/api/v1/options/cors/cors.proto
package cors
import (
reflect "reflect"
sync "sync"
_ "github.com/solo-io/protoc-gen-ext/extproto"
protoreflect "google.... |
package main
import (
"bufio"
"flag"
"fmt"
"log"
"os"
"syscall"
"time"
"sigint.ca/fs/venti"
)
const badSize = ^uint64(0)
var qid uint64 = 1
func format(argv []string) {
flags := flag.NewFlagSet("format", flag.ExitOnError)
flags.Usage = func() {
fmt.Fprintf(os.Stderr, "Usage: %s [-b blocksize] [-h host]... |
/*
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 signalfx
import (
"encoding/json"
"net"
"net/http"
"sync"
"sync/atomic"
"time"
"bytes"
"context"
"github.com/gorilla/mux"
"github.com/signalfx/com_signalfx_metrics_protobuf"
"github.com/signalfx/gateway/logkey"
"github.com/signalfx/gateway/protocol"
"github.com/signalfx/gateway/protocol/collectd... |
package helm
import (
"bufio"
"bytes"
"fmt"
"os"
"path"
"path/filepath"
"regexp"
"strings"
"github.com/emosbaugh/yaml"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/pkg/errors"
"github.com/replicatedhq/libyaml"
"github.com/replicatedhq/ship/pkg/api"
"github.com/replicatedhq/... |
package data
import (
"encoding/json"
"fmt"
"sort"
"strconv"
"time"
)
// TimeSeriesType represents the type of time series the schema can be treated as (if any).
type TimeSeriesType int
// TODO: Create and link to Grafana documentation on Long vs Wide
const (
// TimeSeriesTypeNot means this Frame is not a vali... |
/*
Copyright 2022 TriggerMesh 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... |
// 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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc (unknown)
// source: api/hello/v1/hello.proto
package hellov1
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google... |
package cli
import (
"encoding/hex"
"encoding/json"
"io/ioutil"
stdlog "log"
"os"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/icon-project/goloop/common/crypto"
"github.com/icon-project/goloop/common/errors"
"github.com/icon-project/goloop/common/log"
"github.com/icon-project/goloop/comm... |
package bnb
import (
"encoding/json"
"fmt"
"reflect"
"strings"
"sync"
"time"
"github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/types"
)
const (
maxABCIPathLength = 1024
maxABCIDataLength = 1024 * 1024
maxTxLength = 1024 * 1024
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.