text
stringlengths
5.51k
28.1k
package field import ( "errors" "fmt" "go/types" "sort" "strconv" "strings" "github.com/iancoleman/strcase" "github.com/jinzhu/inflection" "github.com/lolopinto/ent/internal/edge" "github.com/lolopinto/ent/internal/enttype" "github.com/lolopinto/ent/internal/schema/base" "github.com/lolopinto/ent/internal...
package cmd import ( "fmt" "gorm.io/gorm" "strings" ) // DROP TABLE Or DROP VIEW... func drop(sourceTableMap map[string]Table, targetTableData []Table) { for _, targetTable := range targetTableData { if _, ok := sourceTableMap[targetTable.TableName]; !ok { switch targetTable.TableT...
/* Copyright 2018 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// This package implements an API over a working copy of a Subversion repository // of a Polarion project. It qualifies as a hack. // // NOTE To build a local copy with revisions, svnrdump can be used, and then a // local SVN or Git server repo created. But: Git doesn't support files > 100 MB ! // // NOTE https://gist....
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package client2 import ( "fmt" "net/url" "path" "strings" "sync" "time" "github.com/youtube/vitess/go/db" mproto "github.com/youtube/vitess/go/mysql/prot...
package instructions import ( "JVM-Go/instructions/instructions/base" "JVM-Go/instructions/instructions/comparisons" "JVM-Go/instructions/instructions/constants" "JVM-Go/instructions/instructions/control" "JVM-Go/instructions/instructions/conversions" "JVM-Go/instructions/instructions/extended" "JVM-Go/instruct...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/errors/campaign_draft_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: flyteidl/admin/schedule.proto package admin import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // Th...
// Package Gossip provides a gossip registry based on hashicorp/memberlist package gossip import ( "context" "encoding/json" "io/ioutil" "net" "os" "os/signal" "strconv" "strings" "sync" "syscall" "time" "github.com/golang/protobuf/proto" "github.com/google/uuid" "github.com/hashicorp/memberlist" log "...
/* * Copyright 2019 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 Licen...
// Copyright 2019 tsuru 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 k8s import ( "encoding/json" "fmt" "math" "sort" "strings" tsuruConfig "github.com/tsuru/config" "github.com/tsuru/nginx-operator/api/v1alpha1" ...
// This code is available on the terms of the project LICENSE.md file, // also available online at https://blueoakcouncil.org/license/1.0.0. /* The LoadBot is a load tester for dcrdex. LoadBot works by running one or more Trader routines, each with their own *core.Core (actually, a *Mantle) and wallets. */ package ma...
package endure import ( "net/http" // pprof will be enabled in debug mode "net/http/pprof" "reflect" "sync" "time" "github.com/spiral/endure/pkg/fsm" "github.com/spiral/endure/pkg/graph" ll "github.com/spiral/endure/pkg/linked_list" "github.com/spiral/errors" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) ...
// Copyright © 2019 Annchain Authors <EMAIL ADDRESS> // // 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 burn import ( "log" "net" "os" "strings" "sync" "time" "github.com/valyala/fasthttp" "github.com/valyala/fasthttp/prefork" ) const ( version = "1.0.0" name = "Burn Framework" banner = ` Server Running on %s` ) const ( // defaultCacheSize is number of entries that can cache hold defaultCache...
package main // TODO: MBC1, 128 ROM banks (max 2mb), 4 RAM banks (max 32kb) import ( "fmt" "os" ) type Bus struct { cartridge Cartridge WRAM [0x2000]byte ppu PPU apu APU HRAM [0x80]byte timer Timer interrupt Interrupt keypad Keypad SB byte SC byte KEY1 byte enableERAM bool bankingMode byte } func (...
package topnode import ( "encoding/json" "fmt" "strings" "text/tabwriter" "github.com/kubeflow/arena/pkg/apis/types" "github.com/kubeflow/arena/pkg/apis/utils" v1 "k8s.io/api/core/v1" "k8s.io/client-go/kubernetes" ) var GPUTopologyNodeDescription = ` 1.This node is enabled gpu topology mode. 2.Pods can r...
package client import ( "archive/tar" "bufio" "bytes" "fmt" "io" "os" "path/filepath" "regexp" "runtime" "golang.org/x/net/context" "github.com/docker/docker/api" "github.com/docker/docker/builder" "github.com/docker/docker/builder/dockerignore" Cli "github.com/docker/docker/cli" "github.com/docker/do...
package main import ( "bytes" "context" "encoding/json" "flag" "fmt" "io" "io/ioutil" "net/http" "os" "strings" "time" extapi "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" "k8s.io/klog/v2" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/...
package mock import ( "crypto/sha256" "errors" "fmt" "math/rand" "time" "github.com/Sukhavati-Labs/go-miner/chainutil" "github.com/Sukhavati-Labs/go-miner/config" "github.com/Sukhavati-Labs/go-miner/txscript" "github.com/Sukhavati-Labs/go-miner/wire" "github.com/btcsuite/btcd/btcec" ) type TxInput struct {...
/* Package simplehttp provides an http.Handler that makes it easy to serve Vugu applications. Useful for development and production. The idea is that the common behaviors needed to serve a Vugu site are readily available in one place. If you require more functionality than simplehttp provides, nearly everything it d...
package sqlite import ( "database/sql" "database/sql/driver" "fmt" "io" "io/ioutil" "log" "os" "path" "path/filepath" "regexp" "strconv" "strings" "sync" sqlite3 "github.com/mattn/go-sqlite3" ) var ( rmu, imu sync.Mutex ) // N/A, impacts db, or multi-column -- ignore for now //collation_list //databa...
// +build !index_generate // +build !novnc_generate package main import ( "errors" "fmt" "io" "net" "net/http" "net/url" "os" "strings" "time" "github.com/gorilla/mux" "github.com/spf13/pflag" "golang.org/x/net/websocket" ) //go:generate go run novnc_generate.go //go:generate go run index_generate.go /...
package offsetmgr import ( "math" "sync" "time" "github.com/Shopify/sarama" "github.com/mailgun/kafka-pixy/actor" "github.com/mailgun/kafka-pixy/config" "github.com/mailgun/kafka-pixy/mapper" "github.com/mailgun/kafka-pixy/none" "github.com/pkg/errors" ) const ( minOffsetCommitTimeout = 300 * time.Millisec...
package trie import ( "bytes" "math/bits" "reflect" "sort" "github.com/openacid/errors" "github.com/openacid/low/bitmap" "github.com/openacid/low/bitstr" "github.com/openacid/low/bmtree" "github.com/openacid/low/sigbits" "github.com/openacid/must" "github.com/openacid/slim/encode" ) // subset of keys: key...
// Copyright 2016 The G3N 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 !wasm package window import ( "bytes" "fmt" "github.com/hecate-tech/engine/gui/assets" "runtime" "github.com/hecate-tech/engine...
/* Copyright 2019 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 2018 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Copyright 2017 orijtech. 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 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 constants type Country struct { Code string Name string } var Countries = []Country{ {Code: "AD", Name: "ANDORRA"}, {Code: "AE", Name: "UNITED ARAB EMIRATES"}, {Code: "AF", Name: "AFGHANISTAN"}, {Code: "AG", Name: "ANTIGUA AND BARBUDA"}, {Code: "AI", Name: "ANGUILLA"}, {Code: "AL", Name: "ALBANIA"}, ...
package service import ( "bytes" "context" "crypto/ecdsa" "encoding/json" "errors" "fmt" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/rpc" "g...
// Copyright 2019 Intel Corporation. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
/* Copyright © 2017-2018 tso <<EMAIL>> This work is free. 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 by Sam Hocevar. See the LICENSE.txt file for more details. */ package main import ( "fmt" "log" "os" "os/signal" "time" "...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: sawtooth-sdk/protobuf/identity_pb2/identity.proto package identity 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....
package http_ext import ( "bytes" "context" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "os" "reflect" "regexp" "strconv" "strings" "sync" "time" "github.com/clbanning/mxj/x2j" "github.com/delphinus/go-digest-request" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/plugin...
package main import ( "context" "encoding/json" "errors" "fmt" "os" "path/filepath" "strconv" "github.com/urfave/cli/v2" "github.com/mutility/coverpkg/internal/coverage" "github.com/mutility/coverpkg/internal/notes" "github.com/mutility/diag" ) type errInvalidGroupBy string func (e errInvalidGroupBy) Er...
/* * Tencent is pleased to support the open source community by making TKEStack * available. * * Copyright (C) 2012-2023 Tencent. 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 th...
package rewrite import ( "context" "fmt" "regexp" "strconv" "strings" "github.com/coredns/coredns/plugin" "github.com/coredns/coredns/request" "github.com/miekg/dns" ) // stringRewriter rewrites a string type stringRewriter interface { rewriteString(src string) string } // regexStringRewriter can be used ...
// *** 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 lambda import ( "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/go/pulumi" ) // Provides a Lambda Function resource. Lambda allows...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
// Copyright 2017 The CC 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 cc import ( "encoding/binary" "go/token" "reflect" "strconv" "github.com/cznic/golex/lex" "github.com/cznic/ir" "github.com/cznic/strutil" "gi...
// Package api implements the remote execution API server. package api import ( "context" "fmt" "net" "sync" "time" pb "github.com/bazelbuild/remote-apis/build/bazel/remote/execution/v2" "github.com/bazelbuild/remote-apis/build/bazel/semver" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptyp...
package getproviders import ( "crypto/sha256" "fmt" "io" "os" "path/filepath" "strings" "golang.org/x/mod/sumdb/dirhash" ) // Hash is a specially-formatted string representing a checksum of a package // or the contents of the package. // // A Hash string is always starts with a scheme, which is a short series...
package main import ( "database/sql" "flag" "fmt" "io/ioutil" "log" "net/http" "os" "os/exec" "time" "github.com/bndr/gotabulate" _ "github.com/lib/pq" ) const ( v = "1.0 BETA" DB_USER = "user1" DB_PASSWORD = "<PASSWORD>" DB_NAME = "testdb" host = "localhost" port = 5...
package mutasiShopee import ( "context" "fmt" _ "github.com/robfig/cron/v3" "log" "shopeAPIDetail/pkg/errors" "time" orderPelapakEntity "shopeAPIDetail/internal/entity/mutasiShopee" userEntity "shopeAPIDetail/internal/entity/shope" ) // Data ... type Data interface { GetAllOrderPelapak(ctx context.Context) ...
// Copyright (c) 2020, <NAME>, All rights reserved. package jp_test import ( "fmt" "testing" "github.com/ngjaying/ojg/gen" "github.com/ngjaying/ojg/jp" "github.com/ngjaying/ojg/oj" "github.com/ngjaying/ojg/tt" ) type edata struct { src string value interface{} noMatch bool } func scriptBenchData(siz...
package main import ( "flag" "fmt" "html" "log" "net/http" "os" "os/signal" "path/filepath" "strings" "syscall" "text/template" "github.com/cwbooth5/go2redirector/api" gohttp "github.com/cwbooth5/go2redirector/http" "github.com/cwbooth5/go2redirector/core" "github.com/oxtoacart/bpool" ) // This is es...
// Code generated by protoc-gen-go. // source: service.proto // DO NOT EDIT! /* Package revdialgrpc is a generated protocol buffer package. It is generated from these files: service.proto It has these top-level messages: Empty GreetMsg GreetReply ExecCommand ExecStream */ package revdialgrpc import proto "git...
// SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors. // // SPDX-License-Identifier: Apache-2.0 package remote import ( "context" "errors" "fmt" "io" "net/url" "os" "path" "strings" cdv2 "github.com/gardener/component-spec/bindings-go/apis/v2" "github.com/gardener/co...
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package rename // This file contains logic related to specifying a renaming: parsing of // the flags as a form of query, and finding the object(s) it denotes. ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.17.0 // source: myproject/users/v1beta1/users_messages.proto package v1beta1 import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "googl...
// // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: function.proto package tensorflow import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a co...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: go.chromium.org/luci/dm/api/service/v1/types.proto package dm import ( fmt "fmt" proto "github.com/golang/protobuf/proto" empty "github.com/golang/protobuf/ptypes/empty" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference...
// Code generated package datacatalog import ( "context" "encoding/base64" "fmt" "reflect" "strconv" "strings" "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog" "github.com/flyteorg/flyteplugins/go/tasks/pluginmachinery/catalog" "github.co...
/* Copyright 2022 The KCP 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, softwar...
package main import ( "bytes" "context" "encoding/json" "flag" "fmt" "html/template" "io/ioutil" appv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" extensionsv1beta1 "k8s.io/api/extensions/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8...
// 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. // The updateac command updates the CONTRIBUTORS file in the Go repository. // // This binary should be run at the top of GOROOT. // It will try to fetch and up...
//---------------------------------------- // 代码由GenlibVcl工具自动生成。 // Copyright © ying32. All Rights Reserved. // //---------------------------------------- package vcl import ( . "github.com/ying32/govcl/vcl/api" . "github.com/ying32/govcl/vcl/types" "unsafe" ) type TImageList struct { IComponent ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.8.0 // source: fleetspeak/src/server/proto/fleetspeak_server/broadcasts.proto package fleetspeak_server import ( proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" timestam...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: api.proto package api import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference imports to suppre...
package main import ( "regexp" "strings" ) func getHex(s string) string { if s == "" { return "" } colorName := _expandColorAbbr(s) if isHex := (len(colorName) > 0 && string(colorName[0]) == "#"); isHex { return colorName } group := MaterialPalette[colorName] if isColorAbbr := (group != nil); isColorA...
// 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 postgres import ( "context" "database/sql" "encoding/json" "errors" "fmt" "reflect" "sort" "strings" "github.com/lib/pq" "golang.org/x/pkgsi...
package vaultdb import ( "context" "database/sql" "fmt" "os" "runtime/pprof" "strings" "testing" "time" // "bg/common/briefpg" vaultapi "github.com/hashicorp/vault/api" logicalDb "github.com/hashicorp/vault/builtin/logical/database" vaulthttp "github.com/hashicorp/vault/http" "github.com/hashicorp/vault...
package ably import ( "bytes" "context" _ "crypto/sha512" "encoding/base64" "encoding/json" "fmt" "io" "io/ioutil" "math/rand" "mime" "net/http" "net/http/httptrace" "net/http/httputil" "reflect" "strings" "sync" "time" "github.com/ably/ably-go/ably/internal/ablyutil" "github.com/ably/ably-go/ably/...
package types import ( "encoding/json" "fmt" "sort" "github.com/incognitochain/incognito-chain/common" "github.com/incognitochain/incognito-chain/metadata" "github.com/incognitochain/incognito-chain/transaction" "github.com/incognitochain/incognito-chain/utils" "github.com/pkg/errors" ) type ShardBlock struc...
/* 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 distribu...
// Code generated by protoc-gen-go. // source: resources.proto // DO NOT EDIT! /* Package resourcemanager is a generated protocol buffer package. It is generated from these files: resources.proto It has these top-level messages: PrincipalInfo CombinedPrincipal ResourceInfo ResourceMasterInfo */ package resource...
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // The blobstore package provides a client for App Engine's persistent blob // storage service. package blobstore import ( "bufio" "fmt" "http" "io" "io/io...
package main import ( "context" "flag" "fmt" "github.com/google/gopacket" "github.com/google/gopacket/layers" "github.com/google/gopacket/pcap" "github.com/olivere/elastic" "io" "log" "os" "strconv" "strings" "sync" "time" ) // Name of PROG var Name = "4o6top" // Version of PROG var Version = "0.4" //...
package query import ( "fmt" "strings" "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2" "github.com/jlhawn/reboltdb/json" "github.com/jlhawn/reboltdb/query/types" ) type Term struct { Type ql2.Term_TermType Args []*Term OptArgs map[string]*Term Datum json.Value // This is nil unless Type is DATUM. } // TODO:...
package main import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "math" "github.com/pkg/errors" "github.com/chinenual/synergize/data" "github.com/orcaman/writerseeker" ) // Helper routines that may find their way back into the synergize/data module. func helperBlankVce() (vce data.VCE, err error) { ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.15.4 // source: easySpan.proto package easytrace import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" syn...
package ql import ( "bytes" "errors" "fmt" "io" "math" "regexp" "strconv" "strings" ) // Parser represents a samql parser. type Parser struct { s *bufScanner // Params, if provided, will be used to replace any bound parameters. Params map[string]interface{} } // NewParser returns a new Parser that reads f...
package main import ( "bytes" "crypto/rand" "crypto/rsa" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "encoding/base64" "encoding/pem" "errors" fmt "github.com/jhunt/go-ansi" "io" "io/ioutil" "math/big" "net" "net/http" "net/url" "os" "sort" "strings" "time" "github.com/jhunt/go-cli" ) func tim...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: api_staking.proto package api import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/p...
package internal import ( "context" "fmt" "path" "sync" "time" "github.com/docker/infrakit/pkg/fsm" metadata_plugin "github.com/docker/infrakit/pkg/plugin/metadata" "github.com/docker/infrakit/pkg/run/scope" "github.com/docker/infrakit/pkg/spi/controller" "github.com/docker/infrakit/pkg/spi/event" "github....
package gafit import ( "encoding/csv" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "math" "os" "strconv" "github.com/MaxHalford/eaopt" "gonum.org/v1/gonum/mat" ) const log2pi = 1.83787706641 // CostFunction is a type used to represent cost functions for fitting type CostFunction func(X *mat.Den...
package main import ( "strconv" "github.com/limetext/backend/keys" "github.com/limetext/backend/render" "github.com/lucasb-eyer/go-colorful" "github.com/nsf/termbox-go" ) var ( lut = map[termbox.Key]keys.KeyPress{ // Omission of these are intentional due to map collisions // termbox.KeyCtrlTilde: key...
package evaluator import ( "../ast" "../object" "fmt" ) // NOTE: メモリ節約のため、同じ値は定数として、評価の際にはその参照を渡す // (毎回新たに生成はしない) var ( TRUE = &object.Boolean{Value: true} FALSE = &object.Boolean{Value: false} NULL = &object.Null{} ) // 全ての子ノードを再帰的にたどり評価 func Eval(node ast.Node, env *object.Environment) ob...
/* * Copyright 2017 <NAME> (github.com/twa16) * * 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 legacyserver import ( "fmt" "math" "math/big" "net/http" "regexp" "time" "github.com/go-chi/chi" "github.com/go-chi/render" "github.com/spf13/cast" "git.coinninja.net/backend/blocc/blocc" "git.coinninja.net/backend/blocc/blocc/btc" "git.coinninja.net/backend/blocc/server" "git.coinninja.net/back...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: lorawan-stack/api/enums.proto package ttnpb import ( fmt "fmt" math "math" strconv "strconv" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" golang_proto "github.com/golang/protobuf/proto" ) // Reference imports to sup...
package lp2p import ( "context" "encoding/json" "time" host "github.com/libp2p/go-libp2p-core/host" peer "github.com/libp2p/go-libp2p-core/peer" pubsub "github.com/libp2p/go-libp2p-pubsub" pubsub_pb "github.com/libp2p/go-libp2p-pubsub/pb" blake2b "github.com/minio/blake2b-simd" ma "github.com/multiformats/go...
// Copyright 2018 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. // Package runtest is a driver for end-to-end testing of syzkaller programs. // It tests program execution via both executor and csource, // with different...
// Copyright (c) 2018, Google LLC 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 applic...
package app import ( "crypto/rand" "encoding/base64" "fmt" "net" "net/url" "reflect" "strconv" "strings" "code.google.com/p/go-uuid/uuid" kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api" "github.com/GoogleCloudPlatform/kubernetes/pkg/conversion" "github.com/GoogleCloudPlatform/kubernetes/pkg/runti...
package boot import ( "fmt" "os" "path/filepath" "github.com/jenkins-x/jx/pkg/versionstream" "github.com/jenkins-x/jx/pkg/boot" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/jenkins-x/jx/pkg/cmd/helper" "github.com/jenkins-x/jx/pkg/cmd/namespace" "github.com/jenkins-x/...
package stellar import ( "context" "errors" "fmt" "sort" "sync" "time" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/client/go/protocol/stellar1" "github.com/keybase/client/go/stellar/relays" "github.com/keybase/client/go/stellar/remote" "github....
// Copyright 2018 Project Harbor 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 agr...
// +build linux package quota import ( "fmt" "io/ioutil" "os" "path/filepath" "strconv" "strings" "sync" "syscall" "github.com/alibaba/pouch/pkg/exec" "github.com/alibaba/pouch/pkg/kernel" "github.com/alibaba/pouch/pkg/system" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) const ( // QuotaMinI...
// Code generated by smithy-go-codegen DO NOT EDIT. package s3 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" s3cust "github.com/aws/aws-sdk-go-v2/service/s3/internal/customizations" "github.com/aws/aws-sdk-go-v2/service/s3/types" "git...
package vertex import ( _ "bytes" "context" "encoding/json" "math/rand" "fmt" "reflect" "sort" "strconv" "testing" "io/ioutil" "strings" "time" "github.com/vektah/gqlparser/v2/gqlerror" "github.com/99designs/gqlgen/client" //graphql "github.com/graph-gophers/graphql-go" gql "github.com/99designs/gqlgen...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
package radix import ( "fmt" "sort" "strconv" "strings" "sync" . "testing" errors "golang.org/x/xerrors" "github.com/mediocregopher/radix/v3/resp/resp2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) type clusterSlotStub struct { kv map[string]string migra...
/* Copyright 2016 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
package cmd import ( "encoding/base64" "fmt" "io" "io/ioutil" "net/http" "os" "sort" "strings" "time" "github.com/jenkins-x/jx/pkg/extensions" "github.com/blang/semver" "github.com/jenkins-x/jx/pkg/log" jenkinsv1 "github.com/jenkins-x/jx/pkg/apis/jenkins.io/v1" "github.com/jenkins-x/jx/pkg/util" "g...
package expr import ( "fmt" "net/http" "strings" "unicode" ) // defaultRequestHeaderAttributes returns a map keyed by the names of the // payload attributes that should come from the request HTTP headers by default. // This includes mapping done for certain authorization schemes (basic auth, // JWT, OAuth). The c...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: yandex/cloud/mdb/postgresql/v1/backup.proto package postgresql import ( timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" ...