text
stringlengths
5.51k
28.1k
package expreduce import ( "fmt" "log" "os" "os/signal" "strings" "time" ) type DefMap map[string]Def type EvalState struct { // Embedded type for logging CASLogger defined DefMap trace *Expression NoInit bool timeCounter TimeCounterGroup freeze bool thrown *Expression reapSo...
/* * Copyright IBM Corporation 2020, 2021 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
package cmd import ( "strings" "github.com/rsteube/carapace" "github.com/rsteube/carapace-bin/pkg/actions/fs" "github.com/rsteube/carapace-bin/pkg/actions/net/http" "github.com/rsteube/carapace-bin/pkg/actions/net/ssh" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "wget", Short: "a non-inte...
package language // Code generated by gen/scripts.go DO NOT EDIT. const ( Adlam = Script(0x61646c6d) Caucasian_Albanian = Script(0x61676862) Ahom = Script(0x61686f6d) Arabic = Script(0x61726162) Imperial_Aramaic = Script(0x61726d69) Armenian ...
package psql_test import ( "context" "crypto/md5" "crypto/rand" "database/sql/driver" "encoding/hex" "encoding/json" "fmt" "os" "reflect" "strings" "testing" "time" "github.com/gopsql/db" "github.com/gopsql/gopg" "github.com/gopsql/logger" "github.com/gopsql/pgx" "github.com/gopsql/pq" "github.com/g...
// Copyright 2016 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, ...
// This code is available on the terms of the project LICENSE.md file, // also available online at https://blueoakcouncil.org/license/1.0.0. package comms import ( "context" "crypto/tls" "crypto/x509" "encoding/json" "errors" "fmt" "net" "net/http" "net/url" "strings" "sync" "sync/atomic" "time" "decre...
package api import ( kapi "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/util/intstr" ) // DeploymentStatus describes the possible states a deployment can be in. type DeploymentStatus string const ( // DeploymentStatusNew means the deployment has been accepted but not ...
// Copyright (c) 2018 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 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 required by applicable law or...
/* Copyright © 2021 blacktop Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicen...
// Copyright 2021 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package migrations import ( "context" "encoding/xml" "fmt" "net/http" "net/url" "strconv" "strings" "time" "code.gitea.io/gitea/modules/log" base...
package pq import ( "bytes" "database/sql/driver" "encoding/binary" "encoding/hex" "errors" "fmt" "math" "strconv" "strings" "sync" "time" "github.com/tsealex/pq/oid" ) func binaryEncode(parameterStatus *parameterStatus, x interface{}) []byte { switch v := x.(type) { case []byte: return v default: ...
package checkup import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "strconv" "strings" "time" "github.com/sourcegraph/checkup/utils" ) /* ``` Summary: Get node information. https://docs.binance.org/api-reference/node-rpc.html#node-rpc URL for mainnet: http://dataseed1.binance.org:80/status...
package main import ( "context" "math" "reflect" "sort" "time" "fmt" "runtime/debug" "strings" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "github.com/zalando-incubator/kube-ingress-aws-controller/aws...
package terraform import ( "encoding/base64" "fmt" "io/ioutil" "net" "os" "path/filepath" "runtime" "strings" "text/template" "time" "github.com/hashicorp/terraform/command/cliconfig" "github.com/hashicorp/terraform/states/statefile" "github.com/kyma-incubator/hydroform/provision/types" "github.com/pkg/...
// Copyright 2016 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package lib import ( "encoding/hex" "fmt" "github.com/dgraph-io/badger/v3" "path/filepath" "reflect" "sync" "time" chainlib "github.com/btcsuite/btcd/blockchain" "github.com/deso-protocol/go-deadlock" "github.com/golang/glog" ) type TXIndex struct { // TXIndexLock protects the transaction index. TXIndexL...
package butils ///////////////////////////////////////////////////////////////////// // imports import ( "fmt" "math" "math/bits" "math/rand" ) ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// // member functions func in...
// Copyright 2020 The jackal 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto package securitycenter import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppres...
package rule712 import ( "encoding/hex" "encoding/json" "fmt" "github.com/DeAccountSystems/das_commonlib/ckb/builder" "github.com/DeAccountSystems/das_commonlib/ckb/celltype" "github.com/DeAccountSystems/das_commonlib/ckb/gotype" "github.com/nervosnetwork/ckb-sdk-go/crypto/blake2b" "github.com/nervosnetwork/ck...
// Copyright 2017 Sourced Technologies SL // 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 models import ( "encoding/json" "github.com/prometheus/client_golang/prometheus" ) // FDBStatus represent the status of a Cluster type FDBStatus struct { Client FDBClientStatus `json:"client"` Cluster FDBClusterStatus `json:"cluster"` } // FDBClientStatus represent status of the clients type FDBClient...
// Copyright (c) 2019 IoTeX Foundation // This is an alpha (internal) release and is not suitable for production. This source code is provided 'as is' and no // warranties are given as to title or non-infringement, merchantability or fitness for purpose and, to the extent // permitted by law, all liability for your use...
// Package wavegen is used for generating synthetic test data for the Dropbear // LSTM project. package wavegen import ( "fmt" "math" "math/rand" "github.com/montanaflynn/stats" "github.com/guptarohit/asciigraph" "gonum.org/v1/plot/plotter" ) // WaveParameters is used to store the parameters that generate a ...
package helpers import ( "context" "io" "os" dag "github.com/ipfs/go-ipfs/merkledag" ft "github.com/ipfs/go-ipfs/unixfs" pb "github.com/ipfs/go-ipfs/unixfs/pb" pi "gx/ipfs/QmSHjPDw8yNgLZ7cBfX7w3Smn7PHwYhNEpd4LHQQxUg35L/go-ipfs-posinfo" chunker "gx/ipfs/QmVDjhUMtkRskBFAVNwyXuLSKbeAya7JKPnzAxMKDaK4x4/go-ipfs-c...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: shenmo.proto package cross 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 type ShenMoData...
package signer import ( "errors" "fmt" "strconv" "sync" "time" "github.com/blang/semver" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/prometheus/client_golang/prometheus" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "gitlab.com/thorchain/tss/go-tss/blame" tssp "gitlab.com/thorchain/tss/go-t...
/* 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 dynamic import ( "bytes" "errors" "os/exec" "regexp" "strconv" "strings" "github.com/badu/term/info" ) type termcap struct { name string desc string aliases []string bools map[string]bool nums map[string]int strs map[string]string } func (c *termcap) getNum(s string) int { return...
package agent import ( "encoding/json" "fmt" "net/http" "net/http/pprof" "net/url" "regexp" "strconv" "strings" "time" "github.com/armon/go-metrics" "github.com/hashicorp/consul/agent/consul/structs" "github.com/mitchellh/mapstructure" ) // HTTPServer provides an HTTP api for an agent. type HTTPServer st...
package arg import ( "encoding" "encoding/csv" "errors" "fmt" "os" "path/filepath" "reflect" "strings" scalar "github.com/alexflint/go-scalar" ) // to enable monkey-patching during tests var osExit = os.Exit // path represents a sequence of steps to find the output location for an // argument or subcommand...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/enums/bidding_strategy_type.proto package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v1/enums" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/g...
package cluster import ( "bufio" "bytes" "crypto/rsa" "fmt" "io/ioutil" "mikrodock-cli/drivers" "mikrodock-cli/logger" "mikrodock-cli/utils" consulhelpers "mikrodock-cli/utils/consul-helpers" "os" "os/user" "path" "path/filepath" "strconv" "time" "context" "github.com/docker/docker/api/types" "gith...
package interactor import ( "archive/zip" "bytes" "encoding/base64" "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "regexp" "strconv" "strings" "time" ) type ( // ApiType is an interface used for objects that interact with the API. ApiType interface { FromJSON([]byte) (ApiType, error) fmt.St...
package models import ( "encoding/json" "errors" "fmt" "reflect" "sync" "time" "github.com/ninjasphere/go-ninja/api" "github.com/ninjasphere/go-ninja/config" "github.com/ninjasphere/go-ninja/logger" "github.com/ninjasphere/redigo/redis" ) var enableSyncFromCloud = config.Bool(false, "homecloud.sync.fromClo...
// Copyright 2017 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
/* * @Author: gitsrc * @Date: 2022-05-24 14:01:14 * @LastEditors: gitsrc * @LastEditTime: 2022-05-25 13:33:06 * @FilePath: /peerchat/src/p2p.go */ package p2p import ( "context" "crypto/rand" "crypto/sha256" "sync" "sync/atomic" "time" "github.com/ipfs/go-cid" "github.com/libp2p/go-libp2p" connmgr "gi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/errors/billing_setup_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they ...
package spine import ( "context" "io" "os" "os/signal" "runtime/debug" "strconv" "sync" "sync/atomic" "syscall" "time" "github.com/deixis/spine/bg" "github.com/deixis/spine/cache" acache "github.com/deixis/spine/cache/adapter" "github.com/deixis/spine/config" "github.com/deixis/spine/disco" adisco "gi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/resultstore/v2/file_processing_error.proto package resultstore import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ ...
// Copyright 2018 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. // Program skylab_swarming_worker executes a Skylab task via Lucifer. // // skylab_swarming_worker uses lucifer_run_job to actually run the autotest //...
package irc import ( "fmt" "strings" "time" ) type ReplyCode interface { String() string } type StringCode string func (code StringCode) String() string { return string(code) } type NumericCode uint func (code NumericCode) String() string { return fmt.Sprintf("%03d", code) } func NewStringReply(source Iden...
package mongo import ( "context" "errors" "fmt" "net/mail" "net/textproto" "time" "github.com/bounoable/mongoutil/index" "github.com/bounoable/postdog/letter" "github.com/bounoable/postdog/plugin/archive" "github.com/bounoable/postdog/plugin/archive/query" "github.com/google/uuid" "go.mongodb.org/mongo-dr...
package log_test import ( "context" "errors" "sync" "testing" "time" "github.com/jasonsoft/log/v2" "github.com/jasonsoft/log/v2/handlers/discard" "github.com/jasonsoft/log/v2/handlers/memory" "github.com/stretchr/testify/assert" ) type Person struct { Name string Age int } func TestNoHandler(t *testing....
package checkly import ( "context" "encoding/json" "fmt" "io" "log" "net/http" "time" ) // Client is an interface that implements Checkly's API type Client interface { // Create creates a new check with the specified details. // It returns the newly-created check, or an error. Create( ctx context.Context,...
package ovn import ( "fmt" "net" "strconv" "strings" "time" util "github.com/openvswitch/ovn-kubernetes/go-controller/pkg/util" "github.com/sirupsen/logrus" kapi "k8s.io/api/core/v1" ) func (oc *Controller) syncPods(pods []interface{}) { // get the list of logical switch ports expectedLogicalPorts := make(...
// // This file is part of arduino-connector // // Copyright (C) 2017-2020 Arduino AG (http://www.arduino.cc/) // // 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.ap...
// Copyright (c) 2019 <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...
package api import ( "context" "crypto/rand" "encoding/base64" "io" "net/http" "strings" goa "goa.design/goa/v3/pkg" jwt "github.com/dgrijalva/jwt-go" "github.com/spf13/viper" goahttp "goa.design/goa/v3/http" "github.com/fieldkit/cloud/server/common" "github.com/fieldkit/cloud/server/common/logging" ...
package keeper import ( "encoding/json" "fmt" "math/big" "sort" "strings" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" gogoprototypes "github.com/gogo/protobuf/types" "github.com/axelarnetwork/axelar-core/utils" snapshot "github.com/axelarnetwork/axelar-core/x/snapsh...
// Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 package solo import ( "math/rand" "strings" "sync" "time" "github.com/iotaledger/goshimmer/packages/ledgerstate" "github.com/iotaledger/goshimmer/packages/ledgerstate/utxodb" "github.com/iotaledger/goshimmer/packages/ledgerstate/utxoutil" "githu...
package stringer import ( "fmt" "io" "reflect" "strconv" "strings" "time" "github.com/tada/catch/pio" "github.com/tada/dgo/dgo" "github.com/tada/dgo/internal" "github.com/tada/dgo/util" ) const ( commaPrio = iota orPrio xorPrio andPrio typePrio ) type typeToString func(sb *typeBuilder, typ dgo.Type, ...
package mmk import ( "fmt" "log" "os" "os/exec" "strings" "sync" "time" "github.com/alecthomas/participle/v2" "github.com/alecthomas/participle/v2/lexer/stateful" ) var Verbose bool // Exists reports whether the named file or directory exists. func fileExists(name string) bool { if _, err := os.Stat(name)...
/* 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 not use this f...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/product_bidding_category_constant.proto package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" impor...
package store import ( "context" "encoding/hex" "errors" "math" "sync" "time" "github.com/libp2p/go-libp2p-core/host" "github.com/libp2p/go-libp2p-core/network" "github.com/libp2p/go-libp2p-core/peer" libp2pProtocol "github.com/libp2p/go-libp2p-core/protocol" "github.com/libp2p/go-msgio/protoio" "go.uber....
/* 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 2017 <NAME>. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. package amass import ( "context" "errors" "net" "strings" "sync" "time" "github.com/miekg/dns" ) const ( maxNameLen = 253 maxLabelLen = 63 ldhChars = "abcdefgh...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/resources/change_status.proto package resources import ( fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "github.com/kritzware/google-ads-go/enums" math "math" ) // ...
// Code generated by entc, DO NOT EDIT. package ent import ( "fmt" "hope/apps/novel/internal/data/ent/novel" "hope/apps/novel/internal/data/ent/novelchapter" "strings" "time" "entgo.io/ent/dialect/sql" ) // NovelChapter is the model entity for the NovelChapter schema. type NovelChapter struct { config `json:...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: orc8r/cloud/go/services/configurator/mconfig/protos/builder.proto package protos import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/...
package metric import ( "encoding/json" "fmt" "github.com/emirpasic/gods/sets/hashset" "github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/utils" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" log "github.com/sirupsen/logrus" v1 "k8s.io/api/core/v1" "k8s.io/client-go/dynamic" "...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: retry_sqlpkg_dbtask.proto package dbtask import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Reference imports to suppress errors if they are not...
package node import ( "fmt" "os" "os/signal" "strconv" "sync" "syscall" "time" hg "github.com/abassian/huron/src/hashgraph" "github.com/abassian/huron/src/net" "github.com/abassian/huron/src/peers" "github.com/abassian/huron/src/proxy" "github.com/sirupsen/logrus" ) // Node defines a huron node type Node...
package schemabuilder import ( "encoding/json" "errors" "fmt" "github.com/shyptr/graphql/ast" "github.com/shyptr/graphql/internal" "reflect" "strconv" ) // schema builder // // use to build go type into graphql type system // include: // struct->object/input // enum // interface // scalar(int,float,string.....
package data import ( "fmt" . "github.com/smartystreets/goconvey/convey" "math" "reflect" "testing" "time" ) var testCases = []struct { input Value }{ // Blob {Blob("")}, {Blob("hoge")}, {Blob("日本語")}, // Bool {Bool(false)}, {Bool(true)}, // Float {Float(2.34)}, {Float(math.NaN())}, // NaN == NaN is ...
package flist import ( "bufio" "bytes" "context" "crypto/md5" "crypto/rand" "fmt" "io" "io/ioutil" "net/http" "os" "os/exec" "path" "path/filepath" "strings" "syscall" "time" "github.com/pkg/errors" "github.com/rs/zerolog/log" "github.com/threefoldtech/zos/pkg" "github.com/threefoldtech/zos/pkg/en...
package sarah import ( "context" "fmt" "github.com/oklahomer/go-kasumi/logger" "github.com/oklahomer/go-kasumi/worker" "runtime" "strings" "sync" "time" ) var options = &optionHolder{} // Config contains some basic configuration variables for go-sarah. type Config struct { TimeZone string `json:"timezone" y...
/* Copyright 2021 Yndd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribut...
package main import ( "context" "encoding/json" "errors" "flag" "fmt" "html/template" "io/ioutil" "log" "math/rand" "net/http" "os" "path" "strconv" "strings" "time" "database/sql" _ "github.com/go-sql-driver/mysql" "github.com/leemcloughlin/logfile" "golang.org/x/oauth2/google" "gopkg.in/Iwark/s...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: example/server.proto package example import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang....
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.20.1 // protoc v3.11.4 // source: cdx.proto package gowarcpb import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/prot...
package drain import ( "context" "encoding/json" "fmt" "os" "strings" "time" "github.com/golang/glog" daemonconsts "github.com/openshift/machine-config-operator/pkg/daemon/constants" mcfgclientset "github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned" "github.com/openshift/machine-...
// Copyright 2016 The etcd-operator Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
package canaryrouter import ( "fmt" "io/ioutil" "net/http" "net/http/httptest" "net/url" "strconv" "strings" "testing" "github.com/juju/errors" "github.com/tiket-libre/canary-router/canaryrouter/config" ) type restRequest struct { httpHeader http.Header httpMethod string targetURL string bodyPayloa...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: grafeas/v1/build.proto package grafeas import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This i...
// Copyright 2015 Prometheus Team // 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 base import ( "net/url" "os" "testing" "time" "code.gitea.io/gitea/modules/setting" "github.com/Unknwon/i18n" macaroni18n "github.com/go-macaron/i18n" "github.com/stretchr/testify/assert" ) var BaseDate time.Time // time durations const ( DayDur = 24 * time.Hour WeekDur = 7 * DayDur MonthDur ...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import ( "runtime/internal/atomic" "runtime/internal/sys" "unsafe" ) // Keep a cached value to make gotraceback fast, // since we call it o...
package graph import ( "compress/gzip" "crypto/sha256" "fmt" "io" "io/ioutil" "os" "path" "path/filepath" "runtime" "strings" "syscall" "time" "github.com/Sirupsen/logrus" "github.com/docker/distribution/digest" "github.com/docker/docker/autogen/dockerversion" "github.com/docker/docker/daemon/graphdri...
// 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 The Go Cloud Development Kit 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 appli...
// 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...
// SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors // // SPDX-License-Identifier: Apache-2.0 package terraformer import ( "bytes" "context" "encoding/json" "fmt" "io" "os" "os/exec" "os/signal" "strings" "sync" "syscall" "time" "github.com/go-logr/logr" "github...
package alpcbuggery import ( "bufio" "errors" "fmt" "github.com/bnagy/gobuggery" "log" "regexp" "strconv" "strings" ) var portsCreated = regexp.MustCompile(`^Ports created by the process [0-9a-f]+:`) var portsConnected = regexp.MustCompile(`^Ports the process [0-9a-f]+ is connected to:`) var portValid = regex...
package tdameritrade import ( "context" "encoding/json" "fmt" "math" "sort" "strconv" "strings" "time" "github.com/google/go-querystring/query" ) var ( validContractTypes = []string{"CALL", "PUT", "ALL"} validStrategies = []string{"SINGLE", "ANALYTICAL", "COVERED", "VERTICAL", "CALENDAR", "STRANGLE", "...
package solana import ( "context" "fmt" "github.com/certusone/wormhole/bridge/pkg/common" "github.com/certusone/wormhole/bridge/pkg/p2p" gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1" "github.com/certusone/wormhole/bridge/pkg/readiness" "github.com/certusone/wormhole/bridge/pkg/supervisor" ...
/* * MinIO Cloud Storage, (C) 2016-2020 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 applicab...
package gui import ( "fmt" "strings" "sync" "github.com/jesseduffield/generics/set" "github.com/jesseduffield/generics/slices" "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/commands/types/enums" "github.com...
// Copyright 2016 <NAME>. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. // XssMw provides an "auto remove XSS" from all user submitted input. // // It's applied on POST, PUT, and GET Requests only. // // We currently support three Request t...
package knativeserving import ( "context" "fmt" "os" "github.com/openshift-knative/serverless-operator/knative-operator/pkg/common" "github.com/openshift-knative/serverless-operator/knative-operator/pkg/common/telemetry" "github.com/openshift-knative/serverless-operator/knative-operator/pkg/controller/dashboard...
// Copyright (c) 2015, <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package btree implements a B tree. // // According to Knuth's definition, a B-tree of order m is a tree which satisfies the following properties: // - Every nod...
/* the stream package contains a streaming implementation based on the Gopher Academy article by <NAME> - Patterns for composable concurrent pipelines in Go (https://blog.gopheracademy.com/advent-2015/composable-pipelines-improvements/) */ package stream import ( "bufio" "compress/gzip" "errors" "fmt" "github.co...
// Implement CCM as per RFC 3610 - https://tools.ietf.org/html/rfc3610 // Counter with CBC-MAC // // // From: http://www.codeproject.com/Articles/21877/Applied-Crypto-Block-Ciphers // // "FIPS 81 specifies two MACs: CFB and CBC. CBC-MAC, which is based // on DES, is a widely used algorithm to compute a message authenti...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package sagemaker import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) type CreateTrainingJobInput struct { _ struct{} `type:"structure"` // The registry path of the Docker image that...
// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64 && linux // +build mips64,linux package unix const ( SizeofPtr = 0x8 SizeofLong = 0x8 ) type ( _C_long int64 ) t...
// Copyright 2017 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...