text
stringlengths
5.51k
28.1k
package main import ( "fmt" "log" "regexp" "strings" tg "github.com/semog/go-bot-api/v4" "k8s.io/klog" ) /* Following is the command menu for constructing the bot with @BotFather. Use the /setcommands command and reply with the following list of commands. --------------------- current - Show the current word. ...
/* Package ts can be used to draw time series plots. */ package ts import ( "fmt" "math" "sort" "strings" "time" ) // mix of public and private types to keep the public API small. type axes struct { X, Y []pt XAxisVis bool XAxisY int Ylabel string Title string } type plt struct { Unit ...
/* Package pct implements the Puppet Content template specification Puppet Content Templates (PCT) codify a structure to produce content for any Puppet Product. PCT can create any type of a Puppet Product project: Puppet control repo, Puppet Module, Bolt project, etc. PCT can also create one or more independent files,...
package bbrpc import ( "encoding/json" "github.com/shopspring/decimal" ) // Request is a type for raw JSON-RPC 1.0 requests. The Method field identifies // the specific command type which in turns leads to different parameters. // Callers typically will not use this directly since this package provides a // stati...
package main import ( "bytes" "encoding/json" "fmt" "io" "log" "net/http" "net/mail" "net/url" "os" "regexp" "strings" "time" "github.com/cloudfoundry-community/go-cfclient" "github.com/kelseyhightower/envconfig" ) // TODO: handle errors centrally. type Config struct { InState string `envconfig:"in_...
package pkglint import ( "sort" "strings" ) // Tool is one of the many standard shell utilities that are typically // provided by the operating system, or, if missing, are installed via // pkgsrc. // // See `mk/tools/`. type Tool struct { Name string // e.g. "sed", "gzip" Varname string // e.g. "SED", "GZIP_CM...
package aurelib /* #cgo pkg-config: libavformat libavcodec libavutil #include <libavformat/avformat.h> #include <libavutil/replaygain.h> #include <stdlib.h> static int avErrorEOF() { return AVERROR_EOF; } static int avErrorEAGAIN() { return AVERROR(EAGAIN); } static char const* strEmpty() { return ""; } */ impo...
// Copyright (c) 2018 <NAME>, http://bazil.pro <<EMAIL>> // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. // package main import ( "database/sql" "flag" "fmt" _ "github.com/mattn/go-sqlite3" "math/rand" "net" "os" "regexp" "strings" ) const ( appna...
package optimus import ( "context" "fmt" "math" "math/big" "strings" "sync" "time" "github.com/ethereum/go-ethereum/common" "github.com/sonm-io/core/blockchain" "github.com/sonm-io/core/insonmnia/benchmarks" "github.com/sonm-io/core/insonmnia/hardware" "github.com/sonm-io/core/proto" "github.com/sonm-io/...
// Copyright 2021 Antrea 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...
package engine // Antiferromagnetic codes. Includes definitios adn changes to AF torques and thermal field import ( "github.com/mumax/3/cuda" "github.com/mumax/3/cuda/curand" "github.com/mumax/3/data" "github.com/mumax/3/mag" "github.com/mumax/3/util" ) // Anisotropy, magnetization, exchange... variables and ma...
// 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 CloudForest import ( "archive/zip" "encoding/csv" "fmt" "io" "log" "math/rand" "os" "strconv" "strings" "gonum.org/v1/gonum/mat" ) //FeatureMatrix contains a slice of Features and a Map to look of the index of a feature //by its string id. type FeatureMatrix struct { Data []Feature Map ...
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package derp // TODO(crawshaw): send srcKey with packets to clients? // TODO(crawshaw): with predefined serverKey in clients and HMAC on packets we...
// Copyright 2018-2019 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 twse import ( "encoding/csv" "errors" "fmt" "regexp" "strconv" "strings" "time" "github.com/toomore/gogrs/utils" ) // TWSECLASS is a class list of TWSE. var TWSECLASS = map[string]string{ "MS": "大盤統計資訊", "0049": "封閉式基金", "0099P": "ETF", "01": "水泥工業", "019919T": "受益證...
// PavedRoad APIs follow kubernetes conventions // /api/v1/namespace/{namespace}/resourcetype default // The default namespace is pavedroad.io // // Verbs // --------- // GET: Return a resource // POST: Create a new token // PUT: Update a specific toke // PATCH: Partial update of a specific toke // DEL...
package main import ( "bufio" "fmt" "log" "os" "reflect" "strconv" "strings" "github.com/sugarme/gotch" "github.com/sugarme/gotch/nn" ts "github.com/sugarme/gotch/tensor" ) type Block struct { BlockType *string // optional Parameters map[string]string } func (b *Block) get(key string) string { val, ok...
package main import ( "encoding/json" "errors" "fmt" "net" "os" "os/signal" "path/filepath" "regexp" "strings" "sync" "time" "github.com/hpcloud/tail" _ "github.com/influxdata/influxdb1-client" influx "github.com/influxdata/influxdb1-client/v2" "github.com/oschwald/maxminddb-golang" log "github.com/si...
package handler import ( "bytes" "fmt" "github.com/mysql-binlog/common/final" "os" "strings" "sync" "github.com/mysql-binlog/siddontang/go-mysql/replication" "github.com/satori/go.uuid" "github.com/syndtr/goleveldb/leveldb" "github.com/zssky/log" cdb "github.com/mysql-binlog/common/db" "github.com/mysql-...
// Package saver provides the toold for saving a single flow's packets to disk. package saver import ( "bytes" "compress/gzip" "context" "fmt" "io" "log" "os" "path" "sync" "time" "github.com/m-lab/go/warnonerror" "github.com/spf13/afero" "github.com/google/gopacket" "github.com/google/gopacket/layers...
// Copyright (c) 2017 <NAME>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing...
package main import ( "encoding/base64" "bytes" "context" "flag" "fmt" "io" "log" "net/url" "os" "path/filepath" "strings" "time" "github.com/algorand/go-algorand-sdk/client/v2/common" "github.com/algorand/go-algorand-sdk/client/v2/common/models" "github.com/algorand/go-algorand-sdk/client/v2/indexer" ...
package main import ( "github.com/BurntSushi/toml" "fmt" "log" "strings" "os" "os/signal" "syscall" "flag" "sync" "path/filepath" "errors" "time" "math" ) var ( conf Config GID int BuildTime string GitCommit string GitComment string version string ) type Config struc...
package internal_test import ( "fmt" "math" "math/big" "reflect" "testing" "time" "github.com/tada/dgo/dgo" "github.com/tada/dgo/internal" "github.com/tada/dgo/test/assert" "github.com/tada/dgo/test/require" "github.com/tada/dgo/tf" "github.com/tada/dgo/typ" "github.com/tada/dgo/vf" ) func TestInteger(t...
package p2p import ( "context" "crypto/ecdsa" "fmt" "io" "io/ioutil" "sync" "time" ds "github.com/ipfs/go-datastore" blockstore "github.com/ipfs/go-ipfs-blockstore" logging "github.com/ipfs/go-log" "github.com/libp2p/go-libp2p" libp2pcrypto "github.com/libp2p/go-libp2p-core/crypto" host "github.com/libp2...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: ves.io/schema/site/private_config_kubeconfig.proto // Private Site KubeConfig custom API // // x-displayName: "Site" // API for manage kube configs. package site import ( context "context" fmt "fmt" _ "github.com/gogo/googleapis/google/api" _ "github....
// Copyright © 2018 <NAME> <<EMAIL>> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
/* File Name: Network.go Copyright: 2021 Peernet s.r.o. Author: <NAME> */ package core import ( "errors" "net" "sync" "sync/atomic" "time" "github.com/PeernetOfficial/core/protocol" "github.com/PeernetOfficial/core/upnp" ) // Network is a connection adapter through one network interf...
package khipu /* BSD License Copyright (c) 2017–20, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condi...
package ugform import ( "context" "errors" "github.com/gdamore/tcell/v2" "github.com/inconshreveable/log15" "sort" "time" ) // Loggo is the global logger. Set this to a log15 // logger from your main to incorporate into main // logfile. Otherwise log messages are discarded var Loggo log15.Logger func log(lev, ...
// Code generated by protoc-gen-go. // source: common/policies.proto // DO NOT EDIT! package common import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf ty...
// Copyright 2022 <NAME> <<EMAIL>> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
/* Robot Communication Framework The RCF is a framework for data distribution, which the most essential part of an autonomous platform. It is very similar to ROS but without packages, the C/C++ complexity overhead while still maintaining speed and safe thread/ lang. standards, thanks to the go lang. */ package rcfNo...
package main import ( "errors" "fmt" "io" "log" "math" "net/http" "os" "regexp" "strconv" "strings" "time" "net/http/pprof" "github.com/PuerkitoBio/goquery" ) type Car struct { ID uint `gorm:"primarykey"` AdID string `gorm:"unique"` Title string `json:",omitempty"` Stars ...
package battleritego // Telemetry contains a matches telemetry data. // See https://battlerite-docs.readthedocs.io/en/master/telemetry/telemetry.html type Telemetry struct { MatchStart MatchStart RoundEvents []RoundEvent UserRoundSpells []UserRoundSpell DeathEvents []DeathEvent MatchR...
package btcspv import ( "bytes" "crypto/sha256" "encoding/binary" "errors" "math/big" sdk "github.com/cosmos/cosmos-sdk/types" "golang.org/x/crypto/ripemd160" ) // BytesToUint converts 1, 2, 3, or 4-byte numbers to uints func BytesToUint(b []byte) uint { total := uint(0) length := uint(len(b)) for i := ui...
// Code generated by go-swagger; DO NOT EDIT. package operations // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "net/http" "strings" "github.com/go-openapi/errors" "github.com/go-openapi/loads" "github.com/go-...
package param import ( "../goNixArgParser" "../serverErrHandler" "../util" "../version" "errors" "fmt" "io/ioutil" "os" "strings" ) var cliParams []*Param var cliCmd *goNixArgParser.Command func init() { cliCmd = goNixArgParser.NewSimpleCommand(os.Args[0], "Simple command line based HTTP file server to sha...
package streaming import ( "fmt" "path/filepath" "sync" "github.com/multiformats/go-multihash" "github.com/spf13/cast" evmtypes "github.com/tharsis/ethermint/x/evm/types" "github.com/ipfs/go-cid" "github.com/ipld/go-ipld-prime" "github.com/ipld/go-ipld-prime/codec/dagcbor" "github.com/ipld/go-ipld-prime/d...
/* Copyright 2019 the original author or 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 w...
// Generated by toolgen. DO NOT EDIT. // Generated from tool specification: // _build/specifications/go.json package test import ( "fmt" "strings" "github.com/stephenwilliams/go-clitools/internal/defaults" "github.com/stephenwilliams/go-clitools/ptrhelpers" "github.com/stephenwilliams/go-clitools/tools" "git...
package main import ( "database/sql" "fmt" "os" "os/exec" "path/filepath" "strconv" "strings" "text/template" "unicode" "github.com/spf13/cobra" ) // sq Field Types const ( FieldTypeBoolean = "sq.BooleanField" FieldTypeJSON = "sq.JSONField" FieldTypeNumber = "sq.NumberField" FieldTypeString = "sq....
// Copyright (c) 2019 Couchbase, 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 w...
/** * Copyright 2016 Comcast Cable Communications Management, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
// MIT License // // Copyright (c) 2020 Lack // // 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. // source: tensorflow/core/framework/types.proto // DO NOT EDIT! package tensorflow 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 ...
package worker import ( "context" sha "crypto/sha256" "encoding/base64" "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "strconv" "strings" "time" "github.com/packethost/pkg/log" "github.com/pkg/errors" pb "github.com/tinkerbell/tink/protos/workflow" "google.golang.org/grpc/status" ) const ( d...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
/* Copyright 2014 - 2015 Workiva, 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 writing, softwar...
/* Copyright 2018 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 ...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. package serverless import ( "context" "fmt" "io/ioutil" "net/http" ...
package chunkenc import ( "bufio" "bytes" "compress/gzip" "encoding/binary" "hash" "hash/crc32" "io" "math" "time" "github.com/grafana/loki/pkg/logproto" "github.com/grafana/loki/pkg/iter" "github.com/pkg/errors" ) const blocksPerChunk = 10 var ( magicNumber = uint32(0x12EE56A) chunkFormatV1 = byte...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2020 Datadog, Inc. package forwarder import ( "expvar" "fmt" "net/http" "strconv" "string...
/* Copyright 2021 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
// Copyright 2022 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
// Code generated by execgen; DO NOT EDIT. // Copyright 2019 The Cockroach Authors. // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will b...
package types import ( "bytes" "fmt" "strings" "time" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto" tmtypes "github.com/tendermint/tendermint/types" yaml "gopkg.in/yaml.v2" "github.com/hyperspeednetwork/hsnhub/codec" sdk "github.com/hyperspeednetwork/hsnhub/ty...
package preference import ( "fmt" "os" "os/user" "path/filepath" "strconv" "strings" "github.com/pkg/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/klog" "github.com/openshift/odo/pkg/log" "github.com/openshift/odo/pkg/odo/cli/ui" "github.com/openshift/odo/pkg/util" ) const ( GlobalConfi...
/* 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 storage import ( "bytes" "encoding/base64" "io/ioutil" "math" "net/http" "net/url" "os" "path/filepath" "reflect" "regexp" "strconv" "strings" "testing" "time" "github.com/Azure/go-autorest/autorest/azure" "github.com/dnaeon/go-vcr/cassette" "github.com/dnaeon/go-vcr/recorder" chk "gopkg.in/...
/* * * Copyright 2014 gRPC 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...
// 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...
package relayer // DONTCOVER import ( "context" "crypto/ecdsa" "fmt" "log" "math/big" "os" "os/signal" "sync" "syscall" "time" "github.com/cosmos/cosmos-sdk/client/tx" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/crypto/keyring" sdk "git...
package styx import ( "io" "os" "path" "strings" "sync" "context" "aqwari.net/net/styx/internal/styxfile" "aqwari.net/net/styx/internal/threadsafe" "aqwari.net/net/styx/internal/util" "aqwari.net/net/styx/styxproto" ) // A Session is a sequence of related 9P messages from a single client. It // begins whe...
package gin import ( "fmt" "html/template" "net" "net/http" "os" "path" "reflect" "strings" "sync" "github.com/zhangdapeng520/zdpgo_api/gin/internal/bytesconv" "github.com/zhangdapeng520/zdpgo_api/gin/render" ) const defaultMultipartMemory = 32 << 20 // 32 MB var ( default404Body = []byte("404 page not ...
// +build ignore package main import ( "fmt" "path/filepath" "strings" "github.com/sevki/rsc/c2go" "github.com/sevki/rsc/cc" ) var goKeyword = map[string]string{ "chan": "chan_", "defer": "defer_", "fallthrough": "fallthrough_", "func": "fun", "go": "go_", "import": "imp...
package base import ( "bytes" "encoding/binary" "errors" "fmt" "math/rand" "github.com/gonum/matrix/mat64" ) // SortDirection specifies sorting direction... type SortDirection int const ( // Descending says that Instances should be sorted high to low... Descending SortDirection = 1 // Ascending states that...
package tls import ( "bytes" "encoding/hex" "reflect" "strings" "testing" ) type testStruct struct { Data []byte `tls:"minlen:2,maxlen:4"` IntVal uint16 Other [4]byte Enum Enum `tls:"size:2"` } type testVariant struct { Which Enum `tls:"size:1"` Val16 *uint16 `tls:"selector:Which,val:0"` Val32 *u...
package logic import ( "context" "errors" "fmt" "io" "sync" "time" "github.com/prometheus/client_golang/prometheus" "github.com/zrepl/zrepl/daemon/logging/trace" "github.com/zrepl/zrepl/logger" "github.com/zrepl/zrepl/replication/driver" . "github.com/zrepl/zrepl/replication/logic/diff" "github.com/zrepl...
/* Package opc helps you send and receive Open Pixel Control messages. */ package opc import ( "bufio" "fmt" "math" "net" "os" "strconv" "strings" "time" "github.com/longears/pixelslinger/midi" ) //-------------------------------------------------------------------------------- // PATTERN REGISTRY var PATT...
// Code generated by smithy-go-codegen DO NOT EDIT. package types // Information about a bulk deployment. You cannot start a new bulk deployment // while another one is still running or in a non-terminal state. type BulkDeployment struct { // The ARN of the bulk deployment. BulkDeploymentArn *string // The ID of...
package x509util import ( "crypto" "crypto/ecdsa" "crypto/ed25519" "crypto/elliptic" "crypto/rand" "crypto/rsa" "crypto/x509" "crypto/x509/pkix" "encoding/asn1" "encoding/pem" "io/ioutil" "net" "net/url" "reflect" "testing" "github.com/pkg/errors" "github.com/smallstep/assert" ) func mustParseRSAKey...
// Copyright 2019 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 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR...
// Package oidc implements OpenID Connect client logic for the golang.org/x/oauth2 package. package oidc import ( "context" "crypto/sha256" "crypto/sha512" "encoding/base64" "encoding/json" "errors" "fmt" "hash" "io/ioutil" "mime" "net/http" "strings" "time" "golang.org/x/oauth2" jose "gopkg.in/square/...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/errors/campaign_experiment_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if...
// Package ec provides erasure coding (EC) based data protection for AIStore. /* * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. */ package ec import ( "bytes" "errors" "fmt" "io" "net/http" "net/url" "os" "path/filepath" "sync" "time" "github.com/NVIDIA/aistore/3rdparty/atomic" "git...
// Copyright 2021 The Audit Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
/* Licensed 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 i...
package types import ( "encoding/json" "math/big" "time" "github.com/Proofsuite/amp-matching-engine/utils/math" "github.com/ethereum/go-ethereum/common" "github.com/globalsign/mgo/bson" validation "github.com/go-ozzo/ozzo-validation" ) // Pair struct is used to model the pair data in the system and DB type P...
package main import ( _"fmt" _"gitee.com/jntse/gotoolkit/net" "gitee.com/jntse/gotoolkit/log" "gitee.com/jntse/minehero/pbmsg" pb "github.com/gogo/protobuf/proto" "gitee.com/jntse/gotoolkit/util" "gitee.com/jntse/minehero/server/tbl" ) // ----------------------------------------------------...
// Copyright 2019 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...
/* * 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...
/* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Code generated by goyacc -l -o parser.go parser.y. DO NOT EDIT. // Copyright (c) 2020, 2021, <NAME> // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. package json import __yyfmt__ "fmt" type Placeholder st...
package worker import ( "bytes" "fmt" "math/big" "sort" "time" common2 "github.com/harmony-one/harmony/internal/common" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" "github.com/harmony-one/harmony/block" blockfactory "github.com/harmony-one/harmony/block/factory" consensu...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/automl/v1beta1/text_extraction.proto package automl 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 are not...
package yasha import ( "bytes" "encoding/binary" "fmt" "math" "strconv" "github.com/davecgh/go-spew/spew" ) var p = spew.Dump const ( CoordIntegerBits = 14 CoordFractionalBits = 5 CoordDenominator = (1 << CoordFractionalBits) CoordResolution = (1.0 / CoordDenominator) NormalFractionalBits = 11...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: common.proto package looprpc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) ...
package client import ( "context" "encoding/json" "errors" "fmt" "net/http" "strings" "sync" "sync/atomic" "time" "github.com/harness/ff-golang-server-sdk/evaluation" "github.com/harness/ff-golang-server-sdk/pkg/repository" "github.com/harness/ff-golang-server-sdk/analyticsservice" "github.com/harness/...
// MIT License // // Copyright 2018 Canonical Ledgers, LLC // // 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, ...
// Package drawing defines Drawing struct for DXF. package drawing import ( "bytes" "errors" "fmt" "io" "os" "github.com/yofu/dxf/block" "github.com/yofu/dxf/class" "github.com/yofu/dxf/color" "github.com/yofu/dxf/entity" "github.com/yofu/dxf/format" "github.com/yofu/dxf/handle" "github.com/yofu/dxf/heade...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto2/nested_messages.proto package proto2 import ( proto "github.com/golang/protobuf/proto" protoapi "github.com/golang/protobuf/protoapi" protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" protoimpl "github.com/golang/protobuf/v2/runtim...
// Copyright 2018 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 agreed ...
package oba_test import ( "encoding/json" "fmt" "io/ioutil" "net/http" "net/http/httptest" "regexp" "strings" "testing" "github.com/Setheck/oba" "github.com/stretchr/testify/assert" ) const ( TestDataPath = "testdata/" ) func FakeServer(t *testing.T, body []byte) *httptest.Server { t.Helper() handler :...
package config import ( "fmt" "net/http" "net/url" "strings" "time" "github.com/ory/x/dbal" "github.com/ory/hydra/spec" "github.com/ory/x/configx" "github.com/ory/x/logrusx" "github.com/ory/hydra/x" "github.com/ory/x/cmdx" "github.com/ory/x/stringslice" "github.com/ory/x/tracing" "github.com/ory/x/u...
/* Copyright 2018 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
package gql // Static typechecking and optimization utilities. import ( "context" "fmt" "strings" "sync" "github.com/grailbio/gql/symbol" ) // AstTypes is the central repository of the type information of all the AST nodes // in the program. Use add to register nodes in a tree. Thread compatible. type astTypes...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/api/v2/cluster/circuit_breaker.proto package envoy_api_v2_cluster import ( fmt "fmt" core "github.com/altipla-consulting/envoy-api/envoy/api/v2/core" _ "github.com/envoyproxy/protoc-gen-validate/validate" types "github.com/gogo/protobuf/types" pro...