text
stringlengths
5.51k
28.1k
package main // Copyright © 2019 IBM Corporation and others. // // 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...
// Copyright 2016 The win 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 windows package win import ( "syscall" "unsafe" "golang.org/x/sys/windows" ) // Button control messages const ( BCM_FIRST = 0x1600...
// +build !go1.11 // Copyright 2015 go-swagger maintainers // // 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 The Dragonfly 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...
/* Copyright 2018 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 ...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License i...
// Copyright 2021 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package cros import ( "context" "fmt" "path/filepath" "strings" "go.chromium.org/luci/common/errors" "infra/cros/recovery/internal/execs" "in...
package cmd import ( "crypto/aes" "crypto/cipher" "crypto/rand" "encoding/base64" "fmt" "io" "io/ioutil" "os" "os/user" "path" "strings" wls "github.com/klauern/remy" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/viper" ) const ( remyVersion string = "0.2.1" // ConfigFile is th...
package duplo import ( "bytes" "compress/gzip" "encoding/gob" "fmt" "math" "sync" "github.com/rivo/duplo/haar" ) const ( // ImageScale is the width and height to which images are resized before they // are being processed. ImageScale = 256 ) var ( // TopCoefs is the number of top coefficients (per colour...
// Copyright Suneido Software Corp. All rights reserved. // Governed by the MIT license found in the LICENSE file. // Package check processes an ast.Function // and finds used but (possibly) not initialized, // and initialized but (possibly) not used. // "possibly" meaning not on all code paths. // Does not check nest...
// Copyright 2017 Vckai Author. 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 applica...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: envoy/extensions/resource_monitors/fixed_heap/v3/fixed_heap.proto package envoy_extensions_resource_monitors_fixed_heap_v3 import ( _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/...
// Code generated by smithy-go-codegen DO NOT EDIT. package secretsmanager import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/secretsmanager/types" "github.com/aws/smithy-go/middleware" smithyht...
// 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. // +build ignore package main import ( "archive/tar" "bytes" "compress/gzip" "crypto/sha256" "flag" "fmt" "io" "io/ioutil" "net/http" "os" "os/exec...
package server import ( "bytes" "context" "encoding/base64" "fmt" "net" "net/http" "os" "path" "strconv" "strings" "syscall" "github.com/fnproject/fn/api/agent" "github.com/fnproject/fn/api/agent/hybrid" "github.com/fnproject/fn/api/common" "github.com/fnproject/fn/api/datastore" "github.com/fnproject...
/*- * Copyright 2015 Grammarly, 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...
package wasm import ( "bytes" "encoding/binary" "fmt" "math" "github.com/mathetake/gasm/wasm/leb128" ) const vmPageSize = 65536 type ( VirtualMachine struct { InnerModule *Module ActiveContext *NativeFunctionContext Functions []VirtualMachineFunction Memory []byte Globals []uint64...
/* Copyright 2016 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...
package web import ( "fmt" "net/http" "net/url" "path" "sort" "strings" "github.com/trento-project/trento/internal" "github.com/gin-gonic/gin" "github.com/mitchellh/mapstructure" "github.com/trento-project/trento/internal/cloud" "github.com/trento-project/trento/internal/cluster" "github.com/trento-proj...
package ui2d import ( "bufio" "fmt" "github.com/jackmott/rpg/game" "github.com/veandco/go-sdl2/mix" "github.com/veandco/go-sdl2/sdl" "github.com/veandco/go-sdl2/ttf" "image/png" "math/rand" "os" "strconv" "strings" ) const ItemSizeRatio = .033 type mouseState struct { leftButton bool rightButton bool ...
/* 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 not use this fi...
package layers import ( "fmt" "gitlab.com/akita/mgpusim/driver" "gitlab.com/akita/mgpusim/insts" "gitlab.com/akita/mgpusim/kernels" ) // TensorOperator can perform operations on tensors. type TensorOperator struct { driver *driver.Driver context *driver.Context gemmKernel *insts.HsaCo transposeK...
package runner import ( "errors" "fmt" "github.com/golang/mock/gomock" "github.com/krpn/prometheus-alert-webhooker/executor" "github.com/krpn/prometheus-alert-webhooker/model" "github.com/sirupsen/logrus" "github.com/sirupsen/logrus/hooks/test" "github.com/stretchr/testify/assert" "sort" "testing" "time" ) ...
// Copyright 2015 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package dashboard import ( "context" "net/http" "runtime" "time" "github.com/pkg/errors" "github.com/gorilla/websocket" "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" "github.com/libp2p/go-libp2p-core/crypto" "github.com/libp2p/go-libp2p-core/host" "go.uber.org/dig" "github.com/g...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: search.proto package Spotify 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 SearchRe...
/* Copyright 2021 Erigon 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 t...
package gidbig import ( "bytes" "encoding/binary" "fmt" "io" "io/ioutil" "os" "os/signal" "runtime" "strconv" "strings" "sync" "text/tabwriter" "time" "github.com/bwmarrin/discordgo" humanize "github.com/dustin/go-humanize" log "github.com/sirupsen/logrus" "github.com/toksikk/gidbig/pkg/cfg" "github...
package cl // #include "cl.h" import "C" import ( "strings" "unsafe" ) const maxDeviceCount = 64 type DeviceType uint const ( DeviceTypeCPU DeviceType = C.CL_DEVICE_TYPE_CPU DeviceTypeGPU DeviceType = C.CL_DEVICE_TYPE_GPU DeviceTypeAccelerator DeviceType = C.CL_DEVICE_TYPE_ACCELERATOR DeviceT...
package currency import ( "errors" "log" "math" "sync" "time" "github.com/PxyUp/binance_bot/order" "github.com/PxyUp/binance_bot/patterns" "github.com/PxyUp/binance_bot/services" "github.com/PxyUp/binance_bot/utils" "github.com/adshao/go-binance/v2" "github.com/adshao/go-binance/v2/common" "golang.org/x/s...
package cons import ( "fmt" "os" "runtime" "strconv" "strings" "syscall" "unicode/utf16" "unsafe" ) var ( kernel32DLL = syscall.NewLazyDLL("kernel32.dll") wGetConsoleTitle = kernel32DLL.NewProc("GetConsoleTitleW") wSetConsoleTitle = kernel32DLL.NewProc("SetConsoleTitle...
// The ipfs-cluster-service application. package main import ( "bufio" "context" "errors" "fmt" "io" "os" "os/user" "path/filepath" "strings" ipfscluster "github.com/ipfs/ipfs-cluster" "github.com/ipfs/ipfs-cluster/cmdutils" "github.com/ipfs/ipfs-cluster/pstoremgr" "github.com/ipfs/ipfs-cluster/version" ...
// Copyright (c) 2020 MinIO Inc. All rights reserved. // Use of this source code is governed by a license that can be // found in the LICENSE file. package md5simd import ( "bytes" "crypto/md5" "encoding/hex" "fmt" "hash" "io" "math/rand" "runtime" "sync" "testing" ) type md5Test struct { in string wan...
// Copyright (c) 2018-present <NAME> (<EMAIL>). // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. package internal import ( "bufio" "fmt" "os" "regexp" "strings" "github.com/iancoleman/strcase" "github.com/pkg/errors" ) type Parser s...
/* Copyright 2016, Cossack Labs Limited 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, softwa...
// Code generated by go-swagger; DO NOT EDIT. package operations // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "net/http" "strings" errors "github.com/go-openapi/errors" loads "github.com/go-openapi/loads" ru...
// Copyright 2011 The Go Authors and Copyright 2017 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fcgi // This file implements the host side of FastCGI (being the webserver // that connects as a client). import ( "bufio" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.21.1 // source: apps/cost/pb/cost.proto package cost import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync ...
// Copyright 2018 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
package opendsd type ComplaintType struct { ID int Description string } var ComplaintTypes = map[int]ComplaintType{ 850: { ID: 850, Description: "Building-Boarded Structure", }, 139: { ID: 139, Description: "Building-Comm/Ind Construction-Accessory Structure", }, 130: { ID:...
/* * Tencent is pleased to support the open source community by making 蓝鲸 available., * Copyright (C) 2017,-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the ",License",); you may not use this file except * in compliance with the License. You may obtain a copy of th...
package niuniu import ( "fmt" "math/rand" "time" "github.com/aoyako/telegram_2ch_res_bot/games" ) //数值掩码 const ( GAME_PLAYER = 5 MAX_COUNT = 5 MAX_MULTIPLE = 4 //最高倍数 4,10 //扑克类型 OX_VALUE0 = 0 //混合牌型 无牛 OX_SMALL_WANG = 11 //小王牛 OX_BIG_WANG = 12 //大王牛 OX_DOUBLECOW = 13 //牛牛 OX_FOUR_SAME = 15 ...
/* * This file is part of the KubeVirt project * * 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 la...
package main import ( "strings" "strconv" "fmt" "regexp" "github.com/EndlessCheng/mahjong-helper/util/model" "sort" "github.com/EndlessCheng/mahjong-helper/util" "net/url" "github.com/fatih/color" ) const ( redFiveMan = 16 redFivePin = 52 redFiveSou = 88 ) type tenhouMessage struct { Tag string `json:"t...
package logi import ( "encoding/json" "fmt" "io" "os" "path/filepath" "runtime" "strings" "time" "github.com/davecgh/go-spew/spew" "github.com/p9c/goterm" ) const ( Off = "off" Fatal = "fatal" Error = "error" Warn = "warn" Info = "info" Check = "check" Debug = "debug" Trace = "trace" ) // Entr...
// Copyright 2019 Altinity Ltd and/or its affiliates. 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 // // Unles...
// Copyright 2020 <NAME>. All rights reserved. // Use of this source code is governed by a MIT // license that can be found in the LICENSE file. // Package flagex implements a command line parser. Not thread-safe. package flagex import ( "bytes" "fmt" "io" "sort" "strings" "text/tabwriter" "github.com/vedranv...
// Copyright 2015,2016,2017,2018,2019,2020,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 applic...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/data/tap/v3alpha/http.proto package envoy_data_tap_v3alpha import ( fmt "fmt" core "github.com/altipla-consulting/envoy-api/envoy/api/v3alpha/core" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if t...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.17.3 // source: protos/domain/JobInvitation.proto package domain import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflec...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto package securitycenter import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppres...
/* Horizon GPS Data REST API This REST server enables workload access to static location or dynamic GPS receiver location and satellite data. Currently the data available through this API includes only: * the surface location (latitude and longitude) of the node using the "decimal coordinates" system. GPS decimal...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0 // protoc v3.11.2 // source: runtime.proto package protobuf import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/...
package btcwallet import ( "bytes" "crypto/sha256" "fmt" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2/schnorr" "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/btcutil/psbt" "github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcwall...
package uri import ( "bytes" "errors" "net" "net/url" "regexp" "strings" ) // Validation errors var ( ErrNoSchemeFound = errors.New("no scheme found in URI") ErrInvalidURI = errors.New("not a valid URI") ErrInvalidCharacter = errors.New("invalid character in URI") ErrInvalidScheme = errors.New("...
package raftengine import ( "context" "encoding/json" "github.com/shaj13/raft/raftlog" "go.etcd.io/etcd/raft/v3" etcdraftpb "go.etcd.io/etcd/raft/v3/raftpb" ) const ( // add nodeState into the multiplexer. add operationType = iota // remove nodeState from the multiplexer. remove // call a method on raft ra...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/service/event_reporting/v3/event_reporting_service.proto package envoy_service_event_reporting_v3 import ( context "context" fmt "fmt" v3 "github.com/cilium/proxy/go/envoy/config/core/v3" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/...
package z80 import ( "fmt" "strings" "github.com/laullon/b2t80s/cpu" cpuUtils "github.com/laullon/b2t80s/cpu" ) var overflowAddTable = []bool{false, false, false, true, true, false, false, false} var overflowSubTable = []bool{false, true, false, false, false, false, true, false} var halfcarryAddTable = []bool{fa...
package timeparser import ( "fmt" "github.com/stretchr/testify/assert" "testing" "time" ) func TestTimeData(t *testing.T) { tdata, err := New("2022-01-31 11:22:33.123456789") assert.Nil(t, err) // GET assert.Equal(t, 2022, tdata.GetYear()) assert.Equal(t, 1, tdata.GetMonth()) assert.Equal(t, 31, tdata.Get...
// Copyright (c) 2020, The Emergent 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 etorch import ( "errors" "fmt" "io" "log" "sort" "github.com/emer/emergent/emer" "github.com/emer/emergent/params" "github.com/emer...
package kafkaOut import ( "bytes" "encoding/binary" "errors" "fmt" "github.com/linkedin/goavro/v2" "github.com/livelace/gosquito/pkg/gosquito/core" log "github.com/livelace/logrus" "github.com/riferrei/srclient" "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka" "reflect" "strings" tmpl "text/template" ) ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/targets/gce/config.proto /* Package gce is a generated protocol buffer package. It is generated from these files: github.com/google/cloudprober/targets/gce/config.proto It has these top-level messages: TargetsConf Instances ...
/* * Copyright (c) 2022 <NAME> */ package itch import ( "encoding/binary" "fmt" "strings" "time" ) var ( StockMap = make(map[string]uint16) Directory = make(map[uint16]StockDirectory) ) type MarketCategory uint8 type FinancialStatusIndicator uint8 type IssueClassification uint8 type IssueSubType string typ...
package system_metrics_reader import ( "bufio" "fmt" "io/ioutil" "os" "strconv" "strings" "time" "github.com/syunkitada/goapp/pkg/lib/logger" "github.com/syunkitada/goapp/pkg/lib/str_utils" "github.com/syunkitada/goapp/pkg/resource/config" "github.com/syunkitada/goapp/pkg/resource/consts" "github.com/syun...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: flyteidl/core/catalog.proto package core 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 ...
package internal import ( "fmt" "github.com/shyptr/graphql/ast" "github.com/shyptr/graphql/errors" "github.com/shyptr/graphql/kinds" "github.com/shyptr/graphql/token" "strconv" "strings" "text/scanner" ) func Parse(source string) (*Document, error) { doc, err := ParseDocument(source) if err != nil { retur...
package runtime import ( "math" "testing" ) const ( floatCompareBuffer = 1e-6 ) // Test cases for arithmetic type arithCase struct { l, r, exp Val err bool } // Define a custom type type cusType struct{} func (c cusType) Int() int64 { return 1 } func (c cusType) Float() float64 { return 1.0 } func (c ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.3 // source: service/task-service/interface/proto/entity.proto package proto import ( proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" wrappers "github.com...
package main import ( "../slicingdice" "encoding/json" "fmt" "io/ioutil" "log" "os" "math" "os/signal" "strings" "time" "reflect" ) type SlicingDiceTester struct { client *slicingdice.SlicingDice columnTranslation map[string]string sleepTime int path string extension ...
/* Copyright 2011-2017 <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, s...
// Copyright (c) 2020 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package mining import ( "github.com/decred/dcrd/chaincfg/chainhash" "github.com/decred/dcrd/dcrutil/v4" ) const ( // ancestorTrackingLimit is the maximum number of ancesto...
// Copyright 2019 dfuse Platform 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 agre...
package redis import ( "bufio" "context" "fmt" "log" "net" "net/http" "sync" "time" "github.com/dolab/objconv" "github.com/dolab/objconv/resp" "github.com/dolab/redis-go/metrics" ) // A ResponseWriter interface is used by a Redis handler to construct an Redis // response. // // A ResponseWriter may not b...
// Copyright 2012-2016 Apcera Inc. All rights reserved. package tarhelper import ( "archive/tar" "fmt" "io" "os" "os/user" "path/filepath" "runtime" "strconv" "strings" "syscall" ) // The type of compression that this archive will be us type Compression string const ( NONE = Compression("") BZIP2 = C...
/* Copyright 2016 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 dis...
package database import ( "fmt" "strings" "sync" "time" "github.com/dgryski/carbonzipper/mlog" m "github.com/kanatohodets/carbonsearch/consumer/message" "github.com/kanatohodets/carbonsearch/database/toc" "github.com/kanatohodets/carbonsearch/index" "github.com/kanatohodets/carbonsearch/index/full" "github....
// Copyright 2018 The go-python 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 compile import "github.com/go-python/gpython/vm" // FIXME detect if label is not in the instruction stream by setting // Pos to 0xFFFF say by ...
// Copyright 2021 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package branch import ( "bytes" "context" "fmt" "net/url" "os" "path/filepath" "regexp" "strings" "sync" "time" mv "infra/cros/internal/ch...
// // Go-FTL // // Copyright (C) <NAME>, 2014-2018 // // Convert names into handlers for sert of names // Version: 0.5.9 // BuildNo: 1811 // FileId: 1295 // package nameresolve import ( "errors" "fmt" "net" "net/http" "regexp" "strings" "sync" "time" "github.com/pschlump/Go-FTL/server/lib" "github.com/psch...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: mesh/v1alpha1/metrics.proto package v1alpha1 import ( fmt "fmt" proto "github.com/golang/protobuf/proto" _struct "github.com/golang/protobuf/ptypes/struct" wrappers "github.com/golang/protobuf/ptypes/wrappers" math "math" ) // Reference imports to supp...
/* 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 2014 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package cmd /* Copyright © 2020 Red Hat 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 writi...
/* 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 epoch contains epoch processing libraries according to spec, able to // process new balance for validators, justify and finalize new // check points, and shuffle validators to different slots and // shards. package epoch import ( "fmt" "sort" "github.com/pkg/errors" ethpb "github.com/prysmaticlabs/ethe...
package main // Should be initialized before anything else. // This import line MUST be in the alphabitcally first source code file of // package main! import _ "github.com/rfjakob/gocryptfs/internal/ensurefds012" import ( "flag" "fmt" "net" "os" "strconv" "strings" "time" "github.com/hanwen/go-fuse/fuse" "...
package service import ( "fmt" "net/http" "strconv" "strings" "sync" "time" "github.com/mayouzi/goutil" "github.com/jakecoffman/cron" "github.com/mayouzi/gocron/internal/models" "github.com/mayouzi/gocron/internal/modules/app" "github.com/mayouzi/gocron/internal/modules/httpclient" "github.com/mayouzi/go...
/* 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, WITHOUT WARRANT...
package cli // DONTCOVER import ( "bufio" "encoding/json" "errors" "fmt" "net" "os" "path/filepath" "time" "github.com/spf13/cobra" tmconfig "github.com/tendermint/tendermint/config" "github.com/tendermint/tendermint/crypto" tmos "github.com/tendermint/tendermint/libs/os" tmtypes "github.com/tendermint/...
// 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 not...
// Copyright 2019 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
// Copyright (c) 2018 <NAME> All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package app import ( "context" "github.com/bborbe/world/configuration/build" "github.com/bborbe/world/pkg/deployer" "github.com/bborbe/world/pkg/docker" "gith...
/* Copyright 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, softw...
// Copyright 2016-2017 Authors of Cilium // // 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...
// Code generated DO NOT EDIT package gatt import ( "sync" "github.com/muka/go-bluetooth/bluez" "github.com/muka/go-bluetooth/util" "github.com/muka/go-bluetooth/props" "github.com/godbus/dbus/v5" ) var GattCharacteristic1Interface = "org.bluez.GattCharacteristic1" // NewGattCharacteristic1 create...
package main import ( "context" "crypto/tls" "crypto/x509" "flag" "fmt" "log" "net" "net/http" "os" "os/signal" "strconv" "strings" "syscall" "time" plusclient "github.com/nginxinc/nginx-plus-go-client/client" "github.com/nginxinc/nginx-prometheus-exporter/client" "github.com/nginxinc/nginx-prometheu...
// sqlite3 is a CGO dependency - we cannot have it on board if we want to use pure Go (e.g. for cross-compiling and other things) // +build sqlite package adapters import ( "database/sql" "fmt" "strings" "github.com/hyperledger/burrow/vent/logger" "github.com/hyperledger/burrow/vent/types" sqlite3 "github.com/...
// 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 ccitt import ( "bytes" "fmt" "image" "image/png" "io" "io/ioutil" "math/rand" "os" "path/filepath" "reflect" "strings" "testing" "unsafe" ...
// // goamz - Go packages to interact with the Amazon Web Services. // // https://wiki.ubuntu.com/goamz // // Copyright (c) 2011 Canonical Ltd. // // Written by <NAME> <<EMAIL>> // This package is in an experimental state, and does not currently // follow conventions and style of the rest of goamz or common // Go co...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/enums/flight_placeholder_field.proto package enums import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if th...