text
stringlengths
5.51k
28.1k
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/geo_target_constant.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/ads...
//Package layers provides an interface for processing AddonsLayers. //go:generate mockgen -destination=../mocks/layers/mockLayers.go -package=mocks -source=layers.go . Layer package layers import ( "context" "fmt" "os" "strings" "time" sourcev1 "github.com/fluxcd/source-controller/api/v1beta1" "github.com/go-l...
// Copyright 2015 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...
// SPDX-License-Identifier: Apache-2.0 // // Copyright (C) 2021 Renesas Electronics Corporation. // Copyright (C) 2021 EPAM Systems, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at /...
package haxegoruntime import ( "unsafe" "github.com/tardisgo/tardisgo/haxe/hx" ) var stringMap = make(map[string]*string) // addrString is an utility function, strings with the same content must have the same address // very simple implementation TODO optimize func addrString(s string) *string { ptr, ok := strin...
// Copyright 2021 - 2022 Matrix Origin // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
package main import ( "fmt" "math/rand" "strings" "github.com/borkshop/bork/internal/ecs" "github.com/borkshop/bork/internal/view/hud/prompt" ) // TODO: more body parts: thigh/calf, forearm/upper, neck, fingers, toes, organs, joints, items const ( bcHP ecs.ComponentType = 1 << iota bcPart bcDerived // TODO...
/* Logbase is a so-called "log-structured database" which aims to be simple and fast. It is a key-value store which can be used to build more complex data stores by allowing multiple keys and aiming to be lightweight (minimising complexity and configurability). A logbase directory is specified in the configuratio...
package ent import ( "fmt" "math" "sort" "strconv" "strings" ) // IndexGetter is used to look up an entry in an index type IndexGetter = func(entTypeName, indexName, key string) ([]uint64, error) // StorageIndexEdit represents a modification to an index type StorageIndexEdit struct { Index *EntIndex Key str...
/*************************************************************************** * * Copyright (c) 2017 Baidu.com, Inc. All Rights Reserved * @author duanbing(<EMAIL>) * **************************************************************************/ /** * @filename main.go * @desc * @create time 2018-04-19 15:49:26 **...
// Copyright (c) 2021 <NAME> package main import ( "fmt" "math/rand" "os" "strconv" "time" "github.com/fogleman/ln/ln" ) func FloatToString(input_num float64) string { // to convert a float number to a string return strconv.FormatFloat(input_num, 'f', 0, 64) } // Global variables var globalHeight float64 ...
// Copyright IBM Corp. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package migration import ( "fmt" "sync" "github.com/hyperledger/fabric/common/flogging" "github.com/hyperledger/fabric/protos/orderer" ) // Status provides access to the consensus-type migration status of the underlying chain. //...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package sqlcmd import ( "database/sql" "fmt" "io" "strings" "time" mssql "github.com/denisenkom/go-mssqldb" "github.com/google/uuid" ) const ( defaultMaxDisplayWidth = 1024 * 1024 maxPadWidth = 8000 ) ...
// Code generated by protoc-gen-go. // source: v2ray.com/core/proxy/shadowsocks/config.proto // DO NOT EDIT! /* Package shadowsocks is a generated protocol buffer package. It is generated from these files: v2ray.com/core/proxy/shadowsocks/config.proto It has these top-level messages: Account ServerConfig ClientC...
package overlay import ( "fmt" "regexp" "strings" "sync" "time" "github.com/weaveworks/common/backoff" "github.com/weaveworks/scope/common/weave" "github.com/weaveworks/scope/probe/docker" "github.com/weaveworks/scope/report" ) // Keys for use in Node const ( WeavePeerName = report...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: pkg/event/pb/request.proto package event import ( event "github.com/infraboard/mcube/bus/event" page "github.com/infraboard/mcube/pb/page" protoreflect "google.golang.org/protobuf/reflect/pr...
// go generate super charged on steroids package main import ( "bytes" "flag" "fmt" "io" "io/ioutil" "os" "reflect" "strings" "text/template" genericinterperter "github.com/mh-cbon/gigo/interpreter/generic" glanginterpreter "github.com/mh-cbon/gigo/interpreter/glang" genericlexer "github.com/mh-cbon/gigo/...
// Copyright (c) 2018 <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, publish, distri...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: api.proto /* Package proto is a generated protocol buffer package. It is generated from these files: api.proto It has these top-level messages: PainUpdate GetEventsRequest Event */ package proto import proto1 "github.com/golang/protobuf/proto" import f...
/* MIT License Copyright (c) IBM Corp. 2019 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
// +build relic package crypto import ( "errors" "fmt" "github.com/onflow/flow-go/crypto/hash" ) // BLS multi-signature using BLS12-381 curve // ([zcash]https://github.com/zkcrypto/pairing/blob/master/src/bls12_381/README.md#bls12-381) // Pairing, ellipic curve and modular arithmetic is using Relic library. // T...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: msp/identities.proto package msp 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 com...
/* 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 controller import ( . "eaciit/wfdemo-git/library/core" hp "eaciit/wfdemo-git/library/helper" . "eaciit/wfdemo-git/library/models" "eaciit/wfdemo-git/web/helper" "time" "github.com/eaciit/dbox" "github.com/eaciit/knot/knot.v1" tk "github.com/eaciit/toolkit" ) type AnalyticComparisonCon...
// Copyright 2019 The SwiftShader 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 b...
package compiler import ( "fmt" "sort" "github.com/yourfavoritedev/golang-interpreter/ast" "github.com/yourfavoritedev/golang-interpreter/code" "github.com/yourfavoritedev/golang-interpreter/object" ) // Compiler will create Bytecode for the VM to execute. // The Compiler will leverage the evaluated abstract-sy...
package web import ( "context" "crypto/tls" "net" "net/http" "strings" "github.com/blend/go-sdk/async" "github.com/blend/go-sdk/ex" "github.com/blend/go-sdk/logger" "github.com/blend/go-sdk/webutil" ) // MustNew creates a new app and panics if there is an error. func MustNew(options ...Option) *App { app, ...
// 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. // Grit copies commits from a source repository to a destination // repository. It is intended to mirror projects residing in an // private monorepo to an extern...
package controllers import ( "github.com/astaxie/beego" "meal/enums" "meal/models" "encoding/json" "meal/utils" "github.com/astaxie/beego/logs" "time" "github.com/astaxie/beego/orm" "strings" "github.com/astaxie/beego/validation" "os" "github.com/hunterhug/go_image" ) type WxapiController struct { beego....
package chash import( // "fmt" "strings" "strconv" // "crypto/sha1" "crypto/sha256" "golang.org/x/crypto/ripemd160" "encoding/base32" "encoding/base64" _core "nodejs/core" "nodejs/console" . "github.com/byteball/go-byteballcore/types" ) const( CHASH160_BITS = 32*5 CHASH288_BITS = 48*6 CHECKSUM_BITS ...
package gt import ( "database/sql/driver" "encoding/json" "fmt" "time" ) // `gt.NullTime` version of `time.Date`. func NullTimeIn(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) NullTime { return NullTime(time.Date(year, month, day, hour, min, sec, nsec, loc)) } // Shortcut for `g...
package main import ( "database/sql" "flag" "fmt" "net/http" "os" "path" "time" _ "github.com/go-sql-driver/mysql" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/log" "github.com/prometheus/common/version" "gopkg.in/ini.v1" "github.com/prometheus/mysqld_exporter/collector...
package rpc import ( "context" "encoding/json" "fmt" log "github.com/inconshreveable/log15" "github.com/openrelayxyz/cardinal-types" "github.com/openrelayxyz/cardinal-types/hexutil" "github.com/openrelayxyz/cardinal-types/metrics" gmetrics "github.com/rcrowley/go-metrics" "math/big" "reflect" "runtime" "st...
package resolvers import ( "context" "errors" "fingertip/internal/resolvers/dnssec" "fmt" "github.com/buffrr/letsdane/resolver" "github.com/miekg/dns" "net" "strings" "time" ) var errNotSynced = fmt.Errorf("error: handshake resolver not fully synced") var errHIP5NotSupported = errors.New("no supported hip-5 ...
// Copyright (c) 2019-present <NAME> <<EMAIL>> // This source code is licensed under the MIT license found in the LICENSE file. // Package elder is a wand reference implementation that provides common Mage tasks and stores application // configurations and metadata of a project. // // The naming is inspired by the "El...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: rps.proto package proto import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time...
package tblfmt import ( "bytes" "database/sql" "encoding/json" "fmt" "reflect" "strconv" "strings" "time" "unicode" "unicode/utf8" runewidth "github.com/mattn/go-runewidth" ) // Formatter is the common interface for formatting values. type Formatter interface { // Header returns a slice of formatted valu...
package memview import ( "bytes" "encoding/binary" "io" "github.com/pkg/errors" ) // MemView represents a "view" on a collection of byte slices. Conceptually, you // may think of it as a [][]byte, with helper methods to make it seem like one // contiguous []byte. It is designed to help minimize the amount of cop...
package request import ( "errors" "fmt" "strconv" "time" "github.com/fortytw2/tango/dota" ) // GetMatchDetails returns specific information about a single match, matching // what's returned by https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?key=<key>&match_id=<match_id> type GetMatchDetails s...
/* 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...
// Svolto da: <NAME> (Esame 2022-01-28) // ================================================================== package main import ( "fmt" "math/rand" "strings" "time" ) // ================================================================== // COSTANTI ========================================================= const...
package service import ( "encoding/json" "errors" "fmt" "go.uber.org/zap" "gorm.io/gorm" "math" "strconv" "strings" "time" "web.monitor.com/global" "web.monitor.com/model" "web.monitor.com/model/validation" "web.monitor.com/utils" "web.monitor.com/utils/dingtalk" ) func AddAlarm(r validation.AddAlarm, u...
// +build !noexectry,!noexectry_archive // +build !js /* Copyright 2020 The arhat.dev 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 r...
// This file has been generated by hack/generate-client.sh // Do not edit manually! package client import ( "fmt" ) const ( MaxMilestonesPerQuery = 100 ) type numberedMilestoneQuery struct { RateLimit rateLimit Repository struct { Milestone0 *graphqlMilestone `graphql:"milestone0: milestone(number: $number0...
package main import ( "context" "fmt" "io" "log" "math/rand" "os" "sort" "strconv" "strings" "sync" "time" guuid "github.com/google/uuid" "github.com/nikhs247/objectDetection/comms/rpc/appcomm" "github.com/nikhs247/objectDetection/comms/rpc/clientToTask" "gocv.io/x/gocv" "google.golang.org/grpc" ) co...
package block import ( "bytes" "crypto/ecdsa" "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "go-blockchain/utils" "log" "net/http" "strings" "sync" "time" ) const ( MINING_DIFFICULTY = 3 MINING_SENDER = "THE BLOCKCHAIN" MINING_REWARD = 1.0 MINING_TIMER_SEC = 20 BLOCKCHAIN_PORT_RANGE_...
package signedxml import ( "crypto" "crypto/rsa" "crypto/x509" "encoding/base64" "errors" "fmt" "log" "math/big" "regexp" "time" "github.com/beevik/etree" ) // Validator provides options for verifying a signed XML document type Validator struct { Certificates []x509.Certificate RSAPublicKeys []*rsa.Pub...
// Copyright (c) 2016 <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 the internal datastore cache import ( "fmt" "sync" "testing" "github.com/aristanetworks/quantumfs" "github.com/aristanetworks/quantumfs/backends/p...
package widget import ( "math" "fyne.io/fyne" "fyne.io/fyne/canvas" "fyne.io/fyne/driver/desktop" "fyne.io/fyne/internal/widget" "fyne.io/fyne/theme" ) const tableDividerThickness = 1 // Declare conformity with Widget interface. var _ fyne.Widget = (*Table)(nil) // TableCellID is a type that represents a cel...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/api/v2/function.proto package envoy_api_v2 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/go-control-plane/envoy/annotations" core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" _ "github.com/e...
package mp4 import ( "encoding/binary" "errors" "github.com/yapingcat/gomedia/codec" ) type sampleEntry struct { pts uint64 dts uint64 offset uint64 size uint64 SampleDescriptionIndex uint32 //alway should be 1 } ...
package service import ( "context" "fmt" "io/ioutil" "net/http" "strconv" "testing" "time" "github.com/fleetdm/fleet/v4/server/fleet" "github.com/fleetdm/fleet/v4/server/ptr" "github.com/ghodss/yaml" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/s...
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
package main import ( "context" "encoding/json" "fmt" "io/ioutil" "net/http" "os" "strings" cmmeta "github.com/jetstack/cert-manager/pkg/apis/meta/v1" extapi "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8s.io/klog/v2" "github.com/jets...
/* 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 bls12381 import ( crand "crypto/rand" "encoding/hex" "testing" "github.com/stretchr/testify/require" "github.com/coinbase/kryptology/pkg/core/curves/native" ) func TestG1IsOnCurve(t *testing.T) { require.Equal(t, 1, new(G1).Identity().IsOnCurve()) require.Equal(t, 1, new(G1).Generator().IsOnCurve()) ...
package cloudwatch import ( "context" "errors" "fmt" "regexp" "sort" "strconv" "strings" "time" "github.com/xformation/synectiks-monitoring/pkg/log" "github.com/xformation/synectiks-monitoring/pkg/models" "github.com/xformation/synectiks-monitoring/pkg/setting" "github.com/xformation/synectiks-monitoring/...
// Copyright 2021 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 tlw provides an abstract representation of the TLW API which is used by recovery package tlw import ( "context" "time" "go.chromium.org...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/mutate_job.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/ads/googlead...
// This file is subject to a 1-clause BSD license. // Its contents can be found in the enclosed LICENSE file. package proto // Unknown message type. const Unknown = 0 // Replies in the range from 001 to 099 are used for client-server connections // only and should never travel between servers. const ( Welcome = 1...
// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
/* Copyright 2018 The 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 (c) Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project package managedcluster import ( "context" "fmt" "reflect" "strconv" "time" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/...
// Copyright (c) 2015 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 besticon import ( "fmt" "image" "image/color" "io/ioutil" "net/url" "os" "reflect" "testing" "github.com/Smart-Chou/besticon/vcr" ) // // Big list of tests for IconFinder.FetchIcons. Responses are cached on disk // using our VCR file format. No network connectivity is required unless you are // addi...
package main import ( "encoding/csv" "flag" "fmt" "github.com/mpr90/gopro-utils/telemetry" "io" "log" "math" "os" //////used for csv "strconv" "strings" ) type ACCLGYRO struct { X []float64 Y []float64 Z []float64 FilteredX []float64 FilteredY []float64 FilteredZ []float64 Ms []float64 TS []i...
// SPDX-License-Identifier: Unlicense OR MIT package window /* #cgo CFLAGS: -Werror #cgo LDFLAGS: -landroid #include <android/native_window_jni.h> #include <android/configuration.h> #include <android/keycodes.h> #include <android/input.h> #include <stdlib.h> #include "os_android.h" */ import "C" import ( "errors" ...
// Copyright 2016 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
// Package cmn provides common low-level types and utilities for all aistore projects /* * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. */ package cmn import ( "bytes" "fmt" "hash" "io" "math" "os" "path/filepath" "reflect" "sort" "strconv" "strings" "sync/atomic" "github.com/NVIDIA/ais...
/* 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 servicebuilder import ( "encoding/json" "errors" "fmt" "strconv" "strings" "github.com/gojek/turing/engines/router/missionctl/fiberapi" "net/url" "github.com/ghodss/yaml" fiberconfig "github.com/gojek/fiber/config" mlp "github.com/gojek/mlp/client" "github.com/gojek/turing/api/turing/cluster" "g...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: proto/contract_get_bytecode.proto package proto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "refl...
package main import ( "bytes" "context" "crypto/sha256" "crypto/tls" "encoding/json" "fmt" "io" "io/ioutil" "net" "net/http" "os" "os/exec" "path/filepath" "regexp" "strconv" "strings" "syscall" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-...
package telegram import ( "context" "encoding/json" "fmt" "strings" "github.com/LightningTipBot/LightningTipBot/internal/errors" "github.com/LightningTipBot/LightningTipBot/internal/runtime/mutex" "github.com/LightningTipBot/LightningTipBot/internal/storage" "github.com/LightningTipBot/LightningTipBot/inter...
// Package walk walks directories package walk import ( "context" "errors" "fmt" "path" "sort" "strings" "sync" "time" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/dirtree" "github.com/rclone/rclone/fs/filter" "github.com/rclone/rclone/fs/list" ) // ErrorSkipDir is used as a return value fr...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: components/compliance-service/ingest/ingest/compliance.proto package ingest // import "github.com/chef/automate/components/compliance-service/ingest/ingest" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import event "git...
/* 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, ...
// Code generated by protoc-gen-go. // source: model/example.proto // DO NOT EDIT! /* Package model is a generated protocol buffer package. It is generated from these files: model/example.proto model/server.proto It has these top-level messages: User Post PostContent Attachment File RegisterUserRequest Regi...
// 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...
package task import ( "context" "math" "math/rand" "strconv" "sync" "time" "github.com/znbasedb/znbase/pkg/security/audit/util" "github.com/znbasedb/znbase/pkg/sql/pgwire/pgcode" "github.com/znbasedb/znbase/pkg/sql/pgwire/pgerror" "github.com/znbasedb/znbase/pkg/util/log" "github.com/znbasedb/znbase/pkg/ut...
package gitobj import ( "bufio" "bytes" "fmt" "sort" "strconv" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestTreeReturnsCorrectObjectType(t *testing.T) { assert.Equal(t, TreeObjectType, new(Tree).Type()) } func TestTreeEncoding(t *testing.T) { tree := &Tre...
package irmaserver import ( "bytes" "context" "crypto/sha256" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "reflect" "time" "github.com/alexandrevicenzi/go-sse" "github.com/dgrijalva/jwt-go" "github.com/go-chi/chi" "github.com/go-chi/chi/middleware" "github.com/go-errors/errors" "github.com/priv...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.0 // source: common.proto package common import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" wrapperspb "google.golang.org/pro...
package nvd import ( "encoding/json" "fmt" "runtime" "sort" "strings" "time" "github.com/hashicorp/go-version" "github.com/k0kubun/pp" "github.com/kotakanbe/go-cve-dictionary/fetcher" "github.com/kotakanbe/go-cve-dictionary/log" "github.com/kotakanbe/go-cve-dictionary/models" "github.com/kotakanbe/go-cve-...
// +build !js,!plan9,!aix /* 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 o...
package roller import ( "context" "encoding/json" "errors" "fmt" "net/http" "regexp" "strings" "time" "github.com/flynn/json5" "go.skia.org/infra/autoroll/go/codereview" "go.skia.org/infra/autoroll/go/commit_msg" "go.skia.org/infra/autoroll/go/config_vars" arb_notifier "go.skia.org/infra/autoroll/go/noti...
// 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 ( "fmt" "sync" "github.com/FactomProject/factomd/common/globals" ) var cntsMutex sync.Mutex var cnts map[string]int func PrintState(state *State) { if cnt...
// Copyright 2019 <NAME>. All rights reserved. package mdb import ( "bytes" "context" "encoding/json" "errors" "fmt" "math" "reflect" "regexp" "sort" "strconv" "strings" "time" "github.com/simagix/gox" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mon...
/* * Copyright 2018 Venafi, 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 ast // Location contains location information about where an AST type is in a document. type Location struct { Line int Column int } // @wg:field self const ( PathNodeKindString PathNodeKind = iota PathNodeKindInt ) // PathNodeKind an enum type that defines the type of data stored in a PathNode. type P...
// Copyright (c) <NAME> <<EMAIL>>. All rights reserved. Use // of this source code is governed by the MIT license that can be found in // the LICENSE file. package girc import ( "fmt" "log" "math/rand" "runtime" "runtime/debug" "strings" "sync" "time" ) // RunHandlers manually runs handlers for a given event...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/google_ads_field.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/ads/go...
// Copyright 2018 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. // This file contains helper functions for process_gfx_trace.go for measuring latency and fps of scenic. package main import ( "fmt" "math" "sort" "s...
// Copyright 2021 Optakt Labs OÜ // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
// Copyright (c) 2021 The Emergent 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 ( "github.com/emer/axon/axon" "github.com/emer/axon/chans" "github.com/emer/etable/etable" "github.com/emer/etable/etensor" ...
package httpteleport import ( "bufio" "crypto/tls" "errors" "fmt" "github.com/valyala/fasthttp" "io" "net" "sync" "sync/atomic" "time" ) // Client teleports http requests to the given httpteleport Server over a single // connection. // // Use multiple clients for establishing multiple connections to the ser...
// /* // Copyright 2020 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 la...
// Copyright (c) 2018-2020 AT&T Intellectual Property. // All rights reserved. // // SPDX-License-Identifier: GPL-2.0-only package main import ( "encoding/json" "fmt" "github.com/danos/aaa" "github.com/danos/utils/pathutil" "log" "log/syslog" "os" "os/user" "runtime/debug" "strconv" "strings" "sync" "tim...
// +build ignore package main import ( "bytes" "encoding/json" "flag" "fmt" "go/format" "io" "io/ioutil" "net" "net/http" "net/url" "os" "path/filepath" "regexp" "runtime" "sort" "strings" "github.com/domainr/whois" "github.com/miekg/dns" ) type override struct { server string msg string } v...
/* * Copyright 2017 Baidu, 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 writ...