text stringlengths 8.57k 38.1k |
|---|
package main
import (
"github.com/BurntSushi/toml"
"github.com/beevik/etree"
"github.com/pebbe/util"
"github.com/robertkrimen/otto"
"bytes"
"encoding/xml"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"strconv"
"strings"
"time"
)
type Config struct {
Meta_dir string
Data_dir string
... |
package config
import (
"fmt"
"math/big"
"encoding/binary"
"github.com/entropyio/go-entropy/common"
"github.com/entropyio/go-entropy/common/crypto"
)
const (
ConsensusTypeEthash = 1
ConsensusTypeClique = 2
ConsensusTypeClaude = 3
)
var (
// EthashChainConfig is the chain parameters to run a node on the pow... |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package context defines the Context type, which carries deadlines,
// cancellation signals, and other request-scoped values across API boundaries
// and betw... |
/*
Copyright 2015 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 2014 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
// Copyright 2020 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... |
package terraform
import (
"fmt"
"log"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/configs"
"github.com/hashicorp/terraform/dag"
"github.com/hashicorp/terraform/tfdiags"
)
func TransformProviders(providers []string, concrete ConcreteProviderNodeFunc, co... |
// Copyright © 2017 Microsoft <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publ... |
// Copyright 2017 <NAME>.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
// Copyright 2021 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package client
import (
"fmt"
"os"
"path/filepath"
"strings"
"sync"
"time"
"github.com/go-openapi/swag"
"github.com/juju/fslock"
"github.com/pkg/errors"
clusterctlv1 "sigs.k8s.io/cluster-api/cmd/clusterctl/api/v1alph... |
package ca
import (
cryptorand "crypto/rand"
"crypto/tls"
"crypto/x509"
"fmt"
"math/big"
"math/rand"
"path/filepath"
"strings"
"sync"
"time"
cfconfig "github.com/cloudflare/cfssl/config"
events "github.com/docker/go-events"
"github.com/docker/swarmkit/api"
"github.com/docker/swarmkit/connectionbroker"
... |
/*
Copyright 2016 The Rook Authors. 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 law or agreed to ... |
package tnef
import "fmt"
// MAPIAttribute contains MAPI format attributes, i.e encoding type
// headers, attachments etc. See the constants for
// code references to find specific attributes.
type MAPIAttribute struct {
Type int
Name int
Data []byte
GUID int
}
func decodeMapi(data []byte) ([]MAPIAttribute, erro... |
// Evaluator
package golsp
import (
"fmt"
"sync"
)
// runtimeWaitGroup is the wait group used to wait for 'go' blocks to complete
var runtimeWaitGroup sync.WaitGroup
func RuntimeWaitGroup() *sync.WaitGroup {
return &runtimeWaitGroup
}
// comparePatternNode: Compare a node in a function pattern with an argument ... |
package task
import (
"fmt"
"net/url"
"strings"
"time"
"github.com/pkg/errors"
"github.com/determined-ai/determined/master/internal/db"
"github.com/determined-ai/determined/master/internal/prom"
"github.com/determined-ai/determined/master/internal/proxy"
"github.com/determined-ai/determined/master/internal/... |
// Copyright (c) 2013 <NAME>. All rights reserved.
// See LICENCE file for permissions and restrictions.
//Package mmsystem provides API definitions for accessing
//winmm.dll.
package mmsystem
import (
"github.com/tHinqa/outside"
. "github.com/tHinqa/outside/types"
T "github.com/tHinqa/outside-windows/types"
_ "g... |
// 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... |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package fab3
import (
"bytes"
"encoding/hex"
"encoding/json"
"fmt"
"net/http"
"strconv"
"strings"
"github.com/gogo/protobuf/proto"
"github.com/pkg/errors"
"go.uber.org/zap"
"github.com/hyperledger/fabric-sdk-go/pkg/client... |
package controller
import (
"fmt"
"reflect"
"strconv"
"strings"
"time"
trainingjobv1 "github.com/elasticdeeplearning/trainingjob-operator/pkg/apis/aitrainingjob/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"... |
package unfurl
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"path/filepath"
"strings"
"testing"
"time"
"github.com/keybase/client/go/chat/globals"
"github.com/keybase/client/go/chat/types"
"github.com/keybase/client/go/chat/maps"
"github.com/keybase/client/go/libkb"
"github.com/... |
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"path/filepath"
"strings"
"syscall"
"time"
"github.com/segmentio/conf"
"github.com/segmentio/ctlstore"
"github.com/segmentio/ctlstore/pkg/ctldb"
"github.com/segmentio/ctlstore/pkg/errs"
executivepkg "github.com/segmentio/ctlstore/pkg/executive"... |
/*
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 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package iris
/*
This is the part we only care, these are end-to-end tests for the mux(router) and the server, the whole http file is made for these reasons only, so these tests are enough I think.
CONTRIBUTE & DISCUSSION ABOUT TESTS TO: https://github.com/iris-contrib/tests
*/
import (
"fmt"
"io/ioutil"
"os"
"te... |
package adtonos
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"github.com/mxmCherry/openrtb"
"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/config"
"github.com/prebid/prebid-server/errortypes"
"github.com/prebid/prebid-server/openrtb_ext"
"net/http"
"net/url"
"strings"
... |
// Copyright 2015 - 2017 <NAME>
// Copyright 2015 - 2017 Google Inc. All Rights Reserved.
// Copyright 2021 Yandex 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... |
// Package cachelog is a log structured cache. See the README for details.
package cachelog
import (
"bufio"
"bytes"
"crypto/md5"
"encoding/binary"
"errors"
"fmt"
"io"
"log"
"math"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/Jille/cachelog/ranges"
"github.com/Jille/dfr"... |
package main
import (
"fmt"
"log"
rand "math/rand"
"net"
"time"
context "golang.org/x/net/context"
"google.golang.org/grpc"
"github.com/nyu-distributed-systems-fa18/starter-code-lab2/pb"
)
// Messages that can be passed from the Raft RPC server to the main loop for AppendEntries
type AppendEntriesInput stru... |
// Copyright The OpenTelemetry 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.11.2
// source: proto/clarifai/api/status/status.proto
package status
import (
_ "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/auth/util"
proto "github.com/golang/protobuf/proto"
protoreflect "google... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.13.0
// source: odpf/assets/job.proto
package assets
import (
common "github.com/odpf/meteor/proto/odpf/assets/common"
facets "github.com/odpf/meteor/proto/odpf/assets/facets"
protoreflect "google.golang.or... |
package main
import (
// "github.com/faiface/pixel/pixelgl"
"github.com/h8gi/canvas"
"golang.org/x/image/colornames"
"fmt"
"math"
"os"
"strconv"
)
var winx = 800 // 320
var winy = 600 // 200
type Frag struct {
S float64
E float64
}
type Vertex struct {
X float64
Y float64
Z float64
XX float64
YY float6... |
package fuse
import (
"context"
"sync"
"syscall"
"github.com/buildbarn/bb-clientd/pkg/cas"
re_fuse "github.com/buildbarn/bb-remote-execution/pkg/filesystem/fuse"
"github.com/buildbarn/bb-remote-execution/pkg/proto/remoteoutputservice"
"github.com/buildbarn/bb-storage/pkg/blobstore"
"github.com/buildbarn/bb-st... |
package distribution // import "github.com/docker/docker/distribution"
import (
"errors"
"fmt"
"io"
"runtime"
"sort"
"strings"
"sync"
"golang.org/x/net/context"
"github.com/docker/distribution"
"github.com/docker/distribution/manifest/schema1"
"github.com/docker/distribution/manifest/schema2"
"github.com... |
/*
Copyright 2019 The Seldon 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 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 evidence
import (
"os"
"testing"
"time"
"github.com/gogo/protobuf/proto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/crypto/tmhash"
"github.com/tendermint/tendermin... |
// Copyright 2011 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.
// TODO(adg): packages at weekly/release
// TODO(adg): some means to register new packages
package main
import (
"bytes"
"context"
"encoding/json"
"fmt"
... |
// Copyright (c) 2018 The Ecosystem Authors
// Distributed under the MIT software license, see the accompanying
// file COPYING or or or http://www.opensource.org/licenses/mit-license.php
/*
Package otto is a JavaScript parser and interpreter written natively in Go.
http://godoc.org/github.com/robertkrimen/otto
i... |
package rbac
import (
"github.com/billcobbler/casbin-redis-watcher"
"github.com/casbin/casbin"
"github.com/casbin/casbin/persist/file-adapter"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"io"
"os"
"testing"
)
func TestEnforcer_AddPolicy(t *testing.T) {
enf := NewEnforcer()
en... |
package fission
import (
"log"
"syscall"
)
// Volume represents a file system instance. A Volume is provisioned by calling
// NewVolume(). After recording the returned interface from NewVolume(), a single
// call to DoMount() kicks off the mounting process and the caller should expect
// to see the various callback... |
package run
import (
"crypto/tls"
"encoding/json"
"fmt"
"log"
"net"
"os"
"path/filepath"
"runtime"
"runtime/pprof"
"strings"
"time"
"github.com/freetsdb/freetsdb"
"github.com/freetsdb/freetsdb/coordinator"
"github.com/freetsdb/freetsdb/flux/control"
"github.com/freetsdb/freetsdb/logger"
"github.com/fr... |
package toml
import (
"fmt"
"io/ioutil"
"math"
"os"
"reflect"
"strings"
"testing"
"time"
"github.com/lucasbutn/toml/internal"
)
func TestDecodeReader(t *testing.T) {
var i struct{ A int }
meta, err := DecodeReader(strings.NewReader("a = 42"), &i)
if err != nil {
t.Fatal(err)
}
have := fmt.Sprintf("%v... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/api/auth.proto
/*
Package serviceconfig is a generated protocol buffer package.
It is generated from these files:
google/api/auth.proto
google/api/backend.proto
google/api/billing.proto
google/api/consumer.proto
google/api/context.proto
google/a... |
/*
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, ... |
package librelay
import (
"context"
"crypto/ecdsa"
"encoding/hex"
"flag"
"fmt"
"gen/librelay"
"gen/samplerec"
"librelay/test"
"librelay/txstore"
"log"
"math/big"
"os"
"strings"
"testing"
"time"
"code.cloudfoundry.org/clock/fakeclock"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereu... |
// In the name of Allah
// Persian Calendar v0.4.0
// Please visit https://github.com/yaa110/go-persian-calendar for more information.
//
// Copyright (c) 2016 <NAME>
// This source code is licensed under MIT license that can be found in the LICENSE file.
// Package ptime provides functionality for implementation of ... |
package diagnose
import (
"container/heap"
"fmt"
"math"
"sort"
"strconv"
"strings"
"sync"
"sync/atomic"
"github.com/jinzhu/gorm"
"github.com/pingcap/errors"
"github.com/pingcap-incubator/tidb-dashboard/pkg/dbstore"
)
func GetCompareReportTablesForDisplay(startTime1, endTime1, startTime2, endTime2 string,... |
package importer
import (
"bufio"
"context"
"encoding/hex"
"errors"
"fmt"
"io"
"io/ioutil"
"math/rand"
"net/http"
"net/http/httptest"
"net/url"
"os"
"os/exec"
"path/filepath"
"reflect"
"strconv"
"strings"
"syscall"
"time"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/extensions/table"
. "gi... |
package cereal
import (
"context"
"encoding/json"
"fmt"
"sort"
"strings"
"sync"
"time"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
rrule "github.com/teambition/rrule-go"
"github.com/chef/automate/lib/cereal/backend"
)
var (
ErrNoTasks = errors.New("no tasks in queue")
ErrNoWor... |
package transform
// This file provides function to lower interface intrinsics to their final LLVM
// form, optimizing them in the process.
//
// During SSA construction, the following pseudo-calls are created:
// runtime.typeAssert(typecode, assertedType)
// runtime.interfaceImplements(typecode, interfaceMeth... |
package main
import (
"fmt"
"log"
"math"
"os"
"sort"
"time"
// To log basis stats
"encoding/csv"
"math/rand"
"path/filepath"
"gonum.org/v1/gonum/mat"
)
// Chose amond the two cull function:
// - cullK: K-Mean based clustering. (When this is written, 2019.05.29, this one
// is not acutally finished. Bu... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v1
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Creates a cluster, consisting of the specified number and type of Goo... |
// Copyright (c) 2019 Baidu, 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-goten-go
// File: edgelq/meta/multi_region/proto/policy.proto
// DO NOT EDIT!!!
package policy
import (
"fmt"
"reflect"
"sync"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
preflect "google.golang.org/protobuf/reflect/protoreflect"
"google.g... |
// Copyright (c) 2019, <NAME> <<EMAIL>>
// See LICENSE for licensing information
package main
import (
"bytes"
"crypto/sha256"
"encoding/base64"
"encoding/json"
"flag"
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/printer"
"go/token"
"go/types"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
"... |
// ___ _____ ____
// / _ \/ _/ |/_/ /____ ______ _
// / ___// /_> </ __/ -_) __/ ' \
// /_/ /___/_/|_|\__/\__/_/ /_/_/_/
//
// Copyright 2017 <NAME>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed wit... |
/*
Copyright 2014 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed... |
package bbvm
import (
"context"
"github.com/wenerme/bbvm/bbasm"
"reflect"
"time"
)
type StdBuilder func(rt bbasm.Runtime, std *Std) *Std
func StdFrom(ctx context.Context) *Std {
v, _ := ctx.Value("STDLIB").(*Std)
return v
}
func WithStd(ctx context.Context, std *Std) context.Context {
return context.WithValue... |
// Copyright 2019 The Grafeas Authors. 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 ap... |
// Package gy Yeppp! library binding
package goyeppp
/*
#include <yepLibrary.h>
#cgo pkg-config: yeppp
*/
import "C"
import (
"errors"
"unsafe"
)
/////////////// CPU ///////////////////
// YepCpuVendor The company which designed the processor microarchitecture.
type YepCpuVendor int
const (
// YepCpuVendorUnk... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: pkg/health/health.proto
package health
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "go... |
package view
import (
"fmt"
"math"
"reflect"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"sync/atomic"
"github.com/gogo/protobuf/proto"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/any"
"gomatcha.io/matcha"
"gomatcha.io/matcha/bridge"
"gomatcha.io/matcha/comm"
"gomatcha.io/ma... |
package main
import (
"bufio"
"context"
"encoding/json"
"fmt"
"log"
"io/ioutil"
"os"
"math/rand"
"time"
"sort"
"strings"
"github.com/zmb3/spotify/v2"
)
// ---------------------------------------------------------
// Constants
// ---------------------------------------------------------
const SQUE_DATE_F... |
package okw
import (
"encoding/json"
"io/ioutil"
"log"
"path/filepath"
"strings"
"net/url"
"reflect"
daml "github.com/psprings/go-daml"
"gopkg.in/go-playground/validator.v9"
"gopkg.in/yaml.v2"
)
type Student struct {
Fname string
Lname string
City string
Mobile int64
}
const (
// Active :
Acti... |
package rest
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"encoding/json"
"net/http"
"os"
"sort"
"time"
"github.com/julienschmidt/httprouter"
log "github.com/sirupsen/logrus"
"github.com/neuvector/neuvector/controller/access"
"github.com/neuvector/neuvector/controller/api"
"github.com/neuvector/neuvector... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.11.4
// source: proto/data_harmonization.proto
package proto
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/pro... |
package excelize
import "encoding/xml"
// xlsxChartSpace directly maps the c:chartSpace element. The chart namespace in
// DrawingML is for representing visualizations of numeric data with column
// charts, pie charts, scatter charts, or other types of charts.
type xlsxChartSpace struct {
XMLName xml.Name ... |
// 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... |
/*
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 take15
import (
"fmt"
"math"
"math/rand"
"sort"
b "github.com/muzudho/kifuwarabe-wcsc31/take16base"
p "github.com/muzudho/kifuwarabe-wcsc31/take16position"
)
// TestControl
func TestControl(pBrain *Brain, pPos *Position) (bool, string) {
pBrain.PCtrlBrdSys.PBoards[CONTROL_LAYER_TEST_COPY1].C... |
package clusters
import (
"context"
"github.com/gogo/protobuf/proto"
"github.com/istio-ecosystem/admiral/admiral/pkg/apis/admiral/v1"
"github.com/istio-ecosystem/admiral/admiral/pkg/controller/admiral"
"github.com/istio-ecosystem/admiral/admiral/pkg/controller/common"
"github.com/istio-ecosystem/admiral/admiral/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/chaincode.proto
package peer
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise use... |
package lndclient
import (
"context"
"errors"
"fmt"
"net"
"path/filepath"
"strings"
"time"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil"
"github.com/lightningnetwork/lnd/lncfg"
"github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/lnrpc/verrpc"
"github.com/lightning... |
package main
import (
"context"
"fmt"
"os"
"path/filepath"
"strings"
"sync"
"time"
"github.com/argoproj-labs/argocd-image-updater/pkg/argocd"
"github.com/argoproj-labs/argocd-image-updater/pkg/env"
"github.com/argoproj-labs/argocd-image-updater/pkg/health"
"github.com/argoproj-labs/argocd-image-updater/pkg... |
//go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... |
package test_framework
import (
"fmt"
"github.com/balzaczyy/golucene/core/analysis"
. "github.com/balzaczyy/golucene/core/codec/spi"
docu "github.com/balzaczyy/golucene/core/document"
"github.com/balzaczyy/golucene/core/index"
"github.com/balzaczyy/golucene/core/search"
"github.com/balzaczyy/golucene/core/store... |
/*
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 dealer
import (
"context"
"errors"
"fmt"
"github.com/rs/zerolog/log"
gctlog "github.com/thrasher-corp/gocryptotrader/log"
"sync"
"time"
"github.com/romanornr/autodealer/internal/util"
"github.com/thrasher-corp/gocryptotrader/currency"
"github.com/thrasher-corp/gocryptotrader/exchanges/order"
"gith... |
// Copyright (c) 2018 Cisco and/or its affiliates.
//
// 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... |
package install
import (
"bufio"
"bytes"
"errors"
"fmt"
"io/ioutil"
"os"
"regexp"
"strings"
"sync"
"github.com/apprenda/kismatic/pkg/util"
yaml "gopkg.in/yaml.v2"
)
const (
ket133PackageManagerProvider = "helm"
defaultCAExpiry = "17520h"
)
// PlanTemplateOptions contains the options that ... |
package importer
import (
"bytes"
"encoding/xml"
"fmt"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"github.com/antchfx/xmlquery"
"github.com/iancoleman/strcase"
"github.com/pkg/errors"
"github.com/tableauio/tableau/internal/atom"
"github.com/tableauio/tableau/internal/importer/book"... |
//
// SPDX-FileCopyrightText: 2021 <NAME>
//
// SPDX-License-Identifier: MIT
//
package main
import (
"archive/zip"
"bytes"
"embed"
"encoding/xml"
"flag"
"fmt"
"hash/crc32"
"image"
_ "image/gif"
"image/jpeg"
_ "image/jpeg"
"image/png"
_ "image/png"
"io"
"io/fs"
"log"
"net/http"
"sort"
"strconv"
"s... |
// TODO: needs big refactor
package gbgen
import (
"fmt"
"os"
"os/exec"
"path"
"strings"
"github.com/rs/zerolog/log"
"github.com/iancoleman/strcase"
)
const (
indent = " "
lineBreak = "\n"
)
type SchemaConfig struct {
BoilerModelDirectory Config
Directives []string
SkipInputFields [... |
package main
import (
"bufio"
"bytes"
"fmt"
"strings"
"github.com/mazzegi/wasa/errors"
)
func main() {
in := input
scanner := bufio.NewScanner(bytes.NewBufferString(in))
var actions []action
for scanner.Scan() {
s := strings.Trim(scanner.Text(), " \r\n\t")
if s == "" {
continue
}
a, err := parseA... |
// Code generated by gen_tests.py and process_polyglot.py.
// Do not edit this file directly.
// The template for this file is located at:
// ../template.go.tpl
package reql_tests
import (
"testing"
"time"
"github.com/stretchr/testify/suite"
r "gopkg.in/dancannon/gorethink.v2"
"gopkg.in/dancannon/gorethink.v2/in... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.15.6
// source: automate-gateway/api/telemetry/telemetry.proto
package telemetry
import (
context "context"
_ "github.com/chef/automate/api/external/annotations/iam"
proto "github.com/golang/protobuf/proto"... |
package modules
import (
"encoding/binary"
"sync"
"time"
"github.com/turtledex/TurtleDexCore/build"
"github.com/turtledex/TurtleDexCore/crypto"
"github.com/turtledex/TurtleDexCore/types"
"github.com/turtledex/errors"
)
type (
// Instruction specifies a generic instruction used as an input to
// `mdm.Execute... |
/*
Copyright 2014 Outbrain 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 w... |
package helper
import (
"archive/zip"
"bytes"
"errors"
"io"
"io/ioutil"
"kard/src/global/variable"
"kard/src/model/dto"
"log"
"math/rand"
"net/http"
"path/filepath"
"regexp"
"strings"
"time"
"github.com/axgle/mahonia"
"github.com/mholt/archiver"
"github.com/nwaples/rardecode"
"github.com/saintfish/c... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: dproxy.proto
package services
import (
context "context"
fmt "fmt"
events "github.com/batchcorp/schemas/build/go/events"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.... |
package agent
import (
"bytes"
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"io"
"net"
"net/url"
"os"
"regexp"
"strconv"
"strings"
"sync"
"github.com/amitbet/go-socks5"
"github.com/amitbet/teleporter/logger"
proxy_dialer "github.com/mwitkow/go-http-dialer"
//"github.com/pions/dtls"
)
type IMux interf... |
// Copyright 2016-2020 Authors of Cilium
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
package vault
import (
"context"
"errors"
"fmt"
"strings"
"time"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-multierror"
sockaddr "github.com/hashicorp/go-sockaddr"
"github.com/hashicorp/vault/audit"
"github.com/hashicorp/vault/helper/consts"
"github.com/hashicorp/vault/helper/errutil"
"github.... |
// Copyright (c) 2020, 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 cohworkload
import (
"context"
"errors"
"fmt"
"os"
"strings"
"github.com/crossplane/oam-kubernetes-runtime/apis/core/v1alpha2"
"github.co... |
package emanage
import (
"fmt"
"path"
"time"
tm "github.com/buger/goterm"
"github.com/go-errors/errors"
"eurl"
"helputils"
"rest"
"types"
)
var Timeout time.Duration = 10 * time.Minute
const (
systemsUri = "api/systems"
sysID = 1
)
type systems struct {
session *rest.Session
}
type SystemState s... |
package main
import (
"errors"
"fmt"
"regexp"
"sort"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/arn"
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"github.com/aws/a... |
package main
import (
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "github.com/mmcloughlin/avo/reg"
)
func leaEnc4SSE2() {
TEXT("leaEnc4SSE2", NOSPLIT, "func(round int, rk []uint32, dst []byte, src []byte)")
round := Load(Param("round"), GP64())
rk := Mem{Base: Load(Param("rk")... |
// Copyright 2015 CNI 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 ... |
// Copyright 2016 <NAME>, Inc. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
package datas
import (
"compress/gzip"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"runtime"
"strings"
"time"
"github.com/attic-l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.