text stringlengths 8.57k 38.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.proto
package gcp_authnv3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
v3 "github.com/envoyproxy/go-control-plane/envoy/config/cor... |
//-----------------------------------------------------------------------------
/*
RISC-V Control and Status Registers
*/
//-----------------------------------------------------------------------------
package rv
import (
"fmt"
"github.com/deadsy/rvdbg/soc"
"github.com/deadsy/rvdbg/util"
)
//------------------... |
package cloudflare
// This file contains hash-to-curve algorithms implementing the 2012
// LatinCrypto conference paper
//
// Indifferentiable Hashing to Barreto–Naehrig Curves
// by <NAME> and <NAME>
//
// with some additions from 2019 paper
//
// Fast and simple constant-time hashing to the BLS12-381 elliptic c... |
package prune
import (
"encoding/json"
"fmt"
"net/http"
"time"
kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/golang/glog"
gonum "github.com/gonum/graph"
"github.com/openshift/origin/pkg/api/graph"
buildapi "github.com/openshift/orig... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc (unknown)
// source: aserto/api/v2/instance.proto
package api
import (
_ "github.com/aserto-dev/go-grpc/aserto/options/v1"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
protoreflec... |
package jpegsegs
import (
"bytes"
"errors"
"fmt"
tiff "github.com/garyhouston/tiff66"
"io"
)
const (
TEM = 0x01
RES02 = 0x02
RESBF = 0xBF
SOF0 = 0xC0
SOF1 = 0xC1
SOF2 = 0xC2
SOF3 = 0xC3
DHT = 0xC4
SOF5 = 0xC5
SOF6 = 0xC6
SOF7 = 0xC7
JPG = 0xC8
SOF9 = 0xC9
SOF10 = 0xCA
SOF11 = 0xCB
D... |
package duit
import (
"encoding/json"
"fmt"
"image"
"io"
"io/ioutil"
"log"
"os"
"path"
"strings"
"time"
"9fans.net/go/draw"
)
const (
BorderSize = 1 // regardless of lowDPI/hiDPI, won't be scaled
ScrollbarSize = 10 // in lowDPI pixels
)
// Mouse buttons, see draw.Mouse.Buttons.
const (
Button1 = 1 <<... |
package cmd
import (
"bytes"
"context"
"encoding/json"
"fmt"
"os"
"sort"
"strings"
"text/tabwriter"
"time"
"github.com/linkerd/linkerd2/controller/api/util"
pb "github.com/linkerd/linkerd2/controller/gen/public"
"github.com/linkerd/linkerd2/pkg/k8s"
log "github.com/sirupsen/logrus"
"github.com/spf13/cob... |
package v1beta1
import (
"fmt"
"strings"
"github.com/VictoriaMetrics/operator/controllers/factory/crd"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/utils/pointer"
)
// VMAgentSpec defines the desired state of VMAgen... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.9.1
// source: wso2/discovery/config/enforcer/config.proto
package enforcer
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: attr_value.proto
package tensorflow
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 ... |
// SPDX-FileCopyrightText: 2020-present Open Networking Foundation <<EMAIL>>
//
// SPDX-License-Identifier: Apache-2.0
package main
import (
"encoding/hex"
"github.com/onosproject/onos-e2-sm/servicemodels/e2sm_kpm_v2/pdubuilder"
e2sm_kpm_v2 "github.com/onosproject/onos-e2-sm/servicemodels/e2sm_kpm_v2/v2/e2sm-kpm-v... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.6.1
// source: github.com/solo-io/gloo/projects/gloo/api/external/envoy/config/core/v3/backoff.proto
package v3
import (
reflect "reflect"
sync "sync"
_ "github.com/envoyproxy/protoc-gen-validate/validate"... |
package main
import (
"fmt"
"strconv"
)
type pulseset struct {
one, two, twop, four int
}
var multin, multout [24]chan pulse
var R, D [5]chan pulse
var A, S, AS, AC, SC, ASC, RS, DS, F chan pulse
var lhppI, lhppII, rhppI, rhppII chan pulse
var stage int
var multff [24]bool
var iersw, iercl, icandsw, icandcl, sigs... |
// Copyright (c) 2018, The Gide 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 gide
import (
"bytes"
"fmt"
"html"
"net/url"
"reflect"
"regexp"
"strings"
"time"
"github.com/goki/gi/gi"
"github.com/goki/gi/giv"
"g... |
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package doc extracts source code documentation from a Go AST.
package astview
import (
"go/ast"
"go/token"
"regexp"
"sort"
"strconv"
)
// ------------... |
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
package orm
import (
"database/sql"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"sort"
"time"
"gorm.io/gorm"
"github.com/tealeg/xlsx/v3"
"github.com/fullstack-lang/gong/test2/go/models"
)
// dummy variable... |
/*
* The following code tries to reverse engineer the Amazon S3 APIs,
* and is mostly copied from minio implementation.
*/
// 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:... |
package mqtt
import (
"context"
"errors"
"net"
"net/http"
"strconv"
"sync"
"sync/atomic"
"time"
"github.com/danclive/nson-go"
"go.uber.org/zap"
retained_trie "github.com/danclive/mqtt/retained/trie"
subscription_trie "github.com/danclive/mqtt/subscription/trie"
"github.com/danclive/mqtt/packets"
"git... |
// Copyright 2022 The Ebiten 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 project
import (
"encoding/json"
"fmt"
"io/ioutil"
"net"
"os"
"path/filepath"
"strconv"
"strings"
"sync"
"github.com/apparentlymart/go-cidr/cidr"
"github.com/rahveiz/topomate/config"
"github.com/rahveiz/topomate/internal/link"
"github.com/rahveiz/topomate/internal/ovsdocker"
"github.com/rahveiz/... |
package state
import (
"encoding/binary"
"fmt"
"github.com/bcbchain/bclib/jsoniter"
"github.com/bcbchain/sdk/sdk/ibc"
"github.com/bcbchain/sdk/sdk/std"
"os"
"strings"
abci "github.com/bcbchain/bclib/tendermint/abci/types"
"github.com/bcbchain/bclib/tendermint/go-crypto"
dbm "github.com/bcbchain/bclib/tender... |
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/api/serviceconfig/service.proto
// DO NOT EDIT!
package google_api // import "google.golang.org/genproto/googleapis/api/serviceconfig"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "goog... |
package state
import (
"context"
"fmt"
"net"
"sync"
"sync/atomic"
"time"
"github.com/google/uuid"
"golang.org/x/sys/unix"
"google.golang.org/grpc/codes"
grpcCodes "google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
grpcStatus "google.golang.org/grpc/status"
"google.golang.org/protobuf/proto"
... |
package reviewer
import (
"net/http"
"log"
"io/ioutil"
"fmt"
"encoding/json"
"sync"
"sync/atomic"
"bytes"
"mime/multipart"
"strconv"
"regexp"
"plugin"
"errors"
"strings"
"time"
"rbbot/db"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.7.1
// source: privacy.proto
package proto
import (
context "context"
proto "github.com/golang/protobuf/proto"
types "github.com/qlcchain/go-qlc/rpc/grpc/proto/types"
_ "google.golang.org/genproto/googleap... |
/**
* Licensed to the Apache Software Foundation (ASF) 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... |
package archfig
import (
"context"
"encoding/json"
"io/ioutil"
"strconv"
"strings"
"github.com/max-gui/consulagent/pkg/consulhelp"
"github.com/max-gui/logagent/pkg/logagent"
"github.com/max-gui/spells/internal/iac/defig"
"github.com/max-gui/spells/internal/pkg/constset"
"gopkg.in/yaml.v2"
)
type FileConten... |
package main
import (
"archive/zip"
"crypto/sha1"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
"github.com/jroimartin/gocui"
)
const resourceURL = "https://minecraft-updater.oss-cn-shanghai.aliyuncs.com/"
//IsFileOrDirectoryExists 造轮子
func IsFileOrDi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/attr_value.proto
package tensorflow
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var ... |
package core
import (
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"sync"
"testing"
"time"
"math/rand" // #nosec
randfile "github.com/oneconcern/datamon/internal/rand"
"github.com/oneconcern/datamon/pkg/cafs"
context2 "github.com/oneconcern/datamon/pkg/context"
"github.com/oneconcern/datamon/pk... |
// Package script provides access to the Google Apps Script API.
//
// See https://developers.google.com/apps-script/execution/rest/v1/scripts/run
//
// Usage example:
//
// import "google.golang.org/api/script/v1"
// ...
// scriptService, err := script.New(oauthHttpClient)
package script // import "google.golang... |
package log
import (
"context"
"fmt"
"math/big"
"sync"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/pkg/errors"
"go.uber.org/atomic"
evmclient "github.com/smartcontractkit/chainlink/core/chains/evm/client"
httypes "github.com/smartcontractkit/cha... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// Integration Action Flow
//
// 1. An integration creates an interactive message button or menu.
// 2. A user clicks on a button or selects an option from the menu.
// 3. The client sends a request to serve... |
package types
import (
"encoding/json"
"github.com/gofrs/uuid"
"github.com/jackc/pgtype"
)
type Module struct {
Id uuid.UUID `json:"id"`
ParentId pgtype.UUID `json:"parentId"` // module parent ID
FormId pgtype.UUID `json:"formId"` // default star... |
package currency
type currency struct {
IsoNumeric int
Name string
Symbol string
SymbolFirst bool
AlternateSymbols []string
ThousandsSeparator string
DecimalMark string
SubUnit string
SubUnitToUnit int64
HTMLEntity string
}
var curren... |
package main
import (
"bytes"
"context"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"os"
"os/exec"
"regexp"
"runtime"
"strconv"
"strings"
"sync"
"time"
)
var ioSkip = flag.Bool("io-skip", false, "skip the IO tests, which take a long time to run.")
var ioOnly = flag.Bool("io-only", false, "onl... |
// 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 w... |
package cluster
import (
"bufio"
"context"
"encoding/json"
"fmt"
"mime/multipart"
"net/http"
"net/url"
"regexp"
"strings"
"time"
application "github.com/kobsio/kobs/pkg/api/apis/application/v1beta1"
dashboard "github.com/kobsio/kobs/pkg/api/apis/dashboard/v1beta1"
team "github.com/kobsio/kobs/pkg/api/api... |
package api
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"reflect"
"github.com/boltdb/bolt"
"github.com/golang/glog"
"github.com/open-horizon/anax/persistence"
"github.com/open-horizon/anax/policy"
)
func attributesContains(given []persistence.Attribute, sp *persistence.ServiceSpec, typeString s... |
// The MIB module provides a means to monitor and configure
// the Cisco IOS proprietary Hot Standby Router Protocol
// (HSRP). Cisco HSRP protocol is defined in RFC2281.
//
// Terminology:
//
// HSRP is a protocol used amoung a group of routers for the
// purpose of selecting an 'active router' and a 'standby
// rou... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: econ_shared_enums.proto
package dota
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... |
// Copyright 2015 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.
// Binary package import.
// Based loosely on x/tools/go/importer.
package gc
import (
"cmd/compile/internal/big"
"cmd/internal/obj"
"encoding/binary"
"fm... |
// +build f030x6
package adc
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
import (
"bits"
"mmio"
"unsafe"
"stm32/o/f030x6/mmap"
)
type ADC_Periph struct {
ISR RISR
IER RIER
CR RCR
CFGR1 RCFGR1
CFGR2 RCFGR2
SMPR RSMPR
_ [2]uint32
TR RTR
_ uint32
CHSELR RCHSELR
_ [5]ui... |
/*
Copyright 2019 The Vitess 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 errors
import (
"fmt"
"net/http"
"strconv"
"strings"
"github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/internal/kafka/compat"
"github.com/golang/glog"
"github.com/pkg/errors"
)
type stackTracer interface {
StackTrace() errors.StackTrace
}
const (
ERROR_CODE_PREFIX = "KAFKAS-MGMT"
// HREF for AP... |
package slack
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strconv"
"strings"
"github.com/gorilla/mux"
"github.com/slack-go/slack"
"github.com/slack-go/slack/slackevents"
"github.com/slack-go/slack/socketmode"
"github.com/target/flottbot/models"
"github.com/target/flottbot/utils"
)
/*
=========... |
// Code generated by main. DO NOT EDIT.
package sese_019_001_02
import (
"bytes"
"encoding/xml"
"time"
)
type Account5 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:sese.019.001.02 Id,omitempty"`
Dsgnt Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:sese.019.001.... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/type/metadata/v3/metadata.proto
package envoy_type_metadata_v3
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Refere... |
/*
Copyright 2014 SAP SE
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
distribu... |
package bolt
import (
"bytes"
"fmt"
"sort"
"unsafe"
)
// 在内存中,分支节点 和 叶子节点 都是通过node来表示
// 只不过的区别是通过其node中的isLeaf这个字段来区分
// 1. 对叶子节点而言,其没有children这个信息。同时也没有key信息。
// isLeaf字段为true,其上存储的key、value都保存在inodes中
// 2. 对于分支节点而言,其具有key信息,同时children也不一定为空。
// isLeaf字段为false,同时该节点上的数据保存在inode中。
type node struct {
buck... |
package wasm
import (
"bytes"
"context"
"encoding/binary"
"errors"
"fmt"
"reflect"
"sync"
"github.com/tetratelabs/wazero/api"
experimentalapi "github.com/tetratelabs/wazero/experimental"
"github.com/tetratelabs/wazero/internal/ieee754"
"github.com/tetratelabs/wazero/internal/leb128"
)
type (
// Store is ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/asset_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources"
_ "google.gola... |
package router
import (
"bytes"
"fmt"
"html"
"html/template"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"path"
"path/filepath"
"sort"
"strings"
"time"
"github.com/kataras/iris/v12/context"
)
const indexName = "/index.html"
// DirListFunc is the function signature for customizing directory and file li... |
package ethereum
import (
"encoding/json"
"github.com/stretchr/testify/assert"
"github.com/trustwallet/blockatlas/coin"
"github.com/trustwallet/blockatlas/pkg/blockatlas"
"testing"
)
const collectionsOwnerV4 = "0x0875BCab22dE3d02402bc38aEe4104e1239374a7"
const collectionsSrcV4 = `
[
{
"primary_asset_co... |
package main
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"regexp"
"strings"
"testing"
"time"
"github.com/gorilla/mux"
)
func TestVNCHandler(t *testing.T) {
testCase := func(url string, expectedStatus int, expectedAddr string, def... |
// Code generated by protoc-gen-gogo.
// source: options/query_validate.proto
// DO NOT EDIT!
/*
Package options is a generated protocol buffer package.
It is generated from these files:
options/query_validate.proto
It has these top-level messages:
QueryValidate
MessageQueryValidate
*/
package options
import pro... |
package keeper
import (
"bytes"
"encoding/binary"
"encoding/json"
"fmt"
"io/ioutil"
"testing"
"time"
"github.com/CosmWasm/wasmvm"
wasmvmtypes "github.com/CosmWasm/wasmvm/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: msp/msp_principal.proto
package msp // import "deepchain/protos/msp"
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 _ = fm... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.proto
package envoy_config_filter_network_thrift_proxy_v2alpha1
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "g... |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Original source is golang.org/exp/shiny/text/text.go in 2016.06.
// Modification points of this file are:
//
// 1. Pragraph is treated as a line which ends... |
/*
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package governance
import (
"bytes"
"fmt"
"sort"
"strconv"
"chainmaker.org/chainmaker/logger/v2"
commonPb "chainmaker.org/chainmaker/pb-go/v2/common"
configPb "chainmaker.org/chainmaker/pb-go/v2/c... |
package ingress
import (
"context"
"crypto/sha256"
"errors"
"fmt"
"math"
"net"
"os"
"sort"
"strconv"
"strings"
"time"
"github.com/cenkalti/backoff/v4"
"github.com/mitchellh/hashstructure"
ptypes "github.com/traefik/paerser/types"
"github.com/traefik/traefik/v2/pkg/config/dynamic"
"github.com/traefik/t... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2018 Datadog, Inc.
package autodiscovery
import (
"expvar"
"fmt"
"sync"
"time"
"github.com/Da... |
package main
import (
"fmt"
"strings"
"syscall"
"github.com/jessfraz/bpfd/proc"
)
func main() {
// check if seccomp is enforced. otherwise this is silly
seccompMode := proc.GetSeccompEnforcingMode(0)
fmt.Printf("Seccomp: %s\n", seccompMode)
fmt.Println("Checking available syscalls...")
allowed := []strin... |
/*
* tuple.go
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project 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 co... |
// Copyright 2021 Kaleido
//
// 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://www.apache.org/licenses/LICENSE-2.0
// Unless required ... |
package content
import (
"bufio"
"bytes"
"encoding/binary"
"fmt"
"io"
"sort"
"time"
"github.com/pkg/errors"
"github.com/kopia/kopia/repo/blob"
"github.com/kopia/kopia/repo/compression"
)
const (
invalidBlobID = "---invalid---"
invalidFormatVersion = 0xFF
invalidCompressionHeaderID = ... |
// Copyright 2013 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 web implements a basic web site serving framework.
// The two fundamental types in this package are Site and Page.
//
// Sites
//
// A Site is an htt... |
// Package jsonrpc2 provides a client and server implementation of
// [JSON-RPC 2.0](http://www.jsonrpc.org/specification).
package jsonrpc2
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"log"
"os"
"strconv"
"sync"
)
// JSONRPC2 describes an interface for issuing requests that speak the
// ... |
package cluster
import (
"sort"
"strings"
"github.com/fusor/cpma/pkg/api"
o7tapiauth "github.com/openshift/api/authorization/v1"
o7tapiquota "github.com/openshift/api/quota/v1"
o7tapiroute "github.com/openshift/api/route/v1"
"github.com/sirupsen/logrus"
"k8s.io/api/apps/v1beta1"
k8sapicore "k8s.io/api/core/... |
// Copyright 2014 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/services/billing_setup_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v2/resources"
_ "goo... |
package block
import (
"github.com/df-mc/dragonfly/dragonfly/block/colour"
"github.com/df-mc/dragonfly/dragonfly/block/fire"
"github.com/df-mc/dragonfly/dragonfly/block/wood"
"github.com/df-mc/dragonfly/dragonfly/internal/entity_internal"
"github.com/df-mc/dragonfly/dragonfly/internal/item_internal"
"github.com/... |
// +build ignore
package main
import (
"flag"
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
. "github.com/mmcloughlin/avo/reg"
)
const k0 uint64 = 0xc3a5c85c97cb3127
const k1 uint64 = 0xb492b66fbe98f273
const k2 uint64 = 0x9ae16a3b2f90404f
const c1 uint32 = 0xcc9e2d51
const c2 uin... |
/*****************************************************************************
* (c) 2005-2015 Copyright, Real-Time Innovations. All rights reserved. *
* *
* No duplications, whole or partial, manual or electronic, may be made *
* wi... |
/*
Coded by LeeOn123
Please fking code ur script by ur self, kid.
I changed the random integers range to the max of int32.
Now 386 systems should work well.
*/
package main
import (
"bufio"
"crypto/tls"
"fmt"
"io"
"math/rand"
"net"
"os"
"strconv"
"time"
)
var (
UserAgents = []string{
... |
package message
/**
* A Response message is sent by a recipient of Request once it has received
* and interpreted the Request. Responses are contain a Status-Code and a
* Reason-Phrase, as well as Headers and a possible message body.
* <p>
* The Status-Code is a 3-digit integer result code that indicates the
* o... |
/*
Copyright © 2020 Dell Inc. or its subsidiaries. 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 ... |
//----------------------------------------
// 代码由GenlibVcl工具自动生成。
// Copyright © ying32. All Rights Reserved.
//
//----------------------------------------
package vcl
import (
. "github.com/ying32/govcl/vcl/api"
. "github.com/ying32/govcl/vcl/types"
"unsafe"
)
type TSplitter struct {
IControl
in... |
package executor
import (
"context"
"fmt"
"strconv"
"strings"
"time"
"github.com/golang/glog"
"github.com/turbonomic/kubeturbo/pkg/action/util"
"github.com/turbonomic/kubeturbo/pkg/cluster"
podutil "github.com/turbonomic/kubeturbo/pkg/discovery/util"
commonutil "github.com/turbonomic/kubeturbo/pkg/util"
ap... |
package main
import (
"encoding/json"
"fmt"
"html/template"
"io"
"log"
"math"
"net/http"
"strconv"
"time"
"unicode/utf8"
"dmitri.shuralyov.com/html/belt"
statepkg "dmitri.shuralyov.com/state"
"github.com/dustin/go-humanize"
"github.com/shurcooL/component"
"github.com/shurcooL/events"
"github.com/shurc... |
package v3client
import (
"encoding/json"
"errors"
"fmt"
"net/http"
"strings"
"time"
)
// Definition of the Mashery V3 Types used by Mashery.
type AccessTokenResponse struct {
TokenType string `json:"token_type"`
ApiKey string `json:"mapi"`
AccessToken string `json:"access_token"`
ExpiresIn in... |
// Copyright 2014-present, Apstra, Inc. All rights reserved.
//
// This source code is licensed under End User License Agreement found in the
// LICENSE file at http://www.apstra.com/community/eula
package aos
import (
"io"
"io/ioutil"
"log"
"net"
"bytes"
"strings"
"reflect"
"fmt"
"time"
"encoding/binary"
... |
// Copyright 2015-2019 the u-root 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 bbinternal is the internal API for both bazel and standard Go
// busybox builds.
//
// It contains exported functions that are not for user c... |
package spruce
import (
"context"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"os"
"strconv"
"sync"
"time"
"github.com/go-yaml/yaml"
"google.golang.org/grpc"
)
const (
FILE = iota
MEMORY
)
type Config struct {
ConfigType int `配置方式`
DCSConfigFile string `分布式的配置文件路径`
DNode []DNode `采用内存的... |
package main
import (
"bytes"
"errors"
"expvar"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
_ "net/http/pprof"
"net/url"
"os"
"runtime"
"strconv"
"strings"
"time"
"code.google.com/p/gogoprotobuf/proto"
pb "github.com/dgryski/carbonzipper/carbonzipperpb"
"github.com/bradfitz/gomemcache/memcache"... |
package main
import (
"errors"
"flag"
"fmt"
"go/ast"
"go/parser"
"go/token"
"go/types"
"io/ioutil"
"os"
"path/filepath"
"strings"
"golang.org/x/tools/go/loader"
"github.com/marwan-at-work/vgop/modfile"
"github.com/gojuno/generator"
"github.com/gojuno/minimock"
)
const version = "1.9"
type (
progra... |
/*
Scheme in [Go 1.11] by <NAME> (H30.8/5 - H30.9/30).
The Reader type and other portions are derived from
Nukata Lisp in Go (https://github.com/nukata/lisp-in-go).
*/
package scheme
import (
"errors"
"fmt"
"io"
"os"
"reflect"
"strconv"
"strings"
"sync"
)
const Version = 0.51
type Any = interface{}
/... |
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: infra/libs/skylab/inventor... |
package speculative
import (
"bufio"
"fmt"
"os"
"reflect"
"strings"
"log"
sp "github.com/sensssz/spinner"
)
func min(num1 int, num2 int) int {
if num1 <= num2 {
return num1
}
return num2
}
func max(num1 int, num2 int) int {
if num1 >= num2 {
return num1
}
return num2
}
func nonNegative(num int) i... |
package render
import (
"bytes"
"errors"
"html/template"
"path"
"strconv"
"strings"
"time"
"github.com/88250/lute/ast"
"github.com/88250/lute/html"
"github.com/88250/lute/lex"
"github.com/88250/lute/render"
luteUtil "github.com/88250/lute/util"
"github.com/PuerkitoBio/goquery"
"github.c... |
// +build windows
package taskmaster
import (
"time"
"github.com/go-ole/go-ole"
"github.com/rickb777/date/period"
)
// Day is a day of the week.
type Day int
const (
Sunday Day = 0x01
Monday Day = 0x02
Tuesday Day = 0x04
Wednesday Day = 0x08
Thursday Day = 0x10
Friday Day = 0x20
Saturday Day... |
// Copyright 2017 Factom Foundation
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
package engine
import (
"bufio"
"bytes"
"encoding/binary"
"fmt"
"io/ioutil"
"math"
"os"
"strings"
"time"
"github.com/FactomProject/factomd/common/constants"
"github.com/F... |
/*
Copyright 2017 The Kubernetes 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... |
package repos
import (
"context"
"fmt"
"regexp"
regexpsyntax "regexp/syntax"
"sort"
"strings"
"sync"
"time"
"github.com/cockroachdb/errors"
"github.com/inconshreveable/log15"
"github.com/neelance/parallel"
"github.com/sourcegraph/sourcegraph/cmd/frontend/envvar"
"github.com/sourcegraph/sourcegraph/inter... |
// Copyright (c) 2017 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package blockchain
import (
"bytes"
"container/list"
"errors"
"fmt"
"time"
"github.com/ppcsuite/ppcd/chaincfg/chainhash"
"github.com/ppcsuite/ppcd/database"
"github... |
package backing
// this code generated by github.com/ndau/generator/cmd/nomsify -- DO NOT EDIT
// ----- ---- --- -- -
// Copyright 2019 Oneiro NA, Inc. All Rights Reserved.
//
// Licensed under the Apache License 2.0 (the "License"). You may not use
// this file except in compliance with the License. You can obtain... |
/*
Copyright 2019 Gravitational, 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, soft... |
// 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.