text stringlengths 8.57k 38.1k |
|---|
// (c) Copyright 2018 Hewlett Packard Enterprise Development LP
//
// This internal only use tool manually parses the ASUP folders looking for
// recorded host information phase 1 data. Nimble Storage arrays are
// ignored. Data collected is stored into a CSV file.
package main
import (
"bytes"
"encoding/json"
"... |
package computervision
// Copyright (c) Microsoft and contributors. 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
//... |
// Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
package main
import (
"context"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/http/httputil"
"os"
"os/signal"
"sort"
"strings"
"sync/atomic"
"syscall"
"time"
"github.com/NectGmbH/dns"
"github.com/NectGmbH/dns/provider/autodns"
mockdns "github.com/NectGmbH/dns/provider/mock"
mockjson "github.com/NectGmbH... |
package account
import (
"context"
"errors"
"fmt"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/iam"
"github.com/aws/aws-sdk-go/service/organizations"
"github.com/aws/aws-sdk-go/service/sts"... |
// Copyright 2015 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
package workflow
import (
"bytes"
"fmt"
"time"
"github.com/fsamin/go-dump"
"github.com/go-gorp/gorp"
"github.com/ovh/cds/engine/api/cache"
"github.com/ovh/cds/sdk"
"github.com/ovh/cds/sdk/log"
"github.com/ovh/cds/sdk/luascript"
)
// processWorkflowRun triggers workflow node for every workflow.
// It contai... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/errors/bidding_error.proto
package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v1/errors"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genpro... |
// Copyright (c) 2018-2019, Sylabs Inc. All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
// LICENSE.md file distributed with the sources of this project regarding your
// rights to use or distribute this software.
package signing
import (
"bytes"
"context"
"crypto/... |
package core
import (
"bytes"
"encoding/hex"
"encoding/json"
"fmt"
"io/ioutil"
"math/big"
"os"
"testing"
"time"
"github.com/nspcc-dev/neo-go/internal/testchain"
"github.com/nspcc-dev/neo-go/internal/testserdes"
"github.com/nspcc-dev/neo-go/pkg/config"
"github.com/nspcc-dev/neo-go/pkg/core/block"
"github... |
/*
Copyright 2019 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 function
import (
"context"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"sort"
"sync"
"time"
"gopkg.in/yaml.v2"
)
const (
// DefaultRegistry through which containers of Functions will be shuttled.
DefaultRegistry = "docker.io"
// DefaultRuntime is the language runtime for a... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/change_status.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads/googl... |
// Package sticky provides sticky partitioning strategy for Kafka, with a
// complete overhaul to be faster, more understandable, and optimal.
//
// For some points on how Java's strategy is flawed, see
// https://github.com/Shopify/sarama/pull/1416/files/b29086bdaae0da7ce71eae3f854d50685fd6b631#r315005878
package stic... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.proto
package envoy_extensions_filters_network_thrift_proxy_v3
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "git... |
package unittests
import (
"github.com/eosspark/eos-go/chain"
"github.com/eosspark/eos-go/chain/types"
"github.com/eosspark/eos-go/common"
"github.com/eosspark/eos-go/crypto"
"github.com/eosspark/eos-go/crypto/ecc"
"github.com/eosspark/eos-go/exception"
"github.com/eosspark/eos-go/exception/try"
"github.com/eo... |
// Copyright (c) 2018 Senseye Ltd. All rights reserved.
// Use of this source code is governed by the MIT License that can be found in the LICENSE file.
package mbgo
import (
"encoding/json"
"errors"
"fmt"
"net"
"net/http"
"net/url"
"strings"
)
const behaviorsKey = "_behaviors"
func parseHybridAddress(s stri... |
package cafs
import (
"context"
"errors"
"fmt"
"io"
"runtime"
"strings"
"sync"
"sync/atomic"
"go.uber.org/zap"
lru "github.com/hashicorp/golang-lru"
"github.com/oneconcern/datamon/pkg/dlogger"
"github.com/oneconcern/datamon/pkg/metrics"
"github.com/oneconcern/datamon/pkg/storage"
)
const (
defaultBuf... |
// Copyright 2017 ETH Zurich
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.15.8
// source: eth/v1/beacon_debug_service.proto
package v1
import (
context "context"
reflect "reflect"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/protoc-gen-go/descriptor"
... |
package flinkapplication
import (
"context"
"time"
"github.com/pkg/errors"
"fmt"
"github.com/lyft/flinkk8soperator/pkg/apis/app/v1alpha1"
"github.com/lyft/flinkk8soperator/pkg/controller/config"
"github.com/lyft/flinkk8soperator/pkg/controller/flink"
"github.com/lyft/flinkk8soperator/pkg/controller/flink/cl... |
// (c) Copyright 2019 Hewlett Packard Enterprise Development LP
package iscsi
import (
"fmt"
"math"
"strconv"
"strings"
"time"
"github.com/hpe-storage/common-host-libs/chapi2/cerrors"
"github.com/hpe-storage/common-host-libs/chapi2/host"
"github.com/hpe-storage/common-host-libs/chapi2/model"
log "github.com... |
// Copyright 2020 <NAME>. All rights reserved.
// Use of this source code is governed by the Apache-2.0
// license that can be found in the LICENSE file.
package bitstream_test
import (
"bytes"
"encoding/binary"
"fmt"
"math/rand"
"strings"
"testing"
"time"
"github.com/cosnicolaou/pbzip2/internal/bitstream"
"... |
package golbat
import (
"bytes"
"fmt"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/golang/snappy"
"github.com/neotse/golbat/internel"
"github.com/pkg/errors"
)
const tableFile = ".sst"
type tableIndex struct {
blockOffsets []uint32
baseKeys []... |
/*
Copyright 2016 <NAME> <www.webx.top>
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... |
package compactor
import (
"context"
"flag"
"fmt"
"net/http"
"path/filepath"
"strings"
"sync"
"time"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/kv"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/services"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/python/util/protobuf/compare_test.proto
/*
Package protobuf is a generated protocol buffer package.
It is generated from these files:
tensorflow/python/util/protobuf/compare_test.proto
It has these top-level messages:
Small
Medium
Large
Labe... |
package main
import (
"bufio"
b64 "encoding/base64"
"encoding/json"
"flag"
"fmt"
"hash/fnv"
"math"
"math/rand"
"os"
"sort"
"strconv"
"strings"
daemons "../daemons"
)
// Input Types Used to populate Logs
type OperationParams struct {
srcOpParams daemons.OperationParams
squareTime float64
}
type Lexi... |
// Copyright 2016 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/golang/protobuf/jsonpb"
... |
/*
Copyright © 2020 Logiq.ai <<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 in writing, sof... |
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"os"
"os/exec"
"regexp"
"runtime"
"strconv"
"strings"
"time"
log "github.com/sirupsen/logrus"
"github.com/slack-go/slack"
)
var specials []func(event *slack.MessageEvent) bool
// Slacking off with global vars
var Version = "develo... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: blob.proto
/*
Package gitaly is a generated protocol buffer package.
It is generated from these files:
blob.proto
commit.proto
conflicts.proto
deprecated-services.proto
diff.proto
namespace.proto
notifications.proto
operations.proto
ref.proto
remot... |
// Code generated from ATL.g4 by ANTLR 4.7.2. DO NOT EDIT.
package atl // ATL
import "github.com/antlr/antlr4/runtime/Go/antlr"
// BaseATLListener is a complete listener for a parse tree produced by ATLParser.
type BaseATLListener struct{}
var _ ATLListener = &BaseATLListener{}
// VisitTerminal is called when a ter... |
/*
Copyright 2021 The KodeRover 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, s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/publish_build_event.proto
package build
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf4 "github.com/golang/p... |
package ci
import (
"github.com/astaxie/beego"
"cloud/models/ci"
"cloud/sql"
"cloud/util"
"cloud/controllers/image"
"cloud/controllers/base/cluster"
"strings"
"cloud/k8s"
"cloud/controllers/base/hosts"
"time"
"strconv"
"github.com/astaxie/beego/logs"
"k8s.io/client-go/kubernetes"
"github.com/garyburd/re... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Cilium
package ipam
import (
"context"
"fmt"
"net"
"reflect"
"strconv"
"sync"
"time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
alibabaCloud "github.com/cilium/cilium/pkg/alibabacloud/utils"
"github.com/cilium/cilium/pkg/cidr"
"g... |
/*
The MIT License (MIT)
Copyright (c) 2019 winlin
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, publis... |
package consensus
import (
"encoding/hex"
"fmt"
"math/big"
"time"
"github.com/ethereum/go-ethereum/common"
protobuf "github.com/golang/protobuf/proto"
"github.com/harmony-one/bls/ffi/go/bls"
msg_pb "github.com/harmony-one/harmony/api/proto/message"
"github.com/harmony-one/harmony/block"
consensus_engine "gi... |
/*
Copyright 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 to in writing, software
dis... |
/*
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, ... |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package msp
import (
"bytes"
"encoding/hex"
"fmt"
"time"
"github.com/golang/protobuf/proto"
m "github.com/hyperledger/fabric-protos-go/msp"
"github.com/wingbaas/platformsrv/settings/fabric/txgeneratev2/bccsp"
idemixbccsp "gith... |
// 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.
package parser
import (
"regexp/syntax"
"sort"
"strconv"
"strings"
"unicode"
)
// A Query is a matching machine, like a regular expression,
// that matc... |
/*
Notice: This file has been modified for Hyperledger Fabric SDK Go usage.
Please review third_party pinning scripts and patches for more details.
*/
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: msp/msp_config.proto
package msp
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import ma... |
// Copyright Istio 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 l... |
/*
Copyright 2017 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 config
//revive:disable:line-length-limit Most of line length is documentation
//revive:disable:max-public-structs Config structs
// TODO(abeaumont): spy and remote configurations could be grouped,
// but using squash seems to keep the prefix in the CLI.
import (
"net/http"
"time"
"github.com/pyroscope-i... |
// Copyright 2015 Auburn University. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE File.
// This File defines the Refactoring interface, the RefactoringBase struct, and
// several methods common to refactorings based on RefactoringBase, including... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: message.proto
package xuperp2p
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is ... |
package hedge
import (
"bufio"
"context"
"encoding/base64"
"encoding/json"
"fmt"
"log"
"net"
"os"
"strings"
"sync"
"sync/atomic"
"time"
"cloud.google.com/go/spanner"
"github.com/flowerinthenight/spindle"
"github.com/google/uuid"
"google.golang.org/api/iterator"
)
const (
CmdLeader = "LDR" // for... |
package executor
import (
"context"
"encoding/json"
"fmt"
"strconv"
"strings"
"sync"
"time"
"kubesphere.io/alert/pkg/client/adapter"
nf "kubesphere.io/alert/pkg/client/notification"
"kubesphere.io/alert/pkg/logger"
"kubesphere.io/alert/pkg/metric"
"kubesphere.io/alert/pkg/models"
"kubesphere.io/alert/pkg... |
package badger
import (
"bytes"
"fmt"
"math"
"github.com/dgraph-io/badger/v2"
"github.com/oasisprotocol/oasis-core/go/common/cbor"
"github.com/oasisprotocol/oasis-core/go/common/crypto/hash"
"github.com/oasisprotocol/oasis-core/go/common/keyformat"
"github.com/oasisprotocol/oasis-core/go/common/logging"
"gi... |
// Code generated by protoc-gen-go-tag. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: v1/date/date.proto
// 日期查询 API
package date
import (
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
_ "github... |
package cluster
import (
"bytes"
"context"
"encoding/gob"
"fmt"
log "github.com/cihub/seelog"
"github.com/emirpasic/gods/sets/hashset"
pb "github.com/nixgnehc/infini-framework/core/cluster/pb"
"github.com/nixgnehc/infini-framework/core/cluster/raft"
raftboltdb "github.com/nixgnehc/infini-framework/core/cluste... |
// Copyright 2020 WHTCORPS INC, 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 maps
import (
"strconv"
)
//maps
func Product(id uint64) string {
product := make(map[uint64]string)
product[id] = "UNKNOWN PRODUCT ID=" + strconv.Itoa(int(id))
//products list
product[1] = "HRM1"
product[2] = "XH01"
product[3] = "AXB01"
product[4] = "AXB02"
product[5] = "HRM2SS"
product[6] = "DSI... |
/*
* Tencent is pleased to support the open source community by making 蓝鲸 available.
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the Li... |
package vault
import (
"context"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"encoding/json"
"errors"
"fmt"
"math/big"
mathrand "math/rand"
"net"
"net/http"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/hashicorp/errwrap"
log "github.com/hashico... |
// Copyright (c) 2015 <NAME> <<EMAIL>>.
// All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
package gv
// #cgo pkg-config: gtk+-3.0
// #include <gio/gio.h>
// #include <glib.h>
// #include <glib-object.h>
// #include <stdint.h>
// #inc... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.3
// source: modules/comment/pb/rpc.proto
package pb
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.go... |
package iris
import (
"net/http"
"os"
"path"
"strings"
"time"
"github.com/kataras/go-errors"
)
const (
// MethodGet "GET"
MethodGet = "GET"
// MethodPost "POST"
MethodPost = "POST"
// MethodPut "PUT"
MethodPut = "PUT"
// MethodDelete "DELETE"
MethodDelete = "DELETE"
// MethodConnect "CONNECT"
MethodC... |
// Package jsonschema uses reflection to generate JSON Schemas from Go types [1].
//
// If json tags are present on struct fields, they will be used to infer
// property names and if a property is required (omitempty is present).
//
// [1] http://json-schema.org/latest/json-schema-validation.html
package jsonschema
im... |
// package cc is a library for converting
// between cryptocurrencies. It implements
// fixed-point high-precision rate conversion
// and manipulation, and it also contains some
// knowledge about the number of digits on certain
// common cryptocurrencies and ERC20 tokens.
package cc
import (
"bytes"
"errors"
"fmt"... |
// Copyright 2015 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/endpoint/endpoint.proto
package endpoint
import (
fmt "fmt"
core "github.com/cilium/cilium/pkg/envoy/envoy/api/v2/core"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/pty... |
/*
Copyright 2020 KubeSphere 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 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... |
package raft
//
// this is an outline of the API that raft must expose to
// the service (or tester). see comments below for
// each of these functions for more details.
//
// rf = Make(...)
// create a new Raft server.
// rf.Start(command interface{}) (index, term, isleader)
// start agreement on a new log entry
... |
// Command zoekt-sourcegraph-indexserver periodically reindexes enabled
// repositories on sourcegraph
package main
import (
"bytes"
"context"
"encoding/json"
"errors"
"flag"
"fmt"
"html/template"
"io/ioutil"
"log"
"math"
"math/rand"
"net/http"
"net/url"
"os"
"os/exec"
"os/signal"
"path/filepath"
"ru... |
package governance
import (
"errors"
"fmt"
"github.com/boltdb/bolt"
"github.com/golang/glog"
"github.com/open-horizon/anax/api"
"github.com/open-horizon/anax/config"
"github.com/open-horizon/anax/cutil"
"github.com/open-horizon/anax/eventlog"
"github.com/open-horizon/anax/events"
"github.com/open-horizon/ana... |
package tetra3d
import (
"strconv"
"strings"
"github.com/kvartborg/vector"
)
// INode represents an object that exists in 3D space and can be positioned relative to an origin point.
// By default, this origin point is {0, 0, 0} (or world origin), but Nodes can be parented
// to other Nodes to change this origin (... |
package main
import (
"context"
"crypto"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/json"
"encoding/pem"
"fmt"
"io/ioutil"
stdlog "log"
"net"
"net/http"
"net/url"
"os"
"strings"
"time"
"github.com/coreos/go-oidc"
"github.com/go-chi/chi"
"github.com/go-chi/... |
package cmd
import (
"bufio"
"context"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"regexp"
"strings"
"time"
"github.com/machinebox/graphql"
)
func parseCopyTemplate(directory string, outDirectory string, relizaHubUri string, environment string, tagKey string,
tagVal string, apiKeyId string,... |
// Copyright 2018 <NAME>.A.S. Atos Technologies - Bull, Rue Jean Jaures, B.P.68, 78340, Les Clayes-sous-Bois, France.
//
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.10.1
// source: envoy/extensions/filters/http/compressor/v3/compressor.proto
package envoy_extensions_filters_http_compressor_v3
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
v3 "github.com/datawire/... |
package pool
import (
"context"
"errors"
"fmt"
"runtime"
"sort"
"sync"
"sync/atomic"
"time"
"github.com/henrylee2cn/goutil/coarsetime"
)
// ResPool is a high availability/high concurrent resource pool, which automatically manages the number of resources.
// So it is similar to database/sql's db pool.
//
// ... |
package lib
/* Flags */
var ImageCharacteristics = map[string]uint32 {
"IMAGE_FILE_RELOCS_STRIPPED": 0x0001,
"IMAGE_FILE_EXECUTABLE_IMAGE": 0x0002,
"IMAGE_FILE_LINE_NUMS_STRIPPED": 0x0004,
"IMAGE_FILE_LOCAL_SYMS_STRIPPED": 0x0008,
"IMAGE_FILE_AGGRESIVE_WS_TRIM": 0x0010,
"IMAGE_FILE_LARGE_ADDRESS_AWARE":... |
package main
import (
"bufio"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"regexp"
"sort"
"strings"
"sync"
"syscall"
"github.com/mattn/go-shellwords"
)
var (
identifier = `[A-Za-z_][A-Za-z_0-9]*`
name = regexp.MustCompile(identifier)
assignment = regexp.MustCompile... |
// Copyright (c) 2017-2018 Uber 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 applicabl... |
// Copyright (c) 2016 <NAME> <<EMAIL>>, all rights reserved.
// Use of this document is governed by a license found in the LICENSE document.
// gitgodoc allows you to view `godoc` documentation for different branches of a Git repository
package main
import (
"bufio"
"bytes"
"encoding/json"
"flag"
"fmt"
"go/buil... |
// data structures
package analyzer
import (
"encoding/json"
"fmt"
"github.com/fatih/color"
"github.com/nullcore1024/rma4go/treeprint"
"github.com/olekukonko/tablewriter"
"io/ioutil"
"os"
"sort"
"strings"
)
const (
defaultSize = 128
compactNum = 30
maxLeftNum = 150
minKeyLenLower = 2
minKeyLe... |
// Copyright 2020 Thinkium
//
// 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 model5
// Code generated by ../../generators/models.go. DO NOT EDIT.
// You can regenerate it by running 'go generate ./models' from the directory above.
import (
"github.com/andig/gosunspec"
"github.com/andig/gosunspec/smdx"
"github.com/andig/gosunspec/typelabel"
)
// Block5 - Secure Write Request - Incl... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: v8platform/serialize/v1/connections.proto
package serializev1
import (
_ "github.com/v8platform/protoc-gen-go-ras/plugin/ras/encoding"
protoreflect "google.golang.org/protobuf/reflect/protore... |
package stashcp
import (
"context"
"errors"
"io/ioutil"
"net"
"net/http"
"net/url"
"os"
"path"
"regexp"
"strconv"
"strings"
"sync"
"sync/atomic"
"syscall"
"time"
grab "github.com/cavaliercoder/grab"
log "github.com/sirupsen/logrus"
"github.com/studio-b12/gowebdav"
"github.com/vbauerster/mpb/v7"
"g... |
// Copyright (c) 2021, The Emergent 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 (
"log"
"strconv"
"strings"
"github.com/emer/axon/axon"
"github.com/emer/emergent/emer"
"github.com/emer/emergent/params"... |
package fastly
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"os"
"runtime"
"strings"
"github.com/ajg/form"
"github.com/google/jsonapi"
"github.com/hashicorp/go-cleanhttp"
"github.com/mitchellh/mapstructure"
)
// APIKeyEnvVar is the name of the environment variable where the Fastly AP... |
package main
import (
"bufio"
"bytes"
"context"
"database/sql"
"encoding/gob"
"fmt"
"io"
"log"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
"github.com/mjl-/sherpa"
)
// We run commands under a context, so we can cancel is from the UI. The context
// for these commands are separat... |
// Copyright 2016-2017 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... |
// Copyright 2018 Sogou 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 zcash
import (
"fmt"
"log"
"time"
"unsafe"
"github.com/kilo17/go-opencl/cl"
"github.com/kilo17/GoEndian"
// "os"
"encoding/hex"
"github.com/kilo17/awesomeProject/mining"
"os"
"crypto/sha256"
"hash"
)
type CSha256 struct {
state [8]uint32
count uint64
buffer [64]uint8
}
// Miner actual... |
package service
import (
"encoding/json"
"errors"
"bytes"
"fmt"
"reflect"
"strings"
. "github.com/elastos/Elastos.ELA/common"
"github.com/elastos/Elastos.ELA/utils/http"
"github.com/elastos/Elastos.ELA/elanet/pact"
sideser "github.com/elastos/Elastos.ELA.SideChain/service"
side "github.com/elastos/Elastos... |
package clustering
import (
"fmt"
"math"
"sort"
"strings"
logf "sigs.k8s.io/controller-runtime/pkg/log"
redisv1alpha1 "github.com/ucloud/redis-cluster-operator/pkg/apis/redis/v1alpha1"
"github.com/ucloud/redis-cluster-operator/pkg/redisutil"
)
var log = logf.Log.WithName("clustering")
type migrationInfo str... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/oslogin/common/common.proto
package common
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 otherwis... |
package main
import (
"context"
"crypto"
"crypto/tls"
"encoding/base64"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"time"
oidc "github.com/coreos/go-oidc"
"github.com/dgrijalva/jwt-go"
"github.com/mbland/hmacauth"
"github.com/pusher/oauth2_proxy/cookie"
"github.com/pusher/oauth2_p... |
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"regexp"
"strconv"
"strings"
"sync"
"time"
"github.com/Shopify/sarama"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
plog "github.com/prometheus/common/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1beta1/attestation/attestation.proto
package attestation
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Ma... |
// Copyright 2016 The Periph Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// Unlike the bcm283x, the allwinner CPUs do not have a "clear bit" and "set
// bit" registers, they only have the data register. Also, allwi... |
//
// Package eprinttools is a collection of structures, functions and programs// for working with the EPrints XML and EPrints REST API
//
// @author <NAME>, <<EMAIL>>
//
// Copyright (c) 2021, Caltech
// All rights not granted herein are expressly reserved by Caltech.
//
// Redistribution and use in source and binary ... |
// Copyright 2022 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.