text
stringlengths
5.51k
28.1k
// +build integration interactive package e2e import ( "fmt" "os" "path/filepath" "strconv" "strings" "testing" "time" "github.com/efficientgo/e2e" e2edb "github.com/efficientgo/e2e/db" "github.com/efficientgo/tools/core/pkg/testutil" ) const ( apiImage = "quay.io/observatorium/api:local_e2e_test" // Ima...
// Copyright (c) 2021 Aiven, Helsinki, Finland. https://aiven.io/ package v1alpha1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // KafkaSpec defines the desired state of Kafka type KafkaSpec struct { ServiceCommonSpec `json:",inline"` // +kubebuilder:validation:Format="^[1-9][0-9]*(GiB|G)*" // The d...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: types.proto package api_pb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-t...
/* URL: https://atcoder.jp/contests/past202004-open/tasks/past202004_n */ package main import ( "bufio" "errors" "fmt" "io" "math" "os" "sort" "strconv" ) /********** FAU standard libraries **********/ //fmt.Sprintf("%b\n", 255) // binary expression /********** I/O usage **********/ //str := ReadString()...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: Quota.proto package pb 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 type QuotaScope int...
/* * The MIT License (MIT) * * Copyright (c) 2017 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
package raft // // this is an outline of the API that raft must expose to // the service (or tester). see comments below for // each of these functions for more details. // // rf = Make(...) // create a new Raft server. // rf.Start(command interface{}) (index, term, isleader) // start agreement on a new log entry ...
package lm import "math" // Mat4x4 is a [4]Vec4. A [16]float would be faster when using ie. copy. type Mat4x4 [4]Vec4 // Identity fills the matrix with the identity matrix (diagonal of 1's) func (M *Mat4x4) Identity() { (*M)[0][0] = 1 (*M)[0][1] = 0 (*M)[0][2] = 0 (*M)[0][3] = 0 (*M)[1][0] = 0 (*M)[1][1] = 1 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/errors/request_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 are no...
package slash import ( "encoding/binary" "encoding/hex" "encoding/json" "math/big" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" "github.com/harmony-one/bls/ffi/go/bls" "github.com/harmony-one/harmony/consensus/votepower" "github.com/harmony-one/harmony/core/state" "github.c...
package main import ( "flag" "fmt" "os" "os/signal" "strconv" "strings" "syscall" "path/filepath" "sync" log "github.com/sirupsen/logrus" "github.com/appdynamics/cluster-agent/config" m "github.com/appdynamics/cluster-agent/models" "github.com/appdynamics/cluster-agent/version" w "github.com/appdynami...
// 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 ...
package main import ( "context" "flag" "fmt" "io" "io/ioutil" "net" "net/http" "os" "runtime" "strings" "syscall" "time" "encoding/json" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/mount" "github.com/docker/docker/api/types/sw...
package model import ( "fmt" "net/url" "strings" "github.com/docker/distribution/reference" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/pkg/errors" "k8s.io/apimachinery/pkg/api/validation/path" "k8s.io/apimachinery/pkg/labels" "github.com/tilt-dev/tilt/internal/contain...
package gen import ( "fmt" "math/rand" "strings" ) const ( idxChars = "abcdefghijlkmnopqrstuvwxyz" idxLen = 3 ) // generate a random identifier name func randIdent() string { bts := make([]byte, idxLen) for i := range bts { bts[i] = idxChars[rand.Intn(len(idxChars))] } // Use a `z` prefix so the random...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/enums/hotel_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 to su...
// 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. package modload import ( "context" "errors" "fmt" "go/build" "internal/goroot" "os" "path/filepath" "sort" "strings" "time" "cmd/go/internal/cfg" ...
package imgg import ( "bosun.org/_third_party/code.google.com/p/draw2d/draw2d" "bosun.org/_third_party/code.google.com/p/freetype-go/freetype" "bosun.org/_third_party/code.google.com/p/freetype-go/freetype/raster" "bosun.org/_third_party/code.google.com/p/freetype-go/freetype/truetype" "bosun.org/_third_party/cod...
// Copyright 2016 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 s390x import ( "cmd/compile/internal/gc" "cmd/internal/obj" "cmd/internal/obj/s390x" ) // This table gives the basic information about instruction ...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package main import ( "fmt" "forjj/creds" "forjj/drivers" "forjj/git" "io/ioutil" "log" "path" "path/filepath" "strings" "github.com/forj-oss/forjj-modules/trace" ) func (a *Forj) createAction(string) { if err := a.Create(); err != nil { log.Fatalf("Forjj create issue. %s.", err) } log.Print("========...
// Copyright (c) 2018 ContentBox Authors. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package wallet import ( "encoding/base64" "encoding/binary" "fmt" "io/ioutil" "log" "math" "math/rand" "os" "reflect" "testing" "time" "github.com/BOXFoundatio...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: tensorflow/core/framework/graph.proto package graph_go_proto import ( function_go_proto "github.com/tensorflow/tensorflow/tensorflow/go/core/framework/function_go_proto" node_def_go_proto "git...
// Copyright 2017 The Kubernetes Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
package azure import ( "bytes" "context" "fmt" "io" "net/http" "net/url" "sort" "strconv" "strings" "time" "github.com/wal-g/tracelog" "github.com/wal-g/wal-g/pkg/storages/storage" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/az...
// SPDX-License-Identifier: Unlicense OR MIT package gpu // GPU accelerated path drawing using the algorithms from // Pathfinder (https://github.com/servo/pathfinder). import ( "encoding/binary" "image" "math" "unsafe" "gioui.org/f32" "gioui.org/gpu/backend" "gioui.org/internal/f32color" gunsafe "gioui.org/...
/* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package v0 import ( "fmt" "sort" "strings" "github.com/irisnet/irishub/app/protocol" "github.com/irisnet/irishub/codec" "github.com/irisnet/irishub/modules/auth" "github.com/irisnet/irishub/modules/bank" distr "github.com/irisnet/irishub/modules/distribution" "github.com/irisnet/irishub/modules/gov" "github...
package primitives import ( "context" "crypto/md5" "encoding/json" "fmt" "net" "path/filepath" "strings" "github.com/jbenet/go-base58" "github.com/pkg/errors" "github.com/rs/zerolog/log" "github.com/threefoldtech/zos/pkg" "github.com/threefoldtech/zos/pkg/gridtypes" "github.com/threefoldtech/zos/pkg/grid...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.3 // source: features.proto package client import ( proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" protoreflect "google.golang.org/protobuf/reflect/protore...
package typechecker import ( "fmt" "knox/ast" "knox/lexer" "knox/token" ) var prim primitives // Object holding the primitive types. var currentFunc *ast.Node // Keep track of current function to compare return type. var currentClass *ast.Node // Keep track of current class to check self type. // Analyze perfo...
// Package utils contains support code that most users of the SDK will not need to access // directly. However, they may be useful for anyone developing custom integrations. package utils import ( "encoding/json" "fmt" "io" "sync" "time" cache "github.com/patrickmn/go-cache" ld "gopkg.in/launchdarkly/go-server...
/*Copyright [2019] housepower 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 dist...
package ddp import ( "encoding/json" "fmt" "io" "log" "sync" "time" "golang.org/x/net/websocket" "errors" ) const ( DISCONNECTED = iota DIALING CONNECTING CONNECTED ) type ConnectionListener interface { Connected() } type ConnectionNotifier interface { AddConnectionListener(listener ConnectionListene...
// Copyright © 2018 <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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/resources/campaign_bid_modifier.proto package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v0/resources" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import wrappers "...
package bls import ( "fmt" "io" ) // FQ6 is an element of FQ6 represented by c0 + c1*v + v2*v**2 type FQ6 struct { c0 FQ2 c1 FQ2 c2 FQ2 } // NewFQ6 creates a new FQ6 element. func NewFQ6(c0 FQ2, c1 FQ2, c2 FQ2) *FQ6 { return &FQ6{ c0: c0, c1: c1, c2: c2, } } func (f FQ6) String() string { return fmt.S...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.13.0 // source: kythe/proto/storage_service.proto package storage_service_go_proto import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl ...
// Copyright (c) 2012-2020 <NAME>. All rights reserved. // Use of this source code is governed by a MIT license found in the LICENSE file. // codecgen generates static implementations of the encoder and decoder functions // for a given type, bypassing reflection, and giving some performance benefits in terms of // wal...
package headscale import ( "crypto/tls" "errors" "fmt" "io/fs" "net/url" "strings" "time" "github.com/coreos/go-oidc/v3/oidc" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/spf13/viper" "inet.af/netaddr" "tailscale.com/tailcfg" "tailscale.com/types/dnstype" ) // Config contains the ini...
//go:build go1.16 // +build go1.16 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
// Copyright (c) 2018 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distri...
/* Copyright 2013 Google 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, software di...
package components import ( "errors" "fmt" "gioui.org/io/event" "gioui.org/layout" "gioui.org/text" "github.com/decred/dcrd/dcrutil/v3" "github.com/planetdecred/dcrlibwallet" "github.com/planetdecred/godcr/ui/decredmaterial" "github.com/planetdecred/godcr/ui/load" "github.com/planetdecred/godcr/ui/values" ...
/* Copyright 2021 The Hybridnet 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 writ...
package main import ( "context" "fmt" "math/rand" "net" "net/http" "os" "os/exec" "os/signal" "path/filepath" "strconv" "strings" "syscall" "time" "github.com/pkg/browser" "go.coder.com/flog" "golang.org/x/xerrors" ) const codeServerPath = "~/.cache/sshcode/sshcode-server" const ( sshDirectory ...
package acapy import ( "errors" "fmt" "strconv" "strings" ) type PresentationExchangeRecord struct { PresentationExchangeID string `json:"presentation_exchange_id"` ConnectionID string `json:"connection_id"` ThreadID string `json:...
package futuapi import ( "context" "github.com/Lawrence93Ho/go-futu-api/pb/qotcommon" "github.com/Lawrence93Ho/go-futu-api/pb/qotgetsecuritysnapshot" "github.com/Lawrence93Ho/go-futu-api/protocol" ) const ( ProtoIDQotGetSecuritySnapshot = 3203 //Qot_GetSecuritySnapshot 获取股票快照 ) // 获取快照 func (api *FutuAPI) GetM...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/enums/reach_plan_age_range.proto package enums 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 a...
package registry import ( "bufio" "fmt" "io" "os" "path/filepath" "sort" "sync" "gitlab.com/NebulousLabs/errors" "go.sia.tech/siad/build" "go.sia.tech/siad/crypto" "go.sia.tech/siad/modules" "go.sia.tech/siad/types" ) // TODO: F/Us // - use LRU for limited entries in memory, rest on disk // - optimize lo...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: cvservice.proto package main 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...
package shelf import ( "encoding/json" "fmt" "github.com/netapp/harvest/v2/cmd/poller/plugin" "github.com/netapp/harvest/v2/cmd/tools/rest" "github.com/netapp/harvest/v2/pkg/conf" "github.com/netapp/harvest/v2/pkg/dict" "github.com/netapp/harvest/v2/pkg/errors" "github.com/netapp/harvest/v2/pkg/matrix" "githu...
// Copyright 2018 ETH Zurich // Copyright 2020 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 ...
/* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright 2015 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 main import ( "bufio" "bytes" "fmt" "html/template" "io" "io/ioutil" "path/filepath" "sort" "strconv" "strings" "sync" "time" "githu...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow_serving/apis/classification.proto package tensorflow_serving 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.Er...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/product_bidding_category_constant.proto package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" impor...
package nebula import ( "bytes" "sync/atomic" "time" "github.com/flynn/noise" "github.com/golang/protobuf/proto" ) // NOISE IX Handshakes // This function constructs a handshake packet, but does not actually send it // Sending is done by the handshake manager func ixHandshakeStage0(f *Interface, vpnIp uint32, ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.14.0 // source: identity.proto package identity import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync...
// Code generated by GoVPP's binapi-generator. DO NOT EDIT. // source: binapis/vpp1908/.vppapi/core/udp.api.json /* Package udp is a generated VPP binary API for 'udp' module. It consists of: 4 enums 5 aliases 7 types 1 union 6 messages 3 services */ package udp import ( "bytes" "context" "io" ...
/* * * k6 - a next-generation load testing tool * Copyright (C) 2016 Load Impact * * 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 (at your o...
// Copyright (C) 2014 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-2.0 // // Unless required...
// Copyright 2021 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package client import ( "context" "fmt" "strings" "time" "github.com/pkg/errors" "golang.org/x/sync/errgroup" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/util/ve...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/authentication_error.proto package errors 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.E...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.6.1 // source: app_usage_collector.proto package collector import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "go...
// Copyright 2016, 2017 <NAME>, 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, publish,...
package app import ( "fmt" "log" "strconv" "strings" "time" "github.com/veandco/go-sdl2/sdl" "github.com/wdevore/Deuron4/deuron/app/graphs" "github.com/wdevore/Deuron4/simulation/runreset" "github.com/wdevore/Deuron4/simulation/samples" ) const ( width = 1024 height = 1024 xpos = 100 ypos = 0 ) //...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/core/framework/types.proto package framework 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 _ = mat...
package cmd import ( "context" "crypto/tls" "crypto/x509" "errors" "flag" "fmt" "net" "os" "os/signal" "regexp" "strconv" "strings" "syscall" "time" wgwrapper "github.com/aschmidt75/go-wg-wrapper/pkg/wgwrapper" config "github.com/aschmidt75/wgmesh/config" meshservice "github.com/aschmidt75/wgmesh/mes...
/* Licensed Materials - Property of IBM cfc @ Copyright IBM Corp. 2018 All Rights Reserved US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ // Copyright (c) 2021 Red Hat, Inc. // Copyright Contributors to the Open Cluster Management projec...
package macro import ( "bitbucket.org/aisee/minilog" "github.com/aiseeq/s2l/lib/scl" "github.com/aiseeq/s2l/protocol/api" "github.com/aiseeq/s2l/protocol/enums/ability" "github.com/aiseeq/s2l/protocol/enums/protoss" "github.com/aiseeq/s2l/protocol/enums/terran" "github.com/aiseeq/s2l/protocol/enums/zerg" "sort...
package fsys import ( "cmd/go/internal/txtar" "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "testing" ) // initOverlay resets the overlay state to reflect the config. // config should be a text archive string. The comment is the overlay config // json, and the files, in the archive are laid out in a t...
package cmd import ( "bytes" "context" "fmt" "net" "os" "strconv" "time" "github.com/gridscale/gsclient-go/v3" "github.com/gridscale/gscloud/render" "github.com/sethvargo/go-password/password" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) type serverCmdFlags struct { forceShutdown bool ...
// Copyright 2016 HenryLee. 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 (c) 2020 Huawei Technologies Co., Ltd. * A-Tune is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS SOFTWARE IS PROVIDED ON AN "AS IS...
package revcommands import ( "github.com/strongo/bots-framework/core" "net/url" "github.com/prizarena/turn-based" "bytes" "github.com/prizarena/reversi/server-go/revgame" "strconv" "github.com/pkg/errors" "github.com/prizarena/prizarena-public/pamodels" "strings" "github.com/strongo/log" "fmt" "github.com/...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package main import ( //"context" //"bytes" crypto_rand "crypto/rand" "encoding/base64" //"encoding/hex" "fmt" "io" "io/ioutil" "math/big" "net/http" "os" "os/exec" "reflect" "runtime" "strings" //"sync" "time" //ae "github.com/aeternity/aepp-sdk-go/v9/account" aebinary "github.com/aeternity/aepp...
/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
// Copyright 2021 Splunk, 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 main import ( "bufio" "crypto/md5" "crypto/sha1" "crypto/tls" "database/sql" "encoding/json" "errors" "flag" "fmt" "io" "log" "net/http" "os" "path/filepath" "reflect" "strconv" "strings" "time" "unicode" "github.com/YuriyNasretdinov/social-net/config" "github.com/YuriyNasretdinov/social-...
// Copyright 2018 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 ...
// 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 applicabl...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
// Copyright 2020 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 txscript import ( "fmt" ) // ErrorCode identifies a kind of script error. type ErrorCode int // These constants are used to identify a specific ScriptError. const ( // ErrInternal is returned if internal consistency checks fail. In practice // this error should never be seen as it would mean there is an e...
package svcrouter import ( "errors" "fmt" zmq "github.com/pebbe/zmq4" "log" "sync" "sync/atomic" ) type PeerType string type PeerImpl interface { GetType() PeerType PreDelete(re *RouterElement, peer *Peer) PostCreate(re *RouterElement, peer *Peer) } type Peer struct { sock *zmq.Socket buffer chan [][]b...
package main import ( "fmt" "io" "net/http" "net/url" "path" "strconv" //"strings" "sync" "time" "strings" "crypto/md5" //"crypto/sha256" "encoding/hex" "encoding/json" "encoding/xml" "io/ioutil" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhtt...
// // Copyright 2021 Red Hat Inc. // SPDX-License-Identifier: Apache-2.0 // package v1beta1 import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! // NOTE: json tags are required. Any new fields you add must have json tags for t...
// Copyright 2019 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 i...
// Copyright 2021 The Dawn 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 t...
package engine import ( "bytes" "context" "encoding/binary" "io" "github.com/Monibuca/utils/v3" "github.com/Monibuca/utils/v3/codec" ) const ( stapaNALULengthSize = 2 naluTypeBitmask = 0b0001_1111 naluTypeBitmask_hevc = 0x7E naluRefIdcBitmask = 0x60 fuaStartBitmask = 0b1000_0000 fuaEndBitma...
// Copyright 2020 The Moov Authors // Use of this source code is governed by an Apache License // license that can be found in the LICENSE file. package transfers import ( "database/sql" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "strings" "time" "github.com/moov-io/ach" "github.com/moov-io/base...
/* Copyright 2017 Loopring Project Ltd (Loopring Foundation). 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 ...
package slack import ( "crypto/tls" "errors" "io" "net" "net/http" "strings" "sync" "time" "gopkg.in/inconshreveable/log15.v2" "github.com/dkumor/acmewrapper" "github.com/mvader/slack" "github.com/src-d/flamingo" "github.com/src-d/flamingo/storage" ) // ClientOptions are the configurable options of the...
// //Copyright 2020 The Magma Authors. // //This source code is licensed under the BSD-style license found in the //LICENSE file in the root directory of this source tree. // //Unless required by applicable law or agreed to in writing, software //distributed under the License is distributed on an "AS IS" BASIS, //WITHO...
package main import ( "bufio" "flag" "fmt" "io/ioutil" "os" "path" "strings" "sync" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" "github.com/jeremyd/easyssh" "github.com/spf13/viper" ) func launchInstance(client *ec2.EC2, ami *st...
/* * Copyright (c) 2020. QLC Chain Team * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ package handler import ( "fmt" "time" "github.com/qlcchain/go-sonata-server/util" "github.com/brianvoe/gofakeit/v5" "github.com/go-openapi/strfmt" "github.com/go-openapi/s...
// Copyright 2021 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 ...