text
stringlengths
5.51k
28.1k
package script import ( "bytes" "encoding/hex" "errors" "testing" ) func hexToBytes(s string) []byte { b, err := hex.DecodeString(s) if err != nil { panic("invalid hex in source file: " + s) } return b } func TestGetCScriptNum(t *testing.T) { t.Parallel() errNumTooBig := errors.New("script number overfl...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/targets/gce/config.proto /* Package gce is a generated protocol buffer package. It is generated from these files: github.com/google/cloudprober/targets/gce/config.proto It has these top-level messages: TargetsConf Instances ...
package gofakes3 import ( "crypto/md5" "encoding/hex" "fmt" "math/big" "net/url" "strings" "sync" "time" "github.com/johannesboyne/gofakes3/internal/goskipiter" "github.com/ryszard/goskiplist/skiplist" ) var add1 = new(big.Int).SetInt64(1) /* bucketUploads maintains a map of buckets to the list of multipa...
/* Copyright 2019 The Skaffold 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, sof...
// Copyright 2017 Pilosa Corp. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
package adapters import ( "bufio" "bytes" "github.com/davecgh/go-spew/spew" "github.com/mattn/go-isatty" "github.com/omakoto/compromise/src/compromise" "github.com/omakoto/compromise/src/compromise/compdebug" "github.com/omakoto/compromise/src/compromise/compenv" "github.com/omakoto/compromise/src/compromise/c...
// +build linux /* 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 app...
package graphqlbackend import ( "context" "fmt" "math" "net/url" "regexp/syntax" "strings" "time" "unicode/utf8" "github.com/google/zoekt" zoektquery "github.com/google/zoekt/query" "github.com/pkg/errors" "github.com/sourcegraph/sourcegraph/internal/api" "github.com/sourcegraph/sourcegraph/internal/gitu...
package immcheck import ( "bytes" "fmt" "io" "os" "reflect" "runtime" "strconv" "sync" "time" "unsafe" ) const MutationDetectedError mutationDetectionError = "mutation of immutable value detected" const InvalidSnapshotStateError mutationDetectionError = "invalid snapshot state" const UnsupportedTypeError mu...
package dev import ( "context" "fmt" "io" "net/http" "os" "os/exec" "os/signal" "path/filepath" "runtime" "strconv" "strings" "sync" "syscall" "time" "github.com/google/shlex" "github.com/wailsapp/wails/v2/cmd/wails/internal" "github.com/wailsapp/wails/v2/internal/gomod" "github.com/wailsapp/wails/...
package config import ( "encoding" "encoding/json" "errors" "fmt" "io" "os" "path" "reflect" "strings" "github.com/mitchellh/mapstructure" "github.com/spf13/pflag" "github.com/spf13/viper" ) var ( DefaultScopes = ScopeConfig{ "profile": []ClaimConfig{ {Claim: "name", Attribute: "displayName", Type:...
package edit import ( "bufio" "fmt" "os" "strings" "sync" "unicode/utf8" "src.elv.sh/pkg/cli" "src.elv.sh/pkg/cli/modes" "src.elv.sh/pkg/cli/tk" "src.elv.sh/pkg/edit/complete" "src.elv.sh/pkg/eval" "src.elv.sh/pkg/eval/vals" "src.elv.sh/pkg/fsutil" "src.elv.sh/pkg/parse" "src.elv.sh/pkg/persistent/hash...
package colong import ( "Go-MQTT/mqtt_v5/comment" "Go-MQTT/mqtt_v5/logger" "context" "crypto/rand" "crypto/rsa" "crypto/tls" "crypto/x509" "encoding/base64" "encoding/pem" "errors" "fmt" "github.com/lucas-clemente/quic-go" "io" "math/big" "net" "net/url" "sync" "sync/atomic" "time" "Go-MQTT/mqtt_v...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: isis_sh_mesh_groups.proto package cisco_ios_xr_clns_isis_oper_isis_instances_instance_mesh_groups 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...
// Package config collects together all configuration settings // NOTE: Subject to change, do not rely on this package from outside git-lfs source package config import ( "errors" "fmt" "os" "reflect" "strconv" "strings" "sync" "github.com/ThomsonReutersEikon/go-ntlm/ntlm" "github.com/bgentry/go-netrc/netrc"...
package bot import ( "encoding/json" "fmt" "io/ioutil" "os" "strings" "time" ) const ( VersionJSON = "https://raw.githubusercontent.com/SwingbyProtocol/node-installer/master/.version.json" DataPath = "./data" Network1 = "btc_eth" Network2 = "btc_bsc" Network3 = "tbtc_goerli"...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package kafka import ( "fmt" "strconv" "time" "github.com/Shopify/sarama" "github.com/golang/protobuf/proto" localconfig "github.com/inklabsfoundation/inkchain/orderer/localconfig" "github.com/inklabsfoundation/inkchain/ordere...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: mesh/v1alpha1/traffic_trace.proto package v1alpha1 import ( proto "github.com/golang/protobuf/proto" _ "github.com/kumahq/protoc-gen-kumadoc/proto" protoreflect "google.golang.org/protobuf/r...
// Package country provides codes and names of countries. // Source of information was // // https://www.iban.com/country-codes package country import ( "log" "strconv" ) type Code int //go:generate stringer -linecomment -type Code const ( AF Code = iota // AF AFG 004 Afghanistan AL // AL ALB 008 ...
/* 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 law or agreed to in ...
//----------------------------------------------------------------------------- /* 4 Part Panel Box */ //----------------------------------------------------------------------------- package obj import ( "math" "strings" "github.com/deadsy/sdfx/sdf" ) //---------------------------------------------------------...
package naivevm import ( "bytes" "encoding/binary" "fmt" "math" "reflect" "time" "github.com/mathetake/gasm/wasm" "github.com/mathetake/gasm/wasm/buildoptions" "github.com/mathetake/gasm/wasm/leb128" ) type ( compiledFunction = func(args ...uint64) (returns []uint64, err error) naiveVirtualMachine struct...
// Code generated by protoc-gen-go. // source: ospf_sh_request_list.proto // DO NOT EDIT! /* Package cisco_ios_xr_ipv4_ospf_oper_ospf_processes_process_default_vrf_adjacency_information_requests_request is a generated protocol buffer package. It is generated from these files: ospf_sh_request_list.proto It has these...
// Copyright 2016 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 chacha20 implements the ChaCha20 and XChaCha20 encryption algorithms // as specified in RFC 8439 and draft-irtf-cfrg-xchacha-01. package chacha20 im...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright (c) 2014-2016 The thaibaoautonomous developers // Use of this source Code is governed by an ISC // license that can be found in the LICENSE file. package blockchain import ( "fmt" "github.com/pkg/errors" ) const ( UnExpectedError = iota UpdateMerkleTreeForBlockError UnmashallJsonShardBlockError M...
package instance import ( "context" "fmt" "math" "strings" "github.com/kobsio/kobs/pkg/log" "go.uber.org/zap" ) // Aggregation is the structure of the data, which is required to run an aggregation. type Aggregation struct { Query string `json:"query"` Chart string `json:"chart"` ...
// Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
// Code generated by transpiler. DO NOT EDIT. /** * Go Video Downloader * * Copyright 2019 Tenta, 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.or...
package main import ( "flag" "fmt" "github.com/BernhardLenz/ini" "log" "os" "os/user" "path/filepath" "strconv" "time" ) const VERSION string = "0.1.0-beta" //TODO: test other keys than aws_access_key_id such as metadata_service_timeout in activate //TODO: test printing of default configs as part of a Profi...
package og import ( "context" "errors" "io" "net/http" "net/url" "strconv" "strings" "time" "unicode" "golang.org/x/net/html" ) var ( ErrContextNil = errors.New("Context is nil") ) type Article struct { PublishedTime *time.Time `json:"published_time"` ModifiedTime *time.Time `json:"modified_time"` ...
package splitticket import ( "bytes" "encoding/hex" "math" "github.com/decred/dcrd/blockchain" "github.com/decred/dcrd/blockchain/stake" "github.com/decred/dcrd/chaincfg" "github.com/decred/dcrd/dcrutil" "github.com/decred/dcrd/txscript" "github.com/decred/dcrd/wire" "github.com/decred/dcrwallet/wallet/txru...
//go:generate mcube enum -m -p // // Code generated by protoc-gen-go-ext. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.1 // source: pkg/session/pb/service.proto package session import ( token "github.com/infraboard/keyauth/pkg/token" p...
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. // +build windows package libdokan import ( "fmt" "strings" "sync" "syscall" "github.com/keybase/kbfs/dokan" "github.com/keybase/kbfs/libfs" "github.com/keybas...
package lib import ( "bytes" "encoding/json" "errors" "fmt" "io/ioutil" "log" "net/http" "os" "reflect" "regexp" "sort" "strconv" "strings" "sync" "time" modal "github.com/warrensbox/hubapp/modal" ) type AppVersionList struct { applist []string appDown *modal.Assets } var wg = sync.WaitGroup{} va...
package state import ( "bytes" "fmt" "math/big" "sync" "syscall" "github.com/andrecronje/lachesis/src/poset" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/core" ethState "github.com/et...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/services/ad_group_ad_asset_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources...
/* 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 internal import ( excelize "github.com/360EntSecGroup-Skylar/excelize/v2" "github.com/bconn98/DrugRecord/pkg" "github.com/jimlawless/whereami" "strconv" "strings" "time" ) var monthMap = make(map[string]int) var file *excelize.File /** * Method: createSheet * Description: Create a new sh...
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei...
package abot import ( "fmt" "os" "regexp" "strconv" "strings" "time" _ "github.com/go-sql-driver/mysql" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" "github.com/jmoiron/sqlx" "github.com/sirupsen/logrus" "golang.org/x/term" ) type app struct { conf Conf bot *tgbotapi.BotAPI states st...
/* Copyright The KubeVault 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, softwa...
/* Copyright IBM Corporation 2020 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/firestore/admin/v1beta1/index.proto package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1beta1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/genproto/google...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.19.4 // source: internal/grpc/rce.proto package grpc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync ...
// Package transpiler handles the conversion between the Clang AST and the Go // AST. package transpiler import ( "errors" "fmt" goast "go/ast" "go/parser" "go/token" "os" "strings" "github.com/Konstantin8105/c4go/ast" "github.com/Konstantin8105/c4go/program" "github.com/Konstantin8105/c4go/types" "github....
package selenosis_fiber import ( "context" "fmt" httpreverseproxy "github.com/Roman-Mitusov/middleware/proxy/http" ws "github.com/Roman-Mitusov/middleware/websocket" "github.com/Roman-Mitusov/selenosis-fiber/browser" "github.com/Roman-Mitusov/selenosis-fiber/selenium" "github.com/Roman-Mitusov/selenosis-fiber/t...
// Package dr implements the Double Ratchet scheme. // // Overview // // What follows is a high-level overview of the Double Ratchet // scheme, mostly paraphrased from the whitepaper [signal]. // // Double Ratchet Algorithm // // The Double Ratchet Algorithm is comprised of two "ratchets" // over three KDF chains. A ra...
package instructions import ( "testing" "github.com/stretchr/testify/require" . "github.com/zxh0/jvm.go/instructions/base" . "github.com/zxh0/jvm.go/instructions/constants" . "github.com/zxh0/jvm.go/instructions/loads" . "github.com/zxh0/jvm.go/instructions/math" . "github.com/zxh0/jvm.go/instructions/stores"...
// Dieses Package übernimmt die Kommunikation zwischen dem Rest des Frameworks und der Module. // Das Framework ist von den Modulen vollständig getrennt, insofern dass die Methoden der Module nie explizit aus dem // Code aufgerufen wird. Die einzige Referenz auf die Module befinden sich in der Slice static.Modules. // ...
package configuration import ( "fmt" "strings" "time" log "github.com/sirupsen/logrus" "gopkg.in/yaml.v2" "encoding/base64" "github.com/spf13/viper" ) const ( // Constants for viper variable names. Will be used to set // default values as well as to get each value varPostgresHost = "p...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package bagman import ( "encoding/json" "fmt" "github.com/nsqio/go-nsq" "github.com/crowdmob/goamz/s3" "os" "path/filepath" "regexp" "strings" "sync/atomic" "time" ) type IngestHelper struct { ProcUtil *ProcessUtil Result *ProcessResult bytesInS3 int64 bytesProcessed int64 } // R...
package main import ( "bytes" "container/list" "encoding/json" "fmt" "log" "math/rand" "net/http" "sync" "time" // "io/ioutil" "github.com/lengzhao/govm/wallet" // "github.com/alexknvl/secp256k1-go/secp256k1" "golang.org/x/crypto/sha3" "golang.org/x/net/websocket" // "crypto/ecdsa" ) const ( // Hash...
// Package handler provides functions for handling incoming requests. // It should only include top level code for parsing the request and assembling // the response. package handler import ( "encoding/json" "errors" "fmt" "io/ioutil" "net" "net/http" "strconv" "strings" "time" "github.com/m-lab/go/logx" ...
package cc import ( "context" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "strconv" "strings" "sync" "time" "github.com/fatih/color" "github.com/google/uuid" "github.com/gorilla/mux" emp3r0r_data "github.com/jm33-m0/emp3r0r/core/lib/data" "github.com/jm33-m0/emp3r0r/core/lib/tun" "github....
package aws import ( "errors" "fmt" "math/rand" "os" "reflect" "regexp" "strconv" "strings" "time" "github.com/asaskevich/govalidator" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/ec2metadata" "github.com/aws/aws-sdk-go/aws/session" "github.com/a...
// Copyright (C) 2021 <NAME>, Inc. // See LICENSE for copying information. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.13.0 // source: sesamestreet.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "go...
package campaigns import ( "container/heap" "context" "time" "github.com/pkg/errors" "github.com/sourcegraph/sourcegraph/cmd/repo-updater/repos" "github.com/sourcegraph/sourcegraph/internal/api" "github.com/sourcegraph/sourcegraph/internal/campaigns" "github.com/sourcegraph/sourcegraph/internal/httpcli" "gop...
package webhook import ( "bytes" "crypto/tls" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "path/filepath" "regexp" "sync" "time" "github.com/ghodss/yaml" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" "github.com/hashicorp/go-multierror" "github....
/* 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 events import ( "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "strings" "time" "github.com/beevik/etree" "github.com/mxmCherry/openrtb/v15/openrtb2" "github.com/prebid/prebid-server/openrtb_ext" "github.com/golang/glog" "github.com/julienschmidt/httprouter" ac...
// Copyright 2020 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 api // Adapts the data defined by proto // https://chromium.googlesource.com/infra/infra/+/refs/heads/master/go/src/infra/libs/skylab/inventor...
package qln import ( "bytes" "fmt" "github.com/adiabat/btcd/txscript" "github.com/adiabat/btcd/wire" "github.com/mit-dci/lit/lnutil" "github.com/mit-dci/lit/portxo" ) // handles stuff that comes in over the wire. Not user-initiated. func (nd *LitNode) PeerHandler(msg lnutil.LitMsg, q *Qchan, peer *RemotePeer)...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: authpb/auth.proto package authpb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "syn...
package main import ( "encoding/json" "errors" "fmt" "math/rand" "regexp" "strings" "time" "github.com/parnurzeal/gorequest" "github.com/tencentyun/scf-go-lib/cloudfunction" ) // 自定义爬虫参数 const ( CusUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko...
package main import ( "context" "flag" "fmt" "io" "io/ioutil" "math" "net" "net/http" "regexp" "sync" "time" "github.com/go-chi/chi" "github.com/go-chi/chi/middleware" protov3 "github.com/go-graphite/protocol/carbonapi_v3_pb" "github.com/imroc/req" jsoniter "github.com/json-iterator/go" log "github.c...
package main import ( "bytes" "compress/gzip" "database/sql" "errors" "fmt" _ "github.com/go-sql-driver/mysql" "github.com/gomodule/redigo/redis" "github.com/google/uuid" log "github.com/sirupsen/logrus" "github.com/spf13/viper" pb "gopkg.in/cheggaaa/pb.v1" "io/ioutil" "net/http" "os" "path/filepath" "...
// +build windows package main import ( "fmt" "io" "io/ioutil" "log" "net" "net/http" "os" "path/filepath" "sort" "strconv" "strings" "sync" "time" "golang.org/x/sys/windows/svc" "wmi_exporter/cfg" "wmi_exporter/cloudcare" "wmi_exporter/collector" "wmi_exporter/envinfo" "wmi_exporter/git" "gith...
package cmd import ( "context" "fmt" "log" "net/url" "os" "os/signal" "path" "strings" "syscall" "time" "github.com/coreos/bbolt" "github.com/go-pkgz/mongo" "github.com/pkg/errors" "github.com/umputun/remark/backend/app/migrator" "github.com/umputun/remark/backend/app/rest/api" "github.com/umputun/re...
// Command analyticproxy starts a gRPC proxy for analytics that intercepts // requests, pulls files from S3 or similar into a file system visible to the // analytic, then forwards on the request. When a response occurs, data is // pulled from that file system and sent where it belongs, and files are // cleaned up. pack...
package x86_64 import ( "encoding/binary" "github.com/lunixbochs/ghostrace/ghost/sys/num" uc "github.com/unicorn-engine/unicorn/bindings/go/unicorn" "reflect" "strings" "time" "github.com/lunixbochs/usercorn/go/arch/x86" "github.com/lunixbochs/usercorn/go/kernel/common" "github.com/lunixbochs/usercorn/go/ker...
// 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. package work import ( "bufio" "bytes" "fmt" "io" "io/ioutil" "log" "os" "path/filepath" "runtime" "strings" "cmd/go/internal/base" "cmd/go/interna...
// Copyright 2016-2020 Authors of Cilium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
// Copyright 2018 Crisp IM SARL All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package crisp import ( "fmt" "encoding/json" "net/url" ) // PeopleStatisticsData mapping type PeopleStatisticsData struct { Data *PeopleStatistics...
// Copyright 2020 PingCAP, 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 i...
// Copyright © 2018 <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 wri...
package logs import ( "context" "errors" "fmt" "html/template" "net/http" "strconv" "strings" "github.com/jonas747/discordgo" "github.com/jonas747/yagpdb/bot" "github.com/jonas747/yagpdb/bot/botrest" "github.com/jonas747/yagpdb/common" "github.com/jonas747/yagpdb/common/cplogs" "github.com/jonas747/yagpd...
// Code generated by protoc-gen-go. // source: message.proto // DO NOT EDIT! /* Package protocol is a generated protocol buffer package. It is generated from these files: message.proto session.proto sync.proto It has these top-level messages: Message LoginReq LoginRsp OfflineNotify StatusNot...
package backend //go:generate mockgen -source=$GOFILE -destination=mock/mock_$GOFILE -package=mock import ( "errors" "fmt" "sort" "github.com/goropikari/psqlittle/core" ) // DB is interface of DBMS type DB interface { GetTable(string) (Table, error) CreateTable(string, core.Cols) error DropTable(string) erro...
// 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. // source: google/genomics/v1/operations.proto package genomics // import "google.golang.org/genproto/googleapis/genomics/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import any "github.com/golang/protobuf/ptypes/any" import t...
// // Copyright Athenz 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...
package resourcemanagers import ( "crypto/tls" "fmt" "github.com/determined-ai/determined/master/pkg/model" "github.com/google/uuid" "github.com/pkg/errors" "github.com/determined-ai/determined/master/internal/config" "github.com/determined-ai/determined/master/internal/job" "github.com/determined-ai/determ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: account/proto/account.proto package proto import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "goo...
// Copyright 2019+ <NAME>. All rights reserved. // License information can be found in the LICENSE file. // Based on work by <NAME>, released under BSD License. package zstd import "fmt" const ( betterLongTableBits = 19 // Bits used in the long match table betterLongTableSize = 1 << betterLon...
/* Copyright 2014 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 law or agreed to in ...
/******************************************************************************* * IBM Confidential * OCO Source Materials * IBM Cloud Container Service, 5737-D43 * (C) Copyright IBM Corp. 2018 All Rights Reserved. * The source code for this program is not published or otherwise divested of * its trade secrets, ...
// *** 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 network import ( "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/go/pulumi" ) // Manages a V2 gateway interface resource within En...
// Package httpclient provides an HTTP client instrumented with the ex/o11y package, it // includes resiliency behaviour such as configurable timeouts, retries, authentication // and connection pooling, with support for backing off when a 429 response code is seen. package httpclient import ( "bytes" "context" "enc...
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
// Copyright 2021 - 2022 Matrix Origin // // 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 agr...
// Copyright 2022 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 ...
// +build linux package numa import ( "fmt" "io/ioutil" "runtime" "strconv" "strings" "syscall" "unsafe" "github.com/intel-go/cpuid" ) func init() { _, _, e1 := syscall.Syscall6(syscall.SYS_GET_MEMPOLICY, 0, 0, 0, 0, 0, 0) available = e1 != syscall.ENOSYS nnodemax = setupnodemask() // max nodes memnodes...
/* Copyright 2019 The Kyma 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, softwa...
// vim:ts=4:sw=4:noexpandtab package main import ( "flag" "fmt" "io" "io/ioutil" "log" "math/rand" "net/http" _ "net/http/pprof" "net/url" "os" "path" "sort" "strings" "sync" "time" "github.com/Debian/dcs/grpcutil" "github.com/Debian/dcs/proto" "github.com/Debian/dcs/ranking" "github.com/Debian/dcs...
// The MIT License // // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. // // 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 Soft...
package main import ( "bufio" "encoding/json" "fmt" "io/ioutil" "log" "os" "path/filepath" "reflect" "strconv" "strings" "time" "github.com/tomekwlod/utils" ) type entry struct { ID int `json:"id"` Npi int `json:"npi"` TTID int `json:"ttid"` FirstName string ...
package baseserver import ( "encoding/json" "io/ioutil" "net" "net/http" "net/http/pprof" "os" "runtime" "strings" "context" "fmt" go_metrics "github.com/kentik/go-metrics" "github.com/kentik/ktranslate/pkg/eggs/features" "github.com/kentik/ktranslate/pkg/eggs/version" "github.com/kentik/ktranslate/pkg...
package vrf import ( "context" "encoding/hex" "fmt" "sync" "github.com/ethereum/go-ethereum/common" heaps "github.com/theodesp/go-heaps" "github.com/theodesp/go-heaps/pairing" "github.com/smartcontractkit/chainlink/core/chains/evm/bulletprooftxmanager" httypes "github.com/smartcontractkit/chainlink/core/cha...