text stringlengths 5.51k 28.1k |
|---|
package ste
import (
"errors"
"time"
"fmt"
"os"
"github.com/edsrzf/mmap-go"
"unsafe"
"reflect"
"context"
"github.com/Azure/azure-storage-azcopy/common"
)
var currFileDirectory string = "."
// initialize func initializes the JobPartPlanInfo handler for given JobPartOrder
func (job *JobPartPlanInfo) initializ... |
// Copyright 2019 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
// Testing tool for Keep services.
//
// keepexercise helps measure throughput and test reliability under
// various usage patterns.
//
// By default, it reads and writes blocks containing 2^26 NUL
// bytes. This generat... |
// Copyright 2022 The ChubaoFS 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 2020 The Complex 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 (
"fmt"
"image/color"
"io"
"math"
"math/cmplx"
"math/rand"
"os"
"gonum.org/v1/gonum/mat"
"gonum.org/v1/gonum/stat"
"gonum.o... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.10.1
// source: envoy/config/core/v4alpha/grpc_method_list.proto
package envoy_config_core_v4alpha
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"... |
package state
import (
"bytes"
"fmt"
"time"
"github.com/stellar/go/keypair"
"github.com/stellar/go/txnbuild"
"github.com/stellar/go/xdr"
"golang.org/x/sync/errgroup"
)
// CloseDetails contains the details that the participants agree on.
type CloseDetails struct {
ObservationPeriodTime time.Duration
Obs... |
package main
import (
_ "encoding/binary"
"fmt"
"github.com/veandco/go-sdl2/sdl"
"log"
"os"
"runtime"
_ "runtime/pprof"
_ "time"
// "github.com/aniou/morfe/emulator/cpu"
"github.com/aniou/morfe/emulator/emu"
"github.com/aniou/morfe/emulator/pl... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/evaluator.proto
package pb
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.go... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: output.proto
package output
import (
context "context"
fmt "fmt"
schema "github.com/falcosecurity/client-go/pkg/api/schema"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
grpc "google.golang.org/grpc"
... |
package h2mux
import (
"bytes"
"io"
"strings"
"sync"
"golang.org/x/net/http2"
)
/* This is an implementation of https://github.com/vkrasnov/h2-compression-dictionaries
but modified for tunnels in a few key ways:
Since tunnels is a server-to-server service, some aspects of the spec would cause
unnecessary head-o... |
// Package task 提供任务管理
package task
import (
"sync"
"time"
"github.com/safeie/spider/common/log"
"github.com/safeie/spider/component/fetcher"
"github.com/safeie/spider/component/url"
)
const (
stopEmpty int = iota
stopNotSaveQueue // 停止不保存队列
stopAndSaveQueue // 停止并保存队列
)
// Task 任务
type Task ... |
package api
import (
"context"
"crypto/x509"
"fmt"
"net/http"
"os/user"
"strconv"
"strings"
"sync"
"time"
dqlite "github.com/CanonicalLtd/go-dqlite"
raftmembership "github.com/CanonicalLtd/raft-membership"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/gorilla/mux"
"github.co... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: pairing_service.proto
package proto
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imp... |
// Copyright 2018 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 schemaparser
import (
"errors"
"fmt"
"go/ast"
"go/types"
"strings"
"sync"
"github.com/iancoleman/strcase"
"github.com/lolopinto/ent/internal/astparser"
"github.com/lolopinto/ent/internal/enttype"
"github.com/lolopinto/ent/internal/util"
"golang.org/x/tools/go/packages"
)
// Function represents a f... |
/*
* Copyright © 2018-2021 Software AG, Darmstadt, Germany and/or its licensors
*
* 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://... |
// Copyright (c) 2019 IoTeX
// This is an alpha (internal) release and is not suitable for production. This source code is provided 'as is' and no
// warranties are given as to title or non-infringement, merchantability or fitness for purpose and, to the extent
// permitted by law, all liability for your use of the cod... |
package funding
import (
"errors"
"fmt"
"sort"
"strings"
"time"
"github.com/shopspring/decimal"
"github.com/thrasher-corp/gocryptotrader/backtester/common"
"github.com/thrasher-corp/gocryptotrader/backtester/data/kline"
"github.com/thrasher-corp/gocryptotrader/backtester/funding/trackingcurrencies"
"github.... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: rrc_system_information.proto
package streaming_protobufs
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
math "math"
)
// Reference imports to suppress errors if they are not otherwise us... |
package lifecycle
import (
"context"
"fmt"
"os"
"os/signal"
"sync"
"syscall"
"time"
)
// Event is a struct passed to a service observers on a state change. It
// contains contextual information about the event.
type Event struct {
// The context of the event, typically the one passed to the function from
// ... |
package hare
import (
"encoding/binary"
"errors"
"github.com/gogo/protobuf/proto"
"github.com/spacemeshos/go-spacemesh/hare/config"
"github.com/spacemeshos/go-spacemesh/hare/pb"
"github.com/spacemeshos/go-spacemesh/log"
"github.com/spacemeshos/go-spacemesh/p2p/service"
"hash/fnv"
"time"
)
const ProtoName = "... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.13.0
// source: chat.proto
package protocol
import (
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protore... |
package astgen_test
import (
"bytes"
"go/parser"
"go/printer"
"go/token"
"math"
"testing"
"github.com/itchyny/astgen-go"
)
var testCases = []struct {
name string
src interface{}
expected string
}{
{
name: "nil",
src: nil,
expected: `nil`,
},
{
name: "true",
src: true... |
// Package page is the user-interface layer of goradd, and implements state management and rendering
// of an html page, as well as the framework for rendering controls.
//
// To use the page package, you start by creating a form object, and then adding controls to that form.
// You also should add a drawing template t... |
package caf
import (
"bytes"
"encoding/binary"
"fmt"
"io"
"time"
"github.com/go-audio/chunk"
)
type AudioDescChunk struct {
}
/*
Decoder
CAF files begin with a file header, which identifies the file type and the CAF version,
followed by a series of chunks. A chunk consists of a header, which defines the type ... |
package testing
import (
"encoding/hex"
"fmt"
"github.com/btcsuite/btcd/wire"
"github.com/deso-protocol/core/cmd"
"github.com/deso-protocol/core/lib"
"github.com/dgraph-io/badger/v3"
"github.com/golang/glog"
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
"io/ioutil"
"os"
"reflect"
"sort"
"... |
// Copyright 2020 Coinbase, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
package pinyin
import (
"fmt"
"reflect"
"strings"
"testing"
)
type pinyinFunc func(string, Args) [][]string
type testCase struct {
args Args
result [][]string
}
func testPinyin(t *testing.T, s string, d []testCase, f pinyinFunc) {
for _, tc := range d {
v := f(s, tc.args)
if !reflect.DeepEqual(v, tc.res... |
package main
import (
"archive/zip"
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/chromedp/cdproto/network"
"github.com/chromedp/chromedp"
"github.com/gogf/gf/encoding/... |
// Copyright (c) 2014 The SkyDNS Authors. All rights reserved.
// Use of this source code is governed by The MIT License (MIT) that can be
// found in the LICENSE file.
package main
import (
"log"
"net"
"os"
"os/signal"
"strings"
"sync"
"time"
"github.com/coreos/go-etcd/etcd"
"github.com/miekg/dns"
)
type ... |
//
// Copyright 2019 Lightbend 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 ... |
package cluster
import (
"fmt"
"github.com/capella-pw/queue/cn"
"github.com/myfantasy/mft"
)
// Errors codes and description
var Errors map[int]string = map[int]string{
10100000: "SimpleCluster.GetName: Permission denied",
10101000: "SimpleCluster.SetName: Permission denied",
10101010: "SimpleCluster.Ping: P... |
/* Distributed under the MIT license. See the LICENSE file.
* Copyright (c) 2014--2016 <NAME> */
/* This defines a 'vis2d' InferiorEvent handler. This handler tracks all the
* allocations in the program, and when a 2D one is made, it will visualize
* that result. */
package main
import (
"./debug"
"./gfx"
"./m... |
package structor_test
import (
"os"
"testing"
multierror "github.com/hashicorp/go-multierror"
"github.com/stretchr/testify/assert"
"github.com/nikolay-turpitko/structor"
"github.com/nikolay-turpitko/structor/el"
"github.com/nikolay-turpitko/structor/funcs/bytes"
"github.com/nikolay-turpitko/structor/funcs/cr... |
/*
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 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 ui
import (
"context"
"fmt"
"strings"
"time"
"chromiumos/tast/common/perf"
"chromiumos/tast/ctxutil"
"chromiumos/tast/errors"
"chromi... |
// comment
package utils
import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
"net/http"
"os"
"runtime"
"strings"
"sigs.k8s.io/controller-runtime/pkg/client/config"
"github.com/docker/docker/registry"
"github.com/go-logr/logr"
"github.com/google/go-containerregistry/pkg/authn"
"github.com/google/go-con... |
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Program for performing test runs using "fuzz-driver".
// Main loop iteratively runs "fuzz-driver" to create a corpus,
// then builds and runs the code. If a ... |
package main
import (
"log"
"strconv"
"strings"
"time"
"errors"
"github.com/gofunky/copy"
"github.com/gofunky/helmsman/gcs"
"gopkg.in/yaml.v2"
"io/ioutil"
"os"
"path/filepath"
)
var currentState map[string]releaseState
// releaseState represents the current state of a release
type releaseState struct {
... |
// Copyright 2016 The Gosl 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 vtk wraps the visualisation tool kit (VTK) for drawing 3D surfaces (scalar fields, vector
// fields, etc.)
package vtk
/*
#include "connectgovtk.h... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/probes/grpc/proto/config.proto
package proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
proto1 "github.com/google/cloudprober/common/oauth/proto"
math "math"
)
// Reference imports to suppress errors if the... |
package ebp
import (
"encoding/binary"
//"fmt"
"runtime"
"sync/atomic"
"unsafe"
"github.com/ethereum/go-ethereum/common"
"github.com/holiman/uint256"
"github.com/smartbch/moeingevm/types"
"github.com/smartbch/moeingevm/utils"
)
//#cgo LDFLAGS: -ldl
//#include "bridge.h"
import "C"
type (
evmc_address ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/enums/education_placeholder_field.proto
package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang... |
// Do not edit. Bootstrap copy of /home/eyberg/go/src/github.com/deferpanic/gorump/go/src/cmd/link/internal/ld/pcln.go
//line /home/eyberg/go/src/github.com/deferpanic/gorump/go/src/cmd/link/internal/ld/pcln.go:1
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-st... |
// Copyright 2022 <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 to ... |
// Copyright 2018 ETH Zurich, Anapaya 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: moc_common_security.proto
package common
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 ... |
// Copyright (c) 2019 Huawei Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
package virtcontainers
import (
"errors"
"github.com/kata-containers/runtime/virtcontainers/device/api"
exp "github.com/kata-containers/runtime/virtcontainers/experimental"
"github.com/kata-containers/runtime/virtcontainers/per... |
// Copyright 2011 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 record reads and writes sequences of records. Each record is a stream
// of bytes that completes before the next record starts.
//... |
// Package quicklz implements QuickLZ compress
/*
Translation of http://www.quicklz.com/QuickLZ.java
Licensed under the GPL, like the original.
*/
package quicklz
const (
// Streaming mode not supported
QLZ_STREAMING_BUFFER = 0
// Bounds checking not supported. Use try...catch instead
QLZ_MEMORY_SAFE = 0
QLZ_V... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: messages.proto
package pb
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-ti... |
package v2
import (
"fmt"
"net"
"os"
"sort"
"sync"
"testing"
"time"
"github.com/stretchr/testify/assert"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/behaviour"
bc "github.com/tendermint/tendermint/blockchain"
cfg "github.com/tend... |
/*
Copyright The Helm 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, software
di... |
// 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... |
// Licensed to the LF AI & Data foundation 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 th... |
// Copyright 2016 The G3N 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 collada
import (
"fmt"
"github.com/lquesada/cavernal/lib/g3n/engine/geometry"
"github.com/lquesada/cavernal/lib/g3n/engine/gls"
"github.com/lquesa... |
/*
* Copyright (C) 2019 Red Hat, 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 ofthe License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.
package query
import (
"context"
"fmt"
"sort"
"strings"
"sync"
"time"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus... |
package verify
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"path"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"sync"
"time"
"golang.org/x/crypto/openpgp"
"k8s.io/klog"
)
// Interface performs verification of the provided content. The default ... |
// Copyright 2019 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 ... |
// Package cgen contains the code for actually generating assembly. It
// assumes that typechecking has already succeeded, and would blow up
// horribly if handed a badly typed AST. There's really only one entry
// point, Gen. The part that generates assembly for expressions is
// split off into expr.go, to keep things... |
// 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.
// +build freebsd openbsd netbsd darwin
package fsnotify
import (
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"sync"
"syscall"
)
const (
// Flags... |
package cmd
import (
"bufio"
"context"
"fmt"
"io"
"sort"
"strconv"
"strings"
"time"
"github.com/golang/protobuf/ptypes"
"github.com/linkerd/linkerd2/controller/api/public"
"github.com/linkerd/linkerd2/controller/api/util"
"github.com/linkerd/linkerd2/pkg/addr"
pkgcmd "github.com/linkerd/linkerd2/pkg/cmd"... |
package orderbook
import (
"sort"
"sync"
"github.com/xdbfoundation/go/support/errors"
"github.com/xdbfoundation/go/xdr"
)
var (
errOfferNotPresent = errors.New("offer is not present in the order book graph")
errEmptyOffers = errors.New("offers is empty")
errAssetAmountIsZero = errors.New("curren... |
package extension
import (
"bytes"
"fmt"
"regexp"
"github.com/yuin/goldmark"
gast "github.com/yuin/goldmark/ast"
"github.com/yuin/goldmark/extension/ast"
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/renderer"
"github.com/yuin/goldmark/renderer/html"
"github.com/yuin/goldmark/text"
"github.co... |
/*******************************************************************************
* IBM Confidential
* OCO Source Materials
* IBM Cloud Container Service, 5737-D43
* (C) Copyright IBM Corp. 2017, 2018 All Rights Reserved.
* The source code for this program is not published or otherwise divested of
* its trade sec... |
// Copyright 2019 Sorint.lab
//
// 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... |
package svg
import (
"math"
strconvStdlib "strconv"
"github.com/tdewolff/minify/v2"
"github.com/tdewolff/parse/v2"
"github.com/tdewolff/parse/v2/strconv"
)
// PathData represents a path data string.
type PathData struct {
o *Minifier
x, y float64
x0, y0 float64
coords [][]byte
coordFloats... |
// Package database contains plain old Go types used by GORM as database models
// with GORM-specific Go tags.
package database
import (
"time"
"gopkg.in/guregu/null.v4"
)
// Structs naming conventions in this file:
// - Go struct field names: {type}Fields
// - SQL column names: {type}Columns
//
// Fields... |
/*
Copyright 2019 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, ... |
package wallet
import (
"encoding/binary"
"errors"
"fmt"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcutil/hdkeychain"
"github.com/monaarchives/btcwallet/netparams"
"github.com/monaarchives/btcwallet/waddrmgr"
"github.com/monaarchives... |
/*
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 cmn provides common constants, types, and utilities for AIS clients
// and AIStore.
/*
* Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
*/
package cmn
import (
"fmt"
"net/url"
"path/filepath"
"strings"
"time"
"github.com/NVIDIA/aistore/api/apc"
"github.com/NVIDIA/aistore/cmn/cos... |
// Package cli implements command-line commands for the Kopia.
package cli
import (
"context"
"fmt"
"io"
"net/http"
"net/http/pprof"
"os"
"time"
"github.com/alecthomas/kingpin"
"github.com/fatih/color"
"github.com/gorilla/mux"
"github.com/mattn/go-colorable"
"github.com/pkg/errors"
"github.com/kopia/kop... |
package coordinator
import (
"fmt"
"github.com/pkg/errors"
flag "github.com/spf13/pflag"
"go.uber.org/dig"
"golang.org/x/net/context"
"github.com/gohornet/hornet/core/gracefulshutdown"
"github.com/gohornet/hornet/core/protocfg"
"github.com/gohornet/hornet/pkg/common"
"github.com/gohornet/hornet/pkg/dag"
"g... |
// DBDeployer - The MySQL Sandbox
// Copyright © 2006-2019 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... |
package sync
import (
"crypto/md5"
"encoding/hex"
"fmt"
"io"
"os"
"path/filepath"
"strings"
"sync"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
"... |
// Copyright 2018 The CUE 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... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package introduce
import (
"encoding/json"
"errors"
"fmt"
"sync"
"github.com/google/uuid"
"github.com/hyperledger/aries-framework-go/pkg/common/log"
"github.com/hyperledger/aries-framework-go/pkg/didcomm/com... |
package parse
import (
"bufio"
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"os"
"runtime"
"time"
"github.com/itchyny/gojq"
"github.com/logrusorgru/aurora/v3"
)
// TimeParser is a function that parses timestamps in log messages.
type TimeParser func(interface{}) (time.Time, error)
// LevelParser is a func... |
package ics
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"time"
)
type ComponentType string
const (
ComponentVCalendar ComponentType = "VCALENDAR"
ComponentVEvent ComponentType = "VEVENT"
ComponentVTodo ComponentType = "VTODO"
ComponentVJournal ComponentType = "VJOURNAL"
ComponentVFreeBusy Compone... |
package main
import (
"bytes"
"encoding/json"
"fmt"
"go/format"
"log"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"unicode"
"github.com/pkg/errors"
)
func main() {
if err := _main(); err != nil {
log.Printf("%s", err)
os.Exit(1)
}
}
type stringList []string
func (s *stringList) String() strin... |
package application
import (
"context"
"encoding/gob"
"errors"
"fmt"
"log"
"net/http"
"net/http/httputil"
"os"
"runtime/debug"
"flamingo.me/flamingo/v3/core/auth/oauth"
"flamingo.me/flamingo/v3/core/oauth/domain"
"flamingo.me/flamingo/v3/framework/config"
"flamingo.me/flamingo/v3/framework/flamingo"
"fl... |
/*
Copyright 2021.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed un... |
package v1
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
buildv1 "github.com/openshift/api/build/v1"
configv1 "github.com/openshift/api/config/v1"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type OpenShiftAPIServerConfig struct {
metav1.TypeMeta... |
//
// (C) Copyright 2019 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 ... |
package main
import (
"bytes"
"crypto/subtle"
"encoding/binary"
"io"
"log"
"github.com/HimbeerserverDE/srp"
"github.com/anon55555/mt/rudp"
)
const (
ToClientHello = 0x02
ToClientAuthAccept = 0x03
ToClientAcceptSudoMode = 0x04
ToClientDenySudoMode = 0x05
ToClient... |
package integration
import (
"crypto/rand"
"encoding/hex"
"encoding/json"
"fmt"
"strings"
"time"
"github.com/golang/protobuf/proto"
w "github.com/golang/protobuf/ptypes/wrappers"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/chef/automate/api/external/habitat"
"github.com/chef/... |
package fieldio
import (
"encoding/binary"
"fmt"
"io"
"sync"
"github.com/grailbio/base/backgroundcontext"
"github.com/grailbio/base/errors"
"github.com/grailbio/base/file"
"github.com/grailbio/base/log"
"github.com/grailbio/base/recordio"
"github.com/grailbio/base/recordio/recordioiov"
"github.com/grailbio... |
//
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
package retry
import (
"context"
"fmt"
"github.com/pkg/errors"
"testing"
"testing/quick"
"time"
)
var (
urerr = fmt.Errorf("unrecoverable error")
recerr = fmt.Errorf("recoverable error")
)
func TestExpBackOff_Retry_noErr(t... |
/*
* Copyright (c) 2021, Oracle and/or its affiliates.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
*/
package zfssarest
import (
"bytes"
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"sync"
"time"
... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: vouchers.proto
package pb
import (
context "context"
fmt "fmt"
math "math"
time "time"
proto "github.com/gogo/protobuf/proto"
drpc "storj.io/drpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/type/matcher/v3/string.proto
package envoy_type_matcher_v3
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/go-control-plane/envoy/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "g... |
// Copyright (c) 2020 Cisco Systems and/or its affiliates.
// Licensed under the Apache License, Version 2.0 (the "License");
// that can be found in the LICENSE file in the root of the source
// tree.
package core
/* CNATimerWheel
This class was ported from TRex c++ server
It has maximum of 4 levels of tw
Example... |
package runner
import (
"context"
"fmt"
"sync"
"time"
"github.com/Netflix/metrics-client-go/metrics"
"github.com/Netflix/titus-executor/api/netflix/titus"
"github.com/Netflix/titus-executor/config"
titusdriver "github.com/Netflix/titus-executor/executor/drivers"
runtimeTypes "github.com/Netflix/titus-executo... |
//
// Go-FTL
//
// Copyright (C) <NAME>, 2014-2016
//
// Do not remove the following lines - used in auto-update.
// Version: 0.5.9
// BuildNo: 1811
// FileId: 1002
//
// MIT License LICENSE.txt
//
package goftlmux
import (
"bufio"
"bytes"
"encoding/xml"
"errors"
"fmt"
"net"
"net/http"
"os"
"strings"
"sync"... |
package drivers
import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
"github.com/Spruik/libre-common/common/drivers/autopaho"
"net/url"
"regexp"
"strings"
"time"
"github.com/Spruik/libre-common/common/core/domain"
libreConfig "github.com/Spruik/libre-configuration"
libreLogger "github.com/Spruik/libre... |
/*
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 agreed to in writing, soft... |
package gen
import (
"fmt"
"github.com/dave/jennifer/jen"
"github.com/go-fed/activity/astool/codegen"
"net/url"
"strings"
)
const (
// Method names for generated code
getMethod = "Get"
setMethod = "Set"
hasAnyMethod = "HasAny"
clearMethod = "Clear"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.