text
stringlengths
8.57k
38.1k
// Copyright 2017 VMware, 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 2022 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...
// +build linux /* 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 agree...
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package frontend provides functionality for running the pkg.go.dev site. package frontend import ( "bytes" "context" "errors" "fmt" "io" "io/fs" "net...
package gorm import ( "time" "github.com/brianvoe/gofakeit" "github.com/google/uuid" "github.com/savannahghi/enumutils" "github.com/savannahghi/feedlib" "github.com/savannahghi/mycarehub/pkg/mycarehub/application/common" "github.com/savannahghi/mycarehub/pkg/mycarehub/application/enums" "github.com/savannahgh...
/* 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) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
package main import ( "image/color" "github.com/bwiggs/go-nexrad/archive2" "golang.org/x/image/colornames" ) func rhoColor(val float32) color.Color { // fmt.Println(val) if val < 0.275 { return colornames.Black } else if val < 0.35 { return colornames.Darkgrey } else if val < 0.4 { return colornames.Gra...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: common/common.proto package common import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runt...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: import_public/sub/a.proto package sub import ( fmt "fmt" proto "github.com/f-zou/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...
// This module contains a collection of YANG definitions // for Cisco IOS-XR tunnel-nve package operational data. // // This module contains definitions // for the following management objects: // nve: NVE operational data // // Copyright (c) 2013-2017 by Cisco Systems, Inc. // All rights reserved. package tunnel_n...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/network/dubbo_proxy/v2alpha1/route.proto package envoy_config_filter_network_dubbo_proxy_v2alpha1 import ( fmt "fmt" route "github.com/cilium/proxy/go/envoy/api/v2/route" _type "github.com/cilium/proxy/go/envoy/type" matcher "github.c...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/extension_feed_item.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ad...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/automl/v1beta1/data_items.proto package automl import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "github.com/golang/protobuf/ptypes/any" _ "github.com/golang/protobuf/ptypes/duration" _struct "github.com/golang/pro...
/* * Copyright 2021, Offchain Labs, 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 ag...
package main import ( "bytes" "encoding/binary" "errors" "fmt" "io/ioutil" "os" ) const memSize = 3 * 16 * 16 type opcode byte const ( jmp opcode = iota movr movm add xor cmp jmpe hlt ) var opcodes = [...]string{ "jmp", "movr", "movm", "add", "xor", "cmp", "jmpe", "hlt", } func (o opcode) St...
package parser import ( "fmt" "github.com/raa0121/GoBCDice/pkg/core/ast" "testing" ) // 構文解析の例。 func Example() { // 構文解析する r, err := Parse("Example", []byte("(2*3-4)d6-1d4+1")) if err != nil { return } // 得られた抽象構文木のS式を出力する if node, ok := r.(ast.Node); ok { fmt.Println(node.SExp()) } // Output: // (DR...
/* Copyright [2018] [jc3wish] 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 distrib...
// Copyright ©2016 The Gonum 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 combin import ( "math" "sort" ) const ( errNegInput = "combin: negative input" badSetSize = "combin: n < k" badInput...
package entity import ( etc "github.com/Projects/RidingTrainingSystem/pkg/ethiopianCalendar" "github.com/Projects/RidingTrainingSystem/pkg/form" "github.com/dgrijalva/jwt-go" "github.com/jinzhu/gorm" "github.com/lib/pq" // "github.com/samuael/RidingTrainingSystem/entity" ) var ( // PathToStudentsFromTemplates ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: node.proto package node /* Package node defines data model for Kubernetes Node. */ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Mar...
package sfo import( "net/http" "sort" "github.com/skypies/geo" ) // A bunch of constants relating to SFO var ( // Retire these three. KLatlongSFO = geo.Latlong{37.6188172, -122.3754281} KLatlongSJC = geo.Latlong{37.3639472, -121.9289375} KLatlongSERFR1 = geo.Latlong{37.221516, -121.992987} // This is the cen...
package hraftd import ( "bytes" "errors" "fmt" "io" "io/ioutil" "log" "net" "os" "path/filepath" "sync" "time" raftboltdb "github.com/hashicorp/raft-boltdb" jsoniter "github.com/json-iterator/go" hclog "github.com/hashicorp/go-hclog" "github.com/hashicorp/raft" ) const ( retainSnapshotCount = 2 r...
package main import ( "bufio" "bytes" "crypto/sha256" "encoding/json" "flag" "fmt" "io" "io/ioutil" "os" "regexp" "runtime" "sort" "strconv" "strings" "sync" "time" "github.com/nxadm/tail" log "github.com/sirupsen/logrus" "gitlab.com/devopsworks/tools/dw-query-digest/outputs" _ "gitlab.com/devopsw...
package chain import ( "bytes" "context" "crypto/ed25519" "crypto/sha256" "encoding/json" "errors" "fmt" "sync" "time" "github.com/AccumulateNetwork/accumulate/internal/abci" accapi "github.com/AccumulateNetwork/accumulate/internal/api" apiv2 "github.com/AccumulateNetwork/accumulate/internal/api/v2" "git...
package logbook import ( "context" "embed" "encoding/json" "fmt" "image/color" "log" "strconv" "strings" "time" sm "github.com/flopp/go-staticmaps" "github.com/fogleman/gg" "github.com/golang/geo/s2" "github.com/jung-kurt/gofpdf" "github.com/xuri/excelize/v2" "google.golang.org/api/option" "google.gol...
// Copyright 2015 Light Code Labs, 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 agre...
// Diff Match and Patch – tests // Original work: Copyright 2006 Google Inc. // Go port: Copyright 2012 <NAME> // // Use of this source code is governed by the Apache License, // Version 2.0, that can be found in the LICENSE file. package dmp import ( . "github.com/knieriem/dmp/rstring" "strconv" "strings" "tes...
// Copyright 2009 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 gc import ( "cmd/compile/internal/types" "fmt" ) // function literals aka closures func closurehdr(ntype *Node) { n := nod(OCLOSURE, nil, nil) n.F...
package cs import ( "net/http" "net/url" "math" "strconv" "time" "fmt" "encoding/json" "github.com/denverdino/aliyungo/common" "github.com/denverdino/aliyungo/ecs" ) type ClusterState string const ( Initial = ClusterState("initial") Running = ClusterState("running") Updating = ClusterSta...
// Copyright 2010 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 regexp import ( "bufio" "compress/bzip2" "fmt" "internal/testenv" "io" "os" "path/filepath" "regexp/syntax" "strconv" "strings" "testing" "...
// Copyright (c) 2018 Cisco and/or its affiliates. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at: // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
// Copyright 2016-2020, Pulumi 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-2.0 // // Unless required by applicable law or...
// // Copyright (c) 2021 Intel 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-2.0 // // Unless required by applicable law or...
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
package main import ( "crypto/rand" "encoding/json" "fmt" "math" "math/big" "strconv" "strings" ) const ( numWordsPerSet = 4 numExtra = 3 // +3 for (rand 0-9 number, rand word alignment, rand before/after word) numSets = 10 ) var words = []string{ "ability", "able", "aboard", "about", "above"...
// Package backend provides the LoRaWAN backend interfaces structs. package backend import ( "encoding/hex" "encoding/json" "strconv" "time" "github.com/matiassequeira/lorawan" "github.com/pkg/errors" ) // RatePolicy defines the RatePolicy type. type RatePolicy string // RoamingType defines the RoamingType ty...
package network import ( "crypto/ecdsa" "encoding/hex" "reflect" "fmt" "time" "sync" "errors" "net" "strconv" "github.com/MetaLife-Protocol/SuperNode/channel/channeltype" "github.com/MetaLife-Protocol/SuperNode/encoding" "github.com/MetaLife-Protocol/SuperNode/internal/rpanic" "github.com/MetaLife-...
// Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
// Copyright 2019 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package service import ( "fmt" "regexp" "sort" "strings" "github.com/keybase/client/go/contacts" email_utils "github.com/keybase/client/go/emails" "github.com/keybase/client/go/externals" ...
package beehive import ( "encoding/gob" "errors" "flag" "fmt" "io/ioutil" "log" "math/rand" "net" "net/rpc" "os" "os/signal" "strings" "sync" "syscall" "time" etcdraft "github.com/kandoo/beehive/Godeps/_workspace/src/github.com/coreos/etcd/raft" "github.com/kandoo/beehive/Godeps/_workspace/src/github...
// Copyright (c) 2013-2017 The btcsuite developers // Copyright (c) 2015-2016 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package wallet import ( "bytes" "encoding/hex" "fmt" "strings" "github.com/emirpasic/gods/trees/redblacktree" ...
// What it does: // // This example opens a video capture device, then streams MJPEG from it. // Once running point your browser to the hostname/port you passed in the // command line (for example http://localhost:8080) and you should see // the live video stream. // // How to run: // // detector config.toml // // go ...
// Copyright 2019 cruzbit developers // Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. package cruzbit import ( "context" "fmt" "log" "math/rand" "net" "net/http" "strconv" "sync" "time" "github.com/glendc/go-external-ip" ) // PeerManager manages incoming...
/* Copyright 2022 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribute...
// Copyright 2021 <NAME> <<EMAIL>>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
package parser import ( "bytes" "encoding/json" "fmt" "strings" "time" ) const ( Nil = "nil" ) type Value interface { Type() ValueType String() string } type ValueType string // // Node. // type Node interface { String() string Pos() *PositionRange } type CascadeFunctions struct { Funcs []*FuncExpr `j...
package proc import ( "reflect" "github.com/gyuho/linux-inspect/schema" ) // NetDevSchema represents '/proc/net/dev'. // Reference http://man7.org/linux/man-pages/man5/proc.5.html // and http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html. var NetDevSchema = schema.RawData{ IsYAML: false, Columns: []sch...
// //Copyright 2021 The JamJar Relay Server 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...
package df2014 import ( "reflect" "strconv" ) type Material struct { Type MaterialType Index int32 `df2014_version_min:"1205"` Index23a int16 `df2014_version_max:"1169"` } func (m Material) prettyPrint(w *WorldDat, buf, indent []byte, outerTag reflect.StructTag) []byte { convert := MaterialType.Convert ...
package metadata import ( "encoding/xml" "errors" "fmt" "strings" "time" ) // UploadMetadata is the internal representation for Metadata on uploads. // // All time.time-objects should be ISO-8601-compliant, and include the clients time-offset. // The required metadata depends on the client, and can be retrieved ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: msp/msp_config.proto package msp 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 _ = math.Inf // MSPCon...
package main import ( "encoding/json" "fmt" "log" "net/http" "os" "sort" "sync" "sync/atomic" "time" ) type Coord struct { X int `json:"x"` Y int `json:"y"` } type Snake struct { ID string `json:"id"` Name string `json:"name"` Health int `json:"health"` Body []Coord `json:"body"` } type...
// A D3.js plugin that produces flame graphs from hierarchical data. // https://github.com/spiermar/d3-flame-graph // Version 2.0.0-alpha4 // See LICENSE file for license details package d3flamegraph // JSSource returns the d3-flamegraph.js file const JSSource = ` (function (global, factory) { typeof exports === 'ob...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation and Dapr Contributors. // Licensed under the MIT License. // ------------------------------------------------------------ package actors import ( "context" "encoding/json" "fmt" nethttp "net/http" "regexp" "st...
package main import ( "bytes" "context" "errors" "fmt" "io/ioutil" "log" "math" "os" "os/exec" "os/signal" "path" "path/filepath" "regexp" "strconv" "strings" "syscall" "time" "github.com/fatih/color" "github.com/hashicorp/logutils" "github.com/jessevdk/go-flags" ) var ( version string commit ...
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
/* Copyright 2017, 2019 the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
package edge import ( "encoding/json" "errors" "fmt" "io" "sort" "strconv" "time" imodels "github.com/influxdata/influxdb/models" "github.com/influxdata/kapacitor/influxdb" "github.com/influxdata/kapacitor/models" ) // Message represents data to be passed along an edge. // Messages can be shared across man...
// 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 defines the concept of a Bee node // by bootstrapping and injecting all necessary // dependencies. package node import ( "context" "crypto...
// Copyright Istio 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 wri...
// 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...
package bchutil import ( "errors" "fmt" "github.com/martinboehm/btcutil" "github.com/martinboehm/btcutil/chaincfg" "github.com/martinboehm/btcutil/txscript" "golang.org/x/crypto/ripemd160" ) var ( // ErrChecksumMismatch describes an error where decoding failed due // to a bad checksum. ErrChecksumMismatch = ...
/* Copyright 2020 The Knative Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.7.1 // source: blackhole.proto package proto import ( context "context" proto "github.com/golang/protobuf/proto" types "github.com/qlcchain/go-qlc/rpc/grpc/proto/types" _ "google.golang.org/genproto/google...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package mongodbatlas import ( "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/go/pulumi" ) // `mongodbatlas_cluster` provides a Cluster re...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/datacatalog/v1beta1/datacatalog.proto package datacatalog import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" ) ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/bidding_strategy.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ads/g...
// Copyright 2016 ETH Zurich // Copyright 2018 ETH Zurich, Anapaya 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 ...
package raft import "sync" import "labrpc" import "time" import "math/rand" import "log" import "bytes" import "labgob" import "sort" //import "os" //节点状态 const Fallower, Leader, Candidate int = 1, 2, 3 //心跳周期 const HeartbeatDuration = time.Duration(time.Millisecond * 600) //竞选周期 const CandidateDuration = Heartbea...
package blockwatch import ( "context" "errors" "fmt" "math/big" "sync" "time" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/rpc" "github.com/golang/glog" ) //...
//Copyright 2019 Baidu, Inc. package tdpos import ( "bytes" "errors" "fmt" "io/ioutil" "math/big" "os" "strconv" "sync" "time" log "github.com/xuperchain/log15" "encoding/hex" "encoding/json" "github.com/xuperchain/xuperunion/common" "github.com/xuperchain/xuperunion/common/config" cons_base "github...
// Copyright 2019, The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cmp import ( "bytes" "fmt" "math" "reflect" "strconv" "strings" "unicode" "unicode/utf8" "github.com/Boklazhenko/go-cmp/cmp/internal/diff" )...
package framework import ( "context" "fmt" "io/ioutil" "log" "net/url" "os" "path/filepath" "strconv" "strings" "time" "github.com/google/go-github/v29/github" configclient "github.com/openshift/client-go/config/clientset/versioned" operatorv1 "github.com/openshift/client-go/operator/clientset/versioned/...
package db import ( "context" "database/sql" "database/sql/driver" "fmt" "reflect" "regexp" "runtime" "strings" "sync" "github.com/serenize/snaker" "github.com/yaitoo/sparrow/types" ) var underLineChar = regexp.MustCompile(`_`) // A FieldInfo is metadata for a struct field. type FieldInfo struct { Index...
// 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 wr...
// 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 (c) 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 or at // https://developers.google.com/open-source/licenses/bsd. // Package lint contains a linter for Go source code. package lint import ( "bufio" "b...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package state import ( "bytes" "sync" "sync/atomic" "time" pb "github.com/golang/protobuf/proto" "github.com/mcc-github/blockchain-protos-go/common" proto "github.com/mcc-github/blockchain-protos-go/gossip" "github.com/mcc-gi...
package peering import ( "context" "encoding/hex" "fmt" "sort" "strconv" "sync/atomic" "time" "github.com/libp2p/go-libp2p-core/peer" "github.com/migalabs/armiarma/src/db" db_utils "github.com/migalabs/armiarma/src/db/utils" "github.com/migalabs/armiarma/src/hosts" "github.com/sirupsen/logrus" ) var ( P...
package pythonbatch import ( "archive/zip" "bytes" "fmt" "io/ioutil" "log" "os" "path" "runtime" "sort" "strings" "time" "github.com/kiteco/kiteco/kite-go/lang" "github.com/kiteco/kiteco/kite-go/lang/python/pythonast" "github.com/kiteco/kiteco/kite-go/lang/python/pythonparser" "github.com/kiteco/kiteco...
// Copyright 2016 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, ...
// Code generated by protoc-gen-go. // source: pwr/pwr.proto // DO NOT EDIT! /* Package pwr is a generated protocol buffer package. It is generated from these files: pwr/pwr.proto It has these top-level messages: PatchHeader SyncHeader BsdiffHeader SyncOp SignatureHeader BlockHash CompressionSettings Manife...
/* vim: set sw=4 sts=4 et foldmethod=syntax : */ /* * Copyright (c) 2011 <NAME> <<EMAIL>> * 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 t...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.19.4 // source: envoy/type/matcher/v3/metadata.proto package matcherv3 import ( _ "github.com/cncf/xds/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" protoreflect "google.golang...
/* * Copyright (c) 2017, MegaEase * 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 ap...
/* 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 goshopify import ( "encoding/json" "fmt" "net/http" "time" "github.com/shopspring/decimal" ) const ordersBasePath = "orders" const ordersResourceName = "orders" // OrderService is an interface for interfacing with the orders endpoints of // the Shopify API. // See: https://help.shopify.com/api/referenc...
// Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
// Package peerless provides a SOAP HTTP client. package peerless import ( "reflect" ) // DateTime in WSDL format. type DateTime string // Action was auto-generated from WSDL. type Action string // Validate validates Action. func (v Action) Validate() bool { for _, vv := range []string{ "CREATE", "CONFIRM", ...
package bitcoin import ( "bytes" "encoding/binary" "encoding/hex" "encoding/json" "fmt" "github.com/GalaIO/GalaExplorer/logs" "github.com/GalaIO/GalaExplorer/models" "github.com/GalaIO/GalaExplorer/utils" "github.com/pkg/errors" "io/ioutil" "net/http" "sync/atomic" ) var logger = logs.GetLogger("bitcoin")...
// Copyright (c) 2021 Terminus, 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 agree...
// Copyright 2020 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 © 2019 The Homeport Team // // 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, publis...
// Copyright 2020 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 appl...
package main /* # # check-rds # # DESCRIPTION: # Check RDS instance statuses by RDS and CloudWatch API. # # OUTPUT: # plain-text # # PLATFORMS: # MAC OS # # # USAGE: # Critical if DB instance "sensu-admin-db" is not on ap-northeast-1a # ./check-rds --db_instance_id=sensu-admin-db --available_zone_severity=cr...
package main import ( "bufio" "fmt" "log" "os" "pdfjet" "pdfjet/a4" "pdfjet/compliance" "pdfjet/imagetype" "strings" "time" ) // Example17 draws the Canadian flag using a Path object that contains both lines // and curve segments. Every curve segment must have exactly 2 control points. func Example17() { f...
package qstest // NOTE: THIS FILE WAS PRODUCED BY THE // ZEBRAPACK CODE GENERATION TOOL (github.com/glycerine/zebrapack) // DO NOT EDIT import "github.com/glycerine/zebrapack/msgp" // fieldsNotEmpty supports omitempty tags func (z *ZebraData) fieldsNotEmpty(isempty []bool) uint32 { if len(isempty) == 0 { return 3...
package persister import ( "fmt" "io/fs" "log" "os" "path/filepath" "strings" "sync" "sync/atomic" "syscall" "time" whisper "github.com/go-graphite/go-whisper" "go.uber.org/zap" "github.com/go-graphite/go-carbon/helper" "github.com/go-graphite/go-carbon/points" "github.com/go-graphite/go-carbon/tags" ...
// Copyright (c) 2019 <NAME>. 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...