text
stringlengths
5.51k
28.1k
package engine import ( "context" "fmt" "os" "path/filepath" "regexp" "runtime/debug" "strconv" "sync" "time" "github.com/go-git/go-git/v5" ghttp "github.com/go-git/go-git/v5/plumbing/transport/http" "github.com/gokins/core/common" "github.com/gokins/core/runtime" "github.com/gokins/gokins/comm" "githu...
/* Copyright 2018 ZTE Corporation. 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 wr...
package bengine ///////////////////////////////////////////////////////////////////// // imports import ( "math/rand" . "github.com/easychessanimations/gochess/butils" ) ///////////////////////////////////////////////////////////////////// // material.go implements position evaluation // // Zurichess' evaluation...
// Copyright 2018 The LevelDB-Go and Pebble 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 ptable import ( "encoding/binary" "math" "unsafe" ) type columnWriter struct { ctype ColumnType data []byte offsets ...
/* MIT License Copyright (c) 2020-2021 YPSI SAS Centctl is developped by : <NAME> 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 ...
package ultimate_test_harness /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Versi...
package main import ( "archive/tar" "bytes" "compress/gzip" "errors" "fmt" "io" "io/ioutil" "os" "os/exec" "path" "path/filepath" "sort" "strings" "text/tabwriter" "github.com/spf13/pflag" "github.com/datawire/go-mkopensource/pkg/detectlicense" "github.com/datawire/go-mkopensource/pkg/golist" ) typ...
// Copyright (c) 2016 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 tagexpr is an interesting go struct tag expression syntax for field validation, etc. // // Copyright 2019 Bytedance 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 t...
package cache import ( "context" "flag" "io" "net" "path/filepath" "strconv" "strings" "sync" "time" "github.com/buildbuddy-io/buildbuddy/enterprise/server/raft/bringup" "github.com/buildbuddy-io/buildbuddy/enterprise/server/raft/client" "github.com/buildbuddy-io/buildbuddy/enterprise/server/raft/constant...
package termimg import ( "image/color" ) func Default() RendererConfig { return PresetBitmapBlock() } func PresetBitmap() BitmapConfig { return PresetBitmapBlock() } func PresetHalfBlock() HalfBlockConfig { return HalfBlockConfig{} } func PresetIntensity() IntensityConfig { return PresetIntensityChar() } fun...
/* * Copyright (c) 2021. 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 * */ pac...
// Copyright 2014 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. // +build ingore // Package syscall contains an interface to the low-level operating system // primitives. The details vary depending on the underlying system,...
package grpcall import ( "context" "errors" "fmt" "io" "os" "os/signal" "strings" "sync" "syscall" "time" "github.com/golang/protobuf/proto" "github.com/jhump/protoreflect/desc" "github.com/jhump/protoreflect/dynamic" "github.com/jhump/protoreflect/grpcreflect" "google.golang.org/grpc" "google.golang....
package server import ( "net/url" "strings" "github.com/yunfeiyang1916/toolkit/framework/internal/core" ) // Param is a single URL parameter, consisting of a key and a value. type Param struct { Key string Value string } type Params []Param func (ps Params) Get(name string) (string, bool) { for _, entry :=...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: mkit/schema/transaction/v1/transaction.proto package transactionv1 import ( _ "github.com/envoyproxy/protoc-gen-validate/validate" protoreflect "google.golang.org/protobuf/reflect/protoreflec...
// dasherg.go // Copyright ©2017-2020 <NAME> // 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 log provides a minimal wrapper around an arbitrary third-party // logging library. // // The wrapper abstracts from a concrete logging implementation in order to // allow painless and seamless switch-over to alternative implementations in // the future. It provides the following functionality: // // - Levell...
// Package dockerexec runs a command in a container. It wraps the Docker API to make it easier to // remap stdin and stdout, connect I/O with pipes, and do other adjustments. // // Essentially an "os/exec" like interface for running a command in a container. package dockerexec import ( "bytes" "context" "errors" "...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. package config import ( "crypto/tls" "errors" "net" "net/http" "net...
/* Copyright 2021 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
// Copyright 2019 The OpenSDS 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 agre...
/* Copyright 2019 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, soft...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: pkg/metric/metric.proto package gvisor 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...
// Copyright 2022 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 main import ( "bufio" "context" "fmt" "infra/rts" "infra/rts/filegraph/git" "net/http" "os" "path/filepath" "strings" "time" "cloud.g...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: demomesh.proto package demomesh import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not otherwise use...
// Package shelf Copyright NetApp Inc, 2021 All rights reserved package shelf import ( "github.com/netapp/harvest/v2/cmd/poller/plugin" "github.com/netapp/harvest/v2/pkg/api/ontapi/zapi" "github.com/netapp/harvest/v2/pkg/conf" "github.com/netapp/harvest/v2/pkg/dict" "github.com/netapp/harvest/v2/pkg/errors" "git...
/* 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 (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 2017 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 pkgtree import ( "bytes" "crypto/sha256" "encoding/binary" "hash" "io" "os" "path/filepath" "strconv" "github.com/pkg/errors" ) const osPath...
// 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 w...
/* Copyright 2021 The KubeVela 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, so...
/* 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, ...
/* Copyright 2016 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
// // Copyright (c) 2016 Nuage Networks, Inc. All rights reserved. // // This will form the Nuage CNI plugin for networking // containers spawned using Mesos & k8s containerizers package main import ( "flag" "fmt" log "github.com/Sirupsen/logrus" "github.com/containernetworking/cni/pkg/skel" "github.com/contain...
package cvo import ( "context" "fmt" "strconv" "sync" "time" "github.com/blang/semver" "github.com/golang/glog" "github.com/google/uuid" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" utilruntime "k8s.io/apimachinery/pkg/util/runtim...
package api import ( "bytes" "encoding/base64" "encoding/json" "fmt" "html/template" "math" "net/http" "strings" "sync" "time" "github.com/rakyll/statik/fs" "github.com/Semior001/decompract/app/num/solver" "github.com/Semior001/decompract/app/num/service" // adding statik files, for serving form _ "g...
/* Copyright 2015-2020 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,...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT license. */ package functions import ( "fmt" "go/token" "sort" "github.com/dave/dst" "github.com/pkg/errors" "github.com/Azure/azure-service-operator/v2/tools/generator/internal/astbuilder" "github.com/Azure/azure-service-operator/v2/tools...
package memcache // Memcache binary protocol command definitions with parsers and serializers // to create events from parsed messages. // // All commands implement the commandType and are create and registered in the // init function. import ( "github.com/elastic/beats/libbeat/common" "github.com/elastic/beats/lib...
package cointop import ( "fmt" "math" "sort" "sync" "time" "github.com/cointop-sh/cointop/pkg/chartplot" "github.com/cointop-sh/cointop/pkg/timedata" "github.com/cointop-sh/cointop/pkg/timeutil" "github.com/cointop-sh/cointop/pkg/ui" log "github.com/sirupsen/logrus" ) // PriceData is the time-series data f...
/* Copyright 2015 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 upgrade import ( "context" "fmt" "math/rand" "os" "strconv" "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/version" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go...
package cluster import ( "context" "crypto/tls" "crypto/x509" "errors" "fmt" "net" "net/url" "os" "sync" "sync/atomic" "time" "github.com/hashicorp/vault/sdk/helper/certutil" "github.com/hashicorp/vault/sdk/helper/tlsutil" log "github.com/hashicorp/go-hclog" "github.com/hashicorp/vault/sdk/helper/cons...
// Copyright 2018 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 internal import ( "encoding/json" "fmt" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "github.com/determined-ai/determined/master/internal/db" "github.com/determined-ai/determined/master/internal/sproto" "github.com/determined-ai/determined/master/internal/telemetry" "github.com/determined...
/* 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 common import ( "bytes" "context" j "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "sort" "strings" "time" "github.com/AlecAivazis/survey/v2" "github.com/ghodss/yaml" "github.com/pkg/errors" "github.com/spf13/cobra" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pk...
// Copyright 2016 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 pprof import ( "bytes" "encoding/json" "fmt" "internal/testenv" "io/ioutil" "os" "os/exec" "reflect" "runtime" "runtime/pprof/internal/profil...
package machine import ( "fmt" "io/ioutil" "os" "path/filepath" "runtime" "strconv" "strings" "time" "github.com/code-ready/crc/pkg/crc/cluster" "github.com/code-ready/crc/pkg/crc/constants" crcerrors "github.com/code-ready/crc/pkg/crc/errors" "github.com/code-ready/crc/pkg/crc/logging" "github.com/code-...
package notify import ( "bytes" "context" "encoding/json" "fmt" "golang.org/x/net/html" "io" "net/http" neturl "net/url" "strconv" "strings" "sync" "sync/atomic" "time" "github.com/hashicorp/go-multierror" "github.com/microcosm-cc/bluemonday" log "github.com/go-pkgz/lgr" "github.com/go-pkgz/repeater...
/* Copyright 2020 Humio https://humio.com 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, ...
/* TODO features: * y other requests methods output file * y verbose * y auth */ package cmd import ( "fmt" "gfuzz/encoders" "gfuzz/filters" "gfuzz/payloads" "gfuzz/requests" "gfuzz/safechannels" "gfuzz/utils" "io/ioutil" "os" "strconv" "strings" "time" "github.com/huandu/go-clone" "github.com/remeh/si...
// +build windows package hcsoci import ( "fmt" "os" "path" "path/filepath" "github.com/Microsoft/hcsshim/internal/guestrequest" "github.com/Microsoft/hcsshim/internal/ospath" "github.com/Microsoft/hcsshim/internal/requesttype" "github.com/Microsoft/hcsshim/internal/schema2" "github.com/Microsoft/hcsshim/in...
// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 package main import ( "context" "fmt" "io" "io/ioutil" "log" "net/http" "os" "strconv" "time" kitprometheus "github.com/go-kit/kit/metrics/prometheus" "github.com/jmoiron/sqlx" "github.com/mainflux/mainflux" authapi "github.com/mainflux/ma...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/phishingprotection/v1beta1/phishingprotection.proto package phishingprotection import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "googl...
// Copyright 2017-2020, Square, Inc. package etre import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "net" "net/http" "net/url" "strings" "time" ) // EntityClient represents a entity type-specific client. No interface method has // an entity type argument because a client is bound to only one entity ...
// Copyright 2018 The gVisor 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...
package color import colorful "github.com/lucasb-eyer/go-colorful" func Nearest(hex uint32) int { target := colorful.Color{ R: float64(hex>>0&0xFF) / float64(0xFF), G: float64(hex>>8&0xFF) / float64(0xFF), B: float64(hex>>16&0xFF) / float64(0xFF), } maxDistance := 1.0 var result int for i, irc := range col...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.17.3 // source: ydb_coordination_v1.proto package Ydb_Coordination_V1 import ( Ydb_Coordination "github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Coordination" protoreflect "google.golang.org/protobuf/refl...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.17.2 // source: maintenance.proto package rpc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.or...
// Copyright 2020 <NAME>. All rights reserved. Use of this source code is governed by the MIT license // that can be found in the LICENSE file. // Package vim provides utilities for parsing and generating vim-like // keystrokes. This is heavily tailored towards compatibility with key // events constructed by tcell, f...
// // * Copyright 2019 The Feast Authors // * // * Licensed under the Apache License, Version 2.0 (the "License"); // * you may not use this file except in compliance with the License. // * You may obtain a copy of the License at // * // * https://www.apache.org/licenses/LICENSE-2.0 // * // * Unless required by app...
// Copyright 2018 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 ...
// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not...
package main import ( "database/sql" "encoding/json" "fmt" "log" "net/http" "strconv" "time" _ "github.com/mattn/go-sqlite3" "github.com/spf13/viper" "github.com/thetatoken/theta/query" "github.com/thetatoken/theta/tx" ) func indexHandler(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/offc...
// Copyright 2019 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 completion import ( "context" "fmt" "go/types" "strings" "unicode" "github.com/govim/govim/cmd/govim/internal/golang_org_x_tools/event" "github...
package provider import ( "bufio" "bytes" "errors" "fmt" "io" "io/ioutil" "net" "net/http" URL "net/url" "reflect" "strconv" "strings" "time" "github.com/valyala/fasthttp" motan "github.com/weibocom/motan-go/core" mhttp "github.com/weibocom/motan-go/http" "github.com/weibocom/motan-go/log" ) type sC...
//go:generate stringer -type=RelType -output=./gen_string.go package sdata import ( "fmt" "strings" "github.com/gobuffalo/flect" ) type aliasKey struct { name string parent string } type DBSchema struct { ver int typ string t map[string]DBTableInfo at map[aliasKey]string rm map[string][]DBRel vt ...
package dsp import ( "errors" "fmt" "math" "github.com/handegar/fv1emu/base" "github.com/handegar/fv1emu/settings" "github.com/handegar/fv1emu/utils" ) var skipNumSamples int = 0 // Return ENUMS for the debug callbacks const ( Ok int = iota NextInstruction Quit Fatal ) type DebugCallback func(opCodes []b...
/* Copyright The Helm 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, software di...
// UNREVIEWED // Copyright 2021 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 gcimporter import ( "go/token" "go/types" "internal/pkgbits" ) // A pkgReader holds the shared state for reading a unified IR packag...
// 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 2020 The LUCI 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...
/* 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 SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package startcmd import ( "crypto/tls" "fmt" "net/http" "strconv" "strings" "time" "github.com/cenkalti/backoff/v4" "github.com/gorilla/mux" arieslog "github.com/hyperledger/aries-framework-go/pkg/common/lo...
package types import ( "github.com/thewug/fsb/pkg/api/tags" "encoding/json" "errors" "fmt" "strconv" "strings" "github.com/lib/pq" "github.com/thewug/dml" ) type PostRating string const ( Explicit PostRating = "e" Questionable PostRating = "q" Safe PostRating = "s" Original PostRating = ...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
package remotemachineset import ( "context" "fmt" "math/rand" "strings" "github.com/blang/semver/v4" "github.com/pkg/errors" log "github.com/sirupsen/logrus" gcpprovider "github.com/openshift/cluster-api-provider-gcp/pkg/apis" gcpproviderv1beta1 "github.com/openshift/cluster-api-provider-gcp/pkg/apis/gcppro...
/* Copyright (C) IBM Corporation 2015, <NAME> <<EMAIL>> Copyright (C) 2021 <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 re...
package core // (C) Copyright IBM Corp. 2019, 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 applicabl...
package collect import ( "errors" "fmt" "math" "os" "time" lru "github.com/hashicorp/golang-lru" "github.com/honeycombio/samproxy/collect/cache" "github.com/honeycombio/samproxy/config" "github.com/honeycombio/samproxy/logger" "github.com/honeycombio/samproxy/metrics" "github.com/honeycombio/samproxy/sampl...
package rpc import ( "context" "crypto/rand" "crypto/rsa" "encoding/base64" "net" "net/http" "strings" "sync" "time" "github.com/edaniels/golog" "github.com/google/uuid" grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" grpc_zap "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap" grp...
// A gen server behavior for dataport consumer. // // Daemon listens for new connections and spawns a reader routine // for each new connection. // // concurrency model: // // Application back channels, // mutation channel and sideband channel // ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: root.proto package v1 import ( grpc_binarylog_v1 "google.golang.org/grpc/binarylog/grpc_binarylog_v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang....
package log import ( "bytes" "encoding/json" "fmt" "github.com/ssgo/standard" "github.com/ssgo/u" "log" "net" "os" "path" "reflect" "regexp" "runtime" "strings" "sync" "time" ) type LevelType int const DEBUG LevelType = 1 const INFO LevelType = 2 const WARNING LevelType = 3 const ERROR LevelType = 4 ...
// Copyright (c) 2010 <NAME> // Distributable under the terms of The New BSD License // that can be found in the LICENSE file. // 3GPP TS 36.212 V8.6.0 (2009-03) Multiplexing and channel coding (Release 8) // Section 5.1.3 Channel coding package l1enc type Data []uint8 type params struct { Ki uint32 f1 uint32...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: flyteidl/service/identity.proto package service import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" _ "google.golang.org/genproto/googleapis/api/annotations"...
package api import ( "encoding/json" "strings" ) // Different potential layouts used by the frontend. // File: /src/components/Form/Location/Layouts.js const ( LayoutAddress = "Address" LayoutBirthPlace = "Birthplace" LayoutBirthPlaceWithoutCounty ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/maps/playablelocations/v3/playablelocations.proto package playablelocations import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" duration "github.com/golang/protobuf/ptypes/duration" _ "google.golang.org/gen...
package connector import ( "context" "fmt" "github.com/nortonlifelock/aegis/pkg/domain" "github.com/nortonlifelock/aegis/pkg/log" "github.com/nortonlifelock/aegis/pkg/qualys" "regexp" "strconv" "strings" "sync" "time" ) type scanBundle struct { groupID string networkID int appliances []int external ...
// generated by go run gen.go; DO NOT EDIT package publicsuffix const version = "subset of publicsuffix.org's effective_tld_names.dat, hg revision 05b11a8d1ace (2012-11-09)" const ( nodesBitsChildren = 9 nodesBitsICANN = 1 nodesBitsTextOffset = 15 nodesBitsTextLength = 6 childrenBitsWildcard = 1 childr...
// Package letsencrypt integrates Let's Encrypt functionality into Caddy // with first-class support for creating and renewing certificates // automatically. It is designed to configure sites for HTTPS by default. package letsencrypt import ( "encoding/json" "errors" "io/ioutil" "net/http" "os" "strings" "time"...
package wpaxos import ( "github.com/acharapko/fleetdb" "github.com/acharapko/fleetdb/log" "time" "sync" "encoding/binary" "github.com/acharapko/fleetdb/kv_store" "github.com/acharapko/fleetdb/ids" "github.com/acharapko/fleetdb/config" "github.com/acharapko/fleetdb/utils" ) var ( Migration_majority float64 )...
package model import ( "encoding/base64" "errors" "fmt" "strings" "time" "github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/mvcc/mvccpb" "github.com/fagongzi/log" "github.com/fagongzi/util/task" "golang.org/x/net/context" ) var ( // ErrHasBind error has bind into, can not delete ErrHasBind = error...
package v8 // Reference materials: // https://developers.google.com/v8/embed#accessors // https://developers.google.com/v8/embed#exceptions // https://docs.google.com/document/d/1g8JFi8T_oAE_7uAri7Njtig7fKaPDfotU6huOa1alds/edit // TODO: // Value.Export(v) --> inverse of Context.Create() // Proxy objects // ...
package sftp import ( "fmt" "github.com/c-bata/go-prompt/completer" "github.com/cheggaaa/pb/v3" "github.com/kuassh" "github.com/kuassh/pkg/go-prompt" kssh "github.com/kuassh/ssh" "github.com/pkg/sftp" "log" "os" "path" "path/filepath" "sort" "strconv" "strings" ) /// tmpl := `{{ red "With funcs:" }} {{...
// Copyright 2021 The entertainment-venue 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 ...
package language type Locale int64 const ( English Locale = iota Afrikaans Albanian ArabicAlgeria ArabicBahrain ArabicEgypt ArabicIraq ArabicJordan ArabicKuwait ArabicLebanon ArabicLibya ArabicMorocco ArabicOman ArabicQatar ArabicSaudiArabia ArabicSyria ArabicTunisia ArabicUAE ArabicYemen Basque ...