text
stringlengths
5.51k
28.1k
package main // ----- ---- --- -- - // Copyright 2019 Oneiro NA, Inc. All Rights Reserved. // // Licensed under the Apache License 2.0 (the "License"). You may not use // this file except in compliance with the License. You can obtain a copy // in the file LICENSE in the source distribution or at // https://www.apac...
// Copyright 2019-2020 <NAME>. All rights reserved. Use of this source // code is governed by the MIT license that can be found in the LICENSE // file. // Package ui contains user-interface functions and helpers for termshark. package ui import ( "fmt" "os" "strings" "sync" "time" "github.com/gcla/gowid" "gi...
// Copyright 2019 Preferred Networks, 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 ...
package jkl import ( "bytes" "encoding/json" "errors" "fmt" "log" "os" "reflect" "regexp" "sort" "strings" "text/template" ) type Search struct { Issues []*JiraIssue `json:"issues"` } type IssueType struct { Name string `json:"name"` IconURL string `json:",omitempty"` Fields map[string]*FieldSpec ...
// Package modl provides a non-declarative database modelling layer to ease // the use of frequently repeated patterns in database-backed applications // and centralize database use to ease profiling and reporting. // // It is a fork of the wonderful github.com/coopernurse/gorp package, but is // rewritten to use githu...
/* 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/spanner/v1/keys.proto package spanner import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _struct "github.com/catper/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to...
/* runtime logic According to ast, generate runflow. Runflow includes 1 build and multi testcases. All runflows run in parallel, all testcases in 1 runflow run in parallel. In 1 runflow, all testcases start after build done. */ package runtime import ( "context" "crypto/sha256" "encoding/hex" "github.com/shad...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available., * Copyright (C) 2019 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 obt...
/* 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...
package full_node import ( "context" "errors" "fmt" "log" "sync" "time" "github.com/Luismorlan/btc_in_go/commands" "github.com/Luismorlan/btc_in_go/config" "github.com/Luismorlan/btc_in_go/model" "github.com/Luismorlan/btc_in_go/service" "github.com/Luismorlan/btc_in_go/utils" "github.com/Luismorlan/btc_i...
package main import ( "bufio" "math" "net" "os" "os/signal" "sort" "strconv" "syscall" "time" "github.com/gookit/color" ) type stats struct { startTime time.Time endTime time.Time startOfDowntime time.Time endOfDowntime time.Time lastSuccessfulProbe time.Time ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/services/invoice_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" enums "google.golang.org/genproto/googleapis/ads/googleads/v2/enums" resources "google.go...
/* The idea behind the Simple AHRS algorithm is to use the GPS to compute what the accelerometer should show and then to create a rotation matrix to map the measured accelerometer vector onto this vector and the speed vector (GPS Track) onto the sensor x-axis. The gyro is used to further improve this estimate, by prov...
/* * Copyright 2020 The Kythe 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 ap...
// KATO, Application Management Platform // Copyright (C) 2021 Gridworkz Co., Ltd. // 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 r...
package merkletrie // this files contains fixtures for testing the Iter. // // - iter... functions returns iterators for newly created trees // for example: // // + iterLeaf returns an iterator for simple tree with just the root. // // + iter2Horizontal returns an iterator for a tree with 2 nodes, both // ch...
package boshdeployment import ( "fmt" "reflect" "github.com/pkg/errors" "go.uber.org/zap" "gopkg.in/yaml.v2" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" "k8s.io/cli...
/* 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 frame import ( "errors" "fmt" "strings" ) /* * Um DataFrame representa uma tabela em que as colunas podem ser * agrupadas para gerar aggregações. * As colunas são separadas em colunas pivotáveis e agregáveis. * Por simplificação, todas as colunas pivotáveis será `string` * e todas as colunas agregávei...
// Copyright 2019 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 required by applicable law or agreed to i...
package main import ( "bytes" "fmt" "sync" "time" ) type LittlePoll struct { reqStop chan bool Done chan bool pollDur time.Duration mut sync.Mutex down *Boundary ab2lp chan *tunnelPacket lp2ab chan *tunnelPacket recvCount int tmLastSend []time.Time tmLastRecv []time.Time name string key ...
package vugu import ( "bytes" "fmt" "go/ast" "go/parser" "go/token" "io/ioutil" "log" "os" "path/filepath" "regexp" "strings" "time" "github.com/cespare/xxhash" ) // ParserGoPkg knows how to perform source file generation in relation to a package folder. // Whereas ParserGo handles converting a single t...
package asset import ( "screamingvortex/utilities" "screamingvortex/config" "math/rand" "fmt" ) type AssetGrid struct { Id int64 `sql:"id"` Name string `sql:"name"` Nodes []*AssetNode Connections []*AssetConnection grid [][]*AssetNode Type string } func (assetGrid *AssetGrid) Ta...
package controllers import ( "database/sql" "encoding/json" "fmt" "log" "net/http" "strings" "time" "github.com/RoadTripppin/wazzup/config" "github.com/RoadTripppin/wazzup/helpers" "github.com/RoadTripppin/wazzup/models" "github.com/google/uuid" "github.com/gorilla/websocket" ) const ( // Max wait time ...
// cutkmz subcommands // // Other than root.go, each of these go files is a cutkmz subcommand implementation // // - kmz - produces a KMZ with input JPG chopped into 1024x1024 tiles // - bigkmz - produces a KMZ containing input JPG as is for higher resolution uses such as Google Earth package cmd import ( "ar...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: connection_plugin.proto package plugins import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" connection "github.com/networkservicemesh/networkservicemesh/controlplane/api/local/connection" connection1 "github.com/networkservicem...
// Copyright 2015 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 controller import ( "encoding/base64" "encoding/json" "fmt" "io" "math/rand" "mime/multipart" "net" "net/http" "os" "strconv" "strings" "time" "github.com/MG-RAST/AWE/lib/conf" "github.com/MG-RAST/AWE/lib/core" e "github.com/MG-RAST/AWE/lib/errors" "github.com/MG-RAST/AWE/lib/logger" "github....
package main import ( "errors" "fmt" "net/http" "os" "path/filepath" "time" "github.com/bitrise-io/go-steputils/command/gems" "github.com/bitrise-io/go-steputils/command/rubycommand" "github.com/bitrise-io/go-steputils/stepconf" "github.com/bitrise-io/go-utils/command" "github.com/bitrise-io/go-utils/fileu...
// Copyright (c) 2016 Palantir Technologies Inc. All rights reserved. // Use of this source code is governed by the Apache License, Version 2.0 // that can be found in the LICENSE file. package amalgomate import ( "fmt" "go/ast" "go/build" "go/parser" "go/printer" "go/token" "io/ioutil" "os" "path" "path/fi...
/* 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 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 hash import ( "bytes" "crypto/md5" "crypto/sha1" "crypto/sha256" "encoding/binary" "fmt" _hash "hash" "hash/fnv" "reflect" "sort" "strconv" "strings" errorAVA "github.com/ver13/ava/pkg/common/error" errorHashAVA "github.com/ver13/ava/pkg/common/hash/error" ) type Hash struct { version string ...
// Package tacplus is a library for creating client and/or server TACACS+ applications. package tacplus import ( "context" "crypto/md5" "crypto/rand" "encoding/binary" "errors" "fmt" "io" "log" "net" "sync" "time" ) const ( verMajor = 0xc // Protocol major version verDefault ...
/* Copyright The Helm Authors, SUSE 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 writing, s...
/* Copyright 2018-2022 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,...
// Copyright Suneido Software Corp. All rights reserved. // Governed by the MIT license found in the LICENSE file. package compile import ( "encoding/base64" "fmt" "strings" "github.com/apmckinlay/gsuneido/compile/ast" tok "github.com/apmckinlay/gsuneido/compile/tokens" . "github.com/apmckinlay/gsuneido/runtim...
package git import ( "context" "errors" "fmt" "os" "os/exec" "path/filepath" "sync" "github.com/prometheus/client_golang/prometheus" "gitlab.com/gitlab-org/gitaly/v14/internal/cgroups" "gitlab.com/gitlab-org/gitaly/v14/internal/command" "gitlab.com/gitlab-org/gitaly/v14/internal/git/alternates" "gitlab.co...
package controller import ( "fmt" "strconv" "time" "encoding/json" kanaryv1 "github.com/etiennecoutaud/kanary/pkg/apis/kanary/v1" clientset "github.com/etiennecoutaud/kanary/pkg/client/clientset/versioned" kanaryscheme "github.com/etiennecoutaud/kanary/pkg/client/clientset/versioned/scheme" informers "github...
// Package main (materials.go) : // Materials for ggsrun. package main import ( "math" "os" "path/filepath" "regexp" "strings" "time" "github.com/tanaikech/ggsrun/utl" "github.com/urfave/cli" ) // const : const ( appname = "ggsrun" serverid = "<KEY>" eapir1 = "Execution API without ...
// //Copyright [2016] [SnapRoute 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...
// (c) softland 2020 // <EMAIL> package glasio import ( "fmt" "testing" "github.com/stretchr/testify/assert" fp "path/filepath" ) type tSummaryCheck struct { fn string ver float64 wrap string strt float64 stop float64 step float64 null float64 well string curv int //количество кривых в файле nums ...
package htm import ( //"fmt" "github.com/cznic/mathutil" // "github.com/zacg/floats" // "github.com/zacg/go.matrix" "github.com/nupic-community/htm/utils" //"github.com/zacg/ints" "math" "math/rand" // //"sort" ) /* Params for intializing temporal memory */ type TemporalMemoryParams struct { //Column dim...
package zookeeper import ( "context" "crypto/tls" "crypto/x509" "fmt" "io/ioutil" "net" "path/filepath" "sort" "strings" "sync" "time" "github.com/hashicorp/errwrap" log "github.com/hashicorp/go-hclog" "github.com/hashicorp/vault/helper/parseutil" "github.com/hashicorp/vault/physical" metrics "github...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.12.4 // source: internal.proto package protobuf import ( any "github.com/golang/protobuf/ptypes/any" timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: lock_state.proto package terraform import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" _ "github.com/mwitkow/go-proto-validators" cmdb "github.com/easyopsapis/easyops...
package pod import ( "sort" "testing" "time" resourceCommon "github.com/Netflix/titus-kube-common/resource" "gotest.tools/assert" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ptr "k8s.io/utils/pointer" ) func durationPtr(val string) *time.D...
package proxy import ( "encoding/json" "fmt" "log" "net/http" "path/filepath" "strconv" "strings" "time" "github.com/googollee/go-socket.io" "github.com/gorilla/sessions" "github.com/hidu/goutils/time_util" ) // APIFrontVersion current server version var APIFrontVersion string var sessionName string = "ap...
package zookeeper import ( "io/ioutil" "net" "os" "strconv" "strings" "time" "github.com/GannettDigital/go-newrelic-plugin/helpers" "github.com/Sirupsen/logrus" ) // NAME - name of plugin const NAME string = "zookeeper" // PROVIDER - const PROVIDER string = "zookeeper" // ProtocolVersion - const ProtocolVe...
// Copyright 2018 Schibsted // +build cgo,sebase_cgo package fd_pool import ( "context" "io" "net" "runtime" "strconv" "syscall" "time" "unsafe" "github.com/schibsted/sebase/util/pkg/sbalance" "github.com/schibsted/sebase/vtree/pkg/bconf" "github.com/schibsted/sebase/vtree/pkg/vtree" ) //#include "sbp/f...
// Copyright 2021 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // Package monitoring is used for monitoring agent. // This is based off iamseth/oracledb_exporter. // The significant difference is the ...
package jduion import ( "encoding/json" ) /* @name jd.union.open.category.goods.get 商品类目查询 @des 根据商品的父类目id查询子类目id信息,通常用获取各级类目对应关系,以便将推广商品归类。业务参数parentId、grade都输入0可查询所有一级类目ID,之后再用其作为parentId查询其子类目。 @EliteId 1-好券商品,2-京粉APP-jingdong.超级大卖场,3-小程序-jingdong.好券商品,4-京粉APP-jingdong.主题聚惠1-jingdong.服装运动,5-京粉APP-jingdong.主题聚惠...
// Package records contains functions to generate resource records from // mesos master states to serve through a dns server package records import ( "crypto/sha1" "encoding/json" "errors" "fmt" "io/ioutil" "net" "net/http" "net/url" "strconv" "strings" "time" "github.com/mesosphere/mesos-dns/errorutil" ...
// This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this // file, you can obtain one at https://opensource.org/licenses/MIT. // // Copyright (c) DUSK NETWORK. All rights reserved. package ruskmock import ( "bytes" "context" "encoding/binary"...
package apibus import ( "errors" "fmt" "net/http" "net/url" "os" "os/exec" "os/signal" "path/filepath" "regexp" "strings" "sync" "syscall" "time" "github.com/go-apibox/api" "github.com/go-apibox/apiclient" "github.com/go-apibox/apiproxy" "github.com/go-apibox/apisign" "github.com/go-apibox/utils" "...
package keeper import ( "encoding/binary" "fmt" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/MinterTeam/mhub2/module/x/mhub2/types" sdk "github.com/cosmos/cosmos-sdk/types" ) // BatchTxSize TODO: should we make this a parameter or a a call arg? const BatchTxSize = 100 // BuildBatchTx star...
package advent import ( "fmt" "strings" "testing" ) func Test6(t *testing.T) { if testing.Short() { //t.Skip("Long-running") return } grid := NewLightGrid() for _, instruction := range input6 { grid.Execute(instruction) } fmt.Println("How many lights on?", grid.HowManyLightsOn()) fmt.Println("How bri...
/* * Copyright (c) 2018. LuCongyao <<EMAIL>> . * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this work except in compliance with the License. * You may obtain a copy of the License in the LICENSE file, or at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
package sectorstorage import ( "context" "github.com/filecoin-project/lotus/extern/sector-storage/database" "sync" "time" "github.com/google/uuid" "golang.org/x/xerrors" "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/specs-storage/storage" "github.com/filecoin-project/lotus/e...
package sarama import ( "errors" "fmt" ) // ErrOutOfBrokers is the error returned when the client has run out of brokers to talk to because all of them errored // or otherwise failed to respond. var ErrOutOfBrokers = errors.New("kafka: client has run out of available brokers to talk to (Is your cluster reachable?)"...
package docker import ( "fmt" "io" "net" "strconv" "strings" "sync" "time" log "github.com/Sirupsen/logrus" docker "github.com/fsouza/go-dockerclient" "github.com/weaveworks/common/mtime" "github.com/weaveworks/scope/report" ) // These constants are keys used in node metadata const ( ContainerName ...
package pcscommand import ( "bytes" "container/list" "encoding/hex" "fmt" "github.com/iikira/BaiduPCS-Go/baidupcs" "github.com/iikira/BaiduPCS-Go/baidupcs/pcserror" "github.com/iikira/BaiduPCS-Go/internal/pcsconfig" "github.com/iikira/BaiduPCS-Go/internal/pcsfunctions/pcsupload" "github.com/iikira/BaiduPCS-Go...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: routing/v1alpha1/l4_fault.proto package v1alpha1 // import "istio.io/api/routing/v1alpha1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import duration "github.com/golang/protobuf/ptypes/duration" // Reference imports ...
// Copyright 2016 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 ...
package opts import ( "encoding/json" "errors" "flag" "fmt" "io/ioutil" "os" "reflect" "strconv" "strings" "time" ) //Opts is the main class, it contains //all parsing state for a single set of //arguments type Opts struct { //embed item since an Opts can also be an item item parent *Opts subcmds ...
package config import ( "encoding/json" "fmt" "io" "net/url" "os" "path/filepath" "runtime" "strconv" "time" homedir "github.com/mitchellh/go-homedir" "github.com/pkg/errors" "github.com/rs/zerolog" "github.com/urfave/cli/v2" yaml "gopkg.in/yaml.v3" "github.com/cloudflare/cloudflared/validation" ) va...
package archive // import "github.com/obalunenko/dockertest/v3/docker/pkg/archive" import ( "archive/tar" "errors" "io" "io/ioutil" "os" "path/filepath" "strings" "github.com/sirupsen/logrus" "github.com/obalunenko/dockertest/v3/docker/pkg/system" ) // Errors used or returned by this file. var ( ErrNotDir...
// Code generated from arithmetic.g4 by ANTLR 4.7.2. DO NOT EDIT. package arithmetic import ( "fmt" "unicode" "github.com/antlr/antlr4/runtime/Go/antlr" ) // Suppress unused import error var _ = fmt.Printf var _ = unicode.IsLetter var serializedLexerAtn = []uint16{ 3, 24715, 42794, 33075, 47597, 16764, 15335, ...
// Copyright 2015 The etcd 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...
// Copyright 2020 <NAME>. All rights reserved. // Copyright (C) 2020 Alibaba Cloud. All rights reserved. // // SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause) package nydus import ( "context" "fmt" "io" "io/ioutil" "os" "path" "strings" "github.com/pkg/errors" "github.com/docker/docker/daemon/graphd...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/firestore/admin/v1beta1/index.proto package admin // import "google.golang.org/genproto/googleapis/firestore/admin/v1beta1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/genproto/google...
// Code generated by main. DO NOT EDIT. package tsmt_011_001_04 import ( "bytes" "encoding/xml" "time" ) // May be one of SBTW, RSTW, RSBS, ARDM, ARCS, ARES, WAIT, UPDT, SBDS, ARBA, ARRO, CINR type Action2Code string type BICIdentification1 struct { BIC BICIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:tsmt.01...
// Copyright 2019 Amazon.com, Inc. 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. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" fil...
package analyzer import ( "testing" ) func Test_isValidErrorTypeName_validTypes(t *testing.T) { for _, tt := range []string{ "AddrError", "AmbiguousImportError", "BuildError", "BuildListError", "CertificateInvalidError", "CheckEqualError", "CheckError", "ConstraintError", "ConstraintViolationError...
package nkn import ( "context" "encoding/hex" "encoding/json" "sync" "github.com/nknorg/nkn/v2/common" "github.com/nknorg/nkn/v2/pb" "github.com/nknorg/nkn/v2/program" "github.com/nknorg/nkn/v2/signature" "github.com/nknorg/nkn/v2/transaction" "github.com/nknorg/nkn/v2/vault" ) // Wallet manages assets, qu...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: pkg/proto/replicator/replicator.proto package replicator import ( context "context" v2 "github.com/bazelbuild/remote-apis/build/bazel/remote/execution/v2" grpc "google.golang.org/grpc" code...
package typescriptify import ( "errors" "fmt" "io/ioutil" "os" "reflect" "strings" "time" "regexp" "github.com/guregu/null" ) type TypeScriptify struct { Prefix string Suffix string Indent string CreateFromMethod bool DoExportClass bool BackupExtension string // If emp...
package wiremessage import ( "bytes" "strings" "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // WireMessage represents a MongoDB wire message in binary form. type WireMessage []byte // OpCode represents a MongoDB wire protocol opcode. type OpCode int32 // These constants are the valid opcodes for the version...
package invdendpoint import ( "encoding/json" "fmt" "strings" "testing" "github.com/gabrielsoaressantos/invoiced-go/invdutil" ) func TestUnMarshalEventObject(t *testing.T) { s := `{ "id": 1228003, "type": "payment.created", "data": { "object": { "amount": 55, "create...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package v1beta4 import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Retrieves a resource containing information about a Cloud SQL in...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package ledgerstorage import ( "sync" "sync/atomic" "justledger/common/flogging" "justledger/common/ledger/blkstorage" "justledger/common/ledger/blkstorage/fsblkstorage" "justledger/common/metrics" "justledger/core/ledger" "j...
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
package rule import ( "fmt" "net/mail" "net/url" "regexp" "strconv" "strings" "time" "bosun.org/cmd/bosun/conf" "bosun.org/cmd/bosun/conf/rule/parse" "bosun.org/cmd/bosun/conf/template" eparse "bosun.org/cmd/bosun/expr/parse" "bosun.org/models" "bosun.org/opentsdb" ) func (c *Conf) loadTemplate(s *parse...
// Copyright (c) 2012 The Gocov Authors. // // 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, pub...
package gva import ( "fmt" information "gin-vue-admin/cmd/information/extra" data "gin-vue-admin/cmd/information/system" "gin-vue-admin/global" "gin-vue-admin/model" gormadapter "github.com/casbin/gorm-adapter/v3" "github.com/gookit/color" "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/logger" "os" "s...
package vfs import ( "fmt" "io/fs" "os" "os/user" "path/filepath" "syscall" "time" "github.com/pkg/xattr" "github.com/shyang107/paw" "github.com/shyang107/paw/cast" ) // file 代表一個文件 type File struct { path string // full path = filepath.Join(root, relpath, name) relpath string name string // base...
/* 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 2018 <NAME>. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. /* Package term implements a subset of the C termios library to interface with Terminals. This package allows the caller to get and set most Terminal capabilites and s...
// Copyright 2016 Amazon.com, Inc. 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. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" fil...
package main import ( "log" "math" "math/rand" "strconv" "syscall/js" "time" ) var doc js.Value var window js.Value var gameConfig GameManager func init() { rand.Seed(time.Now().UnixMilli()) window = js.Global() doc = window.Get("document") gameConfig = DEFAULT_GAME_CONFIG } type Con...
package main import ( "io/ioutil" "net/http" "encoding/json" "strings" "fmt" "bytes" "sort" "time" "os" "net/url" "os/user" "crypto/sha1" "crypto/hmac" "encoding/base64" "code.google.com/p/go-uuid/uuid" "code.google.com/p/gcfg" ) const manual = ` { "ecs": { "AddDisk": ["RegionId", "Instanc...
// Package configv3 package contains everything related to the CF CLI Configuration. package configv3 import ( "encoding/json" "io/ioutil" "math" "os" "os/signal" "path/filepath" "strconv" "strings" "syscall" "time" "golang.org/x/crypto/ssh/terminal" "code.cloudfoundry.org/cli/command/translatableerror" ...
/* * Minio Cloud Storage, (C) 2017 Minio, 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 la...
package p2p import ( "bytes" "crypto/hmac" "crypto/rand" "crypto/sha256" "crypto/sha512" "encoding/hex" "errors" "io" "time" "github.com/btcsuite/btcd/btcec" "github.com/gogo/protobuf/proto" "github.com/spacemeshos/go-spacemesh/crypto" "github.com/spacemeshos/go-spacemesh/log" "github.com/spacemeshos/go...
// (c) <NAME>. Licensed under the BSD license (see LICENSE). package sk import ( "testing" "time" "github.com/uchti/cal" ) func d(y, m, d int) time.Time { return time.Date(y, time.Month(m), d, 0, 0, 0, 0, cal.DefaultLoc) } func TestHolidays(t *testing.T) { tests := []struct { h *cal.Holiday y ...
// Copyright 2014 Wandoujia Inc. All Rights Reserved. // Licensed under the MIT (MIT-LICENSE.txt) license. package proxy import ( "bytes" "encoding/json" "errors" "net" "net/http" "os" "path" "strconv" "strings" "sync" "time" "github.com/wandoulabs/codis/pkg/models" "github.com/wandoulabs/codis/pkg/prox...
/* Copyright 2019 The Crossplane 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 ingester import ( "bytes" fmt "fmt" "io/ioutil" "os" "path/filepath" "regexp" "strconv" "time" "github.com/cortexproject/cortex/pkg/ingester/client" "github.com/cortexproject/cortex/pkg/util" "github.com/dustin/go-humanize" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.co...
package main import ( "context" "fmt" "io" "io/ioutil" "log" "net/http" "net/url" "os" "regexp" "runtime" "github.com/cssivision/reverseproxy" github "github.com/google/go-github/github" "github.com/kardianos/service" homedir "github.com/mitchellh/go-homedir" "github.com/pkg/errors" "github.com/spf13/...