text
stringlengths
5.51k
28.1k
package python import ( "fmt" "path" "strings" "github.com/kiteco/kiteco/kite-go/lang/python/pythonanalyzer" "github.com/kiteco/kiteco/kite-go/lang/python/pythonast" "github.com/kiteco/kiteco/kite-go/lang/python/pythonimports" "github.com/kiteco/kiteco/kite-go/lang/python/pythonlocal" "github.com/kiteco/kitec...
/* 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 eval import ( "fmt" "os" "sync" "github.com/elves/elvish/parse" ) // Op is an operation on an EvalCtx. type Op struct { Func OpFunc Begin, End int } type OpFunc func(*EvalCtx) func (op Op) Exec(ec *EvalCtx) { ec.begin, ec.end = op.Begin, op.End op.Func(ec) } func (cp *compiler) chunk(n *pars...
// Copyright (c) 2015-2021 MinIO, Inc. // // This file is part of MinIO Object Storage stack // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (...
/* Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. */ package mock_ocs import ( "errors" "fmt" "net" "time" "github.com/fiorix/go-diameter/diam" "github.com/fiori...
// Copyright 2019 <NAME> // Licensed under the Apache License, Version 2.0 (the "License") package ice import ( "bufio" "encoding/base64" "errors" "fmt" "io" "io/ioutil" "log" "math" "net" "net/http" "os" "regexp" "strconv" "strings" "sync" "sync/atomic" "time" "golang.org/x/net/html/charset" "gol...
// Copyright (c) 2022 BitMaelum Authors // // 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, publ...
package hwy import ( "bufio" "fmt" "io" "math" "strconv" "strings" "time" ) const ( majorSep = ";" minorSep = "," ) // Conversion multipiers. const ( // Meters in 1 mile. MilesToMeters = 1609.344 // Miles in 1 meter. MetersToMiles = 1 / MilesToMeters ) // Place is an 'origin' or 'destination' city, gi...
package lexer import ( "fmt" "log" "strconv" "strings" "unicode" "unicode/utf8" "github.com/pdk/gosh/token" ) // Lexer reads an input string identifying tokens. type Lexer struct { inputName string // the name of where the input is coming from (usually a filename) input []string // input is a slice of...
package main import ( "net" log "github.com/sirupsen/logrus" "github.com/prometheus/client_golang/prometheus" "github.com/foogod/go-powerwall" ) type powerwallCollector struct{ pw *powerwall.Client metrics map[string]*prometheus.Desc } func NewPowerwallCollector(client *powerwall.Client) *powerwallCollector {...
package micha const ( PARSE_MODE_DEFAULT ParseMode = "" PARSE_MODE_HTML ParseMode = "HTML" PARSE_MODE_MARKDOWN ParseMode = "Markdown" CHAT_TYPE_PRIVATE ChatType = "private" CHAT_TYPE_GROUP ChatType = "group" CHAT_TYPE_SUPERGROUP ChatType = "supergroup" CHAT_TYPE_CHANNEL ChatType = "channel" C...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/http/gzip/v2/gzip.proto package envoy_config_filter_http_gzip_v2 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" wrappers...
package gosec import ( "debug/elf" "log" "os" "reflect" "runtime" "sort" "syscall" "unsafe" ) const ( SGX_PATH = "/dev/isgx" PSIZE = uintptr(0x1000) //TODO @aghosn this must be exactly the same as in amd64/obj.go ENCLMASK = 0x040000000000 ENCLSIZE = 0x001000000000 MMMASK = 0x050000000000 SIM_OFF =...
// tello-desktop.go // 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, me...
package gmt import ( "fmt" "regexp" "strings" ) var isN = PerlPropsLoader("isNumber") var isAlnum = PerlPropsLoader("isAlnum") var isSc = PerlPropsLoader("isSc") var isSo = PerlPropsLoader("isSo") var isAlpha = PerlPropsLoader("isAlpha") var isLower = PerlPropsLoader("isLower") // Remove ASCII junk. var deduplica...
package static import ( "net/http" "path/filepath" "strings" ) const ( empty = "" OctetStream = "application/octet-stream" TextPlain = "text/plain; charset=utf-8" ) func DetectContentType(filename string, b []byte) string { v := http.DetectContentType(b) if v != TextPlain && v != OctetStream && v != ...
/* * Copyright 2012-2019 the original author or 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 a...
package unicodeclass import ( "bufio" "strings" "unicode" "unicode/utf8" ) type Class int const ( Invalid Class = -1 Blank Class = 0 Punctation Class = 1 Word Class = 2 Emoji Class = 3 SuperScript Class = 0x2070 SubScript Class = 0x2080 Braille ...
// Copyright (c) 2017 - 2017 badassops // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions an...
package gold import ( "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/x509" "encoding/asn1" "encoding/base64" "errors" "fmt" "os" _path "path" "strconv" "strings" "sync" "time" "unicode" ) const ( rsaBits = 2048 ) type webidAccount struct { Root string BaseURI string Document ...
/* * 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 ...
// -*- coding: utf-8 -*- // Copyright (C) 2018 Nippon Telegraph and Telephone Corporation. // // 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...
package outils import ( "crypto/rand" "crypto/tls" "crypto/x509" "encoding/base64" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" mrand "math/rand" "net" "net/http" "os" "os/exec" "path/filepath" "strconv" "strings" "time" ) // Utilities for ocs-api const ( HTTPRequestTimeoutS = 30 ...
// 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. package edwards25519 import ( "crypto/sha512" ) // PrivateKeyToCurve25519 converts an ed25519 private key into a corresponding // curve25519 private key such...
package kcode // kcode.go // -------- // Description: // Module for parsing Kano .kcode files and retrieving spell and block details from them. // // API: // BlockCount(xml []byte) int // SpellCount(xml []byte) int // PartCount(kcode []string) int // SceneCount(kcode []byte) int // ValidateFile(filename string, verbos...
// Package fixgenesis implements the fix-genesis command. package fixgenesis import ( "encoding/json" "fmt" "io/ioutil" "os" "time" "github.com/spf13/cobra" flag "github.com/spf13/pflag" "github.com/spf13/viper" beacon "github.com/oasisprotocol/oasis-core/go/beacon/api" "github.com/oasisprotocol/oasis-core...
package util import ( "bytes" "crypto/x509" "crypto/x509/pkix" "encoding/base64" "errors" "fmt" "io/ioutil" "strings" belogs "github.com/astaxie/beego/logs" ) var oid = map[string]string{ "2.5.4.3": "CN", "2.5.4.4": "SN", "2.5.4.5": "serialNumber",...
// Copyright 2020 The Monogon Project Authors. // // SPDX-License-Identifier: Apache-2.0 // // 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...
package webhdfs import ( "encoding/json" "fmt" "os" "path" "strconv" "strings" "syscall" "time" time_ "github.com/searKing/golang/go/time" ) // See: https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#XAttrs_JSON_Schema type XAttrs = []XAttr type XAttr struct { Name string...
package controller import ( "fmt" "time" dgsv1alpha1 "github.com/dgkanatsios/azuregameserversscalingkubernetes/pkg/apis/azuregaming/v1alpha1" shared "github.com/dgkanatsios/azuregameserversscalingkubernetes/shared" dgsclientset "github.com/dgkanatsios/azuregameserversscalingkubernetes/pkg/client/clientset/versi...
package modgen import ( "crypto/sha256" "encoding/binary" "fmt" "math" "math/rand" "strconv" "github.com/tetratelabs/wazero/internal/leb128" "github.com/tetratelabs/wazero/internal/wasm" ) // Gen generates a pseudo random compilable module based on `seed`. // The size of each section is controlled by the cor...
/* 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 agamemnon import ( "encoding/hex" "fmt" "github.com/google/uuid" "hash/crc32" "log" "net" "os" "time" pb "agamemnon/pb/protobuf" proto "github.com/golang/protobuf/proto" ) // List of errors that can be returned to client const ( NO_ERR = 0x00 KEY_DNE_ERR = 0x01 NO_SPC_ERR = ...
/* Copyright 2014 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. DO NOT EDIT. // source: helloworld.proto package helloworld import ( context "context" fmt "fmt" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/gr...
package capnp import ( "encoding/binary" "errors" "github.com/glycerine/rbtree" ) // A SegmentID is a numeric identifier for a Segment. type SegmentID uint32 // A Segment is an allocation arena for Cap'n Proto objects. // It is part of a Message, which can contain other segments that // reference each other. typ...
package agent import ( "context" "fmt" "math/rand" "strings" "testing" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-bitfield" "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/go-state-types/big" "github.com/filecoin-project/go-state-types/cbor" "gith...
// // Copyright Coinbase, Inc. All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // package fp import ( "encoding/binary" "fmt" "github.com/coinbase/kryptology/internal" "math/big" ) type Fp fiat_pasta_fp_montgomery_domain_field_element // r = 2^256 mod p var r = &Fp{0x34786d38fffffffd, 0x992c350be...
// Package lintcmd implements the frontend of an analysis runner. // It serves as the entry-point for the staticcheck command, and can also be used to implement custom linters that behave like staticcheck. package lintcmd import ( "flag" "fmt" "log" "os" "reflect" "runtime" "runtime/pprof" "runtime/trace" "so...
package gevent import ( "context" "encoding/base64" "encoding/hex" "encoding/json" "fmt" "os" "regexp" "sync" "time" "cloud.google.com/go/pubsub" "cloud.google.com/go/storage" "github.com/davecgh/go-spew/spew" "google.golang.org/api/option" "go.skia.org/infra/go/skerr" "go.skia.org/infra/go/sklog" "g...
// Copyright 2021 The Swarm 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 node import ( "context" "fmt" "io" "log" "math/big" "net" "net/http" "time" "github.com/ethereum/go-ethereum/common" mockAccounting "gith...
/** * Copyright (c) 2018 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 */ pa...
// 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...
package cgen import ( "fmt" "log" "os" "sort" "github.com/zellyn/gocool/parser" "github.com/zellyn/gocool/symbols" ) // File expr contains the code to actually write assembler // instructions for expressions. Most of it is a huge switch // statement. // writeExpr writes out the code for a single expression. f...
package lfshttp import ( "context" "crypto/tls" "fmt" "io" "net" "net/http" "net/textproto" "net/url" "os" "regexp" "strconv" "strings" "sync" "time" "github.com/git-lfs/git-lfs/config" "github.com/git-lfs/git-lfs/creds" "github.com/git-lfs/git-lfs/errors" "github.com/git-lfs/git-lfs/tools" "github...
package log import ( "bytes" "context" "io" "net" "os" "sync" "testing" "time" grpcmw "github.com/grpc-ecosystem/go-grpc-middleware" grpcmwlogrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus" "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus/ctxlogrus" "github.com/sirupsen/logru...
package function import ( "archive/tar" "bytes" "encoding/hex" "encoding/json" "fmt" "io" "io/ioutil" "log" "net/http" "net/url" "os" "os/exec" "path" "path/filepath" "strconv" "strings" "code.cloudfoundry.org/bytefmt" "github.com/openfaas/faas-cli/schema" "github.com/alexellis/derek/auth" "githu...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
package main import ( "errors" "fmt" "os" "path" "strings" "time" sdkArgs "github.com/newrelic/infra-integrations-sdk/args" "github.com/newrelic/infra-integrations-sdk/log" "github.com/newrelic/infra-integrations-sdk/sdk" "github.com/sirupsen/logrus" "github.com/newrelic/nri-kubernetes/v2/src/apiserver" ...
/* 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 (C) 2019-2021, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package platformvm import ( "errors" "fmt" "time" "github.com/gorilla/rpc/v2" "github.com/prometheus/client_golang/prometheus" "github.com/ava-labs/avalanchego/cache" "github.com/ava-labs/avalanchego...
package run // SPDX-License-Identifier: BSD-3-Clause // // Authors: <NAME> <<EMAIL>> // // Copyright (c) 2020, Lancaster University. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. R...
// 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...
// Copyright 2018 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: udsver.proto /* Package udsver_v1 is a generated protocol buffer package. It is generated from these files: udsver.proto It has these top-level messages: Request Response */ package udsver_v1 import proto "github.com/golang/protobuf/proto" import fmt "f...
// 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 ari import ( "encoding/json" "strings" "time" ptypes "github.com/gogo/protobuf/types" "github.com/rotisserie/eris" ) // Channel represents a communication path interacting with an Asterisk server. type Channel interface { // Get returns a handle to a channel for further interaction Get(key *Key) *Chan...
package radix import ( "bufio" "bytes" "crypto/sha1" "encoding/hex" "fmt" "io" "strconv" "strings" "sync" "github.com/mediocregopher/radix/v3/resp" "github.com/mediocregopher/radix/v3/resp/resp2" ) // Action performs a task using a Conn. type Action interface { // Keys returns the keys which will be acte...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/services/display_keyword_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v2/resources" ...
//---------------------------------------- // 代码由GenlibVcl工具自动生成。 // Copyright © ying32. All Rights Reserved. // //---------------------------------------- package vcl import ( . "github.com/ying32/govcl/vcl/api" . "github.com/ying32/govcl/vcl/types" "unsafe" ) type TApplication struct { IComponent ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/service/metrics/v3/metrics_service.proto package envoy_service_metrics_v3 import ( context "context" fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" _ "github.com/envoyproxy/p...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/v1/deployment.proto package deployment_go_proto import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference imports to suppress errors if they are not otherwise use...
// cmd/bk/backup.go // Copyright(c) 2017 <NAME> // BSD licensed; see LICENSE for details. package main import ( "bytes" "encoding/gob" "errors" "fmt" "github.com/mmp/bk/storage" "io" "io/ioutil" "os" "path/filepath" "strings" "sync" "time" ) ///////////////////////////////////////////////////////////////...
// Package bitswap implements the IPFS exchange interface with the BitSwap // bilateral exchange protocol. package bitswap import ( "context" "errors" "sync" "time" bssrs "github.com/ipfs/go-bitswap/sessionrequestsplitter" delay "github.com/ipfs/go-ipfs-delay" decision "github.com/ipfs/go-bitswap/decision" b...
// 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...
package ole var ( // IID_NULL is null Interface ID, used when no other Interface ID is known. IID_NULL = NewGUID("{00000000-0000-0000-0000-000000000000}") // IID_IUnknown is for IUnknown interfaces. IID_IUnknown = NewGUID("{00000000-0000-0000-C000-000000000046}") // IID_IDispatch is for IDispatch interfaces. I...
// Copyright 2022 <NAME> <EMAIL> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
// Copyright 2018 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. // Module file parser. // This is a simplified copy of Google's buildifier parser. package modfile import ( "bytes" "fmt" "os" "strings" "unicode" "unic...
/* Copyright 2018-2020, Arm Limited and affiliates. Copyright 2014 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 req...
// Copyright (c) 2014-2018 by <NAME>. All Rights Reserved. // Use of this source code is governed by a MIT-style license that can // be found in the LICENSE file. // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // prope...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available., * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obt...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.12.3 // source: artifact/oracle.proto package artifact import ( proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" protoreflect "google.golang.org/protobuf/reflec...
package bert import ( "bytes" "fmt" "math/big" "reflect" "testing" ) func ExampleDecode() { i, err := Decode([]byte{131, 97, 42}) if err != nil { fmt.Println(err) } fmt.Printf("%#v\n", i) s, err := Decode([]byte{131, 107, 0, 3, 102, 111, 111}) if err != nil { fmt.Println(err) } fmt.Printf("%#v\n", s)...
package main import ( "bufio" "crypto/md5" "encoding/base64" "fmt" "net" "net/http" "regexp" "strings" "sync" "syscall" "time" "golang.org/x/crypto/ssh" ) const ( maxNameLength = 32 historyLength = 20 systemMessageFormat = "\033[1;90m" privateMessageFormat = "\033[1m" highlightFormat ...
package chunkstore import ( "context" "fmt" "io" "math" "strconv" "syscall" "time" "github.com/buildbuddy-io/buildbuddy/server/interfaces" "github.com/buildbuddy-io/buildbuddy/server/util/status" ) const ( mb = 1 << 20 year = time.Hour * 24 * 365 ) // This implements a chunking reader/writer interface ...
// Copyright 2019 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright 2019 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package syslog import ( "bufio" "context" "io" "os" "regexp" "strconv" "time" "chromiumos/tast/errors" "chromiumos/tast/testing" ) // LineR...
// Package seaweedfscache provides an implementation of httpcache.Cache that stores and retrieves data using Seaweedfs. package seaweedfscache import ( "bytes" "errors" "fmt" "io/ioutil" "log" "net/http" "os" "time" seaweedfs "github.com/linxGnu/goseaweedfs" "github.com/sniperkit/cache/helpers" ) /* Refs:...
/* Copyright 2019 The KubeOne 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, sof...
/* Package util util consists of general utility functions and structures. Copyright 2021 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/enums/real_estate_placeholder_field.proto package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v0/enums" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports...
package pythongraph import ( "fmt" "math" "sort" "github.com/kiteco/kiteco/kite-golib/tensorflow" ) type insightsTask string const ( inferProdInsights = "infer_prod_insights" inferNameInsights = "infer_name_insights" graphInsights = "graph_insights" ) type insightsType string const ( finalPropagationS...
package prom import ( "fmt" "strings" "github.com/ovh/erlenmeyer/core" "github.com/ovh/erlenmeyer/proto/prom/promql" "github.com/spf13/viper" log "github.com/sirupsen/logrus" "github.com/prometheus/common/model" "github.com/prometheus/prometheus/pkg/labels" ) // An evaluator evaluates given expressions at ...
package main import ( "context" "encoding/json" "flag" "fmt" "net/http" "os" "strings" "sync" "golang.org/x/net/http2" "golang.org/x/time/rate" "google.golang.org/api/cloudresourcemanager/v1" "cloud.google.com/go/bigquery" "google.golang.org/api/iam/v1" ) type Roles struct { Roles []Role `json:"roles...
package consensus import ( "bytes" "context" "encoding/binary" "fmt" "math/big" "strings" "gx/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw/go-cid" "gx/ipfs/QmRXf2uUSdGSunRJsM9wXSUNVwLUGCY3So5fAs7h2CBJVf/go-hamt-ipld" "gx/ipfs/QmS2aqUZLJp8kF1ihE5rvDGE5LvmKDPnx32w9Z1BW9xLV5/go-ipfs-blockstore" "gx/ipfs...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc (unknown) // source: ping.proto package example import ( _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "googl...
package collector import ( "regexp" "strconv" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/log" "github.ibm.com/ZaaS/fabric-os-exporter/connector" ) const prefix_port = prefix + "portstats_" var ( crcErrDesc *prometheus.Desc crcGEofDesc *prometheus.Desc encOutDesc ...
// Package lzx implements a decompressor for the the WIM variant of the // LZX compression algorithm. // // The LZX algorithm is an earlier variant of LZX DELTA, which is documented // at https://msdn.microsoft.com/en-us/library/cc483133(v=exchg.80).aspx. package lzx import ( "bytes" "encoding/binary" "errors" "io...
// Copyright (c) 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
package i18n import ( "errors" ) // To simplify language management GoBL does not support full localization // and instead focusses on simple multi-language based on the ISO 639-1 set // of two letter codes. For business documents, this is sufficient as they // are generally issued in a given country context. // La...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: api/evaluator.proto package pb 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" grpc "google.go...
// Copyright 2022 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 © 2017 <NAME> <<EMAIL>> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package navigations import ( "errors" "sort" "time" "strings" "strconv" "encoding/json" "kai-suite/types" "golang.org/x/exp/utf8string" "fyne.io/fyne/v2" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/widget" "fyne.io/fyne/v2/data/binding" log "github.com/sirupsen/logrus" custom_widget "kai-suite/widgets" ...
package main import ( "github.com/jacobsa/go-serial/serial" "fmt" "log" "os" "strings" "bufio" "flag" "io" "strconv" "time" ) //Handy globals var verbose bool var portname string var baudrate uint var port io.ReadWriteCloser var scanner *bufio.Scanner //Calculates the checksum of some bytes. func checksu...
package seqio import ( "bytes" "errors" "fmt" "io" "sort" "strings" "github.com/go-ascii/ascii" "github.com/go-gts/gts" "github.com/go-pars/pars" ) // QualifierIO represents a single qualifier name-value pair. type QualifierIO [2]string // Unpack returns the name and value strings of the QualifierIO. func ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.19.4 // source: io/member/event.proto package members import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync...
package handler import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "strconv" "sync" "time" "github.com/govm-net/govm/conf" core "github.com/govm-net/govm/core" "github.com/govm-net/govm/database" "github.com/govm-net/govm/event" "github.com/govm-net/govm/messages" "github.com/govm-net/gov...
package nsxt import ( "fmt" "log" "strings" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" "github.com/vmware/vsphere-automation-sdk-go/runtime/data" "github.com/vmware/vsphe...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.13.0 // source: odpf/assets/common/timestamp.proto package common import ( timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "g...