text
stringlengths
5.51k
28.1k
package p2p import ( "bytes" "context" "crypto/sha256" "encoding/binary" "fmt" "sync" "time" "github.com/ethereum-optimism/optimism/op-node/eth" "github.com/ethereum/go-ethereum/common" lru "github.com/hashicorp/golang-lru" "github.com/ethereum-optimism/optimism/op-node/rollup" "github.com/ethereum/go-e...
// Copyright 2014 <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 applic...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
package e2e import ( "context" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "os" "path" "path/filepath" "strconv" "strings" "testing" "time" "github.com/cosmos/cosmos-sdk/server" srvconfig "github.com/cosmos/cosmos-sdk/server/config" sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com...
package agent import ( "context" "fmt" "io/ioutil" "os" "path/filepath" "sync" "time" "github.com/buildkite/agent/api" "github.com/buildkite/agent/experiments" "github.com/buildkite/agent/logger" "github.com/buildkite/agent/process" "github.com/buildkite/agent/retry" "github.com/buildkite/shellwords" ) ...
// Copyright 2015 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...
package main import ( "bytes" "encoding/json" "flag" "fmt" "io" "os" "os/exec" "path/filepath" "regexp" "strings" "time" "github.com/hashicorp/go-version" "github.com/sirupsen/logrus" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/te...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: credentials/payload.proto package credentials_pb // import "github.com/BadgeForce/sawtooth-utils/protos/credentials_pb" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are n...
package universe import ( "context" "time" "github.com/apache/arrow/go/arrow/bitutil" "github.com/apache/arrow/go/arrow/memory" "github.com/influxdata/flux" "github.com/influxdata/flux/array" "github.com/influxdata/flux/arrow" "github.com/influxdata/flux/codes" "github.com/influxdata/flux/execute" "github.c...
/* 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 wetalk 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 k8gb Contributors. 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, s...
// Copyright 2020 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 licenses detects licenses and determines whether they are redistributable. // The functions in this package do not return errors; instead, they log a...
package reindexer import ( "errors" "fmt" "log" "net/url" "reflect" "strconv" "strings" "sync" "time" "github.com/restream/reindexer/bindings" "github.com/restream/reindexer/cjson" "github.com/restream/reindexer/dsl" // _ "github.com/restream/reindexer/bindings/builtinserver" _ "github.com/restream/rei...
package main import ( "bytes" "errors" "fmt" "log" "os" "os/exec" "path/filepath" "regexp" "strings" "sync" "github.com/tidwall/gjson" ) var LOCKFILE_DIR string = "gen_lockfile" var DIR_MUTEX = &sync.Mutex{} var MAX_V_DEPS = 20 func getEnvVar() (*config, error) { conf := config{} // token, org, and wo...
package destinations /** * Panther is a scalable, powerful, cloud-native SIEM written in Golang/React. * Copyright (C) 2020 Panther Labs Inc * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software F...
package core import ( "bufio" "bytes" "encoding/json" "fmt" "io/ioutil" "net/http" "net/http/httputil" "net/url" "regexp" "strconv" "strings" "time" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" log "github.com/sirupsen/logrus" "github.com/spf13/viper" ) var ( // https://r...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: config/devcommon.proto package config import ( fmt "fmt" proto "github.com/golang/protobuf/proto" common "github.com/lf-edge/eve/api/go/common" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal v...
// Copyright 2017 - 2018 ibelie, <NAME>, Joungtao. All rights reserved. // Use of this source code is governed by The MIT License // that can be found in the LICENSE file. package tygo import ( "bytes" "fmt" "os" "path" "sort" "strconv" "strings" "go/build" "io/ioutil" ) const TEMP_PREFIX = "tmp" var ( L...
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package main import ( "errors" "fmt" "io/ioutil" "os" "os/signal" "runtime" "runtime/debug" "runtime/pprof" "syscall" "time" "golang.org/x/net/context" "github.com/keybase/client/go/c...
/* * * Copyright © 2020 Dell Inc. or its subsidiaries. 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 * * Unle...
package release import ( "bytes" "context" "crypto/sha256" "crypto/sha512" "fmt" "io" "io/ioutil" "net/http" "os" "os/exec" "path/filepath" "regexp" "strings" "github.com/Masterminds/semver" "github.com/ekristen/cast/pkg/config" "github.com/ekristen/cast/pkg/git" "github.com/ekristen/cast/pkg/utils" ...
package s3site import ( "crypto/tls" "errors" "fmt" "log" "net/http" "os" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-...
// 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 gosqlite /* #include <sqlite3.h> #include <stdlib.h> void goSqlite3Trace(sqlite3 *db, void *udp); void goSqlite3Profile(sqlite3 *db, void *udp); int g...
// Package ad9910 provides a structure to mirror the AD9910 DDS chip. package ad9910 import ( "fmt" "math" "github.com/bodokaiser/approx" "github.com/bodokaiser/houston/device/dds" "github.com/bodokaiser/houston/register/dds/ad9910" ) // AD9910 mirrors a AD9910 DDS device as described by the datasheet. type AD9...
// Copyright (C) 2019 Cisco Systems 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 agr...
package driver import ( "fmt" "log" "reflect" "strconv" "strings" "time" "github.com/Shopify/go-lua" "github.com/stardustapp/dustgo/lib/base" "github.com/stardustapp/dustgo/lib/extras" "github.com/stardustapp/dustgo/lib/inmem" "github.com/stardustapp/dustgo/lib/skylink" "github.com/stardustapp/dustgo/lib...
// +build !windows package nfqdatapath import ( "context" "fmt" "math/rand" "net" "strconv" "syscall" "time" "github.com/aporeto-inc/gopkt/layers" "github.com/aporeto-inc/gopkt/packet/ipv4" "github.com/aporeto-inc/gopkt/packet/raw" "github.com/aporeto-inc/gopkt/packet/tcp" "github.com/aporeto-inc/gopkt/r...
package chain import ( "bytes" "errors" "fmt" "time" "github.com/aergoio/aergo/consensus" "github.com/aergoio/aergo/internal/enc" "github.com/aergoio/aergo/message" "github.com/aergoio/aergo/state" "github.com/aergoio/aergo/types" ) const ( initBlkCount = 20 ) var ( reorgKeyStr = "_reorg_marker_" reorgK...
// Copyright 2018 the u-root 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 bmc import ( "bytes" "crypto/ecdsa" "crypto/elliptic" crand "crypto/rand" "crypto/tls" "crypto/x509" "encoding/binary" "encoding/pem" "fmt"...
// Copyright 2015 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...
// Townsourced // Copyright 2015 <NAME>. All rights reserved. package web import ( "bytes" "compress/gzip" "crypto/tls" "encoding/json" "fmt" "io" "io/ioutil" "log" "net/http" "net/url" "os" "path" "path/filepath" "strings" "sync" "text/template" "time" "git.townsourced.com/townsourced/go-zopfli/zo...
// Copyright 2020 The NATS Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package v1 import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Creates an instance resource in the specified project using the data ...
// Copyright 2016 The LUCI Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package main import ( "flag" "io" "os" "path/filepath" "time" "golang.org/x/net/context" "infra/libs/infraenv" "github.com/luci/luc...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/landing_page_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" _ ...
// Copyright © 2018 DigitalGlobe // // 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, di...
// Copyright 2019 HAProxy Technologies // // 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 agre...
/* URL: https://atcoder.jp/contests/arc091/tasks/arc091_c */ package main import ( "bufio" "errors" "fmt" "io" "math" "os" "sort" "strconv" ) /********** FAU standard libraries **********/ //fmt.Sprintf("%b\n", 255) // binary expression /********** I/O usage **********/ //str := ReadString() //i := ReadI...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package akamai import ( "context" "reflect" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use the `GtmDatacenter` ...
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
// Copyright 2020 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, ...
package service import ( "context" "crypto/rand" "encoding/json" "errors" "fmt" "io/ioutil" "os" "path/filepath" "sync" "time" "github.com/ipfs/go-cid" core "github.com/libp2p/go-libp2p-core/peer" "github.com/oklog/ulid/v2" pb "github.com/textileio/bidbot/gen/v1" "github.com/textileio/bidbot/lib/auctio...
package clui import ( "flag" "fmt" "os" "strings" "github.com/pkg/errors" "github.com/spoke-d/clui/autocomplete" "github.com/spoke-d/clui/autocomplete/fsys" "github.com/spoke-d/clui/autocomplete/install" "github.com/spoke-d/clui/commands" "github.com/spoke-d/clui/flagset" "github.com/spoke-d/clui/group" "...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/customer_negative_criterion.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/googl...
/*package geom contains routines for computing geometric quantities. Contains implementations of algorithms described in Platis & Theoharis, 2015 as well as Schneider & Eberly. The calling signatures might be more convoluted than they have to be because I was too worried about memory consumption when I started it. I ...
package main import ( "bytes" "context" "crypto/ecdsa" "encoding/base64" "encoding/binary" "encoding/json" "fmt" ethchain "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/keystore" "github.com/ethereum/go-ethereum/common" "github.com...
// Copyright (c) 2016 ~ 2018, <NAME>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
package beacon import ( "bytes" "encoding/binary" "fmt" "sort" "github.com/tendermint/tendermint/abci/types" beacon "github.com/oasisprotocol/oasis-core/go/beacon/api" "github.com/oasisprotocol/oasis-core/go/common/cbor" "github.com/oasisprotocol/oasis-core/go/common/crypto/signature" "github.com/oasisproto...
// Copyright (c) 2016 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
/* 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 2019 The Goma Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* Binary goma_replay is a simple goma client for load testing etc. "dump exec_req" on goma client, and run $ goma_replay -n 100 -l 100 */ package main i...
package gads import ( "encoding/xml" "fmt" ) // DayOfWeek: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY // StartHour: 0~23 inclusive // StartMinute: ZERO, FIFTEEN, THIRTY, FORTY_FIVE // EndHour: 0~24 inclusive // EndMinute: ZERO, FIFTEEN, THIRTY, FORTY_FIVE type AdScheduleCriterion struct { Id ...
package types import ( "time" "github.com/jmoiron/sqlx" "github.com/shopspring/decimal" ) type Account struct { ID int `json:"id"` Name string `json:"name" db:"name"` Institution string `json:"institution" db:"institution"` IgnoreTransactions ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc (unknown) // source: aserto/api/v1/account.proto package api import ( _ "github.com/aserto-dev/go-grpc/aserto/options/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang...
package fare_pricepnrwithbookingclass_old import ( "encoding/xml" "github.com/tmconsulting/amadeus-golang-sdk/formats" ) type FarePricePNRWithBookingClassOld struct { XMLName xml.Name `xml:"http://xml.amadeus.com/TPCBRQ_12_4_1A Fare_PricePNRWithBookingClass"` // PNR record locator information for this transacti...
package main import ( "fmt" "io/ioutil" "path" "strings" "github.com/jf-tech/console/cgame" "github.com/jf-tech/console/cgame/assets" "github.com/jf-tech/console/cterm" "github.com/jf-tech/console/cutil" "github.com/jf-tech/console/cwin" "github.com/jf-tech/console/cwin/ccomp" "github.com/jf-tech/go-coreli...
package parser import ( "bytes" "fmt" "math/rand" "sort" "strings" "time" ) const ( clusterLayoutTypeStandard = "Standard" clusterLayoutTypeAdvanced = "Advanced" ) const ( shardDefinitionTypeReplicasCount = "ReplicasCount" shardDefinitionTypeReplicas = "Replicas" ) const ( deploymentScenarioDefault ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: dataplaneregistrar.proto package dataplaneregistrar import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import common "github.com/ligato/networkservicemesh/pkg/nsm/apis/common" import ( context "golang.org/x/net/context" gr...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: schema.proto package events import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-...
/* 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 The Camlistore 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 ft8xx import ( "github.com/ziutek/bitbang/spi" ) // Memory Commands. const ( MEM_WRITE = 0x80 MEM_READ = 0x00 ) // Memory Map Addresses. const ( RAM_CMD = 0x108000 RAM_DL = 0x100000 RAM_G = 0x000000 RAM_PAL = 0x102000 RAM_REG = 0x102400 ) // Register Addresses. const ( REG_CLOCK = 0...
// Copyright (c) 2018-2019,2021, AT&T Intellectual Property. // All rights reserved. // // Copyright (c) 2015-2017 by Brocade Communications Systems, Inc. // All rights reserved. // // SPDX-License-Identifier: MPL-2.0 // This file contains the XpathNode interface along with various // helper functions that operate on ...
// Defines all formatters available to gobgpdump, and convenience // functions for formatters. // Current formatters: // -TextFormatter // -JSONFormatter // -IdentityFormatter - Rename to MRTFormatter? // These both need new configuration names // -UniquePrefixList // -UniquePrefixSeries package gobgpdump import ( ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: v8platform/serialize/v1/assignments.proto package serializev1 import ( _ "github.com/v8platform/protoc-gen-go-ras/plugin/ras/encoding" protoreflect "google.golang.org/protobuf/reflect/protore...
package src import ( "errors" "fmt" "log" "os" "path/filepath" "strings" "sync" "sourcegraph.com/sourcegraph/srclib/buildstore" "sourcegraph.com/sourcegraph/srclib/dep" "sourcegraph.com/sourcegraph/srclib/graph" "sourcegraph.com/sourcegraph/srclib/grapher" "sourcegraph.com/sourcegraph/srclib/unit" "gith...
package main import ( "encoding/binary" "fmt" "io/ioutil" "log" "os" "reflect" "strconv" "strings" "time" "github.com/boltdb/bolt" "github.com/vaxx99/eload/cnf" ) type Fields struct { FN string FT string FS int } type esrec struct { RECNUMB string STNAME string LINETYPE string LINECODE ...
package dao import ( "fmt" "github.com/jinzhu/gorm" "kr/paasta/monitoring/paas/model" "kr/paasta/monitoring/paas/util" "strconv" ) type AlarmDao struct { txn *gorm.DB } func GetAlarmDao(txn *gorm.DB) *AlarmDao { return &AlarmDao{ txn: txn, } } //Dao func (h *AlarmDao) GetAlarmList(request model.AlarmReque...
// Code generated by protoc-gen-go. // source: flow/flow.proto // DO NOT EDIT! /* Package flow is a generated protocol buffer package. It is generated from these files: flow/flow.proto It has these top-level messages: FlowEndpointStatistics FlowEndpointsStatistics FlowStatistics Flow */ package flow import pro...
package typing import ( "fmt" "github.com/XrXr/alang/frontend" "github.com/XrXr/alang/ir" "github.com/XrXr/alang/parsing" "reflect" ) type ProcRecord struct { Return *TypeRecord Args []TypeRecord IsForeign bool } type EnvRecord struct { Procs map[string]ProcRecord Types map[string]TypeRecord } typ...
// Package pods pretends to run pods. It is basically a minimal implementation of the scheduler (it // nominates itself to run all pods) and the kubelet. package pods import ( "bytes" "context" "errors" "fmt" "log" "time" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apim...
// Copyright 2020 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, ...
package loadtest import ( "fmt" "path" "sync" "time" "github.com/tendermint/networks/internal/logging" "github.com/AsynkronIT/protoactor-go/actor" "github.com/AsynkronIT/protoactor-go/remote" "github.com/tendermint/networks/pkg/loadtest/messages" ) // Master is an actor that coordinates and collects informa...
// Code generated by protoc-gen-go. // source: msp/mspconfig.proto // DO NOT EDIT! package msp 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 // MSPC...
// SPDX-License-Identifier: Unlicense OR MIT package app import ( "errors" "fmt" "image" "time" "github.com/p9c/p9/pkg/gel/gio/io/event" "github.com/p9c/p9/pkg/gel/gio/io/pointer" "github.com/p9c/p9/pkg/gel/gio/io/profile" "github.com/p9c/p9/pkg/gel/gio/io/router" "github.com/p9c/p9/pkg/gel/gio/io/system" ...
// Copyright 2017 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 2018 The CUE 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 apisrv provides an implementation of the gRPC server defined in ../../../api/protobuf-spec/mmlogic.proto. Most of the documentation for what these calls should do is in that file! Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
// Copyright 2015 The Vanadium 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 profilesreader provides support for reading and processing jiri profiles. package profilesreader import ( "bytes" "fmt" "os" "sort" "strc...
// Copyright (c) 2018 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...
package flaggy import ( "fmt" "net" "os" "testing" "time" ) // debugOff makes defers easier func debugOff() { DebugMode = false } func TestGlobs(t *testing.T) { for _, a := range os.Args { fmt.Println(a) } } func TestParseArgWithValue(t *testing.T) { testCases := make(map[string][]string) testCases["-f...
/* * Minio Go Library for Amazon S3 Compatible Cloud Storage (C) 2015, 2016, 2017 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/LIC...
package querier import ( "context" "path" "path/filepath" "sort" "strings" "sync" "time" "github.com/go-kit/log" "github.com/go-kit/log/level" "github.com/oklog/ulid" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" tsdb_e...
// Code generated from Mql.g4 by ANTLR 4.7.1. DO NOT EDIT. package parser import ( "fmt" "unicode" "github.com/antlr/antlr4/runtime/Go/antlr" ) // Suppress unused import error var _ = fmt.Printf var _ = unicode.IsLetter var serializedLexerAtn = []uint16{ 3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 2288...
// Copyright 2016 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
package rest import ( "fmt" "github.com/eyebluecn/tank/code/core" "github.com/eyebluecn/tank/code/tool/dav" "github.com/eyebluecn/tank/code/tool/dav/xml" "github.com/eyebluecn/tank/code/tool/result" "github.com/eyebluecn/tank/code/tool/util" "net/http" "net/url" "path" "regexp" "strings" ) /** * * WebDav...
// Copyright 2021 The SecureUnionID 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 require...
// Package e2e implements the Oasis e2e test scenarios. package e2e import ( "bytes" "crypto/sha256" "encoding/json" "fmt" goHash "hash" "io" "io/ioutil" "os" "path/filepath" flag "github.com/spf13/pflag" "github.com/oasisprotocol/oasis-core/go/common/logging" "github.com/oasisprotocol/oasis-core/go/cons...
/* * Copyright 2017 <NAME>, Inc. and Contributors * * 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 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
package networkaddonsconfig import ( "context" "fmt" "log" "os" "reflect" "strings" "time" osv1 "github.com/openshift/api/operator/v1" osnetnames "github.com/openshift/cluster-network-operator/pkg/names" "github.com/pkg/errors" appsv1 "k8s.io/api/apps/v1" v1 "k8s.io/api/core/v1" apierrors "k8s.io/apimach...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: envoy/extensions/common/matching/v3/extension_matcher.proto package envoy_extensions_common_matching_v3 import ( _ "github.com/cncf/xds/go/udpa/annotations" v3 "github.com/envoyproxy/go-contr...
// Copyright 2016 <NAME>. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package controller import ( "encoding/json" "fmt" "io" "log" "sync" "time" "github.com/maruel/anim1d" "github.com/maruel/interrupt" "github.co...
/* * gimme-bitcoin-address v1.0 - <NAME> - vsergeev at gmail * * Bitcoin keypair generator written in Go. See README.md for more information. * MIT licensed. */ package btcaddr import ( "crypto/rand" "crypto/sha256" "fmt" "log" "math/big" "os" "time" "code.google.com/p/go.crypto/ripemd160" ) /*********...
package client import ( "fmt" "os" "sync" "time" log "github.com/cihub/seelog" "github.com/HailoOSS/protobuf/proto" "github.com/nu7hatch/gouuid" "github.com/streadway/amqp" "github.com/HailoOSS/platform/circuitbreaker" "github.com/HailoOSS/platform/errors" pe "github.com/HailoOSS/platform/proto/error" tr...
/* Copyright 2019 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright 2021 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...
/* MIT License Copyright 2016 Comcast Cable Communications Management, 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, cop...
/* Copyright The containerd 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...