text stringlengths 5.51k 28.1k |
|---|
//----------------------------------------
// 代码由GenlibVcl工具自动生成。
// Copyright © ying32. All Rights Reserved.
//
//----------------------------------------
package vcl
import (
. "github.com/ying32/govcl/vcl/api"
. "github.com/ying32/govcl/vcl/types"
"unsafe"
)
type TTaskDialog struct {
IComponent
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.4
// source: echo-gateway.proto
package proto
import (
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "go... |
// Copyright 2014 The Serviced 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 goopenzwave
// #include "gzw_valueid.h"
// #include <stdlib.h>
import "C"
import (
"fmt"
)
// ValueIDGenre defines a type for the valueid genre enum.
type ValueIDGenre int
const (
ValueIDGenreBasic ValueIDGenre = iota
ValueIDGenreUser
ValueIDGenreConfig
ValueIDGenreSystem
ValueIDGenreCount
)
func (v V... |
// Copyright (c) 2020, 2021, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
package semver
import (
"fmt"
"strconv"
"testing"
"github.com/stretchr/testify/assert"
)
// TestValidSemver Tests the SemVersion parser for valid v... |
package fastdns
import (
"errors"
"sync"
)
// Message represents an DNS request received by a server or to be sent by a client.
type Message struct {
// Raw refers to the raw query packet.
Raw []byte
// Domain represents to the parsed query domain in the query.
Domain []byte
// Header encapsulates the constr... |
// Copyright (c) 2016-2019 <NAME>. All rights reserved.
// Copyright (c) 2016-2019 <NAME>. All rights reserved.
// Copyright (c) 2020-2021 Oasis Labs Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions a... |
package xdsc
import (
"context"
"encoding/json"
"errors"
"fmt"
"log"
"math"
"net"
"sort"
"sync"
"time"
cluster "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
endpoint "github.com/envoyproxy/go-control-plane/envoy/config/... |
// Copyright 2014 The Serviced 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 hll
import (
"errors"
"fmt"
"math"
"math/bits"
)
// storageType is an enum whose values match the type values in the hll storage
// spec. In the the spec, the "dense" value is referred to as "full". We use
// the name dense because we fined it to be more descriptive.
type storageType int
const (
undef... |
package xxid
import (
"encoding/binary"
"encoding/hex"
"errors"
"fmt"
"net"
"strconv"
"time"
"unsafe"
)
// ID is a specific kind of unique identifier.
//
// The marshaled form of ID values are ordered by their generation time
// (in millisecond precision).
// Additionally, you may encode some machine informat... |
package exporter
import (
"fmt"
"io"
"log"
"strings"
"sync"
"time"
"github.com/pachyderm/pachyderm/src/client"
"github.com/pachyderm/pachyderm/src/client/pps"
"github.com/prometheus/client_golang/prometheus"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
const (
stateSuccess = "success"
stateFail... |
/*
==================================================================================
Copyright (c) 2019 AT&T Intellectual Property.
Copyright (c) 2019 Nokia
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... |
package admin
import (
"github.com/gin-gonic/gin"
admin "github.com/snowlyg/go-tenancy/api/v1/admin"
)
// api
func InitApiRouter(Router *gin.RouterGroup) {
ApiRouter := Router.Group("/api")
{
ApiRouter.POST("/createApi", admin.CreateApi) // 创建Api
ApiRouter.DELETE("/deleteApi", admin.DeleteApi) ... |
// @author Couchbase <<EMAIL>>
// @copyright 2015-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software wi... |
package main
import (
"encoding/json"
"errors"
"fmt"
"github.com/gammazero/workerpool"
logrus "github.com/sirupsen/logrus"
"io/ioutil"
"os"
"regexp"
"strconv"
"strings"
"time"
)
type Logger logrus.Logger
func ScanDevice() {
dir := ConfigV.GetString("path.devices")
files, err := ioutil.ReadDir(dir)
if ... |
package firebase
import (
"encoding/json"
"regexp"
"strings"
"time"
"google.golang.org/api/identitytoolkit/v3"
)
// Providers
const (
Google string = "google.com"
Facebook string = "facebook.com"
Github string = "github.com"
Twitter string = "twitter.com"
)
type (
// UserRecord is the firebase authen... |
package rancher
import "time"
type ServiceResponse struct {
Type string `json:"type"`
ResourceType string `json:"resourceType"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Actions struct {
} `json:"actions"`
Data []Service `json:"data"`
}
type Service struct {
ID strin... |
package mailstore
import (
"errors"
"fmt"
"net/mail"
"time"
"github.com/ramoncasares/ro-imap-server.go/types"
"github.com/ramoncasares/ro-imap-server.go/util"
)
// DummyMailstore is an in-memory mail storage for testing purposes and to
// provide an example implementation of a mailstore
type DummyMailstore str... |
package meles
import (
"encoding/binary"
"fmt"
"github.com/ahmetb/go-linq/v3"
"github.com/dgraph-io/badger"
"github.com/elliotcourant/meles/logger"
"github.com/elliotcourant/meles/network"
"github.com/elliotcourant/timber"
"github.com/hashicorp/raft"
"net"
"os"
"sort"
"sync"
"time"
)
type storeState int
... |
/*
* Copyright 2017-2018 <NAME>, Inc.
*
* This file is available under the Apache License, Version 2.0,
* with the Commons Clause restriction.
*/
package worker
import (
"bufio"
"bytes"
"compress/gzip"
"fmt"
"math/rand"
"os"
"path"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
"github.com/dgrap... |
package table
import (
"bytes"
"math/rand"
"sync"
"time"
"github.com/cespare/xxhash"
"github.com/named-data/YaNFD/core"
"github.com/named-data/YaNFD/ndn"
"github.com/named-data/YaNFD/utils/priority_queue"
)
const expiredPitTickerInterval = 100 * time.Millisecond
// PitCsTree represents a PIT-CS implementati... |
// JSON serialization and deserialization of backgammon
package json
import (
"bytes"
"compress/flate"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"strconv"
"github.com/chandler37/gobackgammon/brd"
)
func Serialize(b *brd.Board) (string, error) {
cb := &compactBoard{}
cb.serializeMatchScore(&b.Matc... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/product_bidding_category_constant.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/... |
package main
import (
"fmt"
"math"
"math/rand"
"sync"
)
/* 3D Vectors */
type Vec3 struct {
e [3]float32
}
func (v Vec3) x() float32 {
return v.e[0]
}
func (v Vec3) y() float32 {
return v.e[1]
}
func (v Vec3) z() float32 {
return v.e[2]
}
func (v Vec3) r() float32 {
return v.e[0]
}
func (v Vec3) g() fl... |
//Package ratecache provides functions to efficiently store rate and
//availability data in a buffer or a file.
package ratecache
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"os"
"path/filepath"
"time"
"golang.org/x/exp/mmap"
)
// TimeToStr converts the Time object into a date string as used
// in the ... |
//
// Copyright 2020 IBM 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 agreed to ... |
/*
Copyright 2017 The Kubernetes Authors.
Copyright 2018 Intel Corporation.
SPDX-License-Identifier: Apache-2.0
*/
package pmemcsidriver
import (
"context"
"crypto/tls"
"errors"
"fmt"
"net"
"net/http"
"os"
"os/signal"
"path/filepath"
"syscall"
"time"
api "github.com/intel/pmem-csi/pkg/apis/pmemcsi/v1alp... |
package orm
import (
"database/sql"
_ "embed"
"fmt"
"github.com/go-home-admin/home/bootstrap/services"
"github.com/go-home-admin/toolset/parser"
_ "github.com/go-sql-driver/mysql"
"log"
"os"
"strings"
"time"
)
// IsExist checks whether a file or directory exists.
// It returns false when the file or directo... |
/*
This package allows you to add HMAC security to an existing http server.
This implementations builds on the existing "net/http" package.
The first step is create an instance of Schnellburger. Next, select
the cryptographic algorithm that is used to secure endpoints. This is done
by setting the `Algorithm` member o... |
package main
import (
"errors"
"fmt"
"log"
"regexp"
"strings"
"github.com/jcorbin/soc/internal/isotime"
"github.com/jcorbin/soc/internal/scanio"
"github.com/jcorbin/soc/internal/socui"
"github.com/jcorbin/soc/scandown"
)
// ItemTypeConfig contains config for a stream item trigger word.
type ItemTypeConfig s... |
// vcsloc/loc/run.go
package loc
import (
"fmt"
"strconv"
"strings"
"time"
"vcsloc/gsos"
"vcsloc/vcs"
)
func NewAnalyzer(startTime time.Time, verbose bool, db *VcsDb2, ) *Analyzer {
return &Analyzer{
startTime: startTime,
verbose:
verbose,
db: db,
terminal: gsos.NewThrottleTerminal(100*time.Millise... |
package eth
import (
"fmt"
"math"
"math/big"
"sync"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/l... |
package codf // import "go.spiff.io/codf"
import (
"math/big"
"regexp"
"sort"
"strings"
"time"
)
// Node is any parsed element of a codf document. This includes the Section, Statement, Literal,
// Array, Map, and other types.
type Node interface {
Token() Token
astnode()
format(prefix string) string
}
// Par... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/enums/promotion_placeholder_field.proto
package enums
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if... |
// Copyright (c) 2021 Oasis Labs 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:
//
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions... |
package service
import (
"context"
. "github.com/smartystreets/goconvey/convey"
"go-common/app/service/live/wallet/conf"
"go-common/app/service/live/wallet/model"
"go-common/library/database/sql"
"go-common/library/ecode"
"go-common/library/sync/errgroup"
"sync"
"testing"
"time"
)
func queryPay(t *testing.T... |
package iabconsent_test
import (
"time"
"github.com/LiveRamp/iabconsent"
)
var v2TestTime = time.Unix(1583436280, 9*nsPerDs).UTC()
// Consent fixtures have been generated using the tool at https://iabtcf.com/encode.
// To inspect a consent string used in the test u can enter it into: https://iabtcf.com/#/decode.
... |
package main
import (
"encoding/json"
"fmt"
"net/http"
"strings"
"time"
"github.com/aliyun/alibaba-cloud-sdk-go/services/sts"
"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"
)
// StartServer starts a newly created http server
func (app *App) StartServer() {
log.Infof("Listening on port %s", app.Ap... |
package cityhash
import (
"encoding/binary"
)
type Uint128 [2]uint64
func (ui128 *Uint128) SetLower64(l uint64) {
ui128[0] = l
}
func (ui128 *Uint128) SetHigher64(h uint64) {
ui128[1] = h
}
func (ui128 Uint128) Lower64() uint64 {
return ui128[0]
}
func (ui128 Uint128) Higher64() uint64 {
return ui128[1]
}
f... |
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"net/url"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
"github.com/google/shlex"
"github.com/opendevstack/pipeline/internal/command"
"github.com/opendevstack/pipeline/internal/directory"
"github.com/opendevstack/pipeline/pkg/artifact"
"github.com/... |
package gocode
import (
"bytes"
"go/ast"
"os"
"path/filepath"
"sort"
"strings"
"sync"
"sync/atomic"
"github.com/charlievieth/buildutil"
)
//-------------------------------------------------------------------------
// out_buffers
//
// Temporary structure for writing autocomplete response.
//----------------... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ps_errors.proto
package protos
import (
fmt "fmt"
common "github.com/batchcorp/plumber-schemas/build/go/protos/common"
_ "github.com/batchcorp/plumber-schemas/build/go/protos/opts"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imp... |
package internal
import (
"encoding/json"
"io/ioutil"
"math/rand"
"net/http"
"net/http/httptest"
"testing"
"time"
"github.com/gavv/httpexpect/v2"
"github.com/stretchr/testify/require"
)
// TODO(dotslash): Try out a more modern test framework, that displays test
// execution summaries better. As of now og ou... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: service_spec.proto
package container
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... |
/*
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
package cloud
import (
"context"
"fmt"
"os"
"sort"
"strings"
"text/tabwriter"
semver "github.com/appscode/go-version"
api "github.com/pharmer/pharmer/apis/v1alpha1"
"github.com/pkg/errors"
"golang.org/x/crypto/ssh"
core "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachine... |
// Copyright (c) 2012, <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 leveldb
import (
"fmt"
"sync/atomic"
"unsafe"
"github.com/ie310mu/ie310go/forks/github.com/syndtr/goleveldb/leveldb/iterator"
"github... |
// Copyright 2021 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 graphql
import (
"context"
"errors"
"fmt"
"net/http"
"github.com/vektah/gqlparser/v2/ast"
)
// IntrospectOptions represents the options for the IntrospectAPI function
type IntrospectOptions struct {
wares []NetworkMiddleware
client *http.Client
ctx context.Context
}
// Context returns either a g... |
package input
import (
"context"
"errors"
"fmt"
"strconv"
"sync"
"time"
"github.com/Jeffail/gabs/v2"
"github.com/OneOfOne/xxhash"
"github.com/benthosdev/benthos/v4/internal/component"
"github.com/benthosdev/benthos/v4/internal/component/input"
"github.com/benthosdev/benthos/v4/internal/component/metrics"
... |
// 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 config
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"reflect"
"runtime"
"strings"
"sync"
daemondiscovery "github.com/docker/docker/daemon/discovery"
"github.com/docker/docker/opts"
"github.com/docker/docker/pkg/authorization"
"github.com/docker/docker/pkg/discovery"
"github.... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.14.0
// source: envoy/config/grpc_credential/v3/aws_iam.proto
package envoy_config_grpc_credential_v3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validat... |
// cmd/ipfs implements the primary CLI binary for ipfs
package main
import (
"context"
"errors"
"fmt"
"io"
"math/rand"
"net"
"net/url"
"os"
"os/signal"
"runtime/pprof"
"strings"
"sync"
"syscall"
"time"
cmds "github.com/ipfs/go-ipfs/commands"
cmdsCli "github.com/ipfs/go-ipfs/commands/cli"
cmdsHttp "gi... |
/*
Copyright 2019 The Kruise Authors.
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 appli... |
// Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
//
// For more information, please visit: https://github.com/tengge1/ShadowEditor
// You can also visit: https://gitee.com/tengge1/ShadowEditor
/... |
// 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 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 Ngo 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 writi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/protobuf/graph_debug_info.proto
package protobuf
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
va... |
// Copyright (c) 2017-2018 The qitmeer developers
// Copyright (c) 2013-2016 The btcsuite developers
// Copyright (c) 2016-2018 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package peer
import (
"bytes"
"errors"
"fmt"
"github.com/Qitmeer/q... |
package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"path"
"regexp"
"strings"
"text/template"
"unicode"
"golang.org/x/text/encoding/simplifiedchinese"
)
// 接口源目录
var (
srcPath = "./v6.5.1_20200908/"
outPath = "./ctpdefine"
packageName = "gitee.com/haifengat/goctp"
)
func main() {
fmt.Println(... |
// Copyright 2022 Teamgram 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 app... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package cos
import (
"context"
"encoding/xml"
"errors"
"fmt"
"hash/crc64"
"io"
"net/http"
"net/url"
"sort"
"strings"
"time"
)
// InitiateMultipartUploadOptions is the option of InitateMultipartUpload
type InitiateMultipartUploadOptions struct {
*ACLHeaderOptions
*ObjectPutHeaderOptions
}
// InitiateMult... |
/*=================================
* Copyright(c)2015-2016 gostores
* All rights reserved
* Inspired by go-sql-driver/mysql
*=================================*/
package mysql
import (
"bytes"
"crypto/tls"
"encoding/binary"
"fmt"
"testing"
"time"
)
var testDSNs = []struct {
in string
out string
loc *time.L... |
// Copyright 2017 The Serulian 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 (
"bytes"
"fmt"
"github.com/serulian/compiler/compilercommon"
"github.com/serulian/compiler/packageloader"
"github.com/seruli... |
// Copyright 2015 Light Code Labs, 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 agre... |
// Copyright 2020 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 modload
import (
"context"
"errors"
"fmt"
"path/filepath"
"strings"
"sync"
"unicode"
"cmd/go/internal/base"
"cmd/go/internal/cfg"
"cmd/go/in... |
package nimgobus
import (
"bytes"
"image"
"image/color"
"log"
"math"
"math/rand"
"os"
"sync"
"time"
"github.com/adamstimb/rmbasicx64/pkg/nimgobus/resources/font"
"github.com/adamstimb/rmbasicx64/pkg/nimgobus/resources/logo"
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/audio"
)
//... |
// Copyright (C) 2015 NTT Innovation Institute, 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 2019-present Open Networking Foundation.
//
// 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 applica... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: more_test_objects.proto
/*
Package jsonpb is a generated protocol buffer package.
It is generated from these files:
more_test_objects.proto
test_objects.proto
It has these top-level messages:
Simple3
Mappy
Simple
Repeats
Widget
Maps
MsgWithOneof
R... |
// Copyright 2019 eBay Inc.
// Primary authors: <NAME>, <NAME>,
// <NAME>, and <NAME>.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// https://www.apache.org/licenses/... |
package action
import (
"fmt"
"go/ast"
"regexp"
"sort"
"strconv"
"strings"
"github.com/iancoleman/strcase"
"github.com/lolopinto/ent/ent"
"github.com/lolopinto/ent/internal/codegen/nodeinfo"
"github.com/lolopinto/ent/internal/edge"
"github.com/lolopinto/ent/internal/enttype"
"github.com/lolopinto/ent/int... |
/*
Copyright IBM Corp. 2016 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 wri... |
// Copyright 2022 The CubeFS Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
// Copyright 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 noder
import (
"errors"
"fmt"
"internal/buildcfg"
"os"
pathpkg "path"
"runtime"
"sort"
"strconv"
"strings"
"unicode"
"unicode/utf8"
"cmd/c... |
package trainer
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"sort"
"strings"
"github.com/tensorflow/k8s/pkg/util/k8sutil"
"github.com/tensorflow/k8s/pkg/spec"
log "github.com/golang/glog"
"github.com/golang/protobuf/proto"
// TOOO(jlewi): Rename to apiErrors
"github.com/tensorflow/k8s/pkg/util"
... |
package command
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"os"
"sort"
"strings"
"time"
"github.com/hashicorp/nomad/api"
"github.com/hashicorp/nomad/nomad/structs"
)
const (
// maxFailedTGs is the maximum number of task groups we show failure reasons
// for before defering to eval-st... |
/*
Copyright 2019 Cisco Systems
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
// Copyright 2020 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... |
// Copyright © 2018-2019 The OpenEBS 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 o... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p4beta1/product_search.proto
package vision
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
... |
// Copyright 2018 Twitch Interactive, 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. A copy of the License is
// located at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// or in the "license"... |
package scraper
import (
"context"
"fmt"
"math/big"
"sync"
"time"
lru "github.com/hashicorp/golang-lru"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/figment-networks/skale-indexer/scraper/structs"
"github.c... |
package TF2RconWrapper
import (
"errors"
"reflect"
"regexp"
"strconv"
"time"
)
const (
// "Username<userId><steamId><Team>"
// "1<2><3><4>" <- regex group
logLineStart = `^"(.*)<(\d+)><(\[U:1:\d+\])><(\w+)>" `
player = `"(.*)<(\d+)><(\[U:1:\d+\])><(\w+)>"`
// "5" <- regex group
logLineEnd = ` "(.*)"`... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0-devel
// protoc v3.11.4
// source: fds/protobuf/stach/table/MetadataCollection.proto
package table
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoim... |
package renter
import (
"sync/atomic"
"time"
"gitlab.com/SkynetLabs/skyd/build"
"gitlab.com/NebulousLabs/errors"
)
var (
errOnMaintenanceCooldown = errors.New("the worker account is on cooldown")
errInvalidPriceTable = errors.New("price table with host is no longer valid")
)
type (
// workerLoopState tr... |
package backend
import (
"context"
"encoding/hex"
"io/ioutil"
"math/rand"
"os"
"sync"
"testing"
"time"
"decred.org/dcrros/backend/backenddb"
"decred.org/dcrros/backend/internal/badgerdb"
"decred.org/dcrros/backend/internal/memdb"
"decred.org/dcrros/types"
rtypes "github.com/coinbase/rosetta-sdk-go/types"... |
package ocmagenthandler
import (
"fmt"
"path/filepath"
"reflect"
"sort"
"github.com/go-logr/logr"
oconfigv1 "github.com/openshift/api/config/v1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
k8sresource "k8s.io/apimachinery/pkg/api/resource"
metav1 ... |
package db
import (
"encoding/json"
"fmt"
"sort"
"strings"
"time"
"github.com/aws/aws-sdk-go/service/ec2"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"github.com/raisemarketplace/kubesat/logger"
)
type Snapshot struct {
ComponentStatuses []Componen... |
package main
import (
"bytes"
"encoding/csv"
"fmt"
"log"
"os"
"os/exec"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/beanstalkd/go-beanstalk"
"github.com/mailru/dbr"
"github.com/mailru/go-clickhouse"
"github.com/spf13/pflag"
"github.com/xitongsys/parquet-go-source/local"
"github.co... |
// pst is a command line tool for processing and combining columns across
// column oriented files
package main
import (
"bufio"
"flag"
"fmt"
"log"
"math"
"os"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"unicode"
)
const version = "0.1"
// Spec describes what to parse and how to assemble the output
type... |
package print
import (
"encoding/json"
"fmt"
"os"
"text/tabwriter"
"unicode/utf8"
"git.sr.ht/~flobar/apoco/cmd/internal"
"git.sr.ht/~flobar/lev"
"github.com/spf13/cobra"
)
var statsFlags = struct {
name string
limit int
skipShort bool
verbose bool
}{}
// statsCmd runs the apoco stats command.... |
// MIT License
// Copyright (c) 2020 <NAME>
// 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, p... |
// Package store provides a simple distributed key-value store. The keys and
// associated values are changed via distributed consensus, meaning that the
// values are changed only when a majority of nodes in the master agree on
// the new value.
//
// Distributed consensus is provided via the Raft algorithm, specifica... |
package deviceCore
/*
deviceCore/streams.go:
- Build Device Network Inventory
- deviceSource Conversation
IN (from ds)
* Create DeviceMessage from MQTT Message via QueueMessage
* Create Device Message from Demo Log
* Get Request Channel
* Get Response Channel
OUT (to ds)
* Delete Device
* Act... |
// Copyright (c) 2015 Rackspace
//
// 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.