text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/types.proto
package framework
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 ... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: pb/moby/mount/mount.proto
/*
Package mount is a generated protocol buffer package.
It is generated from these files:
pb/moby/mount/mount.proto
It has these top-level messages:
Mount
BindOptions
VolumeOptions
Driver
TmpfsOptions
*/
package mount
imp... |
//
// Copyright 2020-2022 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
package models
import (
"math"
"math/rand"
"time"
"appengine"
"appengine/datastore"
"appengine/memcache"
"github.com/gaego/ds"
dserrors "github.com/gaego/ds/errors"
"app"
)
type Peer struct {
Key *datastore.Key `datastore:"-" bencode:"-"`
Hash string `bencode:"-"`
ID ... |
/*
Copyright (c) 2021 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... |
/*
Package msg creates a simple messaging package with flexible formatting that
can be used to write to multiple sinks.
Here is an example use.
import (
"jlinoff/utils/msg"
"io"
"os"
)
// My package logger.
var log *msg.Object
// Initialize it at startup.
func init() {
... |
package gaerecords
import (
"os"
"fmt"
"reflect"
"appengine"
"appengine/datastore"
)
// models is a map containing all the defined models
var models map[string]*Model
// ValidatorFunc is a func that acts as a validator for records. It takes the model and record,
// and returns an array of errors that are retur... |
/**
* Copyright (C) 2015 Hewlett Packard Enterprise Development LP
*
* 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 requi... |
// Code generated by protoc-gen-go.
// source: anomaly.proto
// DO NOT EDIT!
package apiclient
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
type An... |
// scene 包,该包包含了多个关于场景的结构体,定义了相关结构体的方法及相关函数
// 创建人: ClessLi
// 创建时间: 2020-1-8
package scene
import (
"github.com/ClessLi/2d-game-engin/core/render"
"github.com/ClessLi/2d-game-engin/core/resolv"
"github.com/ClessLi/2d-game-engin/resource"
"github.com/go-gl/glfw/v3.2/glfw"
"github.com/go-gl/mathgl/mgl32"
)
type S... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: list_trigger.proto
package pipeline
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
pipeline "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/mo... |
// Copyright 2017 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... |
package wbgo
import (
"fmt"
"strconv"
"strings"
"time"
)
type Writability int
const (
EVENT_QUEUE_LEN = 100
DEFAULT_POLL_INTERVAL = 5 * time.Second
CONTROL_LIST_CAPACITY = 32
pushButtonType = "pushbutton"
DefaultWritability Writability = iota
ForceReadOnly
ForceWritable
)
type MQTTMessage struct ... |
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... |
package txfile
import (
"fmt"
"math"
"math/bits"
"os"
"sync"
"unsafe"
"github.com/elastic/go-txfile/internal/cleanup"
"github.com/elastic/go-txfile/internal/invariant"
)
// File provides transactional support to pages of a file. A file is split into
// pages of type PageSize. Pages within the file are only a... |
//go:build azurediskv2
// +build azurediskv2
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requir... |
// 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 protoreflect provides interfaces to dynamically manipulate messages.
//
// This package includes type descriptors which describe the structure of typ... |
package pricing
import (
"os"
"strconv"
"time"
"github.com/go-openapi/swag"
"github.com/gobuffalo/pop/v5"
"github.com/gocarina/gocsv"
"github.com/pkg/errors"
"github.com/tealeg/xlsx"
"go.uber.org/zap"
"github.com/transcom/mymove/pkg/services"
"github.com/transcom/mymove/pkg/services/dbtools"
)
/*********... |
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"bytes"
"compress/gzip"
"fmt"
"net/http"
"os"
"os/exec"
"path"
"regexp"
"strconv"
"strings"
"time"
"code.gitea.io/gitea/mo... |
/*
Copyright 2019 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
// Copyright 2015 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// +build linux darwin freebsd
package cups
import (
"fmt"
"reflect"
"sort"
"strconv"
"string... |
/*
Copyright 2017 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... |
package miner
import (
"fmt"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/network"
"github.com/ipfs/go-cid"
mh "github.com/multiformats/go-multihash"
"github.com/filecoin-project/specs-actors/v2/actors/builtin"
)
... |
package cli
import (
"bytes"
"encoding/json"
"fmt"
"io"
stdlog "log"
"os"
"reflect"
"strconv"
"strings"
"sync"
"time"
"github.com/alecthomas/kong"
"github.com/mattn/go-colorable"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"gitlab.com/tozd/go/errors"
"gitlab.com/tozd/go/x"
)
// These variabl... |
package main
import (
"bytes"
"encoding/json"
"errors"
"flag"
"fmt"
"io"
"net"
"os"
"runtime"
"strings"
"time"
"github.com/golang/glog"
"github.com/joho/godotenv"
ceoapi "github.com/openshift/cluster-etcd-operator/pkg/operator/api"
"github.com/openshift/machine-config-operator/pkg/version"
"github.com... |
/*
Copyright The containerd 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... |
// 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... |
package jobfile
import (
"bufio"
"fmt"
"io/ioutil"
"os"
"os/user"
"path/filepath"
"regexp"
"strconv"
"strings"
"github.com/dshearer/jobber/common"
"gopkg.in/yaml.v2"
)
const (
PrefsSectName = "prefs"
JobsSectName = "jobs"
gYamlStarter = "---"
gDefaultMemRunLogMaxLen = 1... |
package buildserver
import (
"context"
"fmt"
"go/build"
"log"
"net/http"
"net/url"
"path"
"runtime"
"sort"
"strings"
"sync"
opentracing "github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/ext"
otlog "github.com/opentracing/opentracing-go/log"
"github.com/prometheus/client_gol... |
package jwt
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
"time"
"github.com/pkg/errors"
"github.com/smallstep/cli/crypto/randutil"
"github.com/smallstep/cli/errs"
"github.com/smallstep/cli/flags"
"github.com/smallstep/cli/jose"
"github.com/urfave/cli"
)
func signCommand() cli.... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.16.0
// source: envoy/extensions/matching/input_matchers/consistent_hashing/v3/consistent_hashing.proto
package envoy_extensions_matching_input_matchers_consistent_hashing_v3
import (
_ "github.com/cncf/xds/g... |
package postgres
import (
"time"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"github.com/flanksource/karina/pkg/k8s"
)
// ClusterStatusUnknown etc : status of a Postgres cluster known to the operator
const (
ClusterStatusUnknown = ""
Cl... |
package xconf
import (
"errors"
"flag"
"fmt"
"io"
"os"
"strings"
"sync"
"reflect"
"github.com/mitchellh/hashstructure/v2"
"github.com/mitchellh/mapstructure"
"github.com/sandwich-go/xconf/xflag"
"github.com/sandwich-go/xconf/xutil"
)
// XConf XConf struct
type XConf struct {
zeroValPtrForLayout interfa... |
/*
Copyright 2021 The GoPlus Authors (goplus.org)
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-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 cluster collects data related to containers and formats into csv files to send to Densify.
package cluster
import (
"fmt"
"os"
"time"
"github.com/densify-dev/Container-Optimization-Data-Forwarder/internal/common"
"github.com/prometheus/common/model"
)
//A node structure. Used for storing attributes an... |
package endpoint
import (
"bufio"
"errors"
"fmt"
"io"
"net"
"sync"
"sync/atomic"
"time"
motan "github.com/weibocom/motan-go/core"
"github.com/weibocom/motan-go/log"
mpro "github.com/weibocom/motan-go/protocol"
)
var (
defaultChannelPoolSize = 3
defaultRequestTimeout = 1000 * time.Millisecond
d... |
// The code in this package comes from:
// https://github.com/golang/go/tree/master/src/internal/xcoff
// it was copied over to add support for xcoff binaries.
// Golang keeps this package as internal, forbidding its external use.
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is gov... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: dnsdedupe.proto
package format
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... |
// +build linux
// based on https://blog.nelhage.com/2010/08/write-yourself-an-strace-in-70-lines-of-code/
package main
import (
"flag"
"fmt"
"log"
"os"
"os/exec"
"runtime"
"syscall"
)
func main() {
log.SetFlags(0)
log.SetPrefix("ministrace: ")
flag.Usage = usage
flag.Parse()
if flag.... |
package faker_test
import (
"fmt"
"testing"
"github.com/pioz/faker"
"github.com/stretchr/testify/assert"
)
func ExampleIntInRange() {
faker.SetSeed(3)
fmt.Println(faker.IntInRange(10, 20))
fmt.Println(faker.IntInRange(-20, -10))
fmt.Println(faker.IntInRange(-20, -30))
// Output: 16
// -14
// -20
}
func E... |
package webhooks
import (
"context"
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"time"
"github.com/golang/glog"
"github.com/nirmata/kyverno/pkg/checker"
kyvernoclient "github.com/nirmata/kyverno/pkg/client/clientset/versioned"
kyvernoinformer "github.com/nirmata/kyverno/pkg/client/i... |
// 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 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... |
// The MIT License (MIT)
//
// Copyright (c) 2014 <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, mo... |
/*
Copyright 2020.
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 un... |
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
package data
import (
"encoding/binary"
"fmt"
"io"
"strings"
)
type NodeType uint8
type NodeFormat uint8
type HashPrefix uint32
type LedgerNamespace uint16
const (
// Hash Prefixes
HP_TRANSACTION_ID HashPrefix = 0x54584E00 // 'TXN' transaction
HP_TRANSACTION_NODE HashPrefix = 0x534E4400 // 'SND' transaction... |
package lookup_test
import (
"bytes"
"context"
_ "embed"
"encoding/json"
"fmt"
"net/http"
"net/url"
"testing"
"time"
"github.com/gofrs/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tidwall/gjson"
"github.com/ory/kratos/driver/config"
"github.com/ory/krato... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.8
// source: dingtalk_test.proto
package pb
import (
_ "github.com/mwitkow/go-proto-validators"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: persistent_msgs.proto
package pvtdatastorage // import "github.com/Matrix-Zhang/fabric-gm/core/ledger/pvtdatastorage"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not... |
package main
import (
"flag"
"fmt"
"log"
"math"
"os"
"runtime"
"runtime/pprof"
"strings"
"sync"
"time"
"github.com/ChristopherRabotin/smd"
"github.com/gonum/matrix/mat64"
"github.com/spf13/viper"
)
const (
defaultScenario = "~~unset~~"
dateFormat = "2006-01-02 15:04:05"
dateFormatFilename ... |
package database
import (
"database/sql"
"time"
)
const propagateLockName = "listener_propagate"
const propagateLockTimeout = 10 * time.Second
// Propagate recomputes fields of results
// For results marked as 'to_be_propagated'/'to_be_recomputed':
// 1. We mark all their ancestors in results as 'to_be_recomputed'... |
package libtrust
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/json"
"encoding/pem"
"errors"
"fmt"
"io"
"math/big"
)
/*
* RSA DSA PUBLIC KEY
*/
// rsaPublicKey implements a JWK Public Key using RSA digital signature algorithms.
type rsaPublicKey struct {
*rsa.PublicKey
extended m... |
package main
/*
Services: selma-sme
Author: <NAME>, Tetracon AB
Date: 2019-10-03
Description: Service to feed Selma-SME UX, just for test purpose
Compiled: go 1.12.7
Architecture:
win32: GOOS=windows GOARCH=386 go build -v
win64: GOOS=windows GOARCH=amd64 go build -v
arm64: GOOS=linux GOARCH=arm64 go build -v
... |
// 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 startupmonitorreadiness
import (
"context"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"time"
"github.com/openshift/cluster-kube-apiserver-operator/pkg/operator/operatorclient"
"github.com/openshift/library-go/pkg/operator/staticpod/startupmonitor"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/a... |
// Copyright 2016 VMware, 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... |
/*
Copyright (c) 2021, 2022 Oracle and/or its affiliates.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... |
package gonf
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"regexp"
"strconv"
"strings"
"sync"
"time"
)
var (
errNilTarget = errors.New("no configuration target supplied...")
errEmptyConfig = errors.New("no configuration file...")
errNoChanges = errors.... |
package token
import (
"context"
"crypto/rsa"
"crypto/x509"
"encoding/base64"
"encoding/json"
"fmt"
"net/http"
"sync"
"github.com/fabric8-services/fabric8-auth/log"
logintokencontext "github.com/fabric8-services/fabric8-auth/login/tokencontext"
"github.com/fabric8-services/fabric8-auth/rest"
errs "github... |
// +build js,wasm
// from: https://codepen.io/jadch/pen/MbEabY
package main
import (
"fmt"
"math"
"math/rand"
"strconv"
"syscall/js"
"time"
"github.com/Chyroc/web"
)
func init() {
rand.Seed(time.Now().Unix())
web.Document.AddEventListener("keydown", func(args []js.Value) {
if len(args) > 0 {
keyCode ... |
// Copyright (C) 2020 The Android Open Source Project
//
// 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... |
// Copyright 2017-2021 DERO Project. All rights reserved.
// Use of this source code in any form is governed by RESEARCH license.
// license can be found in the LICENSE file.
// GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8
//
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A... |
package keto
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"strconv"
"testing"
"time"
"github.com/ory/dockertest"
dc "github.com/ory/dockertest/docker"
"gopkg.in/yaml.v2"
// postgres library
_ "github.com/lib/pq"
ketoClient "github.com/ory/keto-client-go/client"
"github.com/radekg/app-kit-orytest/common... |
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright 2016 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... |
//
// 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 ... |
/*
* Copyright (c) 2020 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM... |
package tokenizer
import (
"regexp"
"strconv"
"strings"
"unicode/utf8"
"github.com/ditashi/jsbeautifier-go/optargs"
"github.com/ditashi/jsbeautifier-go/utils"
)
// Copyright (c) 2014 <NAME>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated docum... |
package main
import (
"bufio"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"encoding/json"
"encoding/pem"
"fmt"
"log"
"math/big"
"net"
"os"
"strings"
"time"
)
type Client struct {
name string
public_key string
messageHandlerChan chan Command
connect... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/v1beta1/build.proto
package build_go_proto // import "github.com/grafeas/grafeas/proto/v1beta1/build_go_proto"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import provenance_go_proto "github.com/grafeas/grafeas/pr... |
package zygo
import (
"fmt"
//tm "github.com/glycerine/tmframe"
"reflect"
"time"
)
// The Go Type Registry
// ====================
//
// simply decide upon a name, and add a maker
// function for that returns a pointer to your struct.
// The simply add to the init() function below.
//
// The env parameter to your... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: test_model.proto
package kvtest
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime... |
package driver
import (
"fmt"
"io/ioutil"
"net/url"
"os"
"os/exec"
"strings"
"sync"
"time"
"github.com/docker/go-plugins-helpers/volume"
"github.com/minio/minio-go/v6"
log "github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
)
const (
emptyVolume = `# s3vol configuration
# volumename;bucket;options
`... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/campaign_experiment.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... |
/*
* 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 ace
import (
"github.com/gopherjs/gopherjs/js"
)
// EditSession is a wrapper for the Ace EditSession type.
type EditSession struct {
*js.Object
}
// GetSession returns the EditSession object for the Editor
func (edit Editor) GetSession() EditSession {
return EditSession{edit.Call("getSession")}
}
// OnCh... |
/*
Copyright AppsCode Inc. and Contributors
Licensed under the AppsCode Community License 1.0.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://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md
Unless required by a... |
/* Copyright (c) 2019 Snowflake 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: yandex/cloud/iam/v1/iam_token_service.proto
package iam // import "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/yandex-cloud/go-genproto/yand... |
package core
import (
"bytes"
"context"
"errors"
"math/big"
"sort"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/golang/glog"
lpCommon "github.com/livepeer/go-livepeer/common"
"github.com/livepeer/go-livepe... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: reference.proto
package reference
import (
fmt "fmt"
proto "github.com/gogo/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 co... |
package logging
import (
"context"
"runtime"
"strings"
"sync"
"sync/atomic"
"time"
"unsafe"
"github.com/skillian/errors"
)
// Logger objects expose methods to log events to added handlers if the event
// exceeds the logger's log level.
type Logger struct {
parent *Logger
flags logFlags
le... |
package pernode
import (
"encoding/json"
"fmt"
"net"
"sync"
"time"
"github.com/golang/glog"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/selection"
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/cache"
"k8s.io/client... |
package helpers
import (
"errors"
"fmt"
"net/url"
"reflect"
"unicode"
)
var (
zero reflect.Value
errorType = reflect.TypeOf((*error)(nil)).Elem()
fmtStringerType = reflect.TypeOf((*fmt.Stringer)(nil)).Elem()
reflectValueType = reflect.TypeOf((*reflect.Value)(nil)).Elem()
)
type FuncMap m... |
package aoc2020
/*
-- Day 20: Jurassic Jigsaw ---
The high-speed train leaves the forest and quickly carries you south. You can even see a desert in the distance! Since you have some spare time, you might as well see if there was anything interesting in the image the Mythical Information Bureau satellite captured.
Af... |
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.
package cacheutil
import (
"context"
"strings"
"sync"
"time"
"github.com/bradfitz/gomemcache/memcache"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/pro... |
/*
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... |
// Copyright (c) 2020 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package contentsource
import (
goCtx "context"
"fmt"
"reflect"
"sort"
"strings"
"github.com/go-logr/logr"
"github.com/pkg/errors"
"k8s.io/apimachinery/pkg/api/equality"
apiErrors "k8s.io/apimachinery/pkg/api/error... |
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
// Copyright (c) 2021 Tailscale Inc & 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 cli
import (
"bytes"
"context"
"crypto/tls"
_ "embed"
"encoding/json"
"encoding/xml"
"flag"
"fmt"
"html/template"
"io"
"io/iouti... |
/*
Copyright 2019-2020 vChain, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
// interactive deamon mode for RR5 SYSTEM STATS MAINLY SEE DEAMON_RR5 DIR IN MODULES DIR FOR
// CODE AND GO MAIN TO GENERATE HTML BASED INPUTS
// packet capture, and some other things in grave detail
// as of January 3rd Red Rabbit V5 Interactive deamon mode is experimental
// and will not exceed everyones expectations... |
package alertmanager
import (
"context"
"flag"
"fmt"
"html/template"
"io/ioutil"
"net/http"
"net/url"
"os"
"path/filepath"
"sync"
"time"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/pkg/errors"
"github.com/prometheus/alertmanager/cluster"
amconfig "github.com/prometheus/al... |
// Copyright (C) 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 t... |
// Copyright (c) 2020 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package mining
import (
"testing"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred... |
package rest_test
import (
"fmt"
"testing"
"github.com/spf13/cobra"
"github.com/stretchr/testify/suite"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
"github.com/cosmos/cosmos-sdk/crypto/hd"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
"github.com/cosmos/cosmos-sdk/te... |
package pandora
// Copyright (c) 2014 <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... |
// 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.
package ssa
import (
"cmd/compile/internal/types"
"cmd/internal/obj"
"cmd/internal/objabi"
"cmd/internal/src"
)
// A Config holds readonly compilation inf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.