text stringlengths 5.51k 28.1k |
|---|
/*
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 ... |
package main
import (
"context"
"html/template"
"log"
"net/http"
"os"
"time"
"github.com/shurcooL/httpfs/html/vfstemplate"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"go.mongodb.org/mongo-driver/mongo/readpref"
)
// 이 파일에서는 최대한 핸들러만 선언합니다.
// LoadTemplates 함수는 템플릿을 로딩합... |
package server
import (
"fmt"
"go/token"
"log"
"net/http"
"sort"
"strconv"
"strings"
"go101.org/golds/code"
)
func (ds *docServer) overviewPage(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html")
ds.mutex.Lock()
defer ds.mutex.Unlock()
//if ds.phase < Phase_Parsed {
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... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: infra/appengine/weetbix/inter... |
// 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 main
import (
"fmt"
"github.com/yomorun/y3-codec-golang/examples"
"github.com/yomorun/y3-codec-golang/internal/utils"
y3 "github.com/yomorun/y3-codec-golang"
)
func main() {
fmt.Println("hello YoMo YomoCodec golang implementation: Y3")
encodePacket()
encodeArrayPacket()
parseNodePacket()
parseCom... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/common/oauth/proto/config.proto
package proto
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 _ = fm... |
package controller
import (
"context"
"fmt"
operatorv1 "github.com/danehans/api/operator/v1"
configv1 "github.com/openshift/api/config/v1"
"github.com/danehans/external-dns-operator/pkg/manifests"
operatorclient "github.com/danehans/external-dns-operator/pkg/operator/client"
"github.com/danehans/external-dns-... |
package liveness
import (
"container/list"
"encoding/json"
"fmt"
"hash/crc64"
"net"
"reflect"
"time"
"github.com/swiftstack/ProxyFS/logger"
)
// Each UDP Packet Header is made up of (also in LittleEndian byte order):
// CRC64 uint64
// MsgNonce uint64
// PacketIndex uint8
// PacketCount uint... |
package main
import (
"feelings/src/golang/errors"
"feelings/src/hardware/bcm2835"
"feelings/src/lib/trust"
rt "feelings/src/tinygo_runtime"
"unsafe"
"github.com/tinygo-org/tinygo/src/device/arm"
)
type mbrInfo struct {
unused [mbrUnusedSize]uint8
Partition1 partitionInfo //customary to number from 1
P... |
package gazelle_haskell_modules
import (
"bytes"
"encoding/json"
"fmt"
"io/fs"
"log"
"path"
"path/filepath"
"regexp"
"github.com/bazelbuild/bazel-gazelle/label"
"github.com/bazelbuild/bazel-gazelle/language"
"github.com/bazelbuild/bazel-gazelle/rule"
"github.com/bazelbuild/buildtools/build"
"github.com/b... |
// +build !js
package main
import (
"runtime"
"github.com/go-gl/gl/v2.1/gl"
"github.com/go-gl/glfw/v3.1/glfw"
"github.com/go-gl/mathgl/mgl32"
)
var window *glfw.Window
func InitGL() error {
runtime.LockOSThread()
if err := glfw.Init(); err != nil {
return err
}
glfw.WindowHint(glfw.ContextVersionMajor,... |
package main
// @controllers.go contains all core features to pick up a new job and schedule and start its processing.
import (
"context"
"encoding/json"
"fmt"
"io"
"log"
"os"
"os/exec"
"os/signal"
"path/filepath"
"runtime"
"runtime/pprof"
"strings"
"sync"
"sync/atomic"
"syscall"
"time"
)
// cleanupM... |
package main
import (
"bytes"
"crypto/md5"
"encoding/hex"
"encoding/json"
"errors"
"expvar"
"flag"
"fmt"
"github.com/hpcloud/tail"
log "github.com/sirupsen/logrus"
"io/ioutil"
"net"
"net/http"
"os"
"path"
"path/filepath"
"runtime"
"strings"
"sync"
"time"
"github.com/carbonblack/cb-event-forwarder... |
/*
Copyright 2011-2017 <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 in writing, s... |
package wiki
import (
"bytes"
"encoding/json"
"errors"
"io/ioutil"
"os"
"path/filepath"
"sort"
"strings"
"sync"
"time"
httpdate "github.com/Songmu/go-httpdate"
"github.com/cooper/quiki/wikifier"
)
// DisplayPage represents a page result to display.
type DisplayPage struct {
// basename of the page, wit... |
package main
import (
"io/ioutil"
"net/http"
"os/user"
"strconv"
"strings"
"bytes"
"fmt"
"io"
"log"
"math/rand"
"os"
"path/filepath"
"regexp"
"sync"
"time"
"gitee.com/a526757124/database/mongo"
"github.com/PuerkitoBio/goquery"
"gopkg.in/mgo.v2/bson"
)
const baseUrl = "http://www.mzitu.com/"
var (... |
package example
// This example shows use of the '-plural' option to set the name of plural
// collections. Because of '-ic', the parser ignores case. The '-using' option
// provides cross-mapping between the country names and their ISO-3166 tags.
//go:generate enumeration -v -type Country -plural Countries -ic -usin... |
package molino
import (
"fmt"
"strings"
)
type Compiler struct{}
type LocalBinding struct {
idx int
sym Symbol
tag Symbol
init Expr
isArg bool
}
type IParser interface {
parse(interface{}) Expr
}
type Expr interface {
eval() interface{}
}
type LiteralExpr interface {
Expr
val() interface{}
}
typ... |
package sampling
import (
"bytes"
"context"
crand "crypto/rand"
"encoding/binary"
"encoding/json"
"fmt"
"math/rand"
"net"
"net/http"
"sort"
"sync"
"time"
"github.com/shogo82148/aws-xray-yasdk-go/xray/xraylog"
)
const defaultInterval = int64(10)
const manifestTTL = 3600 // Seconds
var client = &http.Cli... |
package tty
import (
"container/list"
"crypto/rand"
"crypto/tls"
"crypto/x509"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"math/big"
"net"
"net/http"
"net/url"
"os"
"os/exec"
"os/signal"
"os/user"
"strconv"
"strings"
"syscall"
"text/template"
"time"
"github.com/braintree/manne... |
package state
import (
"fmt"
"time"
"github.com/FactomProject/factomd/common/interfaces"
"github.com/FactomProject/factomd/common/messages"
)
// NonBlockingChannelAdd will only add to the channel if the action is non-blocking
func NonBlockingChannelAdd(channel chan interfaces.IMsg, msg interfaces.IMsg) bool {
s... |
package bls12381
import (
"io"
"github.com/coinbase/kryptology/internal"
"github.com/coinbase/kryptology/pkg/core/curves/native"
)
// GtFieldBytes is the number of bytes needed to represent this field
const GtFieldBytes = 576
// Gt is the target group
type Gt fp12
// Random generates a random field element
func... |
package knf
// ////////////////////////////////////////////////////////////////////////////////// //
// //
// Copyright (c) 2021 ESSENTIAL KAOS //
// Apache License, Version 2.0 <htt... |
package server
import (
"bytes"
"fmt"
"strings"
"github.com/go-openapi/spec"
clients "github.com/Clever/wag/v8/clients/go"
"github.com/Clever/wag/v8/swagger"
"github.com/Clever/wag/v8/templates"
"github.com/Clever/wag/v8/utils"
)
// Generate server package for a swagger spec.
func Generate(packageName, pack... |
//
// Copyright (C) 2019-2021 vdaas.org vald team <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
// Copyright © 2013-2016 Galvanized Logic Inc.
// Use is governed by a BSD-style license found in the LICENSE file.
package main
import (
"fmt"
"math"
"github.com/gazed/vu"
"github.com/gazed/vu/grid"
"github.com/gazed/vu/math/lin"
)
// level groups everything needed for a single level.
// This includes the pla... |
package executor
import (
"errors"
"fmt"
"math/rand"
"os"
"path"
"runtime/debug"
"strings"
"sync"
"time"
"github.com/google/uuid"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"getsturdy.com/api/pkg/codebases"
"getsturdy.com/api/vcs"
"getstu... |
package selfFastHttp
import (
"bytes"
"io"
"sync"
)
// URI工厂
// 使用完,用ReleaseURI回收
func AcquireURI() *URI {
return uriPool.Get().(*URI)
}
func ReleaseURI(u *URI) {
u.Reset()
uriPool.Put(u)
}
var uriPool = &sync.Pool{
New: func() interface{} {
return &URI{}
},
}
// 统一资源标志符URI就是在某一规则下能把一个资源独一无二地标识出来
// URL在... |
package kubernetes
import (
"crypto/sha1"
"errors"
"fmt"
"sort"
"github.com/kelda/kelda/blueprint"
"github.com/kelda/kelda/db"
"github.com/kelda/kelda/join"
"github.com/kelda/kelda/util/str"
log "github.com/sirupsen/logrus"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachine... |
package server
import (
"context"
"time"
"github.com/findy-network/findy-agent/agent/bus"
"github.com/findy-network/findy-agent/agent/e2"
"github.com/findy-network/findy-agent/agent/endp"
"github.com/findy-network/findy-agent/agent/pltype"
"github.com/findy-network/findy-agent/agent/prot"
"github.com/findy-ne... |
package config
import (
"encoding/binary"
"fmt"
"github.com/uhppoted/uhppote-core/encoding/conf"
"github.com/uhppoted/uhppoted-api/monitoring"
"io"
"io/ioutil"
"math/rand"
"net"
"os"
"regexp"
"strconv"
"strings"
"text/template"
"time"
)
type DeviceMap map[uint32]*Device
type Device struct {
Name s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.18.1
// source: warhammer/sigmar/v1/weapon.proto
package warhammerv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect ... |
// Copyright 2015 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... |
// Copyright 2016 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 model129
// Code generated by ../../generators/models.go. DO NOT EDIT.
// You can regenerate it by running 'go generate ./models' from the directory above.
import (
"github.com/andig/gosunspec"
"github.com/andig/gosunspec/smdx"
"github.com/andig/gosunspec/typelabel"
)
// Block129 - LVRTD - LVRT Must Disco... |
/*
Copyright 2015 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 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 dst declares the types used to represent decorated syntax
// trees for Go packages.
package dst
import (
"go/token"
"unicode"
"unicode/utf8"
)
/... |
package math
import (
"github.com/Laughs-In-Flowers/shiva/lib/lua"
l "github.com/yuin/gopher-lua"
)
type Quaternion interface {
MathType
Manipulator
Getter
Setter
Length
Clone() Quaternion
Conjugate() Quaternion
Inverse() Quaternion
Mul(Quaternion) Quaternion
Normalize() Quaternion
}
type quaternion str... |
// Copyright (c) 2013-2015 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package txscript
import (
"errors"
"fmt"
"github.com/navcoin/navd/btcec"
"github.com/navcoin/navd/chaincfg"
"github.com/navcoin/navd/wire"
"github.com/navcoin/na... |
// 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 writi... |
package http
import (
"fmt"
//"bytes"
"context"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"os/exec"
"strings"
"sync"
"time"
dockerapi "github.com/fsouza/go-dockerclient"
"github.com/google/shlex"
log "github.com/sirupsen/logrus"
"github.com/docker-slim/docker-slim/pkg/app"
//"github.com/docker-slim... |
// Copyright 2017-2018 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package dhcp6client implements a DHCPv6 client as per RFC 3315.
package dhcp6client
import (
"context"
"fmt"
"net"
"strings"
"sync"
"time"
"... |
package main
import (
"context"
"encoding/csv"
"encoding/json"
"fmt"
"io"
"log"
"net/url"
"os"
"reflect"
"sort"
"strings"
"time"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/adal"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azu... |
/*
Copyright 2016 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... |
// Copyright (c) 2013 <NAME>, speedata (Berlin, Germany)
//
// 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... |
package mgr
import (
"errors"
"fmt"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/json-iterator/go"
"github.com/qiniu/log"
"github.com/qiniu/logkit/conf"
"github.com/qiniu/logkit/metric"
"github.com/qiniu/logkit/reader"
"github.com/qiniu/logkit/sender"
"github.com/qiniu/logkit/transforms"
"github.co... |
// skip : cannot allocate a new general register
// +build amd64
// errorcheck
// 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.
// Issue 2444
// Issue 4666: issue with arrays of exactly 4GB.
package main
v... |
package executor
import (
"context"
"crypto/x509"
"errors"
"fmt"
"io"
"net/url"
"os"
"os/exec"
"strconv"
"strings"
"time"
mesos "github.com/mesos/mesos-go/api/v1/lib"
"github.com/mesos/mesos-go/api/v1/lib/backoff"
"github.com/mesos/mesos-go/api/v1/lib/encoding"
"github.com/mesos/mesos-go/api/v1/lib/exe... |
// 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, ... |
// Copyright (c) 2018 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 kusto
// 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 code is regenerated.
... |
package game
import (
"errors"
"fmt"
"image"
"image/draw"
"image/png"
_ "image/png"
"log"
"math/rand"
"os"
"strings"
"unsafe"
"github.com/go-gl/glfw/v3.3/glfw"
"github.com/go-gl/gl/v2.1/gl"
)
const (
ObjectCount = 500
)
type Texture struct {
width uint16
height uint16
u1 float32
v1 float... |
// meek-server is the server transport plugin for the meek pluggable transport.
// It acts as an HTTP server, keeps track of session ids, and forwards received
// data to a local OR port.
//
// Sample usage in torrc:
// ServerTransportListenAddr meek 0.0.0.0:443
// ServerTransportPlugin meek exec ./meek-server --acme... |
// Package server provides an HTTP interface for the job queue/scheduler.
package server
import (
"bytes"
"database/sql"
"encoding/json"
"fmt"
"io"
"net/http"
"net/http/httptest"
"net/http/httputil"
"net/http/pprof"
"os"
"regexp"
"strings"
"time"
"github.com/Shyp/go-dberror"
"github.com/Shyp/go-simple-... |
package main
import (
"database/sql"
lib "devstats"
"encoding/json"
"fmt"
"os"
"regexp"
"strings"
"time"
)
// gitHubUsers - list of GitHub user data from cncf/gitdm.
type gitHubUsers []gitHubUser
// gitHubUser - single GitHug user entry from cncf/gitdm `github_users.json` JSON.
type gitHubUser struct {
Logi... |
//go:build windows
package win
import (
"time"
"unsafe"
"github.com/rodrigocfd/windigo/internal/util"
"github.com/rodrigocfd/windigo/win/co"
)
// 📑 https://docs.microsoft.com/en-us/windows/console/console-cursor-info-str
type CONSOLE_CURSOR_INFO struct {
DwSize uint32
bVisible int32 // BOOL
... |
package testutil
import (
"context"
"crypto/x509"
"database/sql"
"encoding/pem"
"errors"
"fmt"
"github.com/gruntwork-io/terratest/modules/k8s"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
"testing"
"time"
"github.com/cockroachdb/cockroach-operator/pkg/database"
"github.com/stretchr/testify/r... |
package test
import (
"errors"
"fmt"
"net/http"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"testing"
"time"
"github.com/gruntwork-io/terratest/modules/aws"
"github.com/gruntwork-io/terratest/modules/files"
"github.com/gruntwork-io/terratest/modules/logger"
"github.com/gruntwork-io/terratest/modul... |
// Copyright 2017 The Chromium 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 gerrit
import (
"bytes"
"context"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"time"
"github.c... |
// 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... |
// Copyright 2015 Comcast Cable Communications Management, 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 b... |
// Copyright 2022 The gVisor 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... |
package looppointer
import (
"fmt"
"go/ast"
"go/token"
"log"
"strings"
"github.com/github-vet/bots/cmd/vet-bot/acceptlist"
"github.com/github-vet/bots/cmd/vet-bot/callgraph"
"github.com/github-vet/bots/cmd/vet-bot/nogofunc"
"github.com/github-vet/bots/cmd/vet-bot/packid"
"github.com/github-vet/bots/cmd/vet-... |
package governance
import (
"context"
"fmt"
"time"
"gioui.org/font/gofont"
"gioui.org/layout"
"gioui.org/text"
"gioui.org/unit"
"gioui.org/widget"
"gioui.org/widget/material"
"github.com/planetdecred/dcrlibwallet"
"github.com/planetdecred/godcr/ui/decredmaterial"
"github.com/planetdecred/godcr/ui/load"
... |
// Copyright 2020 The Gitea 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 code
import (
"bufio"
"context"
"fmt"
"io"
"io/ioutil"
"strconv"
"strings"
"time"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modul... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: logicproto.proto
/*
Package logic is a generated protocol buffer package.
It is generated from these files:
logicproto.proto
It has these top-level messages:
LGC_PING_CS
LGC_PING_SC
LGC_KICKOFF_SC
LGC_ACCOUNT_LOGIN_CS
LGC_ACCOUNT_LOGIN_S... |
package animation
import (
"fmt"
"image/color"
"math/rand"
"os"
"strconv"
"time"
"github.com/TeamNorCal/animation/model"
ingressModel "github.com/TeamNorCal/mawt/model"
)
// Enacapsulates a model of a portal from the perpsective of animations.
// Provides an API semantically meaningful to Ingress
const (
/... |
// Copyright (c) 2013 Conformal Systems LLC.
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package main
import (
"container/list"
"fmt"
"github.com/conformal/btcdb"
"github.com/conformal/btcwire"
"net"
"strconv"
"sync"
"sync/atomic"
"time"
)
// These cons... |
/*
Copyright © 2021 Yugabyte Support
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, softw... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.0
// source: external/infra_proxy/response/common.proto
package response
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
r... |
// Copyright (c) 2017, <NAME>
// See LICENSE for details.
package main
import (
"database/sql"
"errors"
"fmt"
"net"
"net/http"
"os"
"os/signal"
"runtime/pprof"
"strings"
"sync"
"time"
"github.com/HcashOrg/hcd/chaincfg/chainhash"
"github.com/HcashOrg/hcexplorer/blockdata"
"github.com/HcashOrg/hcexplorer... |
// Copyright (c) 2019, The Emergent Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"math"
"math/rand"
"os"
"strings"
"github.com/emer/emergent/env"
"github.com/emer/... |
// Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
package cmd
import (
"archive/zip"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strings"
"github.com/renstrom/dedent"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/wso2/wum-uc/constant"
"github.com/w... |
/*
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) 2004-present Facebook All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by entc, DO NOT EDIT.
package ent
import (
"fmt"
"strings"
"time"
"github.com/facebook/ent/dialect/sql"
"github.com/facebookincub... |
// Copyright 2015-2019 Bleemeo
//
// bleemeo.com an infrastructure monitoring solution in the Cloud
//
// 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/LI... |
package hub
import (
"container/heap"
"fmt"
"os"
"sync"
"time"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/seiflotfy/cuckoofilter"
"github.com/urjitbhatia/goyaad/internal/queue"
"github.com/urjitbhatia/goyaad/internal/stats"
"github.com/urjitbhatia/goyaad/internal/temporal"
"github.co... |
package v1alpha1
import (
"fmt"
"reflect"
"strings"
v1 "k8s.io/api/core/v1"
"github.com/ghodss/yaml"
"helm.sh/helm/pkg/chartutil"
"github.com/thoas/go-funk"
"github.com/alauda/component-base/regex"
"github.com/fatih/structs"
"helm.sh/helm/pkg/release"
"helm.sh/helm/pkg/repo"
metav1 "k8s.io/apimachiner... |
// Copyright (c) 2012 The Chromium 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 program converts the information in
// transport_security_state_static.json and
// transport_security_state_static.certs into
// transport_sec... |
package generator
import (
"bytes"
"context"
"crypto"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"fmt"
"log"
"math/big"
"net"
"time"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"g... |
// Copyright 2021 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package v1alpha1
import (
"fmt"
"reflect"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/vmware-tanzu/tanzu-framework/apis/run/v1alpha1/upgrade"
)
// VirtualMachineState describes the state of a VM.
type Virtu... |
package server
import (
"bytes"
"fmt"
"html/template"
"io"
"io/ioutil"
"log"
"math/rand"
"net/http"
"net/url"
"os"
"path/filepath"
"regexp"
"runtime/debug"
"strings"
"time"
"github.com/kentsin/BookBrowser/booklist"
"github.com/kentsin/BookBrowser/formats"
"github.com/kentsin/BookBrowser/indexer"
"g... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: moc_common_security.proto
package common
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 ... |
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
package control
import (
"encoding/json"
"errors"
"fmt"
"math/rand"
"nRIC/internal"
"net/http"
"time"
)
type Display struct {
Ctl *Control
}
type Data struct {
Load []int `json:"Load,omitempty"`
UEs []int `json:"UEs,omitempty"`
Time int64 `json:"Time,omitempty"`
Xaixmin int64 `json:"xaixmin,omi... |
// Copyright 2015 The yuyi 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 t... |
package campaigns
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"strings"
"text/template"
"time"
"github.com/hashicorp/go-multierror"
"github.com/pkg/errors"
"github.com/sourcegraph/src-cli/internal/campaigns/graphql"
)
func runSteps(ctx context.Context, wc *WorkspaceCreator, repo *gr... |
package transport
import (
"fmt"
"math"
"time"
)
const (
// Endpoints should use an initial congestion window of 10 times the maximum datagram size,
// limited to the larger of 14720 or twice the maximum datagram size
// https://www.rfc-editor.org/rfc/rfc9002.html#section-7.2
initialMaxDatagramSize = 1472
ini... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: pkg/proto/build_service.proto
package proto
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.... |
// Copyright 2020 The jackal 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 The xfsgo Authors
// This file is part of the xfsgo library.
//
// The xfsgo library is free software: you can redistribute it and/or modify
// it under the terms of the MIT Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your o... |
package fetcher
import (
"errors"
"github.com/RadioCheckerApp/api/model"
"reflect"
"testing"
"time"
)
var timeFormatStr = "2006-01-02 15:04:05"
var location, _ = time.LoadLocation("Europe/Vienna")
var timeCorrection = 7 * time.Minute
type MockKronehitAPI struct{}
func (api MockKronehitAPI) GetItems(date time.T... |
package inter
import (
"fmt"
"math/rand"
"strings"
"github.com/pkg/errors"
"github.com/Fantom-foundation/go-lachesis/src/hash"
)
// ASCIIschemeToDAG parses events from ASCII-scheme for test purpose.
// Use joiners ║ ╬ ╠ ╣ ╫ ╚ ╝ ╩ and optional fillers ─ ═ to draw ASCII-scheme.
// Result:
// - nodes is an arr... |
// +build !appengine
package tada
import (
"fmt"
"html/template"
"net/http"
"reflect"
"strconv"
"time"
"golang.org/x/net/context"
"google.golang.org/appengine"
"google.golang.org/appengine/datastore"
"google.golang.org/appengine/memcache"
"google.golang.org/appengine/search"
"google.golang.org/appengine/t... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: pkg/protocol/user.proto
package protocol
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Referenc... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: admin.proto
package linkedca
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/p... |
package main
import (
"crypto/rc4"
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
"time"
)
const RECV_BUF_LEN = 1024
const wmax = 233
var node67 = &Tree{v: 29, w: 22, is_chosen: false, father: node45}
var node77 = &Tree{v: 84, w: 28, is_chosen: false, father: node58}
var node3 = &Tree{v: 15,... |
// Package ical implements the iCalendar file format.
//
// iCalendar is defined in RFC 5545.
package ical
import (
"encoding/base64"
"fmt"
"strconv"
"strings"
"time"
)
// MIME type and file extension for iCal, defined in RFC 5545 section 8.1.
const (
MIMEType = "text/calendar"
Extension = "ics"
)
type Param... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.