text
stringlengths
5.51k
28.1k
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/automl/v1/prediction_service.proto package automl import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/genproto/googleapis...
package e2e_test import ( "context" "encoding/json" "fmt" "log" "math/rand" "os" "os/exec" "regexp" "strings" "time" "github.com/GoogleContainerTools/skaffold/pkg/skaffold/schema/v1alpha2" skube "github.com/GoogleContainerTools/skaffold/pkg/skaffold/kubernetes" "github.com/solo-io/go-utils/kubeutils" "...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: currency.proto package currency 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/grpc/status" math "math" ) // Reference imports...
/* * Copyright 2016 <NAME>, 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 // result.go is used to generate the query output string import ( "context" "fmt" "reflect" "strings" "github.com/andrewwphillips/eggql/internal/field" "github.com/dolmen-go/jsonmap" "github.com/vektah/gqlparser/v2/ast" ) const ( AllowIntrospection = true AllowConcurrentQueries = tr...
// Generated by eos-abigen version master package eosio import ( "encoding/json" base "github.com/maxifom/eos-abigen/pkg/base" ) type AbiHash struct { Owner string `json:"owner"` Hash string `json:"hash"` } type Activate struct { FeatureDigest string `json:"feature_digest"` } type Authority struct { Threshol...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.13.0 // source: catalog-common/entities.proto package grpc_catalog_common_go import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoi...
/* Copyright 2019 The KubeSphere 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 © 2018 Banzai Cloud // // 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 ado type CursorTypeEnum int32 const ( OpenUnspecified CursorTypeEnum = -1 OpenForwardOnly CursorTypeEnum = 0 OpenKeyset CursorTypeEnum = 1 OpenDynamic CursorTypeEnum = 2 OpenStatic CursorTypeEnum = 3 ) type CursorOptionEnum int32 const ( HoldRecords CursorOptionEnum = 0x100 MovePrevi...
package zuc // ref: https://www.gsma.com/security/wp-content/uploads/2019/05/eea3eia3zucv16.pdf var sbox0 = [256]byte{ 0x3e, 0x72, 0x5b, 0x47, 0xca, 0xe0, 0x00, 0x33, 0x04, 0xd1, 0x54, 0x98, 0x09, 0xb9, 0x6d, 0xcb, 0x7b, 0x1b, 0xf9, 0x32, 0xaf, 0x9d, 0x6a, 0xa5, 0xb8, 0x2d, 0xfc, 0x1d, 0x08, 0x53, 0x03, 0x90, 0x4d,...
package googleiapclient import ( "bytes" "crypto/rsa" "crypto/x509" "encoding/base64" "encoding/json" "encoding/pem" "fmt" "io/ioutil" "net/http" "os" "sync" "time" log "github.com/zdannar/flogger" jose "gopkg.in/square/go-jose.v2" "gopkg.in/square/go-jose.v2/jwt" ) const TOKEN_URL = "https://www.goog...
package main import ( "crypto/md5" "errors" "fmt" "io" "io/ioutil" "os" "os/exec" "os/user" "path" "path/filepath" "reflect" "regexp" "strings" "time" "github.com/aws/aws-sdk-go/service/ssm" "github.com/blang/semver" "github.com/coveo/gotemplate/collections" "github.com/gruntwork-io/terragrunt/aws_h...
// Command grpcurl makes gRPC requests (a la cURL, but HTTP/2). It can use a supplied descriptor // file, protobuf sources, or service reflection to translate JSON or text request data into the // appropriate protobuf messages and vice versa for presenting the response contents. package ggrpcurl import ( "bytes" "fm...
// +build exclude_except_for_go_mod package main import ( "context" "errors" "flag" "fmt" "io" "math/rand" "net" "os" "sort" "strings" "sync" "time" "github.com/miekg/dns" "golang.org/x/net/idna" "example.org/private/selfbuild/golib" ) const DEF_DNS_TIMEOUT = 4 * time.Second const DEF_DNS_ATTEMPTS =...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.12.3 // source: service.proto package demopackage import ( context "context" reflect "reflect" sync "sync" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/anno...
// Copyright 2021 The incite Authors. All rights reserved. // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. package incite import ( "encoding" "encoding/json" "errors" "fmt" "reflect" "strconv" "strings" "time" ) // Unmarshal converts CloudWatch Logs In...
package main import ( "bufio" "encoding/csv" "fmt" "go-hep.org/x/hep/hplot" "golang.org/x/image/colornames" "gonum.org/v1/gonum/stat" "gonum.org/v1/plot" "gonum.org/v1/plot/plotter" "gonum.org/v1/plot/plotutil" "gonum.org/v1/plot/vg" "gonum.org/v1/plot/vg/draw" "gonum.org/v1/plot/vg/vgpdf" "log" "os" "s...
// 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...
package jsonq import ( "github.com/Aoi-hosizora/ahlib/xslice" "github.com/Aoi-hosizora/ahlib/xtesting" "log" "testing" "unsafe" ) var objDoc = ` { "a": "b", "c": { "e": 0, "f": [ {"g": 123, "h": 0.3, "i": "abc"}, {"g": 456, "h": 0.6, "i": "def"}, {"g": 789, "h": 0.9, "i": "ghi"} ], "j": { "...
package yos import ( "crypto/md5" "crypto/sha256" "encoding/base64" "encoding/hex" "encoding/xml" "fmt" "hash" "io" "io/ioutil" "net/http" "net/url" "regexp" "strconv" "strings" "sync" "time" ) func UTCNow() time.Time { return time.Now().UTC() } const ( _ = 1.0 << (10 * iota) KB MB GB TB PB E...
// Copyright 2021 OTA Insight Ltd // // 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 tracer import ( "container/heap" "image" "image/color" "math" "sort" "sync/atomic" ) type BlobMatcher interface { MatchStrength(x, y int, im *image.RGBA) float64 EraseMatch(x, y int, im *image.RGBA) } type NodeConfig struct { Matcher BlobMatcher StrengthThreshold float64 MaxCount ...
// Package exporter provides a collector for ClamAV daemon stats. package exporter import ( "bytes" "errors" "fmt" "io/ioutil" "net" "net/url" "regexp" "strconv" "strings" "sync" "time" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/prometheus/client_golang/prometheus" ) cons...
package main import ( "fmt" "os" "path/filepath" "strings" "github.com/containers/buildah" "github.com/containers/buildah/imagebuildah" buildahcli "github.com/containers/buildah/pkg/cli" "github.com/containers/buildah/pkg/parse" "github.com/containers/common/pkg/config" "github.com/containers/libpod/cmd/pod...
// Copyright (c) 2018 The Ecosystem Authors // Distributed under the MIT software license, see the accompanying // file COPYING or or or http://www.opensource.org/licenses/mit-license.php /* * Copyright (c) 2013-2016 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpos...
// Copyright 2018 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 (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...
// Copyright 2015 The etcd 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 t...
package iter import ( "container/heap" "fmt" "io" "time" "github.com/grafana/loki/pkg/helpers" "github.com/grafana/loki/pkg/logproto" ) // EntryIterator iterates over entries in time-order. type EntryIterator interface { Next() bool Entry() logproto.Entry Labels() string Error() error Close() error } // ...
// Copyright (c) 2012, <NAME>, SoundCloud Ltd. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Source code and contact info at http://github.com/LIVEauctioneers/amqp // +build ignore package main import ( "bytes" "encoding/xml" "errors" "fmt" "io/ioutil...
// Copyright 2018 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" "context" "crypto/tls" "crypto/x509" "encoding/json" "encoding/pem" "flag" "fmt" "io" "io/ioutil" "log" "mime" "net" "net/http" "net/http/httptrace" "net/url" "os" "path" "reflect" "runtime" "sort" "strconv" "strings" "time" "github.com/fatih/color" "golang.org/...
package schema_test import ( "context" "strconv" "strings" "testing" "unicode" "github.com/andrewwphillips/eggql" "github.com/andrewwphillips/eggql/internal/schema" ) type ( // QueryString and the subsequent types here are used for the type of the data field of the // testData map (below) used for table-dri...
package test import ( "bytes" "fmt" "io/ioutil" "os" "sort" "strconv" "strings" "time" "github.com/jung-kurt/gofpdf" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/wcharczuk/go-chart" "github.com/wcharczuk/go-chart/drawing" ) const ( MARGECELL = 2 // marge top/bottom of cell ...
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
// 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 tooldata import ( "encoding/xml" "fmt" "os" "path/filepath" "sort" "strings" "v.io/jiri" "v.io/jiri/project" "v.io/x/lib/envvar" "v.io...
package http2 import ( "bufio" "bytes" "errors" "fmt" "io" "log" "net" "os" "strconv" "sync" "sync/atomic" "time" "github.com/valyala/fasthttp" ) type Server struct { s *fasthttp.Server } type serverConn struct { c net.Conn h fasthttp.RequestHandler br *bufio.Reader bw *bufio.Writer enc *HPACK ...
// Copyright 2019 The Kubernetes Authors. // SPDX-License-Identifier: Apache-2.0 package settersutil import ( "fmt" "io/ioutil" "os" "regexp" "strings" "github.com/go-openapi/spec" "sigs.k8s.io/kustomize/kyaml/errors" "sigs.k8s.io/kustomize/kyaml/fieldmeta" "sigs.k8s.io/kustomize/kyaml/kio" "sigs.k8s.io/ku...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/resultstore/v2/configured_target.proto package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import duration "github.c...
// Copyright 2019 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...
// Code generated from Expr.g4 by ANTLR 4.9.2. DO NOT EDIT. package parser // Expr import ( "fmt" "reflect" "strconv" "github.com/antlr/antlr4/runtime/Go/antlr" ) // Suppress unused import errors var _ = fmt.Printf var _ = reflect.Copy var _ = strconv.Itoa var parserATN = []uint16{ 3, 24715, 42794, 33075, 475...
/* Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
package main import ( "log" "sort" crypto_rand "crypto/rand" "encoding/binary" "math" "math/rand" "encoding/json" "sync" ) const ( tileInMountNumber = 136 tileInDistributionClusterNumber = 4 tileInHandNumber = 13 tileIdNone = -1 playerNumber = 4 playerIdNone = -1 roundNumber = 4 pointStart = 25000 co...
package main import ( "bytes" "encoding/xml" "fmt" "go/format" "go/token" "io/ioutil" "os" "strings" "text/template" "go.cld.moe/vk/generator/util" ) const CONFIG_DIR = ".." const CONFIG_PACKAGE = "vk" const CONFIG_REGISTERY_FILE = "vk.xml" var sprintf = fmt.Sprintf var printf = fmt.Printf var sscanf = fm...
package server import ( //"bytes" "fmt" "go/build" "io" "net/http" "strings" "sync" "go101.org/golds/internal/server/translations" ) type PageOutputOptions struct { GoldsVersion string PreferredLang string NoStatistics bool NoIdentifierUsesPages bool NotCollectUnexporteds bool AllowNetwor...
//go:generate stringer -linecomment=false -output=generated_test.go -type=pStage,ItemFL,LintFL // Copyright 2019 <NAME>, OHIR-RIPE. All rights reserved. // Use of this source code is governed by a MIT license that can be // found in the LICENSE file. package octok import ( "bytes" "fmt" ) // bullets ➊ ➋ ➌ ➍ ➎ ➏ ➐...
// Copyright 2021 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...
package main import ( "bytes" "flag" "fmt" "go/format" "html/template" "log" "os" "sort" "strings" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/reflect/protoregistry" "github.com/kumahq/kuma/api/mesh" _ "github.com/kumahq/kuma/api/mesh...
package main import ( "bufio" "bytes" "context" "encoding/json" "fmt" "html/template" "io/ioutil" "net/http" "os" "os/exec" "path/filepath" "strings" "time" log "github.com/Sirupsen/logrus" "github.com/fatih/structs" "github.com/gorilla/mux" "github.com/malice-plugins/pkgs/database" "github.com/mali...
/* Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
package serf import ( "bufio" "encoding/json" "fmt" "log" "math/rand" "net" "os" "strconv" "strings" "time" "github.com/armon/go-metrics" "github.com/hashicorp/serf/coordinate" ) /* Serf supports using a "snapshot" file that contains various transactional data that is used to help Serf recover quickly an...
/* 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, ...
/* Purpose: - Printmaps build service Description: - Build service to build large printable maps. Releases: - 0.1.0 - 2017/05/23 : initial release (beta version) - 0.1.1 - 2017/05/26 : security enhancements - 0.1.2 - 2017/08/08 : more output for unsuccessful commands - 0.1.3 - 2017/08/10 : bug concerning parallel Chd...
package main import ( "context" "fmt" "math/rand" "os" "os/signal" "strconv" "strings" "sync" "sync/atomic" "syscall" "time" "bufio" "encoding/json" "github.com/HdrHistogram/hdrhistogram-go" "github.com/alecthomas/kingpin" "github.com/fatih/color" "github.com/miekg/dns" "github.com/olekukonko/tablew...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. package main import ( "fmt" "os" "path/filepath" "strings" "gonum.org/v1/gonum/graph" "gonum.org/v1/gonum/graph/traverse" "gopkg.in/alecthomas/kingpin.v2" "microsoft.com/pkggen/imagegen/configuration" "microsoft.com/pkggen/imagegen...
// Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
package chunk import ( "encoding/binary" "encoding/xml" "errors" "fmt" ) // IXMLBext for Broadcast Wave Format (BWF) information. type IXMLBext struct { Description string `xml:"BWF_DESCRIPTION,omitempty"` Originator string `xml:"BWF_ORIGINATOR,omitempty"` OriginatorReference string `xml:"B...
package platformclientv2 import ( "time" "github.com/leekchan/timeutil" "encoding/json" "strconv" "strings" ) // Recording type Recording struct { // Id - The globally unique identifier for the object. Id *string `json:"id,omitempty"` // Name Name *string `json:"name,omitempty"` // ConversationId Conve...
// Copyright 2021 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 2019 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
package types import ( "fmt" "io/ioutil" "os" "regexp" "strconv" "strings" "github.com/pkg/errors" "github.com/sirupsen/logrus" "gopkg.in/yaml.v2" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" "github.com/longhorn/longhorn-manager/util" ) const ( EnvDefaultSettingPath = "DEFAULT_SETTI...
// Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package v1alpha1api20210101storage import ( "github.com/Azure/azure-service-operator/v2/pkg/genruntime" "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" ...
package fda // A DeviceSafetyReport reflects a report filed about one or more devices type DeviceSafetyReport struct { AdverseEvent string `json:"adverse_event_flag"` ProductProblem string `json:"product_problem_flag"` EventDate string `json:"date_of_event"` DateRep...
// package highlighting is a extension for the goldmark(http://github.com/yuin/goldmark). // // This extension adds syntax-highlighting to the fenced code blocks using // chroma(https://github.com/alecthomas/chroma). package highlighting import ( "bytes" "io" "strconv" "strings" "github.com/yuin/goldmark" "gith...
package toml import ( "fmt" "log" "reflect" "testing" "time" ) func init() { log.SetFlags(0) } func TestDecodeSimple(t *testing.T) { var testSimple = ` age = 250 andrew = "gallant" kait = "brady" now = 1987-07-05T05:45:00Z yesOrNo = true pi = 3.14 colors = [ ["red", "green", "blue"], ...
package main import ( "encoding/json" "fmt" "log" "net/http" "strings" "github.com/lindsaygelle/nook" "github.com/lindsaygelle/nook/character/alligator" "github.com/lindsaygelle/nook/character/alpaca" "github.com/lindsaygelle/nook/character/anteater" "github.com/lindsaygelle/nook/character/axolotl" "github...
package driver import ( "context" "fmt" "os" "path/filepath" "strconv" "strings" "sync" dv "github.com/docker/go-plugins-helpers/volume" co "github.com/Datera/docker-driver/pkg/common" udc "github.com/Datera/go-udc/pkg/udc" dc "github.com/Datera/datera-csi/pkg/client" ) const ( DefaultSize = 16 ...
// 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...
// SPDX-FileCopyrightText: 2021 iteratec GmbH // // SPDX-License-Identifier: Apache-2.0 package controllers import ( "bytes" "context" "fmt" "regexp" "strings" "text/template" "time" "github.com/Masterminds/sprig" "github.com/go-logr/logr" configv1 "github.com/secureCodeBox/secureCodeBox/auto-discovery/kub...
// Copyright 2021 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 postgres import ( "bytes" "fmt" "log" "text/template" // Let's import the pg packages here since we are obviously using the postgres driver _ "github.com/jackc/pgx/stdlib" // Let's import the pg packages here since we are obviously using the postgres driver _ "github.com/lib/pq" "github.com/jmoiron...
package panorama import ( "fmt" "math" "github.com/gotk3/gotk3/cairo" "github.com/gotk3/gotk3/gtk" "github.com/ftl/hamradio/bandplan" "github.com/ftl/panacotta/core" ) type rect struct { top, left, bottom, right float64 } func (r rect) width() float64 { return math.Abs(r.left - r.right) } func (r rect) he...
/* Copyright 2015-2018 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
package parquet import ( "fmt" "io" "reflect" "sort" "github.com/segmentio/parquet-go/compress" "github.com/segmentio/parquet-go/deprecated" "github.com/segmentio/parquet-go/encoding" "github.com/segmentio/parquet-go/format" ) // Column represents a column in a parquet file. // // Methods of Column values ar...
// Copyright 2019 The Vearch Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
// Copyright 2017 The Bazel 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 syntax import ( "bytes" "fmt" "go/build" "io/ioutil" "path/filepath" "testing" ) func scan(src interface{}) (tokens string, err error) { sc,...
package gcputils import ( "context" "encoding/json" "errors" "fmt" "io" "log" "net/http" "os" "runtime" "strings" "cloud.google.com/go/compute/metadata" "cloud.google.com/go/logging" "github.com/treeder/gotils/v2" "google.golang.org/api/option" ) var ( std *log.Logger onGCE bool onCloudR...
package gogen import ( "fmt" "io" "strings" "github.com/antlr/antlr4/runtime/Go/antlr" "github.com/sirkon/gotify" "github.com/sirkon/ldetool/internal/generator" "github.com/sirkon/ldetool/internal/generator/gogen/internal/srcobj" ) // Name provides a link between token and string type Name struct { name st...
package provisioner import ( "code.cloudfoundry.org/bytefmt" "errors" "fmt" "github.com/golang/glog" "github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/controller" "github.com/nmaupu/freenas-provisioner/freenas" "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go...
//go:build e2e // +build e2e package e2e import ( "bytes" "context" "crypto/tls" "encoding/json" "encoding/pem" "fmt" "io" "math/rand" "net/http" "os" "reflect" "testing" "time" ibclient "github.com/infobloxopen/infoblox-go-client" "github.com/miekg/dns" "sigs.k8s.io/controller-runtime/pkg/client" ...
// 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...
package main import ( "bytes" "context" "encoding/json" "flag" "fmt" "io" "io/ioutil" stdlog "log" "net/http" "net/http/pprof" "net/url" "os" "os/signal" "strconv" "strings" "syscall" "time" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/gogo/protobuf/proto" "github.com...
package converter import ( "encoding/json" "fmt" "io" "io/ioutil" "path" "regexp" "strings" "github.com/alecthomas/jsonschema" "github.com/faroceann/protoc-gen-jsonschema/internal/protos" "github.com/sirupsen/logrus" "github.com/xeipuuv/gojsonschema" gengo "google.golang.org/protobuf/cmd/protoc-gen-go/int...
// Code generated by protoc-gen-go. // source: peer/proposal.proto // DO NOT EDIT! package peer 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 // Thi...
// +build windows package service import ( "bytes" "crypto/sha256" "encoding/base64" "strconv" "syscall" "time" "unicode/utf16" "unsafe" "github.com/pkg/errors" "golang.org/x/sys/windows" "golang.org/x/sys/windows/registry" "github.com/elastic/beats/libbeat/common" "github.com/elastic/beats/libbeat/log...
// Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. // // WSO2 Inc. licenses this file to you 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/L...
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
package bakery import ( "bytes" "crypto/sha256" "encoding/base64" "sort" "strings" "time" "github.com/rogpeppe/fastuuid" "golang.org/x/net/context" errgo "gopkg.in/errgo.v1" "gopkg.in/macaroon.v2-unstable" "gopkg.in/macaroon-bakery.v2-unstable/bakery/checkers" "gopkg.in/macaroon-bakery.v2-unstable/bakery...
/* Package router is a simple HTTP router. It allows adding routes according to HTTP verbs (GET, POST, PUT, etc). Patterns supplied may have segments that use variable names which can serve as wildcards or they can specify a list of acceptable segments. rt := router.New(router.Options{}) // Literal routes. rt.Get...
package parvatigo import ( "encoding/json" "fmt" "github.com/go-resty/resty/v2" "log" "net" "os" "os/user" "path/filepath" "strings" "time" "github.com/misatosangel/parvati-api-client/pkg/swagger" ) const defUri = "https://parvati.phi.al" type Api struct { HApi *swagger.HostsApi GApi *swagger...
// Copyright 2019 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Package cuj has utilities for CUJ-style UI performance tests. package cuj import ( "context" "encoding/json" "io/ioutil" "path" "path/filepath...
// Copyright (c) 2015 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...
package tracer import ( camera2 "github.com/eriklupander/pathtracer/internal/app/camera" canvas2 "github.com/eriklupander/pathtracer/internal/app/canvas" "github.com/eriklupander/pathtracer/internal/app/geom" "github.com/eriklupander/pathtracer/internal/app/scenes" "github.com/eriklupander/pathtracer/internal/app...
// Copyright 2021 The Chromium 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 testvariantbqexporter import ( "bytes" "context" "fmt" "net/url" "sort" "strconv" "strings" "text/template" "time" "cloud.google.com/g...
/* 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 tview import ( "github.com/gdamore/tcell" ) // Box implements Primitive with a background and optional elements such as a // border and a title. Most subclasses keep their content contained in the box // but don't necessarily have to. // // Note that all classes which subclass from Box will also have access ...
// Copyright 2020-2022 Politecnico di Torino // // 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 o...
package bagman import ( "archive/tar" "crypto/md5" "crypto/sha256" "fmt" "github.com/APTrust/bagins" "github.com/satori/go.uuid" "io" "os" "path" "path/filepath" "runtime" "sort" "strings" "time" ) // Untars the file at the specified tarFilePath and returns a list // of files that were untarred from the...
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...