text
stringlengths
5.51k
28.1k
/* Copyright 2020 The Vitess Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Copyright 2017 The Fuchsia 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 main import ( "context" "fmt" "log" "sort" "strings" "sync" "netstack/dns" "netstack/filter" "netstack/link/bridge" "netstack/link/eth"...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package main import ( "fmt" "runtime" "time" "github.com/shepheb/tc-dcpu/common" "github.com/veandco/go-sdl2/sdl" ) const ( scaleFactor int = 4 widthPixels = 128 heightPixels = 96 widthChars = 32 heightChars = 12 fontWidth = 4 fontHeight = 8 ) type LEM1802 struct { vr...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/policies.proto package common import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import common1 "github.com/whatisoop/fabric/protos/msp" // Reference imports to suppress errors if they are not otherwise used. var _ = ...
/* * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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/licens...
package gamesocket import ( "compress/zlib" "context" "crypto/rand" "crypto/sha1" "encoding/binary" "fmt" "net" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/walkline/ToCloud9/shared/slices" "github.com/walkline/ToCloud9/apps/game-load-balancer/crypto" "github.com/walkline/ToCloud9/app...
package dao import ( "context" "fmt" "strings" "sync" "time" "go-common/app/interface/openplatform/article/model" "go-common/library/database/sql" "go-common/library/log" "go-common/library/xstr" "go-common/library/sync/errgroup" ) const ( _sharding = 100 _mysqlBulkSize = 50 // article _articleMe...
/********************************************************************* * Copyright (c) Intel Corporation 2021 * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ package amt // #cgo linux CFLAGS: -g -Wno-error -Wformat -Wformat-security -D_POSIX -DBUILD_LIBR...
package main import ( "bytes" "errors" "fmt" "io" "io/ioutil" "os" "os/exec" "strconv" "strings" "time" "golang.org/x/sys/unix" ) // auto is an invalid xterm color code used to represent automatic selection of // the color, either foreground or background, of the previous segment in the // list to coloriz...
// Copyright (c) 2016 <NAME>. All rights reserved. // Use of this source code is governed by the MIT license // that can be found in the LICENSE file. package data import ( "time" "github.com/ebarkie/weatherlink/packet" ) // Loop is a combined struct representation of the union of loop1 // and loop2 packets. The...
// Copyright (c) 2017 <NAME>, Inc. // Use of this source code is governed by the Apache License 2.0 // that can be found in the COPYING file. package daemon // Test cases which do not belong in other test files import ( "fmt" "io/ioutil" "os" "syscall" "testing" "time" "github.com/aristanetworks/quantumfs" ...
// Copyright 2020 The SQLFlow Authors. All rights reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
//////////////////////////////////////////////////////////////////////////////// // // // Copyright 2019 Broadcom. The term Broadcom refers to Broadcom Inc. and/or // // its subsidiaries. ...
// Package ssml provides functions to simplify working with SSML speech. // https://developer.amazon.com/en-US/docs/alexa/custom-skills/speech-synthesis-markup-language-ssml-reference.html#incompatible-tags package ssml import ( "fmt" "strings" ) // AmazonDomain is the domain of speech (news, music, ...). // https:...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/Common.proto package common 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 c...
// Copyright 2019 Preferred Networks, 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 ...
/* Copyright 2021 The KodeRover 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, s...
// Copyright Project Contour Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unles...
package main import ( "bytes" "fmt" "github.com/kataras/iris/core/errors" "log" "regexp" "strconv" "strings" "text/template" "time" ) var servicePattern = regexp.MustCompile(`^service (\w+)\(([0-9]{4,5})\)( loadBalance\((\w+)\))?[ ]?\{$`) var funcPattern = regexp.MustCompile(`^(\w+)\(([ ,\[\]\w]*)\) \(([ ,\[...
// Copyright (c) 2021 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 graphql import ( "context" "encoding/json" "fmt" "io" "strings" "sync" "time" "github.com/google/uuid" "nhooyr.io/websocket" "nhooyr.io/websocket/wsjson" ) // Subscription transport follow Apollo's subscriptions-transport-ws protocol specification // https://github.com/apollographql/subscriptions-t...
package readability import ( "fmt" "io" "math" "regexp" "strings" "unicode/utf8" nurl "net/url" shtml "html" "github.com/PuerkitoBio/goquery" "golang.org/x/net/html" ) var ( unlikelyCandidates = regexp.MustCompile(`(?i)combx|modal|comment|disqus|foot|header|menu|meta|nav|rss|shoutbox|sidebar|sponsor|s...
package abci import ( "context" "encoding/json" "fmt" "os" "path/filepath" "sync" "time" "github.com/eapache/channels" "github.com/tendermint/tendermint/abci/types" "github.com/oasisprotocol/oasis-core/go/common" "github.com/oasisprotocol/oasis-core/go/common/crypto/hash" "github.com/oasisprotocol/oasis-...
package identify import ( "context" "fmt" "sort" "sync" "time" "github.com/libp2p/go-eventbus" "github.com/libp2p/go-libp2p-core/event" "github.com/libp2p/go-libp2p-core/host" "github.com/libp2p/go-libp2p-core/network" "github.com/libp2p/go-libp2p-core/peerstore" ma "github.com/multiformats/go-multiaddr" ...
/************************************************************************* * Copyright 2017 Gravwell, Inc. All rights reserved. * Contact: <<EMAIL>> * * This software may be modified and distributed under the terms of the * BSD 2-clause license. See the LICENSE file for details. **********************************...
package kubernetes import ( "fmt" "net" "net/http" "os" "os/signal" "strings" "syscall" "time" log "github.com/sirupsen/logrus" "github.com/zalando/skipper/eskip" "github.com/zalando/skipper/filters/builtin" "github.com/zalando/skipper/predicates/primitive" "github.com/zalando/skipper/predicates/source"...
// Copyright 2015 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. // The fiximports command fixes import declarations to use the canonical // import path for packages that have an "import comment" as defined by // https://gola...
// 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 w...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/talent/v4beta1/event_service.proto package talent import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "go...
package bleadapter import ( "encoding/json" "log" "strings" "time" cb "github.com/clearblade/Go-SDK" cbble "github.com/clearblade/ble-adapter-go/ble" mqttTypes "github.com/clearblade/mqtt_parsing" MQTT "github.com/clearblade/paho.mqtt.golang" "github.com/godbus/dbus" ) var ( uuidFilters []string publi...
package service import ( "fmt" "io" "math" "net/http" "os" "path" "strconv" "sync" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/repoSpanner/repoSpanner/server/storage" ) const maxAttempts = 3 var errDupeObject = errors.New("clustered_storage: Duplicated object ignored") type clusterS...
// Copyright (c) 2018 Cisco and/or its affiliates. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at: // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
package tools import ( "testing" "unicode/utf8" ) func TestFomratByteArrayToUtf8(t *testing.T) { tests := []struct { name string data []byte want string valid bool }{ {name: "normal", data: []byte{'H', 'e', 'l', 'l', 'o', ',', ' ', 0xe4, 0xb8, 0x96, 0xe7, 0x95, 0x8c}, want: "Hello, 世界", valid: true},...
/* Copyright 2022 CodeNotary, 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 i...
package teams import ( "fmt" "sort" "strings" lru "github.com/hashicorp/golang-lru" "github.com/keybase/client/go/kbfs/tlf" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/protocol/keybase1" "golang.org/x/net/context" ) type implicitTeamConflict struct { // Note this TeamID is not validat...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/keyword_plan_campaign.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/a...
// Copyright 2017 Microsoft. All rights reserved. // MIT License package ipam import ( "fmt" "net" "strings" "github.com/Azure/azure-container-networking/log" "github.com/Azure/azure-container-networking/platform" ) const ( // Default address space IDs. LocalDefaultAddressSpaceId = "local" GlobalDefaultAdd...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.13.0 // source: envoy/extensions/transport_sockets/tap/v3/tap.proto package envoy_extensions_transport_sockets_tap_v3 import ( _ "github.com/cncf/udpa/go/udpa/annotations" v31 "github.com/envoyproxy/go-contr...
package occlum import ( "context" "fmt" "io/ioutil" "math/rand" "os" "path/filepath" "strconv" "syscall" "time" "github.com/BurntSushi/toml" shim_config "github.com/alibaba/inclavare-containers/shim/config" "github.com/alibaba/inclavare-containers/shim/runtime/carrier" carr_const "github.com/alibaba/incl...
package main import ( "fmt" "github.com/shasderias/ilysa" "github.com/shasderias/ilysa/beatsaber" "github.com/shasderias/ilysa/chroma" "github.com/shasderias/ilysa/colorful" "github.com/shasderias/ilysa/colorful/gradient" "github.com/shasderias/ilysa/ease" "github.com/shasderias/ilysa/fx" "github.com/shasder...
package main import ( "encoding/json" ) const RIAK = "riak" func init() { parser.Add(RIAK, "http://127.0.0.1:8098/stats", "Collect riak metrics") } type RiakStatus struct { VNodeGets int64 `json:"vnode_gets"` VNodeGetsTotal int64 `json:"vnode_gets_total"` VNodePuts ...
package gen import ( "bytes" "fmt" gofmt "go/format" "io" "strings" "github.com/hashicorp/hcl/v2" "github.com/pkg/errors" "github.com/pulumi/pulumi/pkg/v2/codegen" "github.com/pulumi/pulumi/pkg/v2/codegen/hcl2" "github.com/pulumi/pulumi/pkg/v2/codegen/hcl2/model" "github.com/pulumi/pulumi/pkg/v2/codegen/hc...
// Copyright (c) 2017 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 main import ( "fmt" "sort" "strings" sysl "github.com/anz-bank/sysl/src/proto" "github.com/anz-bank/sysl/sysl2/sysl/syslutil" "github.com/sirupsen/logrus" ) type entry struct { appName string endpointName string upto string } func makeEntry(s string) *entry { match := endpointParserRE...
/* Copyright 2020 Elotl 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, software dist...
// Copyright 2020 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
// Copyright 2015-2017, Cyrill @ <EMAIL> and the CoreStore 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 r...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.19.4 // source: envoy/extensions/filters/http/set_metadata/v3/set_metadata.proto package set_metadatav3 import ( _ "github.com/cncf/xds/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/valid...
// Copyright (c) 2020 Blockwatch Data Inc. // Author: <EMAIL> package server import ( "encoding/json" "fmt" "io" "math" "net/http" "strconv" "strings" "time" "blockwatch.cc/packdb/encoding/csv" "blockwatch.cc/packdb/pack" "blockwatch.cc/packdb/util" "blockwatch.cc/tzindex/chain" "blockwatch.cc/tzindex/e...
package phly import ( "errors" "fmt" "github.com/micro-go/lock" "reflect" "sync" "unsafe" ) var ( pid_counter = lock.NewAtomicInt32() ) // ---------------------------------------- // PIPELINE-RUNNER // pipeline_runner struct is the state of a currently running pipeline. type pipeline_runne...
package backendconfig //go:generate mockgen -destination=../../mocks/config/backend-config/mock_backendconfig.go -package=mock_backendconfig github.com/rudderlabs/rudder-server/config/backend-config BackendConfig import ( "bytes" "encoding/json" "fmt" "net/http" "reflect" "sort" "sync" "time" "github.com/ru...
package controller import ( "fmt" "os" "regexp" "time" "github.com/prometheus/client_golang/prometheus" "github.com/hashicorp/go-multierror" calicoapiv3 "github.com/projectcalico/libcalico-go/lib/apis/v3" "github.com/projectcalico/libcalico-go/lib/client" "github.com/sirupsen/logrus" "github.com/tsuru/rem...
package amazbot import ( "context" "fmt" "log" "sort" "strconv" "strings" "sync" "time" tgbot "github.com/go-telegram-bot-api/telegram-bot-api" "github.com/igolaizola/amazbot/internal/api" "github.com/igolaizola/amazbot/internal/store" "github.com/patrickmn/go-cache" ) type bot struct { *tgbot.BotAPI d...
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkbfs import ( "encoding/hex" "errors" "time" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/logger" keybase1 "github.com/keybase/c...
package shardkv import ( "bytes" "context" "encoding/json" "fmt" "labgob" "labrpc" "raft" "reflect" "shardmaster" "sync" "time" ) func init() { labgob.Register(OpArgs{}) labgob.Register(GetArgs{}) labgob.Register(PutAppendArgs{}) labgob.Register(shardmaster.Config{}) labgob.Register(CheckMigrateShardR...
package agent import ( "fmt" "io" "log" "net/url" "os" "path/filepath" "regexp" "strconv" "strings" "time" "github.com/go-resty/resty/v2" "github.com/gonutz/w32/v2" nats "github.com/nats-io/nats.go" "golang.org/x/sys/windows/registry" ) type Installer struct { Headers map[string]string RMM ...
/* * Copyright (c) 2019-2020 Datacequia LLC. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/li...
package graphql_resolver import ( "bytes" "context" "crypto/sha1" "encoding/json" "errors" "fmt" "strings" "time" "github.com/codeamp/circuit/plugins" "github.com/codeamp/circuit/plugins/codeamp/auth" db_resolver "github.com/codeamp/circuit/plugins/codeamp/db" "github.com/codeamp/circuit/plugins/codeamp/m...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: schema/proto/contracts/queue_contracts.proto package contracts 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 ...
package main import ( "bytes" "crypto/sha512" "crypto/hmac" "encoding/hex" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "net/url" "strings" "time" ) type Region struct { Name string ImageId string } type Regions struct { Toronto Region Montreal Region Roubaix Region } var REGIONS = Regions { ...
// DO NOT EDIT THIS FILE. GENERATED BY xgen. // +build stm32l4x6 package exti import ( "embedded/mmio" "unsafe" "github.com/embeddedgo/stm32/p/mmap" ) type Periph struct { IMR1 RIMR1 EMR1 REMR1 RTSR1 RRTSR1 FTSR1 RFTSR1 SWIER1 RSWIER1 PR1 RPR1 _ [2]uint32 IMR2 RIMR2 EMR2 REMR2 RTSR2 ...
package main import ( "strings" "net/url" "net/http" "encoding/gob" "os" "time" "runtime" "path" "fmt" "golang.org/x/net/context" "golang.org/x/oauth2" "golang.org/x/oauth2/clientcredentials" "github.com/sirupsen/logrus" "github.com/gin-gonic/gin" "github.com/gin-contrib/sessions" "gith...
// Copyright 2017 Factom Foundation // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. package state import ( "encoding/binary" "fmt" "math/rand" "time" "github.com/FactomProject/factomd/common/interfaces" "github.com/FactomProject/factomd/common/primitives" "...
// Copyright 2013 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. // This file implements type-checking of identifiers and type expressions. package types import ( "go/ast" "go/token" "strconv" "code.google.com/p/go.too...
// Copyright 2019-2021 The Liqo 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...
/* Copyright 2017 by GoSpider author. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
// Copyright (c) 2020. Temple3x (<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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.9.1 // source: wso2/discovery/config/enforcer/auth_service.proto package enforcer import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: orc8r/protos/identity.proto package protos 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 // Thi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/errors/conversion_action_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 t...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0-devel // protoc v3.15.2 // source: oplog.proto package api import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/...
// // message.go // package srnd import ( "bufio" "bytes" "crypto/sha512" "encoding/base64" "errors" "fmt" "github.com/dchest/blake2b" "io" "log" "mime" "mime/multipart" "net/mail" "net/textproto" "strings" ) type ArticleHeaders map[string][]string func (self ArticleHeaders) Has(key string) bool { _, ...
// jeffCoin 4. WALLET guts.go package wallet import ( "crypto/aes" "crypto/cipher" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/sha256" "crypto/x509" "encoding/hex" "encoding/json" "encoding/pem" "fmt" "io" "io/ioutil" "math/big" "reflect" "github.com/btcsuite/btcutil/base58" log "github.c...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package main import ( st "statquery" "io" "io/ioutil" "net/http" "net" "flag" "fmt" "time" "log" "encoding/json" "sort" "strconv" "sync" "container/heap" "encoding/csv" "os" ) var statServerPort *int = flag.Int("statServerPort", 80, "statServer port") var verbose *bool = flag.Bool("v...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package tests import ( "fmt" "math" "net" "time" "github.com/mailru/easyjson" "github.com/mailru/easyjson/opt" ) type PrimitiveTypes struct { String string Bool bool Int int Int8 int8 Int16 int16 Int32 int32 Int64 int64 Uint uint Uint8 uint8 Uint16 uint16 Uint32 uint32 Uint64 uint64 Int...
// Copyright 2018 GRAIL, Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package exec import ( "bytes" "context" "errors" "fmt" "io" "sort" "strings" "sync" "text/tabwriter" "github.com/grailbio/base/status" "github.com/g...
// Copyright 2015 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 asm import ( "bufio" "bytes" "fmt" "io/ioutil" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "testing" "cmd/asm/internal/lex" ...
// Protocol messages for describing input data Examples for machine learning // model training or inference. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0-devel // protoc v3.11.4 // source: tensorflow/core/example/example.proto package example import ( proto "github...
// Copyright 2014 The oauth2 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 oauth2 provides support for making // OAuth2 authorized and authenticated HTTP requests. // It can additionally grant authorization with Bearer J...
package views import ( "context" "time" "github.com/derailed/k9s/internal/config" "github.com/derailed/k9s/internal/k8s" "github.com/derailed/k9s/internal/watch" "github.com/derailed/tview" "github.com/fsnotify/fsnotify" "github.com/gdamore/tcell" "github.com/rs/zerolog/log" "k8s.io/cli-runtime/pkg/genericc...
package options import ( "fmt" "os" "strings" "time" "github.com/google/uuid" "github.com/spf13/pflag" "k8s.io/klog/v2" "sigs.k8s.io/apiserver-network-proxy/pkg/server" ) type ProxyRunOptions struct { // Certificate setup for securing communication to the "client" i.e. the Kube API Server. ServerCert st...
// Copyright 2018 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 p2p_test import ( "context" "fmt" "testing" "time" "github.com/libp2p/go-libp2p" connmgr "github.com/libp2p/go-libp2p-connmgr" "github.com/libp2p/go-libp2p-core/crypto" "github.com/libp2p/go-libp2p-core/host" "github.com/libp2p/go-libp2p-core/network" "github.com/libp2p/go-libp2p-core/peer" "github...
/* Copyright 2017 The Nuclio Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package libkb import ( "encoding/json" "fmt" "reflect" "sort" "testing" "time" keybase1 "github.com/keybase/client/go/protocol/keybase1" jsonw "github.com/keybase/go-jsonw" testvectors "g...
/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package runner import ( "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "os" "os/exec" "path" "path/filepath" "reflect" "runtime" "strings" "syscall" "time" "code.cloudfoundry.org/garden/client" "code.cloudfoundry.org/garden/client/connection" "code.cloudfoundry.org/lager" "code.cloudfoundry.o...
package httpapi import ( "context" "encoding/json" "net/url" opentracing "github.com/opentracing/opentracing-go" "github.com/opentracing/opentracing-go/ext" otlog "github.com/opentracing/opentracing-go/log" "github.com/pkg/errors" "github.com/sourcegraph/go-langserver/pkg/lsp" "github.com/sourcegraph/go-lang...
/* 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 or agreed to in ...
// Copyright 2012 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 collate_test import ( "exp/locale/collate" "exp/locale/collate/build" "exp/norm" "testing" ) type ColElems []collate.Weights type input struct { ...
// (c) Copyright IBM Corporation 2019, 2020. All Rights Reserved. // Note to U.S. Government Users Restricted Rights: // U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule // Contract with IBM Corp. // // Copyright (c) Red Hat, Inc. // Copyright Contributors to the O...
// // 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 law or a...
/* * Tencent is pleased to support the open source community by making 蓝鲸 available. * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the Li...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package aezeed import ( "bytes" "crypto/rand" "encoding/binary" "hash/crc32" "io" "strings" "time" "github.com/Yawning/aez" "github.com/kkdai/bstream" "golang.org/x/crypto/scrypt" ) const ( // CipherSeedVersion is the current version of the aezeed scheme as // defined in this package. This version indic...
package keyspace import ( "bytes" "container/heap" "context" "fmt" "path" "sort" "sync" "time" log "github.com/sirupsen/logrus" "go.etcd.io/etcd/clientv3" "go.etcd.io/etcd/clientv3/mirror" "go.etcd.io/etcd/etcdserver/api/v3rpc/rpctypes" "go.etcd.io/etcd/etcdserver/etcdserverpb" ) // A KeySpace is a loca...