text
stringlengths
5.51k
28.1k
package rpm // See: // https://github.com/rpm-software-management/rpm/blob/master/lib/rpmtag.h // Tags for the signature header. const ( RPMSIGTAG_SIZE = 1000 RPMSIGTAG_LEMD5_1 = 1001 RPMSIGTAG_PGP = 1002 RPMSIGTAG_LEMD5_2 = 1003 RPMSIGTAG_MD5 = 1004 ...
// Copyright 2016 gRPC authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
package main import ( "crypto/aes" "crypto/cipher" "crypto/rand" "crypto/rsa" "crypto/sha256" "crypto/x509" "encoding/base64" "encoding/pem" "errors" "fmt" "io" "io/ioutil" "log" "os" "path/filepath" "reflect" "runtime" "strconv" "strings" "sync" ) var key []byte var file_count int var MB150 int =...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/targets/rds/server/gcp/proto/config.proto package proto 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.M...
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. // +build darwin package launchd import ( "bufio" "bytes" "fmt" "io/ioutil" "os" "os/exec" "os/user" "path/filepath" "strconv" "strings" "time" "github.com/keybase/client/go/libkb" "...
// Copyright 2017-2020 the u-root 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 syslinux implements a syslinux config file parser. // // See http://www.syslinux.org/wiki/index.php?title=Config for general syslinux // conf...
// 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 ui contains functions to interact with the ChromeOS parts of the crostini UI. // This is primarily the settings and the installer. package u...
/* Provides `Machine`, which executes programs and outputs postings. 1: Create New Machine 2: Set Variables (with `core.Value`s or JSON) 3: Resolve Resources (answer requests on channel) 4: Resolve Balances (answer requests on channel) 6: Execute */ package vm import ( "encoding/binary" "encoding/json" "error...
/* 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 heldkarp import ( "github.com/asukakenji/151a48667a3852a43a2028024ffc102e/bitstring" "github.com/asukakenji/151a48667a3852a43a2028024ffc102e/matrix" "github.com/asukakenji/151a48667a3852a43a2028024ffc102e/tsp" ) /* Held-Karp ========= Example 1 --------- | A B C D --+--------------- A | -- 1 ...
package stack import ( "errors" "fmt" "io/ioutil" "os" "path" "path/filepath" "sort" "strings" "sync" c "github.com/cloudposse/atmos/pkg/convert" g "github.com/cloudposse/atmos/pkg/globals" m "github.com/cloudposse/atmos/pkg/merge" u "github.com/cloudposse/atmos/pkg/utils" ) var ( getFileContentSyncMap...
/* Copyright 2018 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
package collector import ( "bufio" "bytes" "context" "fmt" "io" "log" "net/http" "net/url" "regexp" "strings" "github.com/Azure/aks-periscope/pkg/utils" corev1 "k8s.io/api/core/v1" k8sErrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runt...
// Copyright 2021 xgfone // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
// Copyright 2018 The CUE 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 packets import ( "bytes" "fmt" "io" ) // PropPayloadFormat, etc are the list of property codes for the // MQTT packet properties const ( PropPayloadFormat byte = 1 PropMessageExpiry byte = 2 PropContentType byte = 3 PropResponseTopic byte = 8 PropCorrelationData ...
// Copyright (c) 2020 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...
// Copyright 2017 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 authmate import ( "context" "crypto/ecdsa" "encoding/hex" "encoding/json" "fmt" "io" "math" "os" "strconv" "time" "github.com/google/uuid" "github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neofs-api-go/pkg/acl/eacl" "github.com/nspcc-dev/neofs-api-go/pkg/container" cid "github...
package v1beta1 import ( "time" "github.com/mitchellh/mapstructure" guardianv1beta1 "github.com/odpf/guardian/api/proto/odpf/guardian/v1beta1" "github.com/odpf/guardian/domain" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) type adapter struct{} func N...
// Implements travelpayouts API for hotel searches. // Some methods require valid marker and token. // Some methods returns static data, so feel free to cache their response. // [Cities, Countries, Amenities, HotelList, RoomTypes, HotelTypes, Photos] package hotellook import ( "crypto/md5" "encoding/hex" "errors" ...
/* Copyright 2015-Present Couchbase, Inc. Use of this software is governed by the Business Source License included in the file licenses/BSL-Couchbase.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, Version ...
//* Copyright (c) 2010 <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, copy, modify, merge, publish...
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tabletserver import ( "flag" "fmt" "net/http" "net/url" "strconv" "time" log "github.com/golang/glog" "github.com/youtube/vitess/go/acl" mproto ...
/* view_v2_cgroups.go Copyright (C) <NAME>, 2018 Licensed under GNU General Public License version 3 or later Display one or more subtrees in the cgroups v2 hierarchy. The following info is displayed for each cgroup: the cgroup type, the controllers enabled in the cgroup, and the process and thread m...
package oci8 /* #include "oci8.go.h" #cgo !noPkgConfig pkg-config: oci8 */ import "C" // noPkgConfig is a Go tag for disabling using pkg-config and using environmental settings like CGO_CFLAGS and CGO_LDFLAGS instead import ( "bytes" "database/sql/driver" "encoding/binary" "fmt" "io" "reflect" ...
package node import ( "encoding/json" "fmt" "github.com/everstake/cosmoscan-api/config" "github.com/shopspring/decimal" "io/ioutil" "net/http" "time" ) const ( precision = 6 DepositPeriodProposalStatus = "PROPOSAL_STATUS_DEPOSIT_PERIOD" VotingPeriodProposalStatus = "PROPOSAL_STATUS_VOTING_PERIOD" PassedP...
package ptool import ( "fmt" "strconv" "unicode/utf8" ) // TProgMaker - type TProgMaker struct { labels []*TLabel // entries map[string]*tLutItem lut *tLut prog *TParser pin *TParser err error } // func newEntry(id int, name string, ip TOffset) *TEntry { // return &TEntry{id: id, name: name, ip: ip} // ...
package ias // import "github.com/inclavare-containers/rune/libenclave/attestation/sgx/ias" import ( "bytes" "crypto/tls" "crypto/x509" "encoding/base64" "encoding/hex" "encoding/json" "encoding/pem" "fmt" //pb "github.com/inclavare-containers/rune/libenclave/attestation/proto" "github.com/inclavare-containe...
// Package upload manages uploading snapshots to the repository. package upload import ( "bytes" "context" "encoding/binary" "errors" "fmt" "hash/fnv" "io" "math/rand" "runtime" "sync" "sync/atomic" "time" "github.com/kopia/kopia/fs" "github.com/kopia/kopia/fs/ignorefs" "github.com/kopia/kopia/internal...
// This file contains general enum types. package repcore import ( "bytes" "fmt" ) // Enum is the base / common part of enum types. type Enum struct { // Name of the entity Name string } // String returns the string representation of the enum (the name). // Defined with value receiver so this gets called even i...
// Copyright 2014 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 teamspeak import ( "context" "fmt" "log" "os" "sync" "time" "bitbucket.org/nadia/redis-client" nts "bitbucket.org/nadia/ts-client" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/plugins/inputs" "github.com/multiplay/go-ts3" "github.com/thoas/go-funk" ) const MatchSectionParentCh...
// Copyright 2018 Immutable Systems, 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 a...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: mall4micro-auth/protos/authenticate.proto package protos import ( protos "github.com/pigjj/mall4micro/mall4micro-common/grpc_dto/mall4micro-common/protos" protoreflect "google.golang.org/prot...
/* * Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved * * This source code file is licensed under the MIT License, you may obtain a copy of the License at * * http://opensource.org/licenses/MIT * */ package link import ( "bufio" "fmt" "io/ioutil" "os" "path/filepath" "strings" ...
package model import ( "encoding/json" "fmt" "net/url" "strings" cardlive "go-common/app/interface/main/app-card/model/card/live" "go-common/app/interface/main/app-channel/model/tab" "go-common/app/service/main/archive/api" "go-common/app/service/main/archive/model/archive" ) const ( // PlatAndroid is int8 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/phishingprotection/v1beta1/phishingprotection.proto package phishingprotection import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "googl...
package main import ( "flag" "fmt" "log" "math" "strings" "time" "github.com/go-spatial/geom" "github.com/go-spatial/geom/encoding/gpkg" ) type feature struct { columns []interface{} geometry geom.Geometry } type column struct { cid int name string ctype string notnull int dfltValue...
/* * Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package parser import ( "crypto/x509" "encoding/binary" "encoding/json" "fmt" "intel/isecl/lib/clients/v4" "intel/isecl/sqvs/v4/config" "intel/isecl/sqvs/v4/constants" "intel/isecl/sqvs/v4/resource/utils" "io/ioutil" "mat...
// Copyright 2017 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
package qingstor import ( "crypto/md5" "encoding/base64" "errors" "fmt" "net/http" "net/url" "regexp" "strings" "time" "github.com/pengsrc/go-shared/convert" qsconfig "github.com/qingstor/qingstor-sdk-go/v4/config" iface "github.com/qingstor/qingstor-sdk-go/v4/interface" qserror "github.com/qingstor/qing...
// Copyright (c) 2018, <NAME> // // Permission to use, copy, modify, and/or 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. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ...
// 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 ...
package poloniex import ( "errors" "fmt" "net/http" "net/url" "strconv" "time" "github.com/gorilla/websocket" "github.com/thrasher-/gocryptotrader/common" "github.com/thrasher-/gocryptotrader/currency/pair" exchange "github.com/thrasher-/gocryptotrader/exchanges" "github.com/thrasher-/gocryptotrader/exchan...
// Copyright 2009 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 reflectlite import ( "internal/unsafeheader" "runtime" "unsafe" ) const ptrSize = 4 << (^uintptr(0) >> 63) // unsafe.Sizeof(uintptr(0)) but an idea...
// 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 tlfhandle // This file has the type for TlfHandles and offline functionality. import ( "fmt" "reflect" "sort" "strings" "github.com/keybase/client/go/kbf...
package toml import ( "fmt" "io" "io/ioutil" "math" "reflect" "strings" "time" ) var e = fmt.Errorf // Primitive is a TOML value that hasn't been decoded into a Go value. // When using the various `Decode*` functions, the type `Primitive` may // be given to any value, and its decoding will be delayed. // // A...
package run import ( "context" "crypto/x509" "errors" "flag" "fmt" "io" "io/ioutil" "net" "net/http" "net/url" "os" "path/filepath" "strconv" "strings" "time" "github.com/hashicorp/hcl" "github.com/imdario/mergo" "github.com/mitchellh/cli" "github.com/sirupsen/logrus" "github.com/spiffe/spire/cmd/...
// 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...
package v1beta1 import ( "fmt" "strings" "github.com/VictoriaMetrics/operator/controllers/factory/crd" appsv1 "k8s.io/api/apps/v1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/utils/pointer" "sigs.k8s.io/controller-runtime/pkg/client" ) const...
package diag_test import ( "fmt" "strings" "testing" "github.com/mutility/diag" ) // TestNil verifies that diag.* functions accept nil implementations without panic. func TestNil(t *testing.T) { format := "%s %v %d%v" args := []interface{}{"a", "b", 2, 3} file := "somefile.md" line, col := 6, 0 for name, fn...
// Copyright 2020 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 2019 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, ...
// Copyright 2018 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 agr...
// The MIT License // // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. // // Copyright (c) 2020 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 Soft...
package crdt import ( "context" "errors" "sort" "sync" "time" "github.com/ipfs/ipfs-cluster/api" "github.com/ipfs/ipfs-cluster/pstoremgr" "github.com/ipfs/ipfs-cluster/state" "github.com/ipfs/ipfs-cluster/state/dsstate" ds "github.com/ipfs/go-datastore" namespace "github.com/ipfs/go-datastore/namespace" ...
/* Package text holds models which make text classification easy. They are regular models, but take strings as arguments so you can feed in documents rather than large, hand-constructed word vectors. Although models might represent the words as these vectors, the munging of a document is hidden from the user. The simp...
package launcher import ( "bufio" "bytes" "errors" "fmt" "math/big" "os" "path" "path/filepath" "reflect" "strings" "github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/node" "github.com/ethereum/go-e...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package compute import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Get information about a VM instance resource wit...
/* 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 law or agreed to in ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: protocol.proto package protocol import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a comp...
package vault import ( "context" "crypto/tls" "crypto/x509" "fmt" math "math" "net" "net/http" "net/url" "runtime" "sync" "sync/atomic" "time" "github.com/hashicorp/vault/helper/consts" "github.com/hashicorp/vault/helper/forwarding" "golang.org/x/net/http2" "google.golang.org/grpc" "google.golang.org...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under...
// package start initializes and launches the core cluster version operator // loops. package start import ( "context" "fmt" "math/rand" "os" "os/signal" "syscall" "time" "github.com/google/uuid" v1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/met...
package cmd import ( "context" "fmt" "net" "net/http" "net/url" "os" "os/signal" "path" "path/filepath" "strings" "syscall" "time" "github.com/bytebase/bytebase/api" "github.com/bytebase/bytebase/common" enterprise "github.com/bytebase/bytebase/enterprise/service" dbdriver "github.com/bytebase/bytebas...
//go:build linux && cgo // +build linux,cgo package idmap import ( "fmt" "io/ioutil" "os" "os/exec" "unsafe" "golang.org/x/sys/unix" // Used by cgo _ "github.com/lxc/lxd/lxd/include" "github.com/lxc/lxd/shared" "github.com/lxc/lxd/shared/logger" ) // #cgo LDFLAGS: -lacl /* #ifndef _GNU_SOURCE #define _G...
package ir import ( //"errors" "fmt" "os" "path" //"github.com/ChainSecurity/scilla_static_checker/pkg/ast" //"strings" ) type FactsDumper struct { visited map[Node]bool idToPrefixID map[uint64]string absDDFacts []string absTDFacts []string absTTFacts []string acceptFacts ...
/* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package main import ( g "github.com/AllenDang/giu" "time" "image" "image/color" "strconv" "os" "flag" ) var ( colours = [4][4]Colour{ {Colour{255, 255, 255, 255}, Colour{192, 192, 192, 255}, Colour{96, 96, 96, 255}, Colour{0, 0, 0, 255}}, {Colour{202, 220, 159, 255}, Colour{155, 188, 15, 255}, Colour{48...
package aemulari import ( "encoding/hex" "errors" "fmt" "io/ioutil" cs "github.com/lunixbochs/capstr" uc "github.com/unicorn-engine/unicorn/bindings/go/unicorn" ) // A Debugger, after being created via NewDebugger(), may be used to // execute (via emulation) and inspect a program. type Debugger struct { arch ...
package gb import ( "log" "math" "math/rand" "time" "github.com/andydotxyz/fynegameboy/util" "github.com/faiface/beep" "github.com/faiface/beep/effects" "github.com/faiface/beep/speaker" ) type Sound struct { Channel4 Channel Channel3 Channel Channel2 Channel Channel1 Channel enable bool leftVolume ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/catortiger/exchange/matching_engine/rpc/proto/service.proto /* Package matcherservice is a generated protocol buffer package. It is generated from these files: github.com/catortiger/exchange/matching_engine/rpc/proto/service.proto It has these t...
package keeper import ( "encoding/binary" "time" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/certikfoundation/shentu/common" "github.com/certikfoundation/shentu/x/shield/types" ) type pPPTriplet struct { poolID uint64 purchaseID uint64 purchaser sdk.AccAddress } // SetPurchaseList sets a purc...
package libpod import ( "encoding/json" "fmt" "io/ioutil" "path/filepath" "sync" "time" "github.com/containers/storage" "github.com/docker/docker/pkg/stringid" "github.com/docker/docker/pkg/term" spec "github.com/opencontainers/runtime-spec/specs-go" "github.com/pkg/errors" crioAnnotations "github.com/pro...
// Copyright (c) 2021 Snowflake Computing Inc. All right reserved. package gosnowflake import ( "bufio" "compress/gzip" "context" "encoding/json" "fmt" "io" "io/ioutil" "math/rand" "net" "net/http" "net/url" "strings" "sync" "time" "github.com/apache/arrow/go/arrow/ipc" "github.com/apache/arrow/go/ar...
package backend // habitsweb.go - All Habits functions dealing directly with requests import ( "bytes" "encoding/json" "errors" "fmt" "log" "net/http" "os/exec" "strings" "time" "github.com/go-macaron/binding" "github.com/jinzhu/gorm" "github.com/unknwon/com" macaron "gopkg.in/macaron.v1" ) // tasksInP...
// // Copyright (c) 2014-2019 Cesanta Software Limited // 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 // // Un...
package container import ( "encoding/json" "io/ioutil" "path" "strings" buildinfo "github.com/jfrog/build-info-go/entities" artutils "github.com/jfrog/jfrog-cli-core/v2/artifactory/utils" "github.com/jfrog/jfrog-client-go/artifactory" "github.com/jfrog/jfrog-client-go/artifactory/services" "github.com/jfrog...
/** * tf2.go * * Copyright 2020 Nirari Technologies, Alliedmodders LLC. * * 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 us...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
/* Copyright 2021 The DnsJia Authors. WebSite: https://github.com/dnsjia/luban Email: <EMAIL> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unles...
package aperture import ( "bytes" "context" "fmt" "io" "io/ioutil" "sync" "time" "github.com/lightninglabs/lightning-node-connect/hashmailrpc" "github.com/lightningnetwork/lnd/tlv" "golang.org/x/time/rate" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) const ( // DefaultMsgRate is the ...
package main import "github.com/veandco/go-sdl2/sdl" const WAVE_LEN uint8 = 32 const HZ uint16 = 48000 var DUTY [][]uint8 = [][]uint8{ {0, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 0}, } ////#[derive(Default, Debug, PackedStruct)] //#[packed_struct(bit_numbe...
// Copyright 2014 The Serviced Authors. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package rtime import ( "errors" "time" ) // 计算2018年工作日间隔秒数 func SecondsAfterWorkDays(workDays int) (seconds int64) { now := time.Now() return int64(EndTimeInWorkDays(now, workDays).Sub(now).Seconds()) } func IsWorkDay(day time.Time) bool { y, m, d := day.Date() t := time.Date(y, m, d, 0, 0, 0, 0, BeijingLocati...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/ad_group_criterion_simulation.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" common "google.golang.org/genproto/goo...
// Copyright 2016 The Prometheus 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 team2 import ( "math" "sort" "github.com/SOMAS2020/SOMAS2020/internal/common/shared" ) type IslandTrustMap map[int]GiftInfo // Overwrite default sort implementation func (p IslandTrustMap) Len() int { return len(p) } func (p IslandTrustMap) Swap(i, j int) { p[i], p[j] = p[j], p[i] } // func (p Isla...
/* 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, ...
package production import ( "bytes" "encoding/json" "errors" "os" "os/exec" "sort" "strconv" "time" "github.com/theMomax/openefs/utils/metadata" "github.com/theMomax/openefs/config" "github.com/theMomax/openefs/models/production/weather" timeutils "github.com/theMomax/openefs/utils/time" ) func init() {...
// SPDX-License-Identifier: MIT // Copyright (c) 2019 <NAME> // Package batch implements batch execution. package batch import ( "bufio" "context" "fmt" "github.com/dustinkirkland/golang-petname" "github.com/hchauvin/name_manager/pkg/name_manager" "github.com/hchauvin/warp/pkg/batches" "github.com/hchauvin/war...
package main import ( "fmt" "io" "log" "os" "os/exec" "path/filepath" "strings" "time" "unicode/utf16" "github.com/oov/audio/wave" "github.com/yuin/gluare" lua "github.com/yuin/gopher-lua" "golang.org/x/text/encoding/japanese" ) func luaDebugPrint(L *lua.LState) int { log.Println(L.ToString(1)) return...
package main import ( "bufio" "encoding/base64" "encoding/binary" "encoding/json" "fmt" "io" "log" "os" "path/filepath" "sync" "time" metrics "github.com/armon/go-metrics" "github.com/golang/protobuf/proto" "github.com/hashicorp/raft" "github.com/robustirc/robustirc/internal/config" "github.com/robust...
package kafka import ( "context" "crypto/tls" "fmt" "hash" "strconv" "strings" "sync" "time" "github.com/Shopify/sarama" "github.com/cenkalti/backoff/v4" batchInternal "github.com/benthosdev/benthos/v4/internal/batch" "github.com/benthosdev/benthos/v4/internal/batch/policy" "github.com/benthosdev/bentho...
// Copyright 2017 The Golem Project Developers // // 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 main import ( "encoding/csv" "errors" "flag" "fmt" "os" "sort" "strings" "time" ) /* Config.go handles creating the config struct that works to configure how the strings are generated CONFIG OPTIONS ARE: */ const LANGUAGE_ID_NONE = "ROOT" const LANGUAGE_ID_NONE_NAME = "en" //Base translation fil...
// Copyright 2012 <NAME>. All rights reserved. // Use of this source code is governed by a 3-clause BSD // license that can be found in the LICENSE file. package main // TODO: // - Default arguments. Possibly don't bother... import ( "flag" "fmt" "io" "runtime" "strings" "github.com/ooyala/go-thrift/parser" )...
package app import ( "bytes" "encoding/json" "fmt" "math/big" "math/rand" "testing" "time" "github.com/stretchr/testify/require" "github.com/ethereum/go-ethereum/common" gethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/holiman/uint256" abci "github.com/tendermint/tendermint/abci/types"...
/* 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...