text
stringlengths
5.51k
28.1k
/* 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 2020 ConsenSys AG // // 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 configstore import ( "encoding/hex" "encoding/json" "math/big" "reflect" "time" "github.com/centrifuge/centrifuge-protobufs/gen/go/coredocument" "github.com/centrifuge/go-centrifuge/config" "github.com/centrifuge/go-centrifuge/crypto" "github.com/centrifuge/go-centrifuge/crypto/ed25519" "github.com/...
/* Copyright © 2020 Dell Inc. or its subsidiaries. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable ...
package broker import ( "errors" "fmt" "io/ioutil" "log" "strings" "testing" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/awstesting/mock" "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/aws-sdk...
package huobi // Response stores the Huobi response information type Response struct { Status string `json:"status"` Channel string `json:"ch"` Timestamp int64 `json:"ts"` ErrorCode string `json:"err-code"` ErrorMessage string `json:"err-msg"` } // ResponseV2 stores the Huobi generic response i...
// // Copyright 2019 Insolar Technologies GmbH // // 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...
package paymentrequest import ( "fmt" "time" "github.com/pkg/errors" "github.com/gobuffalo/pop/v5" "github.com/gobuffalo/validate/v3" "github.com/gofrs/uuid" "github.com/transcom/mymove/pkg/models" paymentrequesthelper "github.com/transcom/mymove/pkg/payment_request" serviceparamlookups "github.com/transco...
// 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. // +build ignore // Generator for display name tables. package main import ( "bytes" "flag" "fmt" "log" "reflect" "sort" "strings" "github.com/gomir...
package builder import ( "fmt" "sort" "github.com/golang/protobuf/proto" dpb "github.com/golang/protobuf/protoc-gen-go/descriptor" "github.com/bakjos/protoreflect/desc" "github.com/bakjos/protoreflect/desc/internal" ) // EnumBuilder is a builder used to construct a desc.EnumDescriptor. // // To create a new E...
package lib import ( "bytes" "fmt" "github.com/btcsuite/btcd/btcec" "github.com/pkg/errors" "reflect" ) // _verifyAccessSignature verifies if the accessSignature is correct. Valid // accessSignature is the signed hash of (derivedPublicKey + expirationBlock) // in DER format, made with the ownerPublicKey. func _v...
// 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 w...
/* Copyright IBM Corp. 2016 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 in wri...
package grpcurl import ( "bufio" "bytes" "encoding/base64" "encoding/json" "fmt" "io" "reflect" "strings" "sync" "github.com/golang/protobuf/jsonpb" //lint:ignore SA1019 we have to import this because it appears in exported API "github.com/golang/protobuf/proto" //lint:ignore SA1019 we have to import this...
// Licensed to the LF AI & Data foundation 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 th...
/* Copyright 2022 The Kubeflow 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 (c) 2017 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...
package job_controller import ( "context" "fmt" "reflect" "strings" "time" log "github.com/sirupsen/logrus" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" utilruntime "k8s.io/apima...
/* Copyright 2021 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
// Package cmdbus provides a distributed & event-driven Command Bus. package cmdbus import ( "bytes" "context" "errors" "fmt" "log" "os" "time" "github.com/google/uuid" "github.com/modernice/goes/codec" "github.com/modernice/goes/command" "github.com/modernice/goes/command/cmdbus/dispatch" "github.com/mod...
package accumulator import ( "encoding/hex" "fmt" "math/rand" "testing" ) func TestPollardNoSiblingFound(t *testing.T) { var p Pollard // Create the starting off pollard. adds := make([]Leaf, 7) for i := 0; i < len(adds); i++ { adds[i].Hash[0] = uint8(i) adds[i].Hash[20] = 0xff adds[i].Remember = true ...
package merkletree2 import ( "testing" "github.com/stretchr/testify/require" ) func TestBlindedSHA512_256v1Encoder(t *testing.T) { encoder := NewBlindedSHA512_256v1Encoder() hashLength := 32 val1 := "pizza" val2 := "pasta" enc0, err := encoder.Encode(val1) require.NoError(t, err) require.NotEmpty(t, enc0...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/service/metrics/v2/metrics_service.proto package envoy_service_metrics_v2 import ( context "context" fmt "fmt" core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/errors/setting_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are no...
/* 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 2018 The Bazel 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...
package testdb import ( "context" "encoding/json" "fmt" "io/ioutil" "net/http/httptest" "os" "strconv" "strings" "sync" "testing" "time" _ "github.com/jackc/pgx/v4/stdlib" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/stretchr/testify/require" "gitlab.com/thorchain/midgard/config" ...
package plugins import ( "bytes" "fmt" "io" "net/http" "net/url" "path/filepath" "regexp" "sort" "strings" "sync" "syscall" "time" "context" log "github.com/sirupsen/logrus" "github.com/ugorji/go/codec" "golang.org/x/net/context/ctxhttp" "github.com/weaveworks/common/backoff" "github.com/weaveworks...
// Package server DigitalRebar Provision Server // // An RestFUL API-driven Provisioner and DHCP server // // Terms Of Service: // // There are no TOS at this moment, use at your own risk we take no responsibility // // Schemes: https // BasePath: /api/v3 // Version: 0.1.0 // License: APL https://raw.gi...
// Copyright 2018 The Cockroach 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 ag...
// Generated by tableauc 0.1.0. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.4 // source: hero__test_conf.proto package testpb import ( _ "github.com/Wenchy/tableau/proto/tableaupb" proto "github.com/golang/protobuf/proto" protoreflec...
package rc import ( "context" "fmt" "net/http" "sort" "strings" "sync" "time" "github.com/airbusgeo/geocube/internal/log" "go.uber.org/zap" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" ) ...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
/* Copyright 2014 The Kubernetes 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 ag...
// Copyright 2016 The Gosl 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 utl import ( "testing" "gosl/chk" "gosl/io" ) func Test_sort01(tst *testing.T) { //verbose() chk.PrintTitle("sort01") i := []int{33, 0, 7, ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: go.chromium.org/luci/buildbucket/proto/common.proto package buildbucketpb // import "go.chromium.org/luci/buildbucket/proto" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import timestamp "github.com/golang/protobuf/ptyp...
package action import "github.com/rsteube/carapace" func ActionAdvanced() carapace.Action { return carapace.ActionMultiParts("=", func(c carapace.Context) carapace.Action { switch len(c.Parts) { case 0: return ActionAdvancedKeys() case 1: return ActionAdvancedValues(c.Parts[0]) default: return carap...
// Code generated by entc, DO NOT EDIT. package ent import ( "fmt" "hope/apps/novel/internal/data/ent/novelcomment" "hope/apps/novel/internal/data/ent/socialuser" "strings" "time" "entgo.io/ent/dialect/sql" ) // NovelComment is the model entity for the NovelComment schema. type NovelComment struct { config `...
package dcosee_mesos import ( "bytes" "crypto/rsa" "crypto/tls" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net" "net/http" "net/url" "sort" "strings" "time" "github.com/spf13/viper" "github.com/nemosupremo/vault-gatekeeper/scheduler" jwt "github.com/dgrijalva/jwt-go" "github.com/mesos/mesos-...
// Copyright (C) 2018 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 t...
package message import ( "bytes" "context" "errors" "fmt" "math" "math/big" "time" "github.com/filecoin-project/go-address" "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/state" "github.com/filecoin-project/lotus/chain/store" "gi...
package gui import ( "encoding/hex" "encoding/json" "fmt" "io/ioutil" "path/filepath" "time" "golang.org/x/exp/shiny/materialdesign/icons" "lukechampine.com/blake3" l "github.com/p9c/gio/layout" "github.com/p9c/gio/text" "github.com/p9c/interrupt" "github.com/p9c/gel" "github.com/p9c/matrjoska/pkg/p9i...
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
package main import ( "encoding/json" "flag" "fmt" go_ora "github.com/sijms/go-ora/v2" "io" "os" "regexp" "strconv" "time" "github.com/xuri/excelize/v2" "gopkg.in/yaml.v3" ) var ( dsn string dbType string query string queryFrom string inputFrom string outputType string humanOut bool json...
package framework import ( "fmt" "github.com/CCDirectLink/CCUpdaterOC/frenyard" ) // FocusEvent is an event type specific to the UI framework that represents focusing/unfocusing the receiving element. type FocusEvent struct { // True if this was a focus, false if this was an unfocus. Focused bool } // FyVRoute im...
package main import ( "archive/tar" "compress/gzip" "fmt" "io" "io/ioutil" "log" "os" "os/exec" "path/filepath" "runtime" "strings" "time" "github.com/pkg/errors" "github.com/spf13/pflag" "github.com/havoc-io/mutagen/cmd" "github.com/havoc-io/mutagen/pkg/agent" "github.com/havoc-io/mutagen/pkg/muta...
// Copyright 2021 The gg Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
/* * Copyright (c) 2013-2015 The btcsuite developers * Copyright (c) 2015 The Decred developers * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * ...
/* * 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 ...
package example import ( "encoding/json" "fmt" "io/ioutil" "path/filepath" ) // Configuration vmagent configuration definition type Configuration struct { Server ServerConfig PodSpecSetting PodSpecConfig Log LogConfig Kubelet KubeletConfig ScheduledEvents ScheduledEventsConfig ...
// Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. // // WSO2 Inc. licenses this file to you 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.o...
/* 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 api pulls 4chan board and thread data from the JSON API into native Go data structures. package api import ( "encoding/json" "fmt" "io" "net/http" pathpkg "path" "sync" "time" ) var ( // Whether or not to use HTTPS for requests. SSL bool = false // Cooldown time for updating threads using (*Threa...
// // ast.go // // Copyright (c) 2019-2021 <NAME> // // All rights reserved. // package ast import ( "fmt" "io" "math/big" "strings" "unicode" "github.com/markkurossi/mpc/compiler/ssa" "github.com/markkurossi/mpc/compiler/utils" "github.com/markkurossi/mpc/types" ) var ( _ AST = &List{} _ AST = &Func{} _...
package controller import ( "fmt" "math" "net/http" "strconv" "sync" "time" "shibuya/config" "shibuya/model" "shibuya/scheduler" "shibuya/utils" log "github.com/sirupsen/logrus" apiv1 "k8s.io/api/core/v1" ) type Controller struct { LabelStore sync.Map StatusStore sync.Map ApiNewClients...
package holiday import ( "bufio" "errors" "fmt" "github.com/gocolly/colly" "github.com/gocolly/colly/extensions" "github.com/thoas/go-funk" "io" "io/ioutil" "net/url" "os" "regexp" "strconv" "strings" "sync" "time" ) const ( dateFormat = "2006-01-02" timeFormat = "2006-01-02 15:04:05" file...
/** *Copyright (c) 2018 <NAME> * *This software is released under the MIT License. *https://opensource.org/licenses/MIT */ package main import ( "bufio" "encoding/csv" "fmt" "image/png" "io" "log" "math" "os" "strconv" "sync" "time" "github.com/SMerrony/tello" "github.com/mattn/go-gtk/gtk" ) const...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: moc_cloudagent_logging.proto package admin 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" ) // Refere...
package hash import ( "encoding/binary" "fmt" "hash/crc32" "hash/crc64" "math/rand" "testing" "time" ) func print_hash(s string) { fmt.Printf("%s: %d\n", s, String(s)) } func TestMul64(t *testing.T) { print_hash("h") print_hash("he") print_hash("hel") print_hash("hell") print_hash("hello") print_hash("...
package twmodel import ( "github.com/Kichiyaki/gopgutil/v10" "time" "github.com/go-pg/pg/v10" "github.com/go-pg/pg/v10/orm" ) type Player struct { tableName struct{} `pg:"?SERVER.players,alias:player"` ID int `json:"id" pg:"type:bigint,pk" gqlgen:"id" xml:"id"` Name string `jso...
/* The mon2prom package supports reading TimeSeries metric values from GCP (Google Cloud Platform) and exporting them as Prometheus metrics. */ package mon2prom import ( "math/rand" "sync/atomic" "time" prom "github.com/prometheus/client_golang/prometheus" "github.com/TyeMcQueen/tools-gcp/display" "github.co...
package artetv import ( "context" "encoding/json" "errors" "fmt" "net/url" "regexp" "strconv" "strings" "github.com/gocolly/colly" "github.com/simulot/aspiratv/matcher" "github.com/simulot/aspiratv/media" "github.com/simulot/aspiratv/metadata/nfo" "github.com/simulot/aspiratv/providers" "golang.org/x/ti...
// Copyright Project Contour 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...
package etcdio import ( "strings" "sync" "time" "github.com/golang/protobuf/proto" "github.com/pkg/errors" "github.com/yeqown/log" "go.etcd.io/etcd/raft/v3" "go.etcd.io/etcd/raft/v3/raftpb" "go.etcd.io/etcd/server/v3/etcdserver/api/snap" apicassemdb "github.com/yeqown/cassem/internal/cassemdb/api" "github...
package golem import ( "gonum.org/v1/gonum/mat" "fmt" "math" "sync" ) var RANGE_SEARCH_SPACE_MAX_THRESHOLD int = 1000 ////// PRESENT /* - work on tree pruning - review CAUTION at AddNodeToTree - PredictMC needs work! */ var DEFAULT_SPLIT_TYPE string = "range" type DTree struct { samplr *Sampler excludeCols [...
package main import ( "bytes" "context" "crypto/tls" "errors" "fmt" "io" "io/ioutil" "log" "net" "net/http" "net/url" "os" "strings" "sync" "syscall" "time" "unsafe" ) // stats represents the metrics including socket // statistics, TCP connect, DNS, TLS, HTTP and errors. type stats struct { State ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: arp_reshist.proto package cisco_ios_xr_ipv4_arp_oper_arp_nodes_node_resolution_history_dynamic 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 _ ...
package utils import ( "encoding/json" "fmt" "log" "time" "lottery-iris/comm" "lottery-iris/conf" "lottery-iris/datasource" "lottery-iris/models" "lottery-iris/services" "github.com/gomodule/redigo/redis" ) func init() { // 本地开发测试的时候,每次重新启动,奖品池自动归零 resetServGiftPool() } // 重置一个奖品的发奖周期信息 // 奖品剩余数量也会重新设置为...
// ssc3 project main.go package main import ( "bufio" "encoding/json" "flag" "fmt" "io/ioutil" "log" "math" "net" "os" "os/signal" "strconv" "strings" "syscall" "time" "github.com/kardianos/osext" "github.com/maledog/logrot" "github.com/yosssi/gmq/mqtt" "github.com/yosssi/gmq/mqtt/client" ) type Co...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: orc8r/protos/identity.proto package protos 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 // Thi...
/* 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, ...
package main import ( "bufio" "bytes" "encoding/binary" "fmt" "io" "io/ioutil" "math" "os" "strconv" "time" "github.com/360EntSecGroup-Skylar/excelize" ) var binDataSlice []uint16 var tansferRow float64 var tansferAllRow float64 var numRow int var numRowAll int var bufferColA, buff...
package bite import ( "fmt" "io" "math/rand" "os" "reflect" "runtime" "strconv" "strings" "sync" "time" "github.com/lensesio/tableprinter" "github.com/spf13/cobra" "github.com/spf13/pflag" ) type HelpTemplate struct { Name string BuildTime string BuildRevision strin...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/datalabeling/v1beta1/instruction.proto package datalabeling import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annota...
package main import ( crand "crypto/rand" "crypto/sha256" "encoding/base64" "encoding/hex" "errors" "fmt" "github.com/bingoohuang/gg-rand/pkg/genpw" "io" "log" "math" "math/rand" "os" "strings" "time" "github.com/oklog/ulid/v2" "github.com/aidarkhanov/nanoid/v2" "github.com/bingoohuang/gg/pkg/ss" "...
package service import ( . "github.com/smartystreets/goconvey/convey" "go-common/app/service/live/wallet/conf" "go-common/app/service/live/wallet/model" "go-common/library/ecode" "sync" "testing" "time" ) func queryExchange(t *testing.T, uid int64, platform string, srcCoinType string, srcCoinNum int64, destCoi...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: dnsresolver/v1/dnsresolver.proto package dnsresolver import ( proto "github.com/golang/protobuf/proto" v1 "github.com/nlnwa/veidemann-api-go/config/v1" protoreflect "google.golang.org/protob...
// package tokenizer tokenizes a css stream. // Follows the spec defined at http://www.w3.org/TR/css-syntax/#tokenization package tokenizer import ( "bufio" "fmt" "io" "strings" ) var EUnexpextedEOF = fmt.Errorf("Unexpected EOF.") type tokenType int type Position struct { Line int Column int } // TODO(jwa...
// Copyright 2020 NetApp, Inc. All Rights Reserved. package storagedrivers import ( "encoding/json" "fmt" "reflect" "strings" log "github.com/sirupsen/logrus" trident "github.com/netapp/trident/config" "github.com/netapp/trident/storage/fake" sfapi "github.com/netapp/trident/storage_drivers/solidfire/api" "...
// Copyright 2021 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 applicable ...
// Copyright (c) The Thanos Authors. // Licensed under the Apache License 2.0. package main import ( "context" "math" "net/http" "net/url" "sync" "time" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/oklog/run" "github.com/opentracing/opentracing-go" "github.com/pkg/errors" "gi...
package garden import ( "bytes" "errors" "fmt" "math/rand" "net/http" "os" "os/exec" "runtime" "strconv" "strings" "github.com/andrewhsu/cli/v2/api" "github.com/andrewhsu/cli/v2/internal/ghinstance" "github.com/andrewhsu/cli/v2/internal/ghrepo" "github.com/andrewhsu/cli/v2/pkg/cmdutil" "github.com/andr...
// 2016/11/04 - speed - insert in transaction batches // 2016/11/06 - speed - http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_BestPractices.html // sync commit off on 2016/11/06 package main import ( "archive/zip" "bytes" "compress/gzip" "database/sql" "encoding/base64" "encoding...
// // DISCLAIMER // // Copyright 2017 ArangoDB GmbH, Cologne, Germany // // 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 require...
// Copyright (c) 2017-2019 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package commands import ( "bytes" "crypto/sha256" "encoding/base64" "encoding/hex" "encoding/json" "errors" "fmt" "os" "github.com/agl/ed25519" "github.com/dec...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2019 Datadog, Inc. package legacy import ( "testing" "github.com/stretchr/testify/assert" ...
// Copyright 2011 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 parse builds parse trees for templates as defined by text/template // and html/template. Clients should use those packages to construct templates // ...
package packet import ( "github.com/go-gl/mathgl/mgl32" "github.com/sandertv/gophertunnel/minecraft/protocol" ) const ( SpawnBiomeTypeDefault = iota SpawnBiomeTypeUserDefined ) // StartGame is sent by the server to send information about the world the player will be spawned in. It // contains information about t...
package cluster /* Copyright 2020 - 2021 Crunchy Data Solutions, 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 appli...
package influxql_test import ( "reflect" "strings" "testing" "bosun.org/_third_party/github.com/influxdb/influxdb/influxql" ) // Ensure the scanner can scan tokens correctly. func TestScanner_Scan(t *testing.T) { var tests = []struct { s string tok influxql.Token lit string pos influxql.Pos }{ // S...
package runner import ( "context" "sync" "time" "github.com/Netflix/metrics-client-go/metrics" "github.com/Netflix/titus-executor/uploader" launchguardClient "github.com/Netflix/titus-executor/launchguard/client" launchguardCore "github.com/Netflix/titus-executor/launchguard/core" "github.com/Netflix/titus-...
// Code generated from proc(5). DO NOT EDIT. package proc type ProcStat struct { // The process ID. Pid int // The filename of the executable, in parentheses. Strings longer than // TASK_COMM_LEN (16) characters (including the terminating null byte) are // silently truncated. This is visible whether or not the...
package queue import ( "context" "database/sql" "fmt" "time" "github.com/go-gorp/gorp" "github.com/lib/pq" "github.com/ovh/cds/engine/api/action" "github.com/ovh/cds/engine/api/application" "github.com/ovh/cds/engine/api/cache" "github.com/ovh/cds/engine/api/environment" "github.com/ovh/cds/engine/api/eve...
// Copyright (C) 2018 <NAME> All rights reserved. // Use of this source code is governed by a Licensed under the Apache License, Version 2.0 (the "License"); package grpcx import ( "errors" "fmt" "net" "reflect" "strings" "sync" "time" "github.com/juju/ratelimit" "github.com/pigogo/grpcx/codec" xlog "githu...
/* * 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 exchange import ( "crypto" "crypto/aes" "crypto/cipher" "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/json" "encoding/pem" "errors" "fmt" "github.com/golang/glog" "golang.org/x/crypto/sha3" "io/ioutil" "os" "path" ) // This module is used to construct a message that can be sent over an ins...
// 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 main import ( "context" "crypto/tls" "database/sql" "flag" "fmt" "net/http" "os" "os/signal" "path/filepath" "syscall" "time" "github.com/moov-io/base/a...
// Copyright (c) 2015-2016 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package blockchain import ( "fmt" "github.com/gcash/bchd/chaincfg/chainhash" "github.com/gcash/bchd/txscript" "github.com/gcash/bchd/wire" "github.com/gcash/bchut...
package server import ( "context" "crypto/tls" "crypto/x509" "encoding/json" "fmt" "io/ioutil" stdlog "log" "net" "net/http" "net/http/httputil" "net/url" "os" "os/signal" "reflect" "strings" "sync" "time" "github.com/armon/go-proxyproto" "github.com/containous/mux" "github.com/containous/traefik/...
// Copyright 2020 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...