text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/probes/dns/proto/config.proto
package proto
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 _... |
package main
import (
"context"
// "fmt"
"os"
"strings"
"github.com/abiosoft/ishell"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3mana... |
// 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/Table.proto
package table
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.go... |
// Copyright 2021 <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 writin... |
// Copyright 2020, Chef. All rights reserved.
// https://github.com/q191201771/lal
//
// Use of this source code is governed by a MIT-style license
// that can be found in the License file.
//
// Author: Chef (<EMAIL>)
package rtprtcp
import (
"github.com/q191201771/lal/pkg/base"
"github.com/q191201771/naza/pkg/be... |
package main
import (
"bytes"
"encoding/binary"
"encoding/json"
"fmt"
"log"
"math"
"math/rand"
"net"
"os"
"strconv"
"sync"
"time"
"unsafe"
"github.com/satori/go.uuid"
)
const PowerUpVelocityMultiplier = 1.5
var (
Blocks = [100][2]float32{}
PowerUps = [20][2]float32{}
BlockSize = [3]float3... |
/*
Copyright 2020 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-2018, Pulumi 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... |
package main
import (
"path"
"fmt"
"strings"
utils "github.com/opoirion/snATACUtils/ATACdemultiplexUtils"
"bufio"
"os"
"log"
"sync"
"bytes"
"io"
"time"
"strconv"
pathutils "path"
)
/*BUFFERSIZE buufer size used to parse strings from ungzipped file */
const BUFFERSIZE = 100000 - 100000 % 4
/*BUFFERR1 bu... |
package config
import (
"fmt"
"github.com/MichaelS11/go-dht"
"github.com/caarlos0/env/v6"
influxdb2 "github.com/influxdata/influxdb-client-go/v2"
"github.com/influxdata/influxdb-client-go/v2/api"
"github.com/klaital/max31855"
log "github.com/sirupsen/logrus"
"github.com/warthog618/gpiod"
"github.com/warthog61... |
/*
Copyright (c) 2010 <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, publish,
distribute, sublice... |
package vmess
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
protocol "v2ray.com/core/common/protocol"
)
const (
// Verify that this generated code is suffici... |
package tuple
import (
"fmt"
"golang.org/x/exp/constraints"
)
// T8 is a tuple type holding 8 generic values.
type T8[Ty1, Ty2, Ty3, Ty4, Ty5, Ty6, Ty7, Ty8 any] struct {
V1 Ty1
V2 Ty2
V3 Ty3
V4 Ty4
V5 Ty5
V6 Ty6
V7 Ty7
V8 Ty8
}
// Len returns the number of values held by the tuple.
func (t T8[Ty1, Ty2, Ty... |
package main
import (
"flag"
utils "github.com/opoirion/snATACUtils/ATACdemultiplexUtils"
"os"
"fmt"
"path"
"github.com/biogo/store/interval"
"strings"
"strconv"
"bytes"
"time"
"math"
"io"
)
/*BEDFILENAME bed file name (input) */
var BEDFILENAME utils.Filename
/*REFBEDFILENAME bed file containing annot... |
package cron
import (
"context"
"encoding/json"
"sort"
"strings"
"sync"
"time"
"github.com/Shopify/sarama"
log "github.com/Sirupsen/logrus"
"github.com/astaxie/beego/orm"
cmodel "github.com/open-falcon/falcon-plus/common/model"
nlist "github.com/toolkits/container/list"
"golang.org/x/sync/semaphore"
"g... |
package snowflake_test
import (
"testing"
"github.com/better/terraform-provider-snowflake/pkg/snowflake"
"github.com/stretchr/testify/require"
)
func TestDatabaseGrant(t *testing.T) {
r := require.New(t)
dg := snowflake.DatabaseGrant("testDB")
r.Equal(dg.Name(), "testDB")
s := dg.Show()
r.Equal(`SHOW GRANTS... |
// Copyright 2015 <NAME> and The Caddy 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... |
/*
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 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 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package main
import (
"context"
gerrs "errors"
"fmt"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"time"
"cloud.google.com/go/storage... |
// Copyright (c) 2016-2017 The btcsuite developers
// Copyright (c) 2016-2017 The Lightning Network Developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package gcs
import (
"bytes"
"fmt"
"io"
"sort"
"github.com/aead/siphash"
"github.com/litecoinfinance/... |
// Copyright 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 in wri... |
// 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.
//go:generate go run makeisprint.go -output isprint.go
package strconv
import (
"unicode/utf8"
)
const (
lowerhex = "0123456789abcdef"
upperhex = "0123456... |
package main
import (
"fmt"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
type dateTest struct {
in, out string
err bool
}
var testInputs = []dateTest{
// mm/dd/yyyy
{in: "03/31/2014", out: "2014-03-31 00:00:00 +0000 UTC"},
{in: "3/31/2014", out: "2014-03-31 00:00:00 +0000 UTC"},
{in: "3/5... |
// 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 ... |
package runtime
import (
"context"
"fmt"
urls "net/url"
"strconv"
"strings"
"time"
"os"
"sync"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/versions"
"github.com/docker/docker/client"
"github.com/do... |
package pandascore
import (
"fmt"
"time"
)
// TeamFilterField defines the values usable to filter on teams.
type CSGOStatsFilterField string
const (
// CSGOStatsFilterFrom can be set to Filter on the from field
CSGOStatsFilterFrom CSGOStatsFilterField = "from"
// CSGOStatsFilterTo can be set to Filter on the to... |
package cmd
import (
"context"
"crypto/tls"
"errors"
"fmt"
log2 "log"
"net/http"
_ "net/http/pprof"
"os"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"
"time"
"github.com/NYTimes/logrotate"
"github.com/apex/log"
"github.com/apex/log/handlers/multi"
"github.com/docker/docker/client"
"github.co... |
// Copyright 2019 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 store
import (
"bytes"
"fmt"
"io"
"os"
"path/filepath"
"runtime/debug"
"sort"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/douban/gobeansdb/cmem"
"github.com/douban/gobeansdb/config"
"github.com/douban/gobeansdb/loghub"
"github.com/douban/gobeansdb/utils"
)
const (
HTREE_SUFFI... |
/*
Copyright © 2020-2021 The k3d Author(s)
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, publish, distri... |
package cpu
import (
"errors"
"fmt"
"strings"
)
var ErrorUnknownAddressMode = errors.New("Unknown Addressing Mode")
var ErrorUnknownInstruction = errors.New("Unknown Instruction")
type Executer func(c *CPU) (cycles int, nexPc uint16)
type Opcode struct {
address uint16
opcode []*byte
... |
// Copyright 2020, Chef. All rights reserved.
// https://github.com/q191201771/lal
//
// Use of this source code is governed by a MIT-style license
// that can be found in the License file.
//
// Author: Chef (<EMAIL>)
package hls
import (
"bytes"
"fmt"
"os"
"github.com/q191201771/naza/pkg/unique"
"github.com... |
package proc
import (
"fmt"
"log"
"os/user"
"strconv"
"time"
seq "github.com/ncabatoff/go-seq/seq"
common "github.com/ncabatoff/process-exporter"
)
type (
// Tracker tracks processes and records metrics.
Tracker struct {
// namer determines what processes to track and names them
namer common.MatchNamer
... |
package main
import (
"encoding/json"
"fmt"
"log"
"os"
"strconv"
"strings"
"time"
envoy_api_v2 "github.com/envoyproxy/go-control-plane/envoy/api/v2"
core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
endpoint "github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint"
route "github.com/envo... |
package pages
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"image"
"image/color"
"image/png"
"io"
"math"
"net/http"
"path"
"reflect"
"strings"
"sync"
"time"
"github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap"
influxdb2 "github.com/influxdata/influxdb-client-go/v2"
"github... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dataproc/v1beta2/operations.proto
package dataproc
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
timestamp "github.com/catper/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
... |
// Code generated by entc, DO NOT EDIT.
package ent
import (
"context"
"fmt"
"reflect"
"strings"
"entgo.io/ent/dialect/sql"
"github.com/BeanWei/li/li-engine/ac"
"github.com/BeanWei/li/li-engine/contrib/liflow/ent/flownodeinstancelog"
"github.com/BeanWei/li/li-engine/contrib/liflow/ent/schema"
"github.com/Be... |
/*
This file is part of rclgo
Copyright © 2021 Technology Innovation Institute, United Arab Emirates
Licensed under the Apache License, Version 2.0 (the "License");
http://www.apache.org/licenses/LICENSE-2.0
*/
/*
THIS FILE IS AUTOGENERATED BY 'rclgo-gen generate'
*/
package px4_msgs_msg
import (
"unsafe"
"gith... |
// Code generated by protoc-gen-go.
// source: sourcebackend.proto
// DO NOT EDIT!
package proto
import proto1 "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not ... |
package dataload
import (
"context"
datav1alpha1 "github.com/fluid-cloudnative/fluid/api/v1alpha1"
"github.com/fluid-cloudnative/fluid/pkg/ddc"
"github.com/fluid-cloudnative/fluid/pkg/ddc/base"
cruntime "github.com/fluid-cloudnative/fluid/pkg/runtime"
"reflect"
"sync"
"time"
"github.com/fluid-cloudnative/flu... |
package evergreen
import (
"fmt"
"io/ioutil"
"reflect"
"strings"
"time"
"github.com/evergreen-ci/evergreen/db"
"github.com/evergreen-ci/evergreen/util"
"github.com/mongodb/amboy/logger"
"github.com/mongodb/grip"
"github.com/mongodb/grip/level"
"github.com/mongodb/grip/send"
"github.com/pkg/errors"
mgo "g... |
package boardgame
import (
"encoding/json"
"io/ioutil"
"reflect"
"strings"
"testing"
"time"
"github.com/jkomoros/boardgame/internal/patchtree"
"github.com/workfit/tester/assert"
)
type testInfiniteLoopGameDelegate struct {
testGameDelegate
}
func (t *testInfiniteLoopGameDelegate) ProposeFixUpMove(state Imm... |
// Licensed to LinDB under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. LinDB licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compli... |
// Golog aspires to be an ISO Prolog interpreter. It currently
// supports a small subset of the standard. Any deviations from
// the standard are bugs. Typical usage looks something like this:
//
// m := NewMachine().Consult(`
// father(john).
// father(jacob).
//
// mother(sue).
//
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/operating_system_version_constant.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: yandex/cloud/compute/v1/image.proto
package compute
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.... |
/*
Copyright 2021.
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 2019-2020 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 law... |
package shared_testutil
import (
"errors"
"testing"
"github.com/ipfs/go-cid"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/stretchr/testify/require"
rm "github.com/filecoin-project/go-fil-markets/retrievalmarket"
rmnet "github.com/filecoin-project/go-fil-markets/retrievalmarket/network"
smnet "github.c... |
/*
* Copyright (c) 2019 <NAME> <EMAIL>
*
* Permission to use, copy, modify, and 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 DISCLAI... |
package co
// WM_COMMAND notification codes.
//
// 📑 https://docs.microsoft.com/en-us/windows/win32/menurc/wm-command
type CMD uint16
const (
CMD_MENU CMD = 0 // Message originated from a menu.
CMD_ACCELERATOR CMD = 1 // Message originated from an accelerator.
)
// WM_NOTIFY common control noti... |
package tv
import (
xs "github.com/huandu/xstrings"
term "github.com/nsf/termbox-go"
"github.com/prospero78/goTV/tv/autoheight"
"github.com/prospero78/goTV/tv/autowidth"
"github.com/prospero78/goTV/tv/pos"
"github.com/prospero78/goTV/tv/types"
)
// TWindow is an implementation of View managed by Composer.
type... |
// Copyright (c) 2018, The GoKi 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 lex
import (
"bytes"
"io/ioutil"
"log"
"os"
"strings"
"github.com/goki/ki/sliceclone"
"github.com/goki/pi/filecat"
"github.com/goki/pi/... |
package game
import (
"bytes"
"fmt"
"github.com/ratel-online/core/log"
modelx "github.com/ratel-online/core/model"
"github.com/ratel-online/core/util/poker"
"github.com/ratel-online/server/consts"
"github.com/ratel-online/server/database"
"github.com/ratel-online/server/skill"
"math/rand"
"strconv"
"strings... |
package azeroth
// CHARACTER_ENDPOINT is the base endpoint for WoW characters. When referenced, it needs the realm and the character, in
// that order.
const (
CHARACTER_ENDPOINT = "/wow/character/%s/%s"
)
// TODO add hunterPets endpoint (I don't have any hunter pets, lol)
// TODO export the character item fields - ... |
package chat
import (
"bytes"
"context"
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"os"
"path/filepath"
"sync"
"testing"
"time"
"github.com/keybase/client/go/externalstest"
"github.com/keybase/client/go/kbhttp/manager"
"github.com/keybase/client/go/chat/attachments"
"git... |
// Copyright (c) 2013-2017 The btcsuite developers
// Copyright (c) 2017 BitGo
// Copyright (c) 2019 Tranquility Node Ltd
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package txscript
import (
"fmt"
"github.com/pyx-partners/dmgd/btcec"
"github.com/pyx-partners... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/geo_target_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/googleapis/ads... |
package auth
import (
"context"
"crypto/rsa"
"crypto/x509"
"errors"
"fmt"
"log"
"net/http"
"strings"
"time"
)
// Settings is the settings for the auth package
type Settings struct {
// SMTP Server and port
SMTPServer string
SMTPUser string
SMTPPassword string
// Eg. "My web site <<EMAIL>>"
Email... |
package inference
import (
"bufio"
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"path"
"sort"
"sync"
"sync/atomic"
"time"
"github.com/google/uuid"
"github.com/harrison-roh/image-classification-with-transfer-learning/clsapp/constants"
tf "github.com/tensorflow/tensorflow/te... |
package k3s
import (
"context"
"decept-defense/models/honeycluster"
"decept-defense/models/policyCenter"
"decept-defense/models/redisCenter"
"decept-defense/models/util"
"decept-defense/models/util/comm"
"encoding/json"
"fmt"
"github.com/astaxie/beego"
"github.com/astaxie/beego/logs"
"io"
corev1 "k8s.io/ap... |
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License... |
// Copyright 2018 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... |
// learnJsonHandler.go returns the path of pages needed for understanding some pages
package site
import (
"encoding/json"
"fmt"
"net/http"
"sort"
"strings"
"zanaduu3/src/core"
"zanaduu3/src/database"
"zanaduu3/src/logger"
"zanaduu3/src/pages"
)
var learnHandler = siteHandler{
URI: "/json/learn/",... |
package edgeorder
// 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 regenerat... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: wso2/discovery/config/enforcer/issuer.proto
package enforcer
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "googl... |
/*
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2018 Aspose.Slides for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of... |
package envoy
import (
"bytes"
"encoding/json"
"fmt"
"net"
"net/url"
"os"
"strings"
"text/template"
)
// BootstrapConfig is the set of keys we care about in a Connect.Proxy.Config
// map. Note that this only includes config keys that affects Envoy bootstrap
// generation. For Envoy config keys that affect run... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: timerfd.proto
package types
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/pro... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: pkg/products/products.proto
package products
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/pro... |
package commands
import (
"asura/src/handler"
"asura/src/utils"
"asura/src/utils/rinha"
"context"
"fmt"
"math/rand"
"sync"
"time"
"github.com/andersfylling/disgord"
)
type rinhaOptions struct {
galoAuthor *rinha.Galo
galoAdv *rinha.Galo
authorLevel int
advLevel int
authorName string
advName ... |
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
// DO NOT EDIT!
package google_devtools_clouderrorreporting_v1beta1 // import "google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1"
import proto ... |
package machine
import (
"bufio"
"fmt"
"io"
"os"
"strings"
)
type valType uint16
type opCode uint16
type regType uint16
type argType uint16
type opType struct {
code opCode // the instruction code
name string // the instruction name (for disassembly)
args argType // number and type of instruction arguments... |
package server
import (
"context"
"fmt"
"log"
"math/big"
"net/http"
"sync"
"time"
movingaverage "github.com/RobinUS2/golang-moving-average"
"github.com/hectorchu/gonano/rpc"
"github.com/hectorchu/gonano/wallet"
"github.com/palantir/stacktrace"
"github.com/tnyim/jungletv/proto"
"github.com/tnyim/jungletv/... |
// Parts of this file have been borrowed from github.com/kubernetes/sample-controller
// which is released under Apache-2.0 License with notice:
// Copyright 2017 The Kubernetes Authors
//
// The rest of the source code is licensed under:
// Copyright 2020 SAP SE
//
// Licensed under the Apache License, Version 2.0 (th... |
package main
import (
"crypto/sha256"
_ "embed"
"encoding/hex"
"fmt"
"io"
"log"
"math"
"math/rand"
"net"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
"strconv"
"strings"
"sync"
"syscall"
"time"
"github.com/acarl005/stripansi"
"github.com/gliderlabs/ssh"
terminal "golang.org/x/term"
)
var (
po... |
// secret service implementation according to:
// http://standards.freedesktop.org/secret-service
package service
import (
"crypto/aes"
"crypto/rand"
"crypto/sha256"
"fmt"
"io"
"strconv"
"strings"
"golang.org/x/crypto/hkdf"
"github.com/godbus/dbus/v5"
"github.com/monnand/dhkx"
log "github.com/sirupsen/log... |
package probe
// #include "../../defs.h"
import "C"
import (
"fmt"
"net"
"syscall"
"time"
log "github.com/sirupsen/logrus"
"github.com/neuvector/neuvector/agent/dp"
"github.com/neuvector/neuvector/agent/probe/netlink"
"github.com/neuvector/neuvector/share"
"github.com/neuvector/neuvector/share/container"
... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: storage/concurrency/lock/locking.proto
package lock
import proto "github.com/gogo/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 _ = ... |
package room
import (
"errors"
"gameserver-997/pb/gopb"
"gameserver-997/server/base/iface"
"gameserver-997/server/base/logger"
"gameserver-997/server/base/utils"
"gameserver-997/server/domain/entity"
conf "gameserver-997/server/sd_conf"
"gameserver-997/server/util"
"strconv"
"strings"
"sync"
"time"
"gith... |
// Copyright 2012 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 in the root of the source
// tree.
// The pcapdump binary implements a tcpdump-like command line tool with gopacket
// using pcap as a backend data collection me... |
package cmd
import (
"bufio"
"encoding/csv"
"fmt"
"io"
"io/ioutil"
"math/rand"
"os"
"sort"
"strconv"
"strings"
"time"
"gopkg.in/volatiletech/null.v6"
"github.com/Bnei-Baruch/archive-backend/consts"
log "github.com/Sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"gopkg.in/olivere/... |
package fasit
import (
"encoding/json"
"fmt"
"github.com/Jeffail/gabs"
"github.com/nais/migrator/models/naisd"
log "github.com/sirupsen/logrus"
"io/ioutil"
"net/http"
"strings"
"regexp"
)
const (
NavTruststoreFasitAlias = "nav_truststore"
)
type ResourcePayload interface{}
type RestResourcePayload struct... |
package peerexchange
import (
"crypto/sha256"
"encoding/binary"
"math/rand"
"net"
"path/filepath"
"sync"
"time"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/spacemeshos/go-spacemesh/crypto"
"github.com/spacemeshos/go-spacemesh/log"
)
const (
// needAddressThreshold is the number of addresses under... |
// Copyright 2015 The Vanadium 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 verror_test
import (
"errors"
"fmt"
"runtime"
"strings"
"testing"
"v.io/v23/i18n"
"v.io/v23/verror"
"v.io/v23/vtrace"
_ "v.io/x/ref/ru... |
package main
import (
"bytes"
"crypto/sha1"
"encoding/hex"
"fmt"
"go/constant"
"go/types"
"html/template"
"io/ioutil"
"os"
"path/filepath"
"strings"
"github.com/fishedee/tools/exception"
"github.com/fishedee/tools/plode"
"golang.org/x/mod/modfile"
)
func getFunctionSignature(line string, arguments []ty... |
/*
* Tencent is pleased to support the open source community by making Blueking Container Service available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obta... |
// binsanity.go -- like bindoc but stupider and sane.
// Package binsanity encodes files into Go source, with testing.
//
// WARNING -- EXPERIMENTAL SOFTWARE -- POSSIBLY BUGGY
//
// Inspired by the bindata package, binsanity aims to provide a minimally
// useful subset of features while also enabiling proper testing o... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/operating_system_version_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/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: devcommon.proto
package config
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compi... |
package main
/************************************************
* Envoy control plane server
* **********************************************
* Based on Ambassador's Ambex ADS and massively
* modified to extend its functionality.
* **********************************************
*/
import (
"bufio"
"context"
"... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/matchfunction.proto
package pb
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "googl... |
package pkg
import (
"context"
"fmt"
"io"
"math/rand"
"time"
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/openstack/imageservice/v2/imagedata"
"github.com/gophercloud/gophercloud/openstack/imageservice/v2/imageimport"
"github.com/gophercloud/gophercloud/openstack/imageservice/v2/i... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.6.1
// source: tensorflow/core/protobuf/coordination_config.proto
package for_core_protos_go_proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobu... |
package raft
//
// this is an outline of the API that raft must expose to
// the service (or tester). see comments below for
// each of these functions for more details.
//
// rf = Make(...)
// create a new Raft server.
// rf.Start(command interface{}) (index, term, isleader)
// start agreement on a new log entry
... |
// Copyright 2019 CUE 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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: identity.proto
package security
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "github.com/microsoft/moc/rpc/common"
grpc "google.golang.org/grpc"
codes "googl... |
// Copyright 2013 The golibpcap 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 trace
import (
"fmt"
"time"
"code.google.com/p/golibpcap/pcap/pkt"
)
// A TCPFlow makes working with TCP data easier.
type TCPFlow struct {... |
package main
import (
"database/sql"
"fmt"
"image"
"image/color"
"image/draw"
"io/ioutil"
"reflect"
re "regexp"
"strconv"
s "strings"
"time"
"github.com/golang/freetype"
"github.com/jeff-blank/mapper/pkg/config"
"github.com/jeff-blank/mapper/pkg/svgxml"
log "github.com/sirupsen/logrus"
)
// suck in co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.