text stringlengths 5.51k 28.1k |
|---|
// @author Couchbase <<EMAIL>>
// @copyright 2015 Couchbase, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... |
/*
Copyright 2018 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
// 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 runner
import (
"crypto"
"crypto/hmac"
"crypto/md5"
"crypto/sha1"
"crypto/sha256"
"hash"
)
// Split a premaster secret in two as specified in RF... |
// Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... |
package test
import (
"fmt"
"os"
"os/exec"
"path"
"testing"
"time"
"github.com/sirupsen/logrus"
"github.com/libopenstorage/openstorage/api"
policy "github.com/libopenstorage/openstorage/pkg/storagepolicy"
"github.com/libopenstorage/openstorage/volume"
"github.com/portworx/kvdb"
"github.com/portworx/kvdb/... |
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"html/template"
"io"
"net/http"
"net/url"
"path"
"reflect"
"strings"
"time"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/topo"
"code.google.com/p/vitess/go/vt/wrangler"
"code.google.com/p/vitess/go/vt/zktopo" // FIXME(al... |
// -----------------------------------------------------------------------------
// ZR Library - Whirlpool Hash Package zr-whirl/[hash_test.go]
// (c) <EMAIL> License: MIT
// -----------------------------------------------------------------------------
package whi... |
// =============================================================================
// PROJ: pimmp
// AUTH: ardnew
// DATE: 26 Sept 2018
// FILE: media.go
// -----------------------------------------------------------------------------
//
// DESCRIPTION
// defines types related to media and their auxiliary files a... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: logic.proto
package netproto
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 a ... |
// 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... |
// Copyright 2018 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 escape
import (
"fmt"
"cmd/compile/internal/base"
"cmd/compile/internal/ir"
"cmd/compile/internal/logopt"
"cmd/compile/internal/typecheck"
"cmd/... |
/*
Copyright 2021 The cert-manager 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 2015 CoreOS, 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... |
// +build restfulpatchthrough
package profiles
import (
"bytes"
"crypto/rsa"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"math"
"net/http"
"os"
"strings"
"time"
"github.com/xorrior/poseidon/pkg/utils/crypto"
"github.com/xorrior/poseidon/pkg/utils/functions"
"github.com/xorrior/poseidon/p... |
package main
import (
"fmt"
"log"
"math/rand"
"os"
"strings"
"github.com/dhowden/tag"
"github.com/gizak/termui"
)
type uiState int
const (
Stopped uiState = iota
Playing
Paused
)
type uiPlayMode int
const (
LoopAll uiPlayMode = iota
LoopOne
NoLoop
Random
)
var playModeName = []string{"Loop All", "L... |
package main
import (
"io"
"github.com/skillian/errors"
"github.com/skillian/sharebase/web"
)
// Root is a ShareBase filesystem root that keeps track of the top-level
// libraries inside.
type Root struct {
// objects contains the collection of libraries known by a client.
objects
// idCache is a lookup from ... |
//nolint:gocritic
package merge
import (
"fmt"
"regexp"
"strconv"
"strings"
"github.com/sirupsen/logrus"
"github.com/tidb-community-bots/ti-community-prow/internal/pkg/externalplugins"
"github.com/tidb-community-bots/ti-community-prow/internal/pkg/ownersclient"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/tes... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: devcommon.proto
package config
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 compi... |
// Code generated by goyacc -l -o gen_parser.go parser.y. DO NOT EDIT.
package total
import __yyfmt__ "fmt"
type yySymType struct {
yys int
Total total
value *value
kv *keyValue
object object
char rune
float float64
integer int
string string
boolean bool
list values
nulltype interf... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
package integration
import (
"fmt"
"math/rand"
"strconv"
"strings"
"testing"
"time"
"fbc/lib... |
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cli
import (
"errors"
"fmt"
"os"
"path/filepath"
"github.com/aws/amazon-ecs-cli-v2/internal/pkg/archer"
"github.com/aws/amazon-ecs-cli-v2/internal/pkg/manifest"
"github.com/aws/amazon-ecs-... |
package merger
import (
"fmt"
"reflect"
"regexp"
"sort"
"strconv"
"strings"
"time"
"github.com/AndreasSko/go-jwlm/model"
)
// brFrom indicates from which mergeSide a *BlockRange
// is coming from.
type brFrom struct {
side MergeSide
br *model.BlockRange
}
// umbrFrom indicates from which mergeSide a []*... |
/*
// Copyright (c) 2016 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
// Copyright 2015 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package stun
import (
"encoding/binary"
"errors"
"fmt"
"time"
)
// An AttributeError represents a STUN attribute error.
type AttributeError struct {
// Type is ... |
package nakivo
import (
"context"
"net/http"
)
type Jobs struct {
Children []Job `json:"children"`
}
type Job struct {
// Name of the job
Name string `json:"name"`
// Id of the job
Id int `json:"id"`
// Vid of the job
Vid string `json:"vid"`
// Platform type
HvType string `json:"hvType"`
// Number of... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: example/feature_demo/test.proto
package example
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/infobloxopen/protoc-gen-gorm/options"
import google_protobuf1 "github.com/golang/protobuf/ptypes/wrappers... |
// Package main provides ...
package main
import (
"bytes"
"fmt"
"regexp"
"sort"
"strings"
"sync"
"time"
"github.com/eiblog/blackfriday"
"github.com/eiblog/utils/logd"
"github.com/eiblog/utils/mgo"
"github.com/weiwei-xiao/eiblog/setting"
)
// 数据库及表名
const (
DB = "eiblog"
COLLECTION_ACCOU... |
package face_engine
/*
#cgo CFLAGS : -I./include
#cgo LDFLAGS: -larcsoft_face_engine
#include <stdlib.h>
#include <string.h>
#include "merror.h"
#include "asvloffscreen.h"
#include "arcsoft_face_sdk.h"
*/
import "C"
import (
"fmt"
"unsafe"
)
// 引擎结构体
type FaceEngine struct {
handle uintptr
}
// 多人脸信息结构体
type Mul... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: update_state.proto
package terraform
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
_ "github.com/mwitkow/go-proto-validators"
math "math"
)
// Reference import... |
package chess
import (
"bytes"
"encoding/binary"
"errors"
"strconv"
"strings"
)
// A Board represents a chess board and its relationship between squares and pieces.
type Board struct {
bbWhiteKing bitboard
bbWhiteQueen bitboard
bbWhiteRook bitboard
bbWhiteBishop bitboard
bbWhiteKnight bitboard
bbWhite... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/errors/feed_item_target_error.proto
package errors
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if th... |
package main
import (
"bytes"
"errors"
"fmt"
"log"
"math"
"strconv"
"time"
"github.com/mrmuggymuggy/kafka-kit/kafkametrics"
"github.com/mrmuggymuggy/kafka-kit/kafkazk"
)
// ReplicationThrottleMeta holds all types
// needed to call the updateReplicationThrottle func.
type ReplicationThrottleMeta struct {
to... |
package review
import (
"fmt"
"github.com/Qihoo360/wayne/src/backend/apimachinery"
"github.com/Qihoo360/wayne/src/backend/client"
"github.com/Qihoo360/wayne/src/backend/client/api"
"github.com/Qihoo360/wayne/src/backend/controllers/base"
"github.com/Qihoo360/wayne/src/backend/controllers/common"
"github.com/Qih... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/google_ads_field.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
wrappers "github.com/catper/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads/go... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: get_execute_result.proto
package execute
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
_ "github.com/mwitkow/go-proto-validators"
tool "github.com/easyopsapis/easyo... |
// Copyright 2019 <NAME>. All rights reserved. Use of this source code is governed by the MIT license
// that can be found in the LICENSE file.
// A port of urwid's graph.py example using gowid widgets.
package main
import (
"math"
"time"
"github.com/gcla/gowid"
"github.com/gcla/gowid/examples"
"github.com/gcl... |
package vaulttoenvs
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path"
"sort"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sts"
... |
package config
// __
// .-----.-----.______.-----.----.-----.--.--.--.--.______.----.---.-.----| |--.-----.
// | _ | _ |______| _ | _| _ |_ _| | |______| __| _ | __| | -__|
// |___ |_____| | __|__| |_____|__.__|___ ... |
package gpu
import (
"image/color"
"github.com/bokuweb/gopher-boy/pkg/constants"
"github.com/bokuweb/gopher-boy/pkg/interfaces/bus"
"github.com/bokuweb/gopher-boy/pkg/interfaces/interrupt"
irq "github.com/bokuweb/gopher-boy/pkg/interrupt"
"github.com/bokuweb/gopher-boy/pkg/types"
)
// CyclePerLine is gpu clock... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: identity.proto
package identity // import "github.com/linkerd/linkerd2-proxy-api/go/identity"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import (
contex... |
package boshdeployment
import (
"context"
"time"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/... |
package tunnel
import (
"errors"
"fmt"
"io"
"net"
"os"
"path/filepath"
"strings"
"sync"
"time"
"golang.org/x/crypto/ssh/agent"
log "github.com/sirupsen/logrus"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/knownhosts"
)
const (
HostMissing = "server host has to be provided as part of the s... |
// Copyright 2019 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
package main
import (
"errors"
"fmt"
"image"
"image/color"
"math"
"math/rand"
"strconv"
"github.com/golang/freetype/truetype"
"golang.org/x/image/draw"
"golang.org/x/image/font"
"golang.org/x/image/font/gofont/goregular"
"golang.org/x/image/math/fixed"
)
// Sudoku board
type Sudoku struct {
initPos [9][... |
// Copyright 2019 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 commands
import (
"fmt"
"github.com/jteutenberg/downpore/consensus"
"github.com/jteutenberg/downpore/model"
"github.com/jteutenberg/downpore/overlap"
"github.com/jteutenberg/downpore/seeds"
"github.com/jteutenberg/downpore/sequence"
"github.com/jteutenberg/downpore/trim"
"github.com/jteutenberg/downpor... |
// 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.
// This file provides methods that let us export a Type as an ../ssa:Type.
// We don't export this package's Type directly because it would lead
// to an import... |
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License... |
// Copyright 2017 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... |
package message
import (
"bytes"
"container/list"
"errors"
"github.com/use-go/gosips/core"
"github.com/use-go/gosips/sip/address"
"github.com/use-go/gosips/sip/header"
"strings"
)
/**
* SIP Response structure.
*/
type SIPResponse struct {
SIPMessage
statusLine *header.StatusLine
}
/** Constructor.
*/
f... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service.proto
/*
Package service is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
Attribute
Request
Response
*/
package service
import proto "github.com/golang/protobuf/proto"
impo... |
// +build integration
/*
Copyright (c) 2019-2021 GMO GlobalSign Pte. Ltd.
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 License at
https://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in wri... |
package vm
import (
"bytes"
"context"
"fmt"
"io/ioutil"
"net"
"os"
"path/filepath"
"strings"
"sync"
"syscall"
"time"
"github.com/cenkalti/backoff/v3"
"github.com/patrickmn/go-cache"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/threefoldtech/zbus"
"github.com/threefoldtech/zos/pkg"
... |
package main
import (
"database/sql"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
"regexp"
"strconv"
"strings"
"github.com/webx-top/com"
"github.com/webx-top/db/lib/factory"
mySQLUtil "github.com/webx-top/db/lib/factory/mysql"
"github.com/webx-top/db/lib/sqlbuilder"
"github.com/webx-to... |
/*
Copyright 2019 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 law or agreed to in ... |
package tlsutil
import (
"crypto/tls"
"crypto/x509"
"encoding/pem"
"fmt"
"io/ioutil"
"net"
"strings"
"time"
"github.com/hashicorp/nomad/nomad/structs/config"
)
// supportedTLSVersions are the current TLS versions that Nomad supports
var supportedTLSVersions = map[string]uint16{
"tls10": tls.VersionTLS10,
... |
package interpreter
import (
"math"
"math/big"
"github.com/libsv/go-bt/v2/bscript/interpreter/errs"
)
// scriptNumber represents a numeric value used in the scripting engine with
// special handling to deal with the subtle semantics required by consensus.
//
// All numbers are stored on the data and alternate sta... |
package metric
import (
"bufio"
"fmt"
"github.com/emirpasic/gods/sets/hashset"
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/utils"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"
"io"
v1 "k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s... |
package interp
import (
"fmt"
"io"
"os"
"sort"
"strconv"
"strings"
"github.com/eaburns/pea/flowgraph"
)
type Interp struct {
Out io.Writer
Trace bool
vars map[*flowgraph.VarDef]*Obj
stack []frame
nextFrameID int
n int
}
type frame struct {
id int
args map[... |
package utils
import (
"bytes"
"context"
"fmt"
"sort"
"strconv"
"strings"
webspherelibertyv1 "github.com/WASdev/websphere-liberty-operator/api/v1"
rcoutils "github.com/application-stacks/runtime-component-operator/utils"
routev1 "github.com/openshift/api/route/v1"
"github.com/pkg/errors"
corev1 "k8s.io/api... |
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
// Default writing implementation. Basic output with version 1.3
// for compatibility.
package pdf
import (
"bufio"
"crypto/md5"
"crypto/rand"
"errors"
"fmt"
"io"
"os"
"time... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/services/shopping_performance_view_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/resour... |
package amqp
import (
"bytes"
"fmt"
"io"
"testing"
)
var validReadTests = []struct {
input []byte
expected interface{}
}{
{[]byte{0x40}, nil},
{[]byte{0x41}, true},
{[]byte{0x42}, false},
{[]byte{0x43}, uint32(0)},
{[]byte{0x44}, uint64(0)},
{[]byte{0x50, 15}, uint8(15)},
{[]byte{0x50, 200}, uint8(200... |
/*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* This source code is licensed under the Apache License Version 2.0.
*/
package util
import (
"bytes"
"context"
"crypto/sha1"
"encoding/binary"
"encoding/json"
"fmt"
dockerterm "github.com/moby/term"
"github.com/pkg/errors"
lo... |
package gateway
// @todo: Migrate away from the current asset generator
import (
"bytes"
"context"
"errors"
"fmt"
"html/template"
"io"
"io/ioutil"
"net/http"
"net/url"
"path/filepath"
"strings"
"time"
"github.com/gin-contrib/location"
"github.com/gin-contrib/static"
"github.com/gin-gonic/gin"
"github... |
// A web pre-processor that assembles a single HTML file.
package main
import (
"bytes"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"os/exec"
"os/signal"
"path/filepath"
"regexp"
"strings"
"text/template"
"github.com/0xABAD/filewatch"
"github.com/gorilla/websocket"
)
var (
OptOutfile stri... |
package main
import (
"fmt"
"github.com/jessevdk/go-flags"
. "gogen/data"
. "gogen/exporter"
"math"
"math/rand"
"path/filepath"
"sort"
"strconv"
"time"
)
var opts struct {
OutputFolder string `long:"outputs" description:"The folder in which to place result files" required:"true"`
TargetSize int `long... |
// Package p2p
//
// @author: xwc1125
package p2p
import (
"context"
"crypto/tls"
"fmt"
"io/ioutil"
"net"
"strings"
"sync"
"time"
"github.com/chain5j/chain5j-p2p/p2pgmtls"
"github.com/chain5j/chain5j-p2p/p2ptls"
"github.com/chain5j/chain5j-pkg/event"
"github.com/chain5j/chain5j-protocol/models"
"github.c... |
/*
* Copyright (c) 2018 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 tport
import (
"bufio"
"compress/gzip"
"container/list"
"context"
"crypto/tls"
"errors"
"io"
"net"
"sync"
"sync/atomic"
"time"
. "... |
// Copyright 2021 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
package main
import (
"context"
"fmt"
"sync"
"time"
"github.com/cockroachdb/pebble/internal/ackseq"
"github.com/cockroachdb/pebble/in... |
package rieseltest
import (
"errors"
"math"
"fmt"
big "math/big"
// big "github.com/arcetri/gmp"
// big "github.com/arcetri/go.flint/fmpz"
)
var zero = new(big.Int).SetInt64(0)
var one = new(big.Int).SetInt64(1)
var two = new(big.Int).SetInt64(2)
var maxInt64 = new(big.Int).SetInt64(math.MaxInt64)
// lowerNon... |
package scene
import (
arenapvpeventtypes "fgame/fgame/cross/arenapvp/event/types"
"fgame/fgame/cross/arenapvp/pbutil"
activitytypes "fgame/fgame/game/activity/types"
arenapvpdata "fgame/fgame/game/arenapvp/data"
arenapvptemplate "fgame/fgame/game/arenapvp/template"
arenapvpscenetypes "fgame/fgame/game/arenapvp/... |
/*
Copyright IBM Corp All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package world_test
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"syscall"
"time"
"github.com/hyperledger/fabric/common/tools/configtxgen/localconfig"
"github.com/hyperledger/fabric/integration/runner"
. "github.com/hyperled... |
//
// Copyright 2019-2020 Nestybox, 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Copyright © 2020 <NAME>.
package svr
import (
"context"
"crypto/tls"
"fmt"
"github.com/hedzr/cmdr"
"github.com/hedzr/cmdr-addons/pkg/plugins/dex"
"github.com/hedzr/cmdr-addons/pkg/plugins/dex/sig"
tls2 "github.com/hedzr/cmdr-addons/pkg/svr/tls"
"github.com/hedzr/cmdr/conf"
"github.com/kataras/iris/v12/cor... |
package javkit
import (
"bytes"
"errors"
"fmt"
"image"
"image/jpeg"
"image/png"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
"github.com/fatih/color"
"github.com/imroc/req"
"github.com/pelletier/go-toml"
"github.com/thoas/go-funk"
"gopkg.in/ini.v1"
)
con... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/type/matcher/regex.proto
package envoy_type_matcher
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobu... |
package lager
import(
"bytes"
"context"
"fmt"
"io"
"os"
"strings"
)
// TYPES //
// Just an alias for context.Context that takes up less space in function
// signatures. You never need to use lager.Ctx in your code.
type Ctx = context.Context
// The interface returned from lager.Warn() and the other log-leve... |
// Copyright 2017 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
// Copyright 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 work
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"strings"
"cmd/go/internal/base"
"cmd/go/internal/cfg"
"cmd/go/internal/load"
... |
package geom
import (
"database/sql/driver"
"fmt"
"unsafe"
"github.com/peterstace/simplefeatures/rtree"
)
// MultiPolygon is a planar surface geometry that consists of a collection of
// Polygons. The zero value is the empty MultiPolygon (i.e. the collection of
// zero Polygons). It is immutable after creation.
... |
/*
Copyright 2018 The 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, ... |
/*
Copyright (c) 2015, Alcatel-Lucent Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
// Copyright 2017 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
/*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright (c) 2014 Couchbase, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the
// License. You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to ... |
package events
import (
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
"github.com/runatlantis/atlantis/server/events/yaml/valid"
"github.com/hashicorp/go-version"
"github.com/hashicorp/terraform-config-inspect/tfconfig"
"github.com/pkg/errors"
"github.com/runatlantis/atlantis/server/events/models"
"github... |
package set
import (
"fmt"
"io"
"net"
"net/url"
"os"
"strconv"
"strings"
"github.com/spf13/cobra"
kapi "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/meta"
"k8s.io/kubernetes/pkg/api/unversioned"
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/kubectl/resource"
"k8s.io/k... |
package rootd
import (
"context"
"errors"
"fmt"
"io"
"math/rand"
"net"
"os"
"strings"
"sync/atomic"
"time"
"github.com/blang/semver"
"google.golang.org/grpc"
empty "google.golang.org/protobuf/types/known/emptypb"
"github.com/datawire/dlib/dcontext"
"github.com/datawire/dlib/dgroup"
"github.com/datawi... |
package tarantool
/*
Forked from https://github.com/tarantool/go-tarantool/blob/master/const.go
*/
const (
OKCommand = uint(0)
SelectCommand = uint(1)
InsertCommand = uint(2)
ReplaceCommand = uint(3)
UpdateCommand = uint(4)
DeleteCommand = uint(5)
CallCommand ... |
/*
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, ... |
//
// (C) Copyright 2021 Intel Corporation.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
package server
import (
"context"
"fmt"
"io/ioutil"
"net"
"path/filepath"
"strconv"
"strings"
"sync"
"github.com/pkg/errors"
"google.golang.org/grpc"
"github.com/daos-stack/daos/src/control/common"
"github.... |
// 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.
// HTTP Request reading and parsing.
// The http package implements parsing of HTTP requests, replies,
// and URLs and provides an extensible HTTP server and a... |
package node
import (
"errors"
"net/http"
"sync"
"time"
"github.com/ConsenSys/quorum-hibernate/config"
cons "github.com/ConsenSys/quorum-hibernate/consensus"
besu "github.com/ConsenSys/quorum-hibernate/consensus/besu"
qnh "github.com/ConsenSys/quorum-hibernate/consensus/quorum"
"github.com/ConsenSys/quorum-h... |
/*
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 ... |
/*
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 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... |
// Copyright 2018, 2019 SEE CONTRIBUTORS
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.