text
stringlengths
5.51k
28.1k
/* Copyright 2020 The arhat.dev 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, soft...
// Code generated by protoc-gen-go. // source: github.com/NEU-SNS/ReverseTraceroute/datamodel/recspoof.proto // DO NOT EDIT! package datamodel 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.Mars...
// Copyright 2017 <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 siris import ( // std packages stdContext "context" "io" "log" "net" "net/http" "sync" "time" //logger //"github.com/sirupsen/logrus" "go.uber....
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: models/netalloc/netalloc.proto // Netalloc allows to disassociate topology from addressing in the network // configuration. Instead of inserting specific IP/MAC addresses, VXLAN VNIs, etc., // into the configuration data for interfaces, routes, ARPs and oth...
// Copyright 2022 The Go Language Server Authors // SPDX-License-Identifier: BSD-3-Clause package protobuf import ( "math" "unicode" "unicode/utf8" "google.golang.org/protobuf/types/descriptorpb" ) const ( // MaxNormalTag is the maximum allowed tag number for a field in a normal message. MaxNormalTag = 536870...
/* ** Zabbix ** Copyright (C) 2001-2021 Zabbix SIA ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** **...
package mtio import "bytes" //MtGet is structure for MTIOCGET - mag tape get status command type MtGet struct { // Type of magtape device Type int64 // Residual count: (not sure) // number of bytes ignored, or // number of files not skipped, or // number of records not skipped ResID int64 // The following r...
package rpc import ( "bytes" "encoding/binary" "encoding/hex" "fmt" "math/big" "math/rand" "time" "github.com/conformal/fastsha256" blockchain "github.com/p9c/node9/pkg/chain" "github.com/p9c/node9/pkg/chain/fork" chainhash "github.com/p9c/node9/pkg/chain/hash" "github.com/p9c/node9/pkg/chain/wire" "git...
// 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...
// Copyright (C) 2015 NTT Innovation Institute, 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 applicabl...
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package wrangler import ( "fmt" "sync" log "github.com/golang/glog" "github.com/youtube/vitess/go/vt/concurrency" "github.com/youtube/vitess/go/vt/key" "gi...
// Package cas stores data in in a backing blob store with // content-addressed storage and convergent encryption. That is, // objects with with identical contents (using the same secret) have // identical blob key and ciphertext. // // Stored data is identified by a keyed hash of the plaintext // data. Contents are en...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: pkg/api/events/events.proto /* Package events is a generated protocol buffer package. It is generated from these files: pkg/api/events/events.proto It has these top-level messages: WorkflowCreated WorkflowDeleted WorkflowParsed WorkflowParsingFailed I...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
// errorcheck // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test illegal shifts. // Issue 1708, illegal cases. // Does not compile. package p func f(x int) int { return 0 } func g(x interface...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: envoy/config/grpc_credential/v3/file_based_metadata.proto package envoy_config_grpc_credential_v3 import ( v3 "github.com/cilium/proxy/go/envoy/config/core/v3" _ "github.com/cncf/udpa/go/udpa...
/* * MinIO Cloud Storage, (C) 2019 MinIO, 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 la...
/* Copyright 2018 The Rook 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 agreed to ...
package vm import ( "bytes" "context" "encoding/binary" "fmt" gruntime "runtime" "time" "github.com/filecoin-project/go-address" "github.com/filecoin-project/specs-actors/actors/abi" "github.com/filecoin-project/specs-actors/actors/abi/big" "github.com/filecoin-project/specs-actors/actors/builtin" sainit "...
// Licensed to The Moov Authors under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. The Moov Authors licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this...
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// 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. // +build linux package probe import ( "fmt" "runtime" "sync/atomic"...
package workers import ( "encoding/json" "fmt" "github.com/APTrust/exchange/constants" "github.com/APTrust/exchange/context" "github.com/APTrust/exchange/models" "github.com/APTrust/exchange/util" "github.com/APTrust/exchange/util/fileutil" "github.com/APTrust/exchange/validation" "github.com/nsqio/go-nsq" "...
package routing import ( "math" "container/heap" "github.com/boltdb/bolt" "github.com/lightningnetwork/lnd/channeldb" "github.com/roasbeef/btcd/btcec" "github.com/roasbeef/btcd/chaincfg/chainhash" "github.com/roasbeef/btcutil" ) const ( // HopLimit is the maximum number hops that is permissible as a route. ...
package wrangler import ( "fmt" "sort" "strings" "sync" "time" "github.com/youtube/vitess/go/vt/hook" myproto "github.com/youtube/vitess/go/vt/mysqlctl/proto" "github.com/youtube/vitess/go/vt/tabletmanager/actionnode" "github.com/youtube/vitess/go/vt/topo" "github.com/youtube/vitess/go/vt/topotools" ) // h...
// This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this // file, you can obtain one at https://opensource.org/licenses/MIT. // // Copyright (c) DUSK NETWORK. All rights reserved. package ruskmock import ( "context" "math/big" "net" ristre...
package Common import ( "bytes" "encoding/binary" "fmt" "reflect" "testing" . "github.com/xitongsys/parquet-go/ParquetType" "github.com/xitongsys/parquet-go/parquet" ) func TestHeadToUpper(t *testing.T) { testData := []struct { Str string Expected string }{ {"", ""}, {"hello", "Hello"}, {"HeH...
// Copyright 2019 Dolthub, 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 2021 TiKV 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 lua51 //#include <lua.h> //#include "golua.h" import "C" import "unsafe" //TODO: remove import "fmt" //like lua_Writer, but as p will contain capacity, not needed as separate param type Writer func(L *State, p []byte, ud interface{}); //like lua reader, but the return slice has the size, so does // we do...
package machine import ( "errors" "path" "time" "github.com/koding/logging" "koding/kites/tunnelproxy/discover" "koding/klient/fs" "koding/klient/kiteerrortypes" "koding/klient/os" "koding/klient/remote/kitepinger" "koding/klient/remote/rsync" "koding/klient/util" "sync" "github.com/koding/kite/dnode" ...
// // Copyright 2020 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
// Copyright 2018 The Prometheus 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...
/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// // Author:: <NAME> (<<EMAIL>>) // Copyright:: Copyright 2020, Lacework Inc. // License:: Apache License, Version 2.0 // // 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://ww...
package main import ( "flag" "fmt" "io" "io/ioutil" "log" "net/http" "os" "os/user" "runtime" "sort" "strings" "sync/atomic" "time" "unicode" ) const ( helloVersion = "0.7" ) var knownPaths []string var boottime time.Time var banner string var requests int64 var quota int64 var quotaDuration time.Dura...
package main import ( "encoding/json" "flag" "fmt" "io" "log" "math" "net/http" "os" "os/signal" "time" "github.com/RyAndrew/pidctrl" "github.com/gorilla/websocket" "github.com/kidoman/embd" "github.com/kidoman/embd/controller/pca9685" _ "github.com/kidoman/embd/host/all" ) const ( // Time allowed t...
// Copyright 2018 Shift Devices AG // // 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/extensions/filters/http/health_check/v4alpha/health_check.proto package envoy_extensions_filters_http_health_check_v4alpha import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" v4alpha "github.com/envoyproxy/go-control-plane/envoy/config/r...
package css_parser import ( "strings" "github.com/trustelem/esbuild/internal/css_ast" "github.com/trustelem/esbuild/internal/css_lexer" ) func turnPercentIntoNumberIfShorter(t *css_ast.Token) { if t.Kind == css_lexer.TPercentage { if shifted, ok := shiftDot(t.PercentageValue(), -2); ok && len(shifted) < len(t....
// Copyright 2017 ETH Zurich // Copyright 2018 ETH Zurich, Anapaya 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 ...
/* * 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, Version 2.0 * (the "License"); you may ...
// Code generated by furo furo. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc (unknown) // source: todosservice/todosservice.proto package todosservicepb import ( todos "github.com/theNorstroem/todo-management-tool/api/dist/pb/todos" _ "googl...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package channel import ( "fmt" "math/rand" "sync" "time" "github.com/golang/protobuf/proto" proto_ts "github.com/golang/protobuf/ptypes/timestamp" fab "github.com/hyperledger/fabric-sdk-go/api/apifabclient" ...
// Copyright (c) 2015 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 2018 The Nakama 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 ...
/* * Copyright 2019-2020 by <NAME> * https://www.fibratus.io * 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 *...
package container import ( "bufio" "bytes" goerr "errors" "fmt" "os" "path/filepath" "runtime" "strings" "time" "github.com/docker-slim/docker-slim/internal/app/master/config" "github.com/docker-slim/docker-slim/internal/app/master/docker/dockerhost" "github.com/docker-slim/docker-slim/internal/app/master...
package main import ( "context" "flag" "io/ioutil" "math/rand" "os" "os/signal" "regexp" "strings" "syscall" "time" "github.com/aws/aws-sdk-go/aws/arn" "github.com/awslabs/amazon-ecr-containerd-resolver/ecr" "github.com/containerd/containerd" "github.com/containerd/containerd/cio" "github.com/container...
package cardrank import ( "bytes" "fmt" "strconv" "strings" "unicode" "golang.org/x/text/unicode/rangetable" ) // Rank is a card rank. type Rank uint8 // Card ranks. const ( Ace Rank = 12 - iota King Queen Jack Ten Nine Eight Seven Six Five Four Three Two ) // RankFromRune returns the card rank ...
// Copyright (c) 2014 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 (c) 2020 Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project package templates import ( "bytes" "crypto/aes" "encoding/json" "errors" "fmt" "reflect" "regexp" "strconv" "strings" "text/template" "github.com/golang/glog" "github.com/spf13/cast" "gopkg.in/yaml.v3" ...
/* * Copyright © 2020. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file. */ package model import ( "errors" "strings" "sync" "github.com/TIBCOSoftware/labs-graphbuilder-lib/util" ) //-============================-// // Defi...
package calendar import ( "fmt" "github.com/nosixtools/solarlunar" "github.com/zhangyiming748/calendar/v2/util/log" "math/rand" "sort" "strconv" "strings" "time" ) type HappySlice []Festival type SadSlice []Involution func (c HappySlice) Len() int { // 重写 Len() 方法 return len(c) } func (c HappySlice) Swap(i,...
/* * Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved * * This source code file is licensed under the MIT License, you may obtain a copy of the License at * * http://opensource.org/licenses/MIT * */ package sdk import ( "fmt" "net" "strconv" "strings" "time" dcFile "github.com/...
/* 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 plugin provides ... package plugin const ( // DeinDefx DeinDefx = ` [[plugins]] repo = 'Shougo/defx.nvim' on_cmd = 'Defx' hook_source = ''' call defx#custom#option('_', { \ 'resume': 1, \ 'winwidth': 30, \ 'split': 'vertical', \ 'direction': 'topleft', \ 'show_ignored_fil...
package script import ( "bytes" "encoding/hex" "errors" "fmt" "io" "io/fs" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "github.com/wader/fq/internal/shquote" "github.com/wader/fq/pkg/bitio" "github.com/wader/fq/pkg/interp" ) var unescapeRe = regexp.MustCompile(`\\(?:t|b|n|r|0(?:b[01]{8}|x...
package webapp import ( "fmt" "html/template" "mime" "net/http" "path" "runtime/debug" "sort" "strconv" "strings" "sync" "time" ) type muxEntry struct { method string pattern string handler http.Handler } func (m muxEntry) String() string { if m.method == http.MethodGet { return fmt.Sprintf("[%s]&n...
// Copyright 2019 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 engine64 import ( "reflect" data "github.com/seeder-research/uMagNUS/data64" opencl "github.com/seeder-research/uMagNUS/opencl64" util "github.com/seeder-research/uMagNUS/util" ) var ( Alpha = NewScalarParam("alpha", "", "Landau-Lifshitz damping constant") Xi ...
package config import ( "bufio" "bytes" "errors" "fmt" "io" "io/ioutil" "os" "path/filepath" "reflect" "strconv" "strings" "sync" "time" "github.com/astaxie/beego/logs" ) //ConfigFile 配置实例 var ConfigFile *Configer // NewConfig 初始化配置 func NewConfig(section string) { var err error defaultSection = sec...
// Copyright 2014, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package worker import ( "fmt" "html/template" "strings" "sync" "time" "golang.org/x/net/context" "github.com/youtube/vitess/go/event" "github.com/youtub...
package ast_test import ( "strings" "testing" "github.com/stretchr/testify/assert" "github.com/jensneuse/graphql-go-tools/internal/pkg/unsafeparser" "github.com/jensneuse/graphql-go-tools/pkg/ast" "github.com/jensneuse/graphql-go-tools/pkg/astparser" "github.com/jensneuse/graphql-go-tools/pkg/astprinter" ) /...
// // Copyright 2020 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
package manifestgenerator import ( "fmt" "net/http" "path" "github.com/covrom/hls-streamer/hls" "github.com/covrom/hls-streamer/mediachunk" "github.com/covrom/hls-streamer/tspacket" "github.com/sirupsen/logrus" ) // Version Indicates the package version var Version = "1.1.0" // HlsDefaultVersion to use const...
package customizablejson import ( "bytes" "encoding" "encoding/json" "fmt" "reflect" "sort" "strings" "sync" "unicode" ) type encodeState struct { enc *JSONEncoder // Keep track of what pointers we've seen in the current recursive call // path, to avoid cycles that could lead to a stack overflow. Only do...
package certretrieval import ( "bufio" "bytes" "context" "crypto/rand" "crypto/tls" "crypto/x509" "encoding/json" "encoding/pem" "fmt" "io" "net/http" "net/url" "os" "path/filepath" "strconv" "strings" "time" vault "github.com/hashicorp/vault/api" auth "github.com/hashicorp/vault/api/auth/kubernete...
package s import ( "context" "fmt" "strings" "time" "github.com/capatazlib/go-capataz/internal/c" ) type supRuntimeName = string type strategyRestartFn = func( context.Context, SupervisorSpec, []c.ChildSpec, // supSpec arguments supRuntimeName, map[string]c.Child, chan c.ChildNotification, // runtime argume...
package loop import ( "context" "fmt" "sort" "sync" "time" "github.com/btcsuite/btclog" "github.com/btcsuite/btcutil" "github.com/davecgh/go-spew/spew" "github.com/lightninglabs/lndclient" "github.com/lightningnetwork/lnd/clock" "github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/rou...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/ad_group_simulation.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ad...
// Copyright 2018 The Swarming Authors. All rights reserved. // Use of this source code is governed by the Apache v2.0 license that can be // found in the LICENSE file. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.12.1 // source: go.chromium.org/luc...
// Copyright 2017 ETH Zurich // // 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 querybuilder import ( "bytes" "context" "database/sql/driver" "errors" "fmt" "reflect" "regexp" "strconv" "strings" "github.com/alecthomas/repr" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/dynamodb" "github.com/mightyguava/dynamosql/parser" "github.com/mightyguava/dynamos...
package services import ( "bytes" "context" "encoding/json" "io/ioutil" "net/http" "strconv" "strings" "time" "github.com/gorilla/mux" cconf "github.com/pip-services3-go/pip-services3-commons-go/config" crefer "github.com/pip-services3-go/pip-services3-commons-go/refer" cvalid "github.com/pip-services3-go...
package gincmd import ( "bytes" "encoding/json" "fmt" "math" "os" "runtime" "strings" ginclient "github.com/G-Node/gin-cli/ginclient" "github.com/G-Node/gin-cli/ginclient/log" "github.com/G-Node/gin-cli/git" "github.com/bbrks/wrap" "github.com/docker/docker/pkg/term" "github.com/fatih/color" "github.com...
package main import ( "bytes" "context" "encoding/json" "fmt" "html/template" "io" "log" "net/http" "os" "os/exec" "path/filepath" "strings" "sync" "time" cbnet "github.com/cloud-barista/cb-larva/poc-cb-net/internal/cb-network" model "github.com/cloud-barista/cb-larva/poc-cb-net/internal/cb-network/mo...
package routing import ( "math" "sync" "time" "github.com/btcsuite/btcd/btcec" "github.com/coreos/bbolt" "github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/routing/route" "github.com/lightningnetwork/lnd/zpay32" ) const ( // DefaultPenaltyH...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/feed_item_target.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ads/g...
// Copyright 2010 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 req import ( "bufio" "bytes" "fmt" "github.com/imroc/req/v3/internal/util" "net/textproto" "strings" "sync" ) func isASCIILetter(b byte) bool {...
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "time" ) // Describes a modification to the configuration of Bring Your Own License (BYOL) // for the specified account. type AccountModification struct { // The IP address range, specified as an IPv4 CIDR block, for the management // net...
package scenariofive import ( "fmt" "github.com/computablelabs/goest/tests/test" "math/big" "testing" "time" ) func oneHundredOneEth() *big.Int { one := big.NewInt(test.ONE_ETH) oneHundred := one.Mul(one, big.NewInt(100)) return oneHundred.Add(oneHundred, big.NewInt(test.ONE_ETH)) } func oneHundredEth() *big...
/** * Copyright 2018 Atos * * 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 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 2013 <NAME>. 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 la...
package main import ( "bytes" "errors" "flag" "fmt" "io" "net" "net/url" "os" "runtime" "strings" "time" ) const ( DiscoModeNone = "" DiscoModeConsulKV = "consul-kv" DiscoModeEtcdKV = "etcd-kv" DiscoModeDNS = "dns" DiscoModeDNSSRV = "dns-srv" ) // Config represents the configuration as s...
package vimlparser import ( "fmt" "github.com/haya14busa/go-vimlparser/ast" "github.com/haya14busa/go-vimlparser/token" ) // Parse parses Vim script in reader and returns Node. func (p *VimLParser) Parse(reader *StringReader, filename string) ast.Node { return newAstNode(p.parse(reader), filename) } // Parse pa...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/oslogin/common/common.proto package common import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwis...
// Copyright 2019 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...
package handler_test import ( "bytes" "context" "io" "net/http" "net/http/httptest" "strings" "testing" "time" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/hcl/v2/hclsimple" logrustest "github.com/sirupsen/logrus/hooks/test" "github.com/avenga/couper/config/request" "github.com/avenga/couper/erro...
// avl.go package avl // Item - the type to be sorted type Item interface{} // Node of a binary tree type Node struct { value Item left *Node right *Node parent *Node // doubly linked height int // for AVL property } // PrioritizeTreeItem - custom comparison for prioritizing tree items // basic sort wou...
/////////////////////////////////////////////////////////////////////// // Copyright (c) 2017 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////// // Code generated by go-swagger; DO NOT EDIT. package operations // This file ...
package gour import ( "github.com/MichaelTJones/pcg" ) var pcg32 = pcg.NewPCG32() func RandBool() bool { return pcg32.Random()&0x01 == 0 } const ( Left = 1 Right = -1 ) const PATH_LENGTH = 14 type board struct { board [20]int left_player_queue int right_player_queue int left_pawn_path_positions [7]int...
//+build ignore // DISABLED, since I have found no scenarios where it provides improvement package dedup import ( "bytes" "errors" "io" "io/ioutil" "testing" ) const ( // Dynamic block size, including split on file signatures. // There are a number of typical file signartures builtin, // or you can use AddS...
/* 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 main import ( "fmt" "github.com/gin-gonic/gin" "net/http" "sort" "strconv" "strings" "time" ) func getProjectTime(c *gin.Context) { project := c.Query("project") carType := c.Query("type") dbType := strings.ToLower(carType) dbType = "time_" + dbType if project == "" { return } var timeOverview...
package syncthing import ( "bytes" "context" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" "runtime" "sort" "strings" "time" rice "github.com/GeertJohan/go.rice" log "github.com/sirupsen/logrus" "github.com/kelda/blimp/pkg/cfgdir" "github.com/kelda/blimp/pkg/errors" "github.com/kelda/blimp/pkg/has...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/core/lib/core/error_codes.proto package tensorflow_error 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...
package main import ( "context" "fmt" "image/color" "image/draw" "math" "os" "strconv" "sync" "time" "github.com/oakmound/oak/v4" "github.com/oakmound/oak/v4/alg/floatgeom" "github.com/oakmound/oak/v4/audio" "github.com/oakmound/oak/v4/audio/pcm" "github.com/oakmound/oak/v4/audio/synth" "github.com/oak...
/* Copyright 2019 The OpenEBS 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...