text
stringlengths
5.51k
28.1k
// This code is available on the terms of the project LICENSE.md file, // also available online at https://blueoakcouncil.org/license/1.0.0. package eth import ( "bytes" "context" "crypto/sha256" "encoding/hex" "errors" "fmt" "math/big" "strings" "sync" "sync/atomic" "time" "decred.org/dcrdex/client/asse...
// Copyright (c) 2019, <NAME> <<EMAIL>> // See LICENSE for licensing information package internal import ( "bytes" "fmt" "go/ast" "go/format" "go/parser" "go/token" "reflect" "regexp" "sort" "strings" "unicode" "unicode/utf8" "golang.org/x/tools/go/ast/astutil" ) // Multiline nodes which could fit on a...
package config import ( "encoding/json" "errors" "log" "os" "time" cluster "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3" core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" endpoint "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3" listener "github.com/envoyp...
package mtr_go import ( "encoding/json" "log" "math/rand" "net" "net/http" "net/http/cookiejar" "strconv" "strings" "sync" "github.com/imdario/mergo" "github.com/untoreh/mtr-go/factory" "github.com/untoreh/mtr-go/i" "github.com/untoreh/mtr-go/services" "github.com/untoreh/mtr-go/tools" "github.com/viki...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: pkg/proto/order/types.proto package order import ( proto "github.com/golang/protobuf/proto" common "github.com/gomaglev/protos/pkg/proto/common" protoreflect "google.golang.org/protobuf/refl...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/api/resource.proto package annotations // import "google.golang.org/genproto/googleapis/api/annotations" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import descriptor "github.com/golang/protobuf/protoc-gen-go/de...
package elasticsearch import ( "context" "encoding/json" "errors" "finala/api/config" "finala/api/storage" "finala/interpolation" "fmt" "reflect" "strconv" "time" elastic "github.com/olivere/elastic/v7" log "github.com/sirupsen/logrus" ) var ( ErrInvalidQuery = errors.New("invalid query") Er...
package parquet import ( "bytes" "fmt" "io" "github.com/segmentio/parquet-go/encoding" "github.com/segmentio/parquet-go/internal/bits" ) const ( // Completely arbitrary, feel free to adjust if a different value would be // more representative of the map implementation in Go. mapSizeOverheadPerItem = 8 ) // ...
package client import ( "bufio" "context" "crypto/tls" "errors" "fmt" "io" "net" "net/url" "strings" "sync" "time" "github.com/fluffle/goirc/logging" "github.com/fluffle/goirc/state" "golang.org/x/net/proxy" ) // Conn encapsulates a connection to a single IRC server. Create // one with Client or Simple...
// Code generated by protoc-gen-go. // source: google/protobuf/struct.proto // DO NOT EDIT! package google_protobuf import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var ...
// Copyright 2010 The Freetype-Go Authors. All rights reserved. // Use of this source code is governed by your choice of either the // FreeType License or the GNU General Public License version 2 (or // any later version), both of which can be found in the LICENSE file. package truetype import ( "bosun.org/_third_pa...
// // Copyright (c) 2016-2019 The Aurora Authors. All rights reserved. // This program is free software. It comes without any warranty, // to the extent permitted by applicable law. You can redistribute // it and/or modify it under the terms of the Do What The Fuck You // Want To Public License, Version 2, as published...
package terraform import ( "fmt" "log" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/configs" "github.com/hashicorp/terraform/dag" "github.com/hashicorp/terraform/lang" "github.com/hashicorp/terraform/plans" "github.com/hashicorp/terraform/states" "gith...
// Copyright (c) 2019 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 applicab...
package utils import ( "bytes" "fmt" "text/template" "github.com/digitalocean/go-openvswitch/ovs" "yunion.io/x/log" ) var disableFirewallRules = false type FlowSource interface { Who() string FlowsMap() (map[string][]*ovs.Flow, error) } func F(table, priority int, matches, actions string) *ovs.Flow { if d...
package main import ( "bytes" "crypto/md5" "encoding/hex" "fmt" "github.com/go-telegram-bot-api/telegram-bot-api" jsoniter "github.com/json-iterator/go" "io/ioutil" "log" "net/http" url2 "net/url" "os" "sort" "strconv" "strings" "time" ) func main() { exec() } func exec() { bdusss := os.Getenv("BDUS...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/securitycenter/v1/asset.proto package securitycenter // import "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _struct "github.com/golang/...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: fleetspeak/src/client/generic/proto/fleetspeak_client_generic/config.proto package fleetspeak_client_generic import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used....
/* 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 weixin import ( "crypto/md5" "crypto/rand" "encoding/base64" "encoding/hex" "encoding/json" "errors" "fmt" "github.com/gin-gonic/gin" "github.com/objcoding/wxpay" "io" "io/ioutil" "net/http" "time" "sort" "strings" "taxcas/models" "taxcas/pkg/app" "taxcas/pkg/e" "taxcas/pkg/setting" "taxca...
package main import ( "bytes" "crypto/rand" "crypto/rsa" //"crypto/sha256" "crypto/x509" "encoding/json" "encoding/binary" "fmt" "math/big" "strconv" "strings" "github.com/hyperledger/fabric/bccsp/factory" "github.com/hyperledger/fabric/core/chaincode/shim" "github.com/hyperledge...
// Copyright (c) 2017 <NAME> <<EMAIL>> // // 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, publi...
// 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...
/* Copyright The containerd Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
package main import ( "encoding/json" "fmt" "io/ioutil" "log" "os" "os/exec" "path/filepath" "strconv" "strings" "sync" "time" "github.com/digitalocean/godo" "golang.org/x/oauth2" ) const BASE_IMAGE = "ubuntu-14-04-x64" const SERVER_BINARY = "runserver" const BALANCER_BINARY = "runbalancer" const CLIEN...
package kit // see https://github.com/kubernetes/community/blob/8cafef897a22026d42f5e5bb3f104febe7e29830/contributors/devel/controllers.md // and https://github.com/kubernetes/sample-controller/blob/master/controller.go // and https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/podautoscaler/horizontal...
package gdal // #cgo LDFLAGS: -lgdal // #include "gdal.h" // #include "gdalwarper.h" // #include "ogr_srs_api.h" import "C" import ( "fmt" "math" "unsafe" "github.com/brendan-ward/rastertiler/affine" "github.com/brendan-ward/rastertiler/array" "github.com/brendan-ward/rastertiler/tiles" ) const Version string ...
package commands import ( "encoding/json" "fmt" "math/big" "strings" "time" "github.com/ethereum/go-ethereum/crypto" pb "github.com/sonm-io/core/proto" "github.com/sonm-io/core/util" "github.com/sonm-io/core/util/datasize" "github.com/spf13/cobra" "gopkg.in/yaml.v2" ) const ( printEverything = iota supp...
package rally type reference struct { ReferenceURL string `json:"_ref"` } type queryReference struct { ReferenceURL string `json:"_ref"` Count int } type queryResult struct { TotalResultCount int StartIndex int PageSize int } type AllowedAttributeValue struct { PersistableObject Attrib...
//go:build mage // +build mage package main import ( "fmt" "io/ioutil" "log" "os" "path/filepath" "runtime" "strings" "time" . "get.porter.sh/magefiles/docker" . "get.porter.sh/magefiles/releases" . "get.porter.sh/magefiles/tests" "github.com/carolynvs/magex/mgx" "github.com/carolynvs/magex/pkg" "githu...
package main import ( "fmt" "regexp" "sort" "strconv" "strings" "unicode" "unicode/utf8" ) type LocaleData struct { Name string `json:",omitempty"` Parent string `json:",omitempty"` DateOrder string `json:",omi...
package bindings /* #include "../../crates/bindings/flow_bindings.h" #include "rocksdb/c.h" */ import "C" import ( "bytes" "context" "encoding/json" "fmt" "io" "net/http" "reflect" "runtime" "strings" "unsafe" "github.com/estuary/flow/go/flow/ops" pf "github.com/estuary/flow/go/protocols/flow" "github.c...
// Copyright (c) Acrosync LLC. All rights reserved. // Free for personal use and commercial trial // Commercial use requires per-user licenses available from https://duplicacy.com package duplicacy import ( "bytes" "compress/zlib" "crypto/aes" "crypto/rsa" "crypto/cipher" "crypto/hmac" "crypto/rand" "crypto/s...
// Copyright 2020 <NAME>. All rights reserved. // // SPDX-License-Identifier: Apache-2.0 package cache import ( "bytes" "context" "encoding/json" "fmt" "io" "io/ioutil" "strconv" "github.com/dragonflyoss/image-service/contrib/nydusify/pkg/backend" "github.com/dragonflyoss/image-service/contrib/nydusify/pkg/...
package cmd const ( sqlAdminCatalogProducts = `SELECT p.id_product AS id_product, p.reference AS reference, sa.price AS price, p.id_shop_default AS id_shop_default, p.is_virtual AS is_virtual, pl.name AS name, pl.description AS description, pl.description_short AS description_short,...
/* Copyright 2019 Pusher Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/surfacers/config.proto /* Package surfacers is a generated protocol buffer package. It is generated from these files: github.com/google/cloudprober/surfacers/config.proto It has these top-level messages: SurfacerDef */ packag...
/* 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 abci import ( "bytes" "crypto/sha256" _ "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "time" "github.com/AccumulateNetwork/accumulated/protocol" apiQuery "github.com/AccumulateNetwork/accumulated/types/api/query" "github.com/AccumulateNetwork/accumulated" "github.com/AccumulateNetwork/accum...
package liqui import ( "errors" "fmt" "net/url" "strconv" "strings" "time" "github.com/mattkanwisher/cryptofiend/common" "github.com/mattkanwisher/cryptofiend/config" "github.com/mattkanwisher/cryptofiend/currency/pair" "github.com/mattkanwisher/cryptofiend/exchanges" "github.com/mattkanwisher/cryptofiend/...
// Script_exporter is a Prometheus exporter to execute programs and // scripts and collect metrics from their output and their exit // status. package main import ( "bufio" "context" "flag" "fmt" "log" "net/http" "os" "os/exec" "os/signal" "regexp" "strconv" "strings" "syscall" "time" "bytes" "github....
package huffman import ( "container/heap" "encoding/json" "fmt" "io" "math" "sort" "strconv" "strings" "github.com/chronos-tachyon/assert" ) // Encoder implements an encoder for canonical Huffman codes. type Encoder struct { codes []Code minSize byte maxSize byte } // NewEncoder is a convenience funct...
package trustymain import ( "fmt" "io" "log" "os" "os/signal" "runtime/pprof" "sync" "syscall" "time" "github.com/ekspand/trusty/backend/service/auth" "github.com/ekspand/trusty/backend/service/ca" "github.com/ekspand/trusty/backend/service/cis" "github.com/ekspand/trusty/backend/service/ra" "github.com...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.19.4 // source: console_config.proto package pb import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime...
// redis (cluster) client package. // Based on `github.com/go-redis/redis` v6.5.2 // http://godoc.org/gopkg.in/go-redis/redis.v6 package redis import ( "fmt" "time" "github.com/go-redis/redis" "github.com/henrylee2cn/cfgo" ) type ( // Config redis (cluster) client config Config struct { // redis deploy type...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: auth.proto package auth import ( proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "...
package infra import ( "flag" "fmt" "io/ioutil" golog "log" "os" "os/user" "strings" "time" "github.com/grailbio/infra" "github.com/grailbio/reflow/log" "github.com/grailbio/reflow/pool" ) func init() { infra.Register("user", new(User)) infra.Register("bootstrapimage", new(BootstrapImage)) infra.Regist...
package ice import ( "bytes" "context" "crypto/rand" "encoding/binary" "errors" "fmt" "io" "net" "sync" "time" "go.uber.org/zap" "gortc.io/stun" "gortc.io/turn" ct "gortc.io/ice/candidate" "gortc.io/ice/gather" ) // Role represents ICE agent role, which can be controlling or controlled. type Role by...
package dht import ( "fmt" "github.com/davecgh/go-spew/spew" log "github.com/sirupsen/logrus" "github.com/spf13/cast" "github.com/zeebo/bencode" "net" "reflect" "strings" "sync" "time" ) const ( pingMethod = "ping" storeMethod = "store" findNodeMethod = "findNode" findValueMethod = "findValue"...
package ingester import ( fmt "fmt" "io/ioutil" "os" "path/filepath" "regexp" "strconv" "time" "github.com/cortexproject/cortex/pkg/ingester/client" "github.com/cortexproject/cortex/pkg/util" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/gogo/protobuf/proto" "github.com/pkg/er...
/* 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 distributed under the License...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: values.proto package internal import ( fmt "fmt" proto "github.com/golang/protobuf/proto" duration "github.com/golang/protobuf/ptypes/duration" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference imports to suppress error...
package main import ( "encoding/json" "flag" "fmt" "io" "io/ioutil" "log" "os" "os/exec" "path" "sort" "strings" ) // Schema represents JSON schema. type Schema struct { Title string `json:"title,omitempty"` ID string `json:"id,omitempty"` Type ...
package main import ( "fmt" "strings" "time" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/terminal" ) const ( // MsgBuffer is the length of the message buffer MsgBuffer int = 50 // MaxMsgLength is the maximum length of a message MaxMsgLength int = 512 // HelpText is the text returned by /help Help...
package ui import ( "bytes" "container/ring" "context" "fmt" "io" "sort" "strings" "time" "github.com/charmbracelet/bubbles/viewport" tea "github.com/charmbracelet/bubbletea" "github.com/morikuni/aec" digest "github.com/opencontainers/go-digest" "github.com/tonistiigi/units" "github.com/vito/progrock/gr...
package grpc_integration import ( context2 "context" "crypto/tls" "crypto/x509" "fmt" "io/ioutil" "net" "net/url" "path" "runtime" "strings" "sync" "testing" "time" "github.com/fortytw2/leaktest" grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" grpc_auth "github.com/grpc-ecosystem/go-grp...
package component import ( "fmt" "nes-go/pkg/domain" "nes-go/pkg/log" ) // PPURegisters ... type PPURegisters struct { PPUCtrl *PPUCtrl // 0x2000 PPUCTRL W コントロールレジスタ1 割り込みなどPPUの設定 PPUMask *PPUMask // 0x2001 PPUMASK W コントロールレジスタ2 背景イネーブルなどのPPU設定 PPUStatus *PPUStatus // 0x2002 PPUSTATUS R PPUステータス PPUのステ...
package gotanking import ( "bytes" "encoding/json" "fmt" "net/http" "net/url" ) // Account represents data from the account/list endpoint type Account struct { Data []AccountRecord `json:"data"` } // AccountRecord holds one search result from the account/list endpoint type AccountRecord struct { Nickname str...
package scheduler import ( "context" "math" "sort" "time" "github.com/evergreen-ci/evergreen/model" "github.com/evergreen-ci/evergreen/model/host" "github.com/evergreen-ci/evergreen/model/task" "github.com/evergreen-ci/evergreen/util" "github.com/mongodb/grip" "github.com/mongodb/grip/message" "github.com/...
// Code generated by protoc-gen-go. // source: google.golang.org/genproto/googleapis/api/metric/metric.proto // DO NOT EDIT! /* Package google_api is a generated protocol buffer package. It is generated from these files: google.golang.org/genproto/googleapis/api/metric/metric.proto It has these top-level messages: ...
/* * File: board.go * * Author: <NAME> <<EMAIL>> * * Description: Representation of the Gotris board. */ package model import ( "fmt" "math/rand" // Ticking away, the moments that make up the dull day... "time" ) /***** Constants *****/ const ( // Board will be 10 units wide, 20 tall. Initially...
package audio import ( "fmt" "sync" ) type RingBufWidget struct { minr0 int64 // minimum offset of any reader, in elements (but no reader can be more than maxsize behind r1, so r1 - minr0 <= maxsize) r1 int64 // offset of max sample in buffer + 1. samples Buffer size int // current capacity of buffer ...
package gocb import ( "context" "encoding/json" "net/url" "time" "github.com/couchbase/gocbcore/v8" "github.com/pkg/errors" "github.com/google/uuid" "github.com/opentracing/opentracing-go" ) type n1qlCache struct { name string encodedPlan string } type n1qlResponseMetrics struct { ElapsedTime s...
package state import ( "context" "runtime" "sort" "sync" "github.com/gogo/protobuf/proto" "github.com/pkg/errors" "github.com/prysmaticlabs/prysm/beacon-chain/state/stateutil" pbp2p "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" "github.com/prysmaticlabs/prysm/shared/bytesutil" "github.com/prysmaticla...
package main import ( "context" "fmt" "log" "sync" "time" "github.com/golang/protobuf/ptypes" "github.com/synerex/synerex_alpha/api" "github.com/synerex/synerex_alpha/api/common" "github.com/synerex/synerex_alpha/api/rideshare" "github.com/synerex/synerex_alpha/api/routing" "github.com/synerex/synerex_alph...
/* MIT License 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, distrib...
// see http://maxmind.github.io/MaxMind-DB/ // for the MaxMindDB format specification package maxminddb import ( "bufio" "bytes" "fmt" "hash/fnv" "io" "log" "math" "math/bits" "net" "os" "time" ) type Node struct { Bit0 int Bit1 int } type GeoName struct { Country_ISO string Country string Region...
// Code generated by protoc-gen-go. // source: protected_objects.proto // DO NOT EDIT! /* Package protected_objects is a generated protocol buffer package. It is generated from these files: protected_objects.proto It has these top-level messages: ObjectIdMessage ObjectMessage NodeMessage ProtectedObjectMessage ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/firestore/admin/v1/field.proto package admin import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise us...
package main import ( "bufio" "bytes" "flag" "fmt" "log" "os" "strconv" "github.com/aybabtme/rgbterm" "github.com/kr/logfmt" ) type line struct { Msg string `logfmt:msg` Price float64 `logfmt:price` Last float64 `logfmt:Last` } const fee = .0025 func main() { lb := flag.Bool("lb", false, "do leade...
package deploy import ( "fmt" "os" "sort" "strings" "time" "github.com/hashicorp/nomad/api" "github.com/hashicorp/nomad/scheduler" "github.com/mitchellh/colorstring" "github.com/pkg/errors" "golang.org/x/crypto/ssh/terminal" ) /* The functions below related to output formatting of a Nomad job plan were bo...
package ring import ( "encoding/binary" "encoding/json" "fmt" "io" "math" "math/rand" "time" "unsafe" "github.com/gholt/ring/lowring" ) // Builder will create and maintain rings. type Builder struct { ring *lowring.Ring nodes []*BuilderNode groups []*BuilderGroup randIntn func(int) int } // Ne...
// The MIT License (MIT) // // Copyright (c) 2021 <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, mo...
// Copyright (c) 2019 Uber Technologies, 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 o...
package hash import ( "math" "sort" "sync" "github.com/sachaservan/vec" ) /* This implements a hash function by finding the closest point of the leech lattice See Appendix B of http://web.mit.edu/andoni/www/papers/cSquared.pdf The lattice provides the densest sphere packing of 24 dimensional space. Sloane proved...
package keybind /* This file contains the logic to implement X's Keyboard Encoding described here: http://goo.gl/qum9q Essentially, LookupString is analogous to Xlib's XLookupString. It's useful in determining the english string representation of modifiers + keycode. It is not for the faint of heart. */ import ( "...
package poset import ( "fmt" "os" "strconv" "sync" "github.com/hashicorp/golang-lru" "github.com/Fantom-foundation/go-lachesis/src/common" "github.com/Fantom-foundation/go-lachesis/src/hash" "github.com/Fantom-foundation/go-lachesis/src/kvdb" "github.com/Fantom-foundation/go-lachesis/src/peers" "github.com...
package main import ( "fmt" "io/ioutil" "os" "strconv" "time" "github.com/BurntSushi/toml" "github.com/buildpacks/imgutil" "github.com/buildpacks/imgutil/local" "github.com/buildpacks/imgutil/remote" "github.com/docker/docker/client" "github.com/google/go-containerregistry/pkg/authn" "github.com/google/go...
// Copyright 2017-2021 DERO Project. All rights reserved. // Copyright 2022 SYFER Project. All rights reserved. // Use of this source code in any form is governed by RESEARCH license. // license can be found in the LICENSE file. // GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8 // // // THIS SOFTWARE IS PROVI...
// 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. // +build aix darwin dragonfly freebsd hurd js,wasm linux netbsd openbsd solaris windows package runtime import ( "runtime/internal/atomic" "unsafe" ) // E...
package main import ( "encoding/json" "log" "math" "sort" "strings" arg "github.com/alexflint/go-arg" "github.com/kiteco/kiteco/kite-go/dynamicanalysis" "github.com/kiteco/kiteco/kite-go/lang/python/pythoncode" "github.com/kiteco/kiteco/kite-go/lang/python/pythonimports" "github.com/kiteco/kiteco/kite-go/ty...
// 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...
// 🚀 Fiber is an Express.js inspired web framework written in Go with 💖 // 📌 Please open an issue if you got suggestions or found a bug! // 🖥 Links: https://github.com/gofiber/fiber, https://fiber.wiki // 🦸 Not all heroes wear capes, thank you to some amazing people // 💖 @valyala, @erikdubbelboer, @savsgio, @jul...
package asm import ( "fmt" "github.com/llir/ll/ast" asmenum "github.com/llir/llvm/asm/enum" "github.com/llir/llvm/internal/enc" "github.com/llir/llvm/ir" "github.com/llir/llvm/ir/metadata" "github.com/pkg/errors" ) // === [ Index AST ] =========================================================== // indexTopLe...
// Copyright 2016 CoreOS, 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/ads/googleads/v1/errors/resource_count_limit_exceeded_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v1/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "go...
package main import ( "flag" "io" "io/ioutil" _ "net/http/pprof" "os" "path" "runtime" "strconv" "github.com/signalfx/golib/datapoint/dpsink" "github.com/signalfx/golib/errors" "github.com/signalfx/golib/log" "github.com/signalfx/golib/sfxclient" "github.com/signalfx/golib/timekeeper" "github.com/signal...
package tview import ( "github.com/gdamore/tcell/v2" ) // Box implements the Primitive interface with an empty background and optional // elements such as a border and a title. Box itself does not hold any content // but serves as the superclass of all other primitives. Subclasses add their // own content, typically...
/* 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 csv_upload import ( "context" "encoding/csv" "encoding/json" "fmt" "io" "net/http" "os" "r3/bruteforce" "r3/cache" "r3/config" "r3/data" "r3/db" "r3/handler" "r3/log" "r3/login/login_auth" "r3/schema" "r3/tools" "r3/types" "regexp" "strconv" "strings" "time" "unicode/utf8" "github.com/...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.11.4 // source: spacex/api/device/wifi_config.proto package device import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" refl...
// Copyright 2012 Google Inc. All Rights Reserved. // Author: <EMAIL> (<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 // // Unl...
// Copyright 2019 Yunion // // 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 2022 gorse Project 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 (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
package file import ( "errors" "fmt" "io" "io/ioutil" "os" "strings" "github.com/rjkroege/edwood/sam" "github.com/rjkroege/edwood/util" ) // The ObservableEditableBuffer is used by the main program // to add, remove and check on the current observer(s) for a Text. // Text in turn, implements BufferObserver f...
package test_test import ( "encoding/hex" "gofree5gc/lib/CommonConsumerTestData/UDM/TestGenAuthData" "gofree5gc/lib/CommonConsumerTestData/UDR/TestRegistrationProcedure" "gofree5gc/lib/MongoDBLibrary" "gofree5gc/lib/nas/nasMessage" "gofree5gc/lib/nas/nasTestpacket" "gofree5gc/lib/nas/nasType" "gofree5gc/lib/ng...
// Copyright 2020 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...
// Licensed to LinDB under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. LinDB licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compli...
package cache import ( "encoding/gob" "errors" "fmt" "reflect" "time" ) // type AutoCacheManager struct { Ps CacheStorage } const TTL_INFINITY = -1 const CacheTreeRefPrefix = "attTreeRef" //type MapVisits map[string]CacheRegistry //-> contains a map of cacheKey->value //Mark struct as a cacheable entity. ...