text stringlengths 5.51k 28.1k |
|---|
package vm
import (
"errors"
"math/big"
etc "github.com/ethereumproject/go-ethereum/common"
etcc "github.com/ethereumproject/go-ethereum/core"
etcvm "github.com/ethereumproject/go-ethereum/core/vm"
"github.com/sudachen/playground/libeth/state"
common "github.com/sudachen/playground/libeth"
"github.com/sudac... |
/*
Package fet implements Fisher's Exact Test for 2x2 contigency tables.
It was ported from the C/C++ at https://github.com/gatoravi/fisher-exact
*/
package fet
import (
"fmt"
"math"
"github.com/glycerine/gostat"
)
// ported to Go from the C/C++:
// https://github.com/gatoravi/fisher-exact
/* Log gamma function... |
package lexer
import (
"bytes"
"fmt"
"github.com/fadion/aria/reader"
"github.com/fadion/aria/reporter"
"github.com/fadion/aria/token"
)
// Lexer represents the lexer.
type Lexer struct {
reader *reader.Reader
char rune
row int
col int
token token.Token
rewinded bool
symbol *Symbol
}
... |
package main
import (
"database/sql"
"encoding/json"
"flag"
"fmt"
"html/template"
"io/ioutil"
"net/http"
"os"
"regexp"
"strings"
"time"
_ "github.com/mattn/go-sqlite3"
)
var settings struct {
DailyTarget int
Database string
Address string
}
func init() {
flag.IntVar(&settings.DailyTarget, "ta... |
package pex
import (
"context"
"errors"
"sync"
"io"
"path"
"sync/atomic"
"time"
"capnproto.org/go/capnp/v3"
ds "github.com/ipfs/go-datastore"
"github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/discovery"
"github.com/libp2p/go-libp2p-core/event"
"github.com/libp2p/go-libp2p-core/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/resultdb/proto/rpc/v1/predicate.proto
package rpcpb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_type "go.chromium.org/luci/resultdb/proto/type"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)... |
// Copyright 2020 <NAME>. All rights reserved.
// Use of this source code is subject to an MIT-style
// licence which can be found in the LICENSE file.
package main
import (
"bytes"
"embed"
"errors"
"fmt"
"image"
"image/color"
"log"
"math"
"math/rand"
"strconv"
"time"
"github.com/hajimehoshi/ebiten/v2"
... |
package main
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
"runtime/pprof"
"sort"
"strconv"
"strings"
"time"
"github.com/gilwo/wordscvc/cvc"
"github.com/gilwo/workqueue/pool"
"github.com/jessevdk/go-flags"
)
type flagOpts struct {
// flag able vars
MaxGroups int `short:"G" descri... |
/*
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... |
package buildah
import (
"context"
"encoding/json"
"io"
"io/ioutil"
"os"
"strings"
"time"
"github.com/containers/buildah/pkg/blobcache"
"github.com/containers/buildah/util"
"github.com/containers/common/libimage"
"github.com/containers/common/libimage/manifests"
"github.com/containers/image/v5/docker"
"g... |
/*
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 writing, software
dis... |
/**
* Copyright 2014 <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 t... |
// (c) 2019-2020, <NAME>, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package snowman
import (
"github.com/ava-labs/gecko/ids"
"github.com/ava-labs/gecko/snow"
"github.com/ava-labs/gecko/snow/consensus/snowball"
)
const (
minMapSize = 16
)
// TopologicalFactory implements Factory by r... |
// Copyright 2019 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"
"os"
"strconv"
"strings"
"time"
repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gi... |
package commands
import (
"bytes"
"context"
"errors"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
"github.com/open-policy-agent/conftest/output"
"github.com/open-policy-agent/conftest/parser"
"github.com/open-policy-agent/conftest/policy"
"github.com/open-policy-agent/opa/ast"
"github.com/open-policy-ag... |
package spnego
import (
"bytes"
"encoding/base64"
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"net/http/cookiejar"
"net/url"
"strings"
"github.com/jcmturner/gofork/encoding/asn1"
"github.com/jcmturner/goidentity/v6"
"github.com/jcmturner/gokrb5/v8/client"
"github.com/jcmturner/gokrb5/v8/credential... |
// Copyright 2018 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
package config
import (
"context"
"errors"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"strings"
"sync"
"time"
"github.com/fastly/cli/pkg/api"
"github.com/fastly/cli/pkg/env"
fsterr "github.com/fastly/cli/pkg/errors"
"github.com/fastly/cli/pkg/filesystem"
"github.com/fastly/cli/pkg/revision"
"github.co... |
package goql
import (
"fmt"
"io"
"reflect"
"regexp"
"sort"
"strings"
"sync"
)
// structTag is the name of the struct tag that this package uses to extract extra information
// from to build GraphQL operations.
const structTag = "goql"
// Compiled regular expressions.
var (
// reName matches a simple field or... |
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package echo
import (
"fmt"
"github.com/bitbandi/go-x11/aesr"
"github.com/bitbandi/go-x11/hash"
)
// HashSize holds the size of a hash in bytes.
const HashSize = uintptr(64)
// BlockSize holds the size of a block ... |
// Copyright 2016, 2017 OpenConfigd 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 applicable law o... |
package main
import (
"os"
"syscall"
"unsafe"
)
type (
BOOL int32
DWORD uint32
HANDLE uintptr
HINSTANCE HANDLE
HWND HANDLE
WPARAM uintptr
LPARAM uintptr
LRESULT uintptr
WCHAR uint16
PWSTR uintptr
CALLBACK uintptr
POINTER32 uint32
)
type WNDCLASS... |
package genapp
import (
"fmt"
"net/http"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"text/template"
"github.com/goadesign/goa/design"
"github.com/goadesign/goa/goagen/codegen"
)
func makeTestDir(g *Generator, apiName string) (outDir string, err error) {
outDir = filepath.Join(g.OutDir, "test")
if er... |
package sealing
import (
"context"
"errors"
"io"
"math"
"os"
"sync"
"time"
"github.com/ipfs/go-cid"
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/namespace"
logging "github.com/ipfs/go-log/v2"
"golang.org/x/xerrors"
"github.com/filecoin-project/go-address"
padreader "github.com/filecoin-... |
// 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, merg... |
package proxy
import (
"context"
"crypto/rand"
"encoding/binary"
"encoding/hex"
"encoding/json"
"errors"
"go.minekube.com/common/minecraft/component"
"go.minekube.com/common/minecraft/component/codec/legacy"
"go.minekube.com/gate/pkg/edition/java/forge"
"go.minekube.com/gate/pkg/edition/java/modinfo"
"go.mi... |
// Copyright 2016-2017 Authors of Cilium
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
/*
Copyright © 2021 VMware
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
distribut... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/errors/manager_link_error.proto
package errors
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they a... |
package prometheus
import (
"context"
"encoding/json"
"fmt"
"math"
"sort"
"strconv"
"strings"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/grafana/grafana/pkg/tsdb/intervalv2"
apiv1 "github.com/prometheus/client_golang/api/prometheus... |
package opcua_client
import (
"context"
"fmt"
"net/url"
"sort"
"strings"
"time"
"github.com/gopcua/opcua"
"github.com/gopcua/opcua/ua"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/config"
"github.com/influxdata/telegraf/plugins/inputs"
"github.com/influxdata/telegraf/selfstat"
)
// Op... |
// 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 ppc64asm
import (
"fmt"
"strings"
)
// GoSyntax returns the Go assembler syntax for the instruction.
// The pc is the program counter of the first ... |
// SPDX-License-Identifier: Unlicense OR MIT
package clip
import (
"encoding/binary"
"image"
"math"
"gioui.org/f32"
"gioui.org/internal/opconst"
"gioui.org/internal/ops"
"gioui.org/op"
)
// Op represents a clip area. Op intersects the current clip area with
// itself.
type Op struct {
bounds image.Rectangle... |
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
package testing
import (
"fmt"
"net/http"
"testing"
th "github.com/gophercloud/gophercloud/testhelper"
"github.com/gophercloud/gophercloud/testhelper/client"
"github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/lbaas_v2/loadbalancers"
)
// LoadbalancersListBody contains the canned body of a ... |
package splunk
import (
"context"
"crypto/tls"
"encoding/json"
"io"
"io/ioutil"
"math"
"net/http"
"net/url"
"strconv"
"sync"
"sync/atomic"
"time"
"math/big"
"crypto/rand"
mrand "math/rand"
"github.com/sirupsen/logrus"
"github.com/stripe/veneur/protocol"
"github.com/stripe/veneur/sinks"
"github.co... |
//
// Copyright 2018 The Feast 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
package hdinsight
// Copyright (c) Microsoft and contributors. 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
//
// U... |
package pipeline
import (
"context"
"database/sql"
"time"
"github.com/pkg/errors"
uuid "github.com/satori/go.uuid"
"github.com/smartcontractkit/sqlx"
"github.com/smartcontractkit/chainlink/core/logger"
"github.com/smartcontractkit/chainlink/core/services/pg"
"github.com/smartcontractkit/chainlink/core/store... |
/*
* 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... |
package ebpf
import (
"encoding/binary"
"errors"
"fmt"
"io"
"math"
"reflect"
"strings"
"github.com/cilium/ebpf/asm"
"github.com/cilium/ebpf/internal/btf"
"github.com/cilium/ebpf/internal/sys"
)
// CollectionOptions control loading a collection into the kernel.
//
// Maps and Programs are passed to NewMapWi... |
package mime
import (
"io"
"mime"
"net/http"
"path/filepath"
"strings"
)
var (
// ExtensionMIMEType ...
ExtensionMIMEType = map[string]string{
".aac": "audio/aac",
".abw": "application/x-abiword",
".arc": "application/x-freearc",
".avi": "video/x-msvideo",
".azw": "application/vnd... |
package xt
// ----------------------------------------------------------------------------------
// wuTool.go for Go's xt package
// Copyright 2019,2020 by <NAME>
//-----------------------------------------------------------------------------------
// This Source Code Form is subject to the terms of the 'MIT License'
... |
package golang
import (
"bytes"
"flag"
"fmt"
"go/importer"
"go/parser"
"go/token"
"go/types"
"golang.org/x/tools/go/gcexportdata"
"log"
"margo.sh/golang/gopkg"
"margo.sh/golang/goutil"
"margo.sh/golang/internal/pkglst"
"margo.sh/golang/internal/srcimporter"
"margo.sh/kimporter"
"margo.sh/mg"
"margo.sh/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/filter/http/router/v2/router.proto
package envoy_config_filter_http_router_v2
import (
fmt "fmt"
v2 "github.com/cilium/proxy/go/envoy/config/filter/accesslog/v2"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-ge... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: config/rosco.proto
package config
import (
proto "github.com/golang/protobuf/proto"
cloudprovider "github.com/spinnaker/kleat/api/client/cloudprovider"
protoreflect "google.golang.org/protob... |
// Copyright 2020-2022 Buf 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... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.13.0
// source: envoy/config/filter/udp/udp_proxy/v2alpha/udp_proxy.proto
package envoy_config_filter_udp_udp_proxy_v2alpha
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/prot... |
/*
Copyright 2019 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, ... |
package analytics
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"os/exec"
"os/signal"
"path/filepath"
"regexp"
"runtime"
"runtime/debug"
"strconv"
"strings"
"sync"
"time"
"github.com/devspace-cloud/devspace/pkg/util/hash"
"github.com/devspace-cloud/... |
package liblorago
import (
"fmt"
"os"
)
const (
LGW_MIN_NOTCH_FREQ = 126000 /* 126 KHz */
LGW_MAX_NOTCH_FREQ = 250000 /* 250 KHz */
LGW_DEFAULT_NOTCH_FREQ = 129000 /* 129 KHz */
LGW_FPGA_SOFT_RESET = 0
LGW_FPGA_FEATURE = 1
LGW_FPGA_LBT_INITIAL... |
package rsapi
import (
"fmt"
"os"
"path"
"regexp"
"sort"
"strconv"
"strings"
"text/tabwriter"
"time"
"github.com/rightscale/rsc/metadata"
)
// ParsedCommand is the result of parsing the command line (ParseCommand method).
// The parser infers the Uri and HTTP method of the request that need to be made and ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/google_ads_field.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/googleapis/ads/go... |
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may not
// use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" fil... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: alameda_api/v1alpha1/datahub/resources/policies.proto
package resources
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... |
/*
Copyright 2015 - <NAME>
Author <NAME> - <EMAIL>
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, V... |
// Converts between KITTI, Sloth, AWS detect-labels, AWS detect-text, TFRecord and
// VGG Image Annotator label formats.
package main
import (
"flag"
"fmt"
"log"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/sensorable/lblconv"
)
var (
convertFrom format // The source format.
convertTo format // T... |
package ldap
import (
"bytes"
hexpac "encoding/hex"
"errors"
"fmt"
"io"
"regexp"
"strings"
"unicode"
"unicode/utf8"
ber "github.com/go-asn1-ber/asn1-ber"
)
// Filter choices
const (
FilterAnd = 0
FilterOr = 1
FilterNot = 2
FilterEqualityMatch = 3
FilterSubstrings... |
// Copyright 2014-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license... |
package EM_CP_PP_ETH
import (
"encoding/binary"
"fmt"
"github.com/goburrow/modbus"
"io"
)
const (
// Expected length of status array message
LEN_INPUT_REGISTER_STATUS_BYTES = 84
LEN_DISCRETE_INPUT_REGISTER_STATUS_BYTES = 1
)
const (
DIGITAL_INPUT_EN = 1 << 0
DIGITAL_INPUT_XR = 1 << 1
DIGITAL_INP... |
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright 2020 Coinbase, 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... |
//go:build e2e
// +build e2e
/*
Copyright 2021 The KCP 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... |
package platformclientv2
import (
"time"
"github.com/leekchan/timeutil"
"encoding/json"
"strconv"
"strings"
)
// Edge
type Edge struct {
// Id - The globally unique identifier for the object.
Id *string `json:"id,omitempty"`
// Name - The name of the entity.
Name *string `json:"name,omitempty"`
// Divis... |
// Copyright (c) 2016 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 2019 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) 2018 The Bitum developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package main
import (
"crypto/elliptic"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"sort"
"strings"
"time"
flags "github.com/jessevdk/go-flags"
"github.com/b... |
/*
http://www.apache.org/licenses/LICENSE-2.0.txt
Copyright 2016 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... |
/*
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... |
package server
import (
"time"
"util"
"strings"
"fmt"
"util/log"
"github.com/BurntSushi/toml"
)
const (
defaultServerName = "ms"
defaultMaxReplicas = 3
defaultMaxSnapshotCount = 3
defaultMaxNodeDownTime = time.Hour
defaultLeaderScheduleLimit = 64
defaultRegionScheduleLimit =... |
// Copyright © 2018 The Homeport Team
//
// 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, publis... |
/*
* Copyright 2019 The Kythe 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 ap... |
package sqlparser
import (
"bytes"
"database/sql"
"errors"
"fmt"
"github.com/bingoohuang/gg/pkg/reflector"
"github.com/bingoohuang/gg/pkg/ss"
"log"
"math/bits"
"reflect"
"regexp"
"strconv"
"strings"
)
type DBType string
const (
Mysql DBType = "mysql"
Sqlite3 DBType = "sqlite3"
Dm DBTyp... |
package goglbackend
import (
"fmt"
"github.com/gsvigruha/canvas/backend/backendbase"
"github.com/gsvigruha/canvas/backend/goglbackend/gl"
)
const alphaTexSize = 2048
var zeroes [alphaTexSize]byte
// GLContext is a context that contains all the
// shaders and buffers necessary for rendering
type GLContext struct... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: steammessages_sitelicenseclient.proto
package protobuf
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 _... |
package runners
// Bazel-related logic for runners
import (
"crypto/sha256"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"time"
"github.com/cenkalti/backoff"
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/any"
log "github.com/sirupsen/logrus"... |
package init
// DONTCOVER
import (
"encoding/json"
"fmt"
"net"
"os"
"path/filepath"
"strconv"
"time"
"github.com/ColorPlatform/color-sdk/client/keys"
"github.com/ColorPlatform/color-sdk/client"
"github.com/ColorPlatform/color-sdk/cmd/gaia/app"
"github.com/ColorPlatform/color-sdk/codec"
srvconfig "github... |
package lex
import (
"contexts/ctx"
"toolkit"
"fmt"
"strconv"
"strings"
)
type Seed struct {
page int
hash int
word string
}
type Point struct {
s int
c byte
}
type State struct {
star bool
next int
hash int
}
type LEX struct {
seed []*Seed
hash map[string]int
word map[int]string
hand map[int]strin... |
package proxy
// Precaches statistics/get calls if the opening sequence of calls is detected
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"regexp"
"strings"
)
const StatsGetWorkers = 5
type StatsGetTask struct {
data string
path string
request string
response cha... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.13.0
// source: utils/time/time.proto
package timei
import (
_ "github.com/liov/tiga/protobuf/utils/proto/patch"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/p... |
package qqlt
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
)
//type Msg struct {
// Type int32 `json:"type"`
// GroupId string `json:"groupId"`
// QQId string `json:"qqId"`
// Msg string `json:"msg"`
//}
type BotApiClient struct {
Client *http.Client
BaseApi string
}
// New... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: command/setup.proto
package command
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 ... |
// Copyright 2019 New Relic Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package telemetryapi
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"math/rand"
"net/http"
"sync"
"time"
)
// Harvester aggregates and reports metrics and spans.
type Harvester struct... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package database
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides details about a specific Autonomous Database... |
// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
package health
import (
"bytes"
"crypto/sha256"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"regexp"
"strings"
"time"
"git.arvados.org/arvados.git/lib/config"
"git.arvados.org/arvados... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: models/vpp/punt/punt.proto
package vpp_punt // import "github.com/ligato/vpp-agent/api/models/vpp/punt"
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
// Reference imports to... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: email.proto
package email
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.Marshal
var _ = fm... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.13.0
// source: common/common.enum.proto
package common
import (
_ "github.com/liov/tiga/protobuf/utils/proto/gogo"
_ "github.com/liov/tiga/protobuf/utils/proto/patch"
protoreflect "google.golang.org/protob... |
// Copyright 2017 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT license
// that can be found in the LICENSE file.
//
// +build linux darwin
package zerodt
import (
"context"
"fmt"
"net"
"net/http"
"os"
"os/signal"
"path/filepath"
"sync"
"syscall"
"time"
)
var (
// Get origin... |
// 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 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 ... |
// Copyright 2015 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package projectron
import (
"strconv"
"strings"
"errors"
"math"
)
type translator func(float64, float64) (float64, float64, error)
const (
sixth float64 = 1 /... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: beam_provision_api.proto
package fnexecution_v1
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf2 "github.com/golang/protobuf/ptypes/struct"
import (
context "golang.org/x/net/context"
grpc "google... |
package main
import (
"fmt"
"net"
"net/http"
"os"
"regexp"
"strconv"
"strings"
"time"
"github.com/RobustPerception/nrpe_exporter/config"
"github.com/aperum/nrpe"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_g... |
/*Package reversesearch manages the reverse searching of log files. The idea
behind this is that a lot of the time large log files want to be searched,
technicians are only interested in searching within the recent past. Under such
scenarios it would be much more effiicient to search log files in reverse, and
then term... |
// MIT License
//
// Copyright (c) 2016 <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, merg... |
// Copyright 2019 The NATS 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 wr... |
package graph
import (
"fmt"
"io/ioutil"
"strings"
"time"
"github.com/golang/snappy"
serialize "github.com/tenta-browser/go-bitstream-ops"
)
// Constants defining graph search results
const (
MatchFound = 0 /// explicitly found a match
MatchNotFound = 1 /// explicitly failed to find a match
MatchUncert... |
package multilogger
import (
"fmt"
"io/ioutil"
"math"
"os"
"path/filepath"
"time"
"github.com/sirupsen/logrus"
)
var baseTime = time.Date(2018, 6, 24, 12, 34, 56, int(789*time.Millisecond), time.UTC)
func getTestLogger(name string, level ...interface{}) *Logger {
// We fix output, format & time to get consi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.