text
stringlengths
5.51k
28.1k
package iterator import ( "context" "crypto/sha256" "fmt" "net/url" "os" "strings" "sync" "github.com/awslabs/yesiscan/interfaces" "github.com/purpleidea/mgmt/util/errwrap" //"github.com/go-git/go-git" // with go modules disabled // with go modules enabled (GO111MODULE=on or outside GOPATH) git "github.c...
package quantity import ( "fmt" "math" "os" "sort" "testing" "time" ) func TestPanic(t *testing.T) { enablePanic := os.Getenv("GOUNITSPANIC") == "1" if enablePanic { fmt.Println("Panic if working with incompatible units") defer func() { if r := recover(); r != nil { fmt.Println("TestPanic OK") }...
// Copyright 2017-2021 DERO Project. All rights reserved. // Use of this source code in any form is governed by RESEARCH license. // license can be found in the LICENSE file. // GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8 // // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A...
package ecobee import( "net/http" "net/url" "fmt" "encoding/json" ) type Thermostats struct { Page Page `json:"page"` ThermostatList []Thermostat `json:"thermostatList"` Status Status `json:"status"` } type Page struct { Page int `json:"page"` TotalPages int `json:"totalPages"` PageSize int `json...
package svg import ( "fmt" "strings" "github.com/benoitkugler/webrender/backend" "github.com/benoitkugler/webrender/css/parser" "github.com/benoitkugler/webrender/matrix" "github.com/benoitkugler/webrender/text" "github.com/benoitkugler/webrender/utils" ) // handle painter for fill and stroke values // paint...
package vm_test import ( "encoding/json" "fmt" "strings" "testing" "time" "github.com/araddon/dateparse" u "github.com/araddon/gou" "github.com/stretchr/testify/assert" "github.com/araddon/qlbridge/datasource" "github.com/araddon/qlbridge/expr" "github.com/araddon/qlbridge/rel" "github.com/araddon/qlbrid...
package manager import ( "github.com/BurntSushi/xgb" "github.com/BurntSushi/xgb/xproto" "github.com/BurntSushi/xgbutil/icccm" "github.com/thrisp/scpwm/euclid/clients" "github.com/thrisp/scpwm/euclid/layout" "github.com/thrisp/scpwm/euclid/monitors" "github.com/thrisp/scpwm/euclid/rules" "github.com/thrisp/scpw...
// Copyright 2018 <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, ...
// Package server implements a configurable, general-purpose web server. // It relies on configurations obtained from the adjacent config package // and can execute middleware as defined by the adjacent middleware package. package server import ( "crypto/rand" "crypto/tls" "crypto/x509" "fmt" "io" "io/ioutil" "...
package binutil import ( "bufio" "fmt" "os" "strconv" "strings" ) type Instr struct { Mnemonic string RD int8 RA int8 RB int8 Imm int16 BrTarget string } const ( BeginGroup = 0 BeginInstr = 1 InsideInstr = 2 ) type InstrGroup struct { Label string InstrList []Instr PC ...
package cart import ( "encoding/json" "errors" "fmt" "sort" "strings" "github.com/google/uuid" price "flamingo.me/flamingo-commerce/v3/price/domain" ) const ( splitQualifierSeparator = "-" ) type ( // PaymentSelection value object - that represents the payment selection on the cart PaymentSelection inter...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package lb import ( "archive/tar" "bytes" "fmt" "os" "path" "path/filepath" "strings" "sync" "text/template" "time" "github.com/Sirupsen/logrus" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" ntypes "github.com/docker/docker/api/types/network" "github.com/docker/docke...
package cmds import ( "bufio" "bytes" "encoding/base64" "fmt" "net/url" "os" "strconv" "strings" "time" "github.com/pachyderm/pachyderm/src/client/version" "github.com/pachyderm/pachyderm/src/server/pkg/cmdutil" "github.com/pachyderm/pachyderm/src/server/pkg/deploy" "github.com/pachyderm/pachyderm/src/se...
// 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 state import ( "errors" "fmt" "log" "strings" "unicode/utf8" "github.com/belak/irc" "github.com/belak/seabird/bot" ) func init() { bot.RegisterPlugin("state", NewStatePlugin) } /* * TODO: * Public interface * Stop making assumptions about the number of params */ // State is a plugin which will ...
// @author Couchbase <<EMAIL>> // @copyright 2016 Couchbase, 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 requir...
package gofpdi import ( "bufio" "bytes" "compress/zlib" "crypto/sha1" "encoding/hex" "fmt" "math" "os" "github.com/speedata/gofpdi/reader" ) type PdfWriter struct { f *os.File w *bufio.Writer r *reader.PdfReader tpls []*PdfTemplate m int n int offsets map[int]int off...
/* 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 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 bn import ( "NN-512/internal/compile/author/avx" "NN-512/internal/compile/author/cgen" "NN-512/internal/compile/author/rsqrt" "NN-512/internal/compile/plan" "NN-512/internal/nmsrc" "NN-512/internal/raw" "fmt" ) type Ctx struct { prefix string platform raw.Platform nms nmsrc.Src rc *rsq...
package parser import ( "bytes" "encoding/binary" "encoding/json" "fmt" "log" "os" "strings" "text/tabwriter" "time" "vimacheater/pkg/utils" ) var dbItems []DbItem // Item represents a character Item from the character file type Item struct { Name string PayloadIndex int Payload []byte ...
// Onix Config DatabaseProvider - Dbman // Copyright (c) 2018-2020 by www.gatblau.org // Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 // Contributors to this project, hereby assign copyright in this code to the project, // to be licensed under the same terms as ...
// Copyright (c) 2017-2018 Zededa, Inc. // SPDX-License-Identifier: Apache-2.0 package zedagent // certs API specific parser/utility routines import ( "bytes" "crypto/sha256" "encoding/hex" "fmt" "net/http" "time" "github.com/golang/protobuf/proto" "github.com/lf-edge/eve/api/go/attest" zcert "github.com/l...
package describe import ( "bytes" "fmt" "io" "net/url" "strings" "text/tabwriter" "time" "github.com/docker/go-units" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/client-go/rest" authorizationv1 "...
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkbfs // This file has the type for TlfHandles and offline functionality. import ( "fmt" "reflect" "sort" "strings" "github.com/keybase/client/go/exter...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
/* Copyright 2014 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 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 ...
/* Copyright 2019 The Jetstack cert-manager 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...
/* Copyright 2022 The Vitess 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, soft...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
// Copyright 2022 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...
package contract import ( "encoding/json" "sort" wasmvmtypes "github.com/CosmWasm/wasmvm/types" sdk "github.com/cosmos/cosmos-sdk/types" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" govtypes "gi...
// Copyright (c) 2020 Tailscale Inc & 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 controlclient implements the client for the Tailscale // control plane. // // It handles authentication, port picking, and collects the l...
package proc import ( "debug/dwarf" "encoding/binary" "errors" "fmt" "go/ast" "go/constant" "go/parser" "reflect" "sort" "github.com/derekparker/delve/pkg/dwarf/godwarf" "github.com/derekparker/delve/pkg/dwarf/op" "github.com/derekparker/delve/pkg/dwarf/reader" "github.com/derekparker/delve/pkg/logflags"...
// Package opentsdb provides a service for InfluxDB to ingest data via the opentsdb protocol. package opentsdb // import "github.com/influxdata/influxdb/services/opentsdb" import ( "bufio" "bytes" "crypto/tls" "fmt" "io" "net" "net/http" "net/textproto" "strconv" "strings" "sync" "sync/atomic" "time" "g...
package sql import ( "strings" "sync" "github.com/sirupsen/logrus" "github.com/dolthub/go-mysql-server/internal/similartext" ) // IndexRegistry keeps track of all driver-provided indexes in the engine. type IndexRegistry struct { // Root path where all the data of the indexes is stored on disk. Root string ...
/* mumax3-convert converts mumax3 output files to various formats and images. It also provides basic manipulations like data rescale etc. Usage Command-line flags must always preceed the input files: mumax3-convert [flags] files For a overview of flags, run: mumax3-convert -help Example: convert all .ovf files to ...
/* Copyright 2019 The OpenEBS 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, sof...
/* * Copyright (c) 2016 <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, co...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/containeranalysis/v1beta1/common/common.proto package common import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = ...
/* 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...
// Copyright 2015 The WM 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 wm is a terminal window manager. // // Screenshot // // An example content of a terminal window (colors cannot be shown here): // // Use mouse to re...
// pinfinder魔改版 by Lee package main import ( "bufio" "bytes" "crypto/sha1" "encoding/base64" "errors" "flag" "fmt" "html/template" "io" "os" "os/user" "path" "path/filepath" "runtime" "sort" "strconv" "strings" "sync" "syscall" "time" "github.com/DHowett/go-plist" "github.com/gwatts/ios/keychai...
package main import ( "eaciit/gdrj/model" "eaciit/gdrj/modules" "os" "flag" "github.com/eaciit/dbox" "github.com/eaciit/orm/v1" "github.com/eaciit/toolkit" "strings" "sync" "time" ) var conn dbox.IConnection var count, step, fiscalyear int var vdistdetail string var vdistheader string var mutex *sync.Mutex...
// 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...
/* Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
package internal import ( "fmt" "go/ast" "go/format" "go/printer" "go/token" "io" "reflect" "strings" "github.com/pkg/errors" "github.com/bilal-bhatti/zipline/internal/debug" "github.com/bilal-bhatti/zipline/internal/util" "github.com/bilal-bhatti/zipline/internal/tokens" "github.com/go-toolsmith/astco...
// Copyright 2013 The Prometheus Authors // Copyright 2021 The Pyroscope 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 // // Unl...
// 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 2020 Thinkium // // 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 istio import ( "fmt" "strconv" "strings" "github.com/gogo/protobuf/types" "github.com/segmentio/ksuid" networkingv1alpha3 "istio.io/api/networking/v1alpha3" securityv1beta1 "istio.io/api/security/v1beta1" v1beta12 "istio.io/api/type/v1beta1" "istio.io/client-go/pkg/apis/networking/v1alpha3" "istio.i...
package gui const ( LVM_FIRST = 0x1000 // ListView messages TV_FIRST = 0x1100 // TreeView messages HDM_FIRST = 0x1200 // Header messages TCM_FIRST = 0x1300 // Tab control messages PGM_FIRST = 0x1400 // ...
/* * Copyright 2019 The FATE 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 a...
// Copyright 2020 The Swarming Authors. All rights reserved. // Use of this source code is governed by the Apache v2.0 license that can be // found in the LICENSE file. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.12.1 // source: go.chromium.org/luc...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: yandex/cloud/vpc/v1/network.proto package vpc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "go...
// Copyright 2019 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 hwsec /* This file implements miscellaneous and unsorted helpers. */ import ( "context" "encoding/base64" "fmt" "os" "path/filepath" "s...
// Copyright 2022 Antrea 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 ...
// Copyright 2015 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 utils import ( "bytes" "context" "fmt" "math/rand" "net/http" "strings" "sync" "time" "github.com/Laisky/graphql" zap "github.com/Laisky/zap" "github.com/Laisky/zap/buffer" "github.com/Laisky/zap/zapcore" "github.com/pkg/errors" ) const ( // SampleRateDenominator sample rate = sample / SampleRa...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: yandex/cloud/ai/translate/v2/translation.proto package translate import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl...
package main import ( "context" "fmt" "github.com/bptlab/cepta/osiris/lib/utils" "github.com/pkg/errors" "io" "net" "net/http" "os" "os/signal" "reflect" "strings" "syscall" "time" "github.com/go-redis/redis" "github.com/bptlab/cepta/ci/versioning" topics "github.com/bptlab/cepta/models/constants/topi...
package egoscale import ( "fmt" ) // Template represents a machine to be deployed // // See: http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/latest/templates.html type Template struct { Account string `json:"account,omitempty" doc:"the account name to which the templ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/customer_client.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotat...
package records import ( "bufio" "encoding/json" "errors" "log" "math" "os" "strconv" "strings" "github.com/curusarn/resh/pkg/histlist" "github.com/mattn/go-shellwords" ) // BaseRecord - common base for Record and FallbackRecord type BaseRecord struct { // core CmdLine string `json:"cmdLine"` ExitCode...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: github.com/solo-io/gloo/projects/gloo/api/external/envoy/extensions/proxylatency/proxylatency.proto package proxylatency import ( bytes "bytes" fmt "fmt" math "math" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types...
// Code generated by protoc-gen-go. // source: pull_request_review_comment_event.proto // DO NOT EDIT! package github 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 va...
// SPDX-License-Identifier: Apache-2.0 // // Copyright 2021 Digital Ocean, 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 // // U...
package lex import ( "fmt" "math/big" "regexp" "strings" "unicode" "unicode/utf8" "github.com/fract-lang/fract/pkg/fract" "github.com/fract-lang/fract/pkg/obj" "github.com/fract-lang/fract/pkg/str" ) // Lex is lexer of Fract. type Lex struct { lastTk obj.Token File *obj.File Column int // ...
// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: api.proto package offlinepush import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.o...
package platform import ( "bufio" "errors" "fmt" "io" "io/ioutil" "os" "strings" "sync/atomic" "time" "github.com/ConsenSys/handel/simul/lib" "github.com/ConsenSys/handel/simul/platform/aws" ) type awsPlatform struct { aws aws.Manager pemBytes []byte //master aws.NodeController masterAddr ...
package mempool import ( "fmt" "math" "testing" "github.com/copernet/copernicus/conf" "github.com/copernet/copernicus/model/opcodes" "github.com/copernet/copernicus/model/outpoint" "github.com/copernet/copernicus/model/script" "github.com/copernet/copernicus/model/tx" txin2 "github.com/copernet/copernicus/mo...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.17.3 // source: transformer/spec/common.proto package spec import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/proto...
/* 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 operate import ( "fmt" "io" "os" "path/filepath" "github.com/itchio/go-itchio" humanize "github.com/dustin/go-humanize" "github.com/modulesio/isolator/buse" "github.com/modulesio/isolator/installer/bfs" "github.com/itchio/wharf/eos" "github.com/modulesio/isolator/installer" "github.com/go-errors...
// Copyright 2019 The go-ultiledger 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 o...
// Copyright 2020 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 wifi import ( "context" "encoding/hex" "fmt" "net" "strconv" "time" "github.com/golang/protobuf/ptypes/empty" "chromiumos/tast/commo...
package main import ( "fmt" "regexp" "sort" "strings" "github.com/rightscale/rsc/gen" "bitbucket.org/pkg/inflect" ) // aliases maps the alias resource action to their original actions. This is used to // build the metadata with correct parameters, etc. var aliases = map[string]string{ "Deployments#servers": ...
/* 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. All rights reserved. // Author: <NAME>. // Contacts: <EMAIL>, https://github.com/qioalice // License: https://opensource.org/licenses/MIT package ekalog_writer_http import ( "bytes" "context" "sync/atomic" "time" "github.com/qioalice/ekago/v3/ekadeath" "github.com/qioalice/ekago/v3/ekaerr"...
/* Copyright 2022 The 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, software di...
package manager import ( "bytes" "errors" "time" "github.com/elastos/Elastos.ELA/blockchain" "github.com/elastos/Elastos.ELA/common" "github.com/elastos/Elastos.ELA/core/types" "github.com/elastos/Elastos.ELA/dpos/account" "github.com/elastos/Elastos.ELA/dpos/log" msg2 "github.com/elastos/Elastos.ELA/dpos/p2...
package charset import ( "unicode/utf8" ) // CP1252 charset, see http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT var CP1252 = New(table_CP1252) var table_CP1252 = [256]rune{ 0x00: 0x0000, // NULL 0x01: 0x0001, // START OF HEADING 0x02: 0x0002, // START OF TEXT 0x...
// Copyright (c) 2021 The Inet.Af 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 wf import ( "errors" "fmt" "math/bits" "net" "reflect" "time" "unsafe" "golang.org/x/sys/windows" "inet.af/netaddr" ) // This file ...
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in licenses/BSD-vitess.txt. // Portions of this file are additionally subject to the following // license and copyright. // // Copyright 2015 The Cockroach Authors. // // Licensed und...
package logviewer import ( "context" "fmt" "image" "log" "sort" "sync" "time" "github.com/marcusolsson/tui-go" "github.com/yuuki0xff/goapptrace/tracer/restapi" "github.com/yuuki0xff/goapptrace/tracer/types" "golang.org/x/sync/errgroup" "golang.org/x/tools/container/intsets" ) var ( defaultScrollSpeed = ...
package utils import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/hmac" "crypto/md5" "crypto/rand" "crypto/sha1" "crypto/sha256" "crypto/sha512" "encoding/base64" "encoding/hex" "fmt" "io" "io/ioutil" mrand "math/rand" "os" "os/exec" "path/filepath" "regexp" "strconv" "strings" "syscall" "time...
package main import ( "context" // "encoding/json" "flag" "fmt" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" timestamp "github.com/golang/protobuf/ptypes/timestamp" pcounter "github.com/synerex/proto_pcounter" api "github.com/synerex/synerex_api" pbase "github.com/synerex/synerex_pr...
package miz import ( "archive/zip" "fmt" "io" "io/ioutil" "log" "math" "math/rand" "os" "path/filepath" "strconv" "strings" "time" "github.com/evogelsa/DCS-real-weather/util" "github.com/evogelsa/DCS-real-weather/weather" ) const MISSION_NAME string = "mission.miz" func Update(data weather.WeatherData...
// Code generated by transpiler. DO NOT EDIT. /** * Go Video Downloader * * Copyright 2019 Tenta, 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.or...
package parseciv3 import ( "encoding/binary" "io" ) /* The save file seems to be a simple binary dump of C++ data structures packed with no byte padding. Generally speaking, most of the data is in classes inherited from two basic classes. Both start with a 4-byte string which appears to be a class name closely rela...
package state import ( "context" "fmt" "os" "os/signal" "path/filepath" "regexp" "strings" "sync" "sync/atomic" "syscall" "time" "github.com/AlexTransit/vender/helpers" "github.com/AlexTransit/vender/internal/engine" "github.com/AlexTransit/vender/internal/engine/inventory" "github.com/AlexTransit/vend...
package main import ( "bytes" "crypto/md5" "encoding/binary" // "golang.org/x/crypto/bn256" "github.com/drbh/zkproofs/go-ethereum/crypto/bn256" "math/big" "math/rand" "time" ) // RS class type RS struct { P *big.Int } // RSSK sk x, y *big.Int type RSSK struct { SKx *big.Int SKy []*big.Int } // Bytes : en...
package github import ( "context" "fmt" "strings" "time" ) const dateYYYYMMDD = "2006-01-02" // SearchResultSort determines how to sort search results. type SearchResultSort string const ( // SortByDefault uses the default sorting criteria (best match). SortByDefault SearchResultSort = "" // SortByFollowers ...
package beater import ( "encoding/csv" "errors" "fmt" "hash/fnv" "io" "io/ioutil" "net/http" "os" "strconv" "time" "github.com/elastic/beats/libbeat/beat" "github.com/elastic/beats/libbeat/common" "github.com/elastic/beats/libbeat/logp" "github.com/golang/protobuf/proto" "github.com/benwtrent/gtfsbeat...
// +build !js package webrtc import ( "fmt" "regexp" "strconv" "strings" "github.com/pion/logging" "github.com/pion/sdp/v2" ) const ( // TODO(sgotti) add these to pion/sdp sdesMidURI = "urn:ietf:params:rtp-hdrext:sdes:mid" sdesRTPStreamIDURI = "urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id" ) typ...
// Copyright 2019 <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, ...
package crawler import ( "context" "fmt" "os" "os/signal" "strings" "sync" "sync/atomic" "syscall" "time" libp2p "github.com/libp2p/go-libp2p" "github.com/libp2p/go-libp2p-core/host" "github.com/libp2p/go-libp2p-core/network" "github.com/libp2p/go-libp2p-core/peer" "github.com/libp2p/go-libp2p-core/prot...