text stringlengths 8.57k 38.1k |
|---|
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
// +build stm32g471xx
package pwr
import (
"embedded/mmio"
"unsafe"
"github.com/embeddedgo/stm32/p/bus"
"github.com/embeddedgo/stm32/p/mmap"
)
type Periph struct {
CR1 RCR1
CR2 RCR2
CR3 RCR3
CR4 RCR4
SR1 RSR1
SR2 RSR2
SCR RSCR
_ uint32
PUDC [7]RPU... |
package config
import (
"errors"
"fmt"
"io/ioutil"
"net/url"
"os"
"os/exec"
"path"
"regexp"
"sort"
"strings"
"time"
"unicode"
"github.com/gdamore/tcell"
"github.com/go-ini/ini"
"github.com/imdario/mergo"
"github.com/kyoh86/xdg"
"git.sr.ht/~sircmpwn/aerc/lib/templates"
)
type GeneralConfig struct {
... |
// Discordgo - Discord bindings for Go
// Available at https://github.com/bwmarrin/discordgo
// Copyright 2015-2016 <NAME> <<EMAIL>>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file contains low level functions for interacting ... |
// This code is available on the terms of the project LICENSE.md file,
// also available online at https://blueoakcouncil.org/license/1.0.0.
package webserver
import (
"context"
"crypto/rand"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"path"
"path/filepath"
"strings"
... |
// Copyright 2017 Kumina, https://kumina.nl/
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
/*
* Copyright 2020 The Dragonfly Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
// Copyright 2016 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 dep
import (
"bytes"
"fmt"
"io"
"reflect"
"regexp"
"sort"
"sync"
"github.com/golang/dep/gps"
"github.com/golang/dep/gps/pkgtr... |
// *** 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 linode
import (
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Provides a Linode Instance resource. This can be ... |
package sdk
import (
"database/sql/driver"
json "encoding/json"
"fmt"
"net/url"
"sort"
"strings"
"time"
"github.com/blang/semver"
"github.com/sguiheux/go-coverage"
)
var (
WorkflowRunHeader = "X-Workflow-Run"
WorkflowHeader = "X-Workflow"
ProjectKeyHeader = "X-Project-Key"
)
type WorkflowRunHeaders ... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
package obfuscate
import (
"bytes"
"fmt"
"unicode"
"unicode/utf8"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/collection.proto
package common
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... |
// Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
package oidc
import (
"context"
"fmt"
"net/http"
"net/url"
"strconv"
"strings"
"time"
"github.com/coreos/go-oidc/v3/oidc"
"github.com/hashicorp/go-multierror"
"github.com/pkg/errors"
"github.com/stackrox/rox/pkg/auth/authproviders"
"github.com/stackrox/rox/pkg/auth/authproviders/idputil"
"github.com/stac... |
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// Se... |
package gear
import (
"context"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"log"
"net"
"net/http"
"os"
"strings"
"time"
)
// Middleware defines a function to process as middleware.
type Middleware func(ctx *Context) error
// Handler interface is used by app.UseHandler as a middleware.
type Handler interfac... |
package faux_browser
import (
"bytes"
"crypto/rand"
"fmt"
"io"
"math/big"
mathrand "math/rand"
"net/http"
urlpkg "net/url"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"time"
"golang.org/x/net/html"
)
type Browser struct {
NavigatableDomains []string
UserAgent string
}
func NewBrowse... |
// Code generated by goyacc -o grammar.go -v grammar.output -p Lr grammar.y. DO NOT EDIT.
//line grammar.y:2
package yacc
import __yyfmt__ "fmt"
//line grammar.y:2
import (
"github.com/pattyshack/abc/src/lr/internal/parser"
)
//line grammar.y:9
type LrSymType struct {
yys int
Generic_ *parser.LRGenericSymb... |
// Package kubeadmconfig defines kubeadm configuration.
package kubeadmconfig
import (
"errors"
"fmt"
"io/ioutil"
"math/rand"
"os"
"path/filepath"
"reflect"
"strconv"
"strings"
"time"
"github.com/aws/aws-k8s-tester/ec2config"
"github.com/blang/semver"
"k8s.io/client-go/util/homedir"
"sigs.k8s.io/yaml"
)... |
package idanalyzer
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"regexp"
"time"
)
type CoreAPI struct {
apiKey string
apiEndpoint string
config coreConfig
}
type CoreResponse1Side struct {
Error *APIError `json:"error,omitempty"`
Result ... |
package chipmunk
import (
"errors"
"fmt"
"github.com/vova616/chipmunk/transform"
"github.com/vova616/chipmunk/vect"
//"github.com/davecgh/go-spew/spew"
"math"
"time"
)
const ArbiterBufferSize = 1000
const ContactBufferSize = ArbiterBufferSize * MaxPoints
type Space struct {
/// Number of iterations to use i... |
// Copyright 2016-2019 Granitic. All rights reserved.
// Use of this source code is governed by an Apache 2.0 license that can be found in the LICENSE file at the root of this project.
/*
Package validate provides a declarative, rules-based validation framework for validating user-supplied data.
The types in this pac... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/backend.proto
package pb
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.gola... |
package response
import (
"encoding/xml"
"time"
"github.com/HGV/mss-go/shared"
)
type Address struct {
Street string `xml:"street"`
ZIP string `xml:"zip"`
ZIPCode string `xml:"zipcode"`
City string `xml:"city"`
Country string `xml:"country"`
URLStreetview string `xml:"u... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.14.0
// source: psql.proto
package psql
import (
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
protoreflect "google.golang.org/protobuf/reflect/pr... |
package assets
import (
"embed"
"image/color"
"github.com/sedyh/mizu/examples/particles/helper"
)
// This is where the images, colors and gradients are loaded.
var (
Background = color.RGBA{R: 41, G: 44, B: 45, A: 255}
FireA = helper.Image(fs, "data/image/fire-a.png")
FireB = helper.Image(fs, ... |
// Copyright (c) 2021 <NAME>
// Copyright (c) 2021 Regents of the University Of California
// 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 bstore
import (
"encoding/binary"
"math"
"time"
"github.com/BTrD... |
//line yyparse.go.y:2
package yyparse
import __yyfmt__ "fmt"
//line yyparse.go.y:2
import (
"github.com/acomagu/parsefish/ast"
)
//line yyparse.go.y:9
type yySymType struct {
yys int
stmts ast.Stmts
stmt ast.Stmt
str ast.StrExpr
expr ast.Expr
exprs ast.Exprs
}
const STR = 57346
const STR_AND_LEFT_PAREN... |
package bffnt_headers
import (
"flag"
"fmt"
"image"
"image/color"
"image/png"
"io/ioutil"
"os"
"sort"
"golang.org/x/image/font"
"golang.org/x/image/font/opentype"
"golang.org/x/image/math/fixed"
)
// Resources
// https://www.3dbrew.org/wiki/BCFNT#Version_4_.28BFFNT.29
// http://wiki.tockdom.com/wiki/BRFNT... |
// +build codegen
package api
import (
"bytes"
"fmt"
"path"
"regexp"
"sort"
"strings"
"text/template"
)
// ErrorInfo represents the error block of a shape's structure
type ErrorInfo struct {
Type string
Code string
HTTPStatusCode int
}
// A XMLInfo defines URL and prefix for Shapes whe... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.18.1
// source: google/ads/googleads/v10/enums/placeholder_type.proto
package enums
import (
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "... |
// 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 wri... |
package sca
//go:generate go run ./gen/gen.go
import (
address "github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/cbor"
"github.com/filecoin-project/go-state-types/exitcode"
actor ... |
package cmd
import (
"errors"
"fmt"
"log"
"math"
"net/http"
"sort"
"strconv"
"strings"
"time"
"github.com/fi-ts/cloud-go/api/client/cluster"
"github.com/fi-ts/cloud-go/api/client/health"
"github.com/fi-ts/cloud-go/api/client/version"
"github.com/fi-ts/cloud-go/api/client/volume"
"github.com/fi-ts/cloud-... |
/*
* Copyright (c) 2019-present unTill Pro, Ltd. and Contributors
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package dynobuffers
import (
flatbuffers "github.com/google/flatbuffers/go"
"github.com/untillpro/dynobuffers"
)
f... |
// Copyright 2014-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 Lic... |
/*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates.
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package statefulset
import (
"context"
"fmt"
"github.com/go-logr/logr"
"github.com/operator-framework/operator-lib/status"
coh "github.com/... |
// Copyright 2011 <<EMAIL>>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package opencv
//#include "opencv.h"
//#cgo linux pkg-config: opencv
//#cgo darwin pkg-config: opencv
//#cgo freebsd pkg-config: opencv
//#cgo windows LDFLAGS: -lo... |
// Package api holds declarations for types used in ipfs-cluster APIs to make
// them re-usable across differen tools. This include RPC API "Serial[izable]"
// versions for types. The Go API uses natives types, while RPC API,
// REST APIs etc use serializable types (i.e. json format). Conversion methods
// exists betwe... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: report.proto
package pganalyze_collector
import (
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/re... |
package ymfdata
import (
"math"
)
// Frac64 は、0 以上 1 未満の固定小数点数を符号なし64ビット整数で表現する型です。
type Frac64 uint64
// FloatToFrac64 は、float64 から Frac64 に値を変換します。
func FloatToFrac64(v float64) Frac64 {
return Frac64(v * Pow64Of2)
}
// MulUint64 は、Frac64 に uint64 型の値を掛けた値を返します。
func (v Frac64) MulUint64(rhs uint64) Frac64 {
r... |
// Copyright 2020 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 ... |
package complianceremediation
import (
"context"
"fmt"
"github.com/go-logr/logr"
compv1alpha1 "github.com/openshift/compliance-operator/pkg/apis/compliance/v1alpha1"
"github.com/openshift/compliance-operator/pkg/controller/common"
"github.com/openshift/compliance-operator/pkg/utils"
mcfgv1 "github.com/openshif... |
//line ./parser/parser.go.y:2
package parser
import __yyfmt__ "fmt"
//line ./parser/parser.go.y:2
import "github.com/minodisk/thriftast/ast"
//line ./parser/parser.go.y:8
type yySymType struct {
yys int
program *ast.Program
expressions []ast.Expression
include *ast.Include
namespace *ast.Names... |
// Copyright (C) 2014 Nippon Telegraph and Telephone Corporation.
//
// 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... |
package chain
import (
"context"
"fmt"
"time"
"0chain.net/chaincore/config"
"0chain.net/chaincore/node"
"0chain.net/chaincore/block"
"0chain.net/core/common"
"0chain.net/core/logging"
"go.uber.org/zap"
)
/*VerifyTicket - verify the ticket */
func (c *Chain) VerifyTicket(blockHash string,
bvt *block.Verifi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: config/monitoring.proto
package config
import (
proto "github.com/golang/protobuf/proto"
metricstores "github.com/spinnaker/kleat/api/client/metricstores"
protoreflect "google.golang.org/pro... |
package main
import (
"fmt"
)
func japaneseNames() []string {
// fmt.Println("start1")
names := []string{"NO JAPANESE NAMES ARRAY"}
//////////////////////////////////////////////////////////////////////////////////////////////////////
switch genderIndex {
case 0:
names = []string{
//MALE
"Saito",
"Ko... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/endpoint/endpoint.proto
package endpoint
import (
fmt "fmt"
core "github.com/cilium/proxy/go/envoy/api/v2/core"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/golang/protobuf/... |
package logpoller
import (
"context"
"database/sql"
"math/big"
"strings"
"testing"
"time"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethere... |
/*
Copyright 2021.
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 un... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: http.proto
package proto
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 compile-tim... |
/* Distributed under the MIT license. See the LICENSE file.
* Copyright (c) 2014--2016 <NAME> */
/* This defines an InferiorEvent implementation that just forwards the arrays
* it gets to python and runs a user-provided script. */
package main
import (
"./debug"
"./msg"
"code.google.com/p/rsc.x86/x86asm"
"error... |
package handlers
// Graph.go provides handlers for service-graph request endpoints. The handlers return configuration
// for a specified vendor (default cytoscape). The configuration format is vendor-specific, typically
// JSON, and provides what is necessary to allow the vendor's graphing tool to render the servic... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/v3/model.proto
package common
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.M... |
// Copyright 2020 <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
// Copyright 2017 Istio 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 rod_test
import (
"bytes"
"context"
"image/png"
"net/http"
"os"
"path/filepath"
"sort"
"sync"
"time"
"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/defaults"
"github.com/go-rod/rod/lib/devices"
"github.com/go-rod/rod/lib/input"
"github.com/go-rod/rod/lib/proto"
"github.com/go-rod/rod/lib/ut... |
package glfw
//#include "glfw/include/GLFW/glfw3.h"
//void glfwSetJoystickCallbackCB();
//void glfwSetKeyCallbackCB(GLFWwindow *window);
//void glfwSetCharCallbackCB(GLFWwindow *window);
//void glfwSetCharModsCallbackCB(GLFWwindow *window);
//void glfwSetMouseButtonCallbackCB(GLFWwindow *window);
//void glfwSetCursorP... |
/*
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, so... |
package p2p
import (
"fmt"
"net"
"sync"
"time"
"github.com/lianxiangcloud/linkchain/config"
cmn "github.com/lianxiangcloud/linkchain/libs/common"
"github.com/lianxiangcloud/linkchain/libs/crypto"
dbm "github.com/lianxiangcloud/linkchain/libs/db"
"github.com/lianxiangcloud/linkchain/libs/log"
"github.com/lia... |
// Copyright 2019 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 ... |
package sftp
// sftp server counterpart
import (
"encoding"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"sync"
"syscall"
"time"
"github.com/pkg/errors"
)
const (
SftpServerWorkerCount = 8
)
// Server is an SSH File Transfer Protocol (sftp) server.
// This is intended to provide the sftp subsy... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016 Datadog, Inc.
//go:build appsec && cgo && !windows && amd64 && (linux || darwin)
// +build apps... |
// Copyright 2009 The Go Authors. All rights reserved.
// Copyright (c) 2015 <NAME>
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package flate
import (
"fmt"
"io"
"math"
)
const (
NoCompression = 0
BestSpeed = 1
BestCompression = 9
De... |
// Package finn provide a fast and simple Raft implementation.
package finn
import (
"crypto/rand"
"encoding/hex"
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/hashicorp/raft"
"github.com/tidwall/raft-boltdb"
"github.com... |
// Copyright 2018 Istio 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... |
// Copyright (C) 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
////////////////////////////////////////////////////////////////////////////////
// //
// Copyright 2019 Dell, Inc. //
// ... |
//
// Copyright 2021 IBM Corporation
//
// 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 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 (c) 2021 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 2018-2020 (c) Cognizant Digital Business, Evolutionary AI. All rights reserved. Issued under the Apache 2.0 License.
package main
// This file contains the implementation of queue query functions along with
// tracking for queues to detect new arrivals and also to detect the
// disappearance of queues
//... |
package rpcserver
import (
"crypto/subtle"
"encoding/base64"
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/incognitochain/incognito-chain/blockchain"
"github.com/incognitochain/incognito-chain/incdb"
"github.com/incognitochain/incognito-c... |
/*
Copyright © 2019 AWS Controller 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 (
"flag"
"fmt"
"log"
"math"
"os"
"strings"
"sync"
"time"
"github.com/ChristopherRabotin/gokalman"
"github.com/ChristopherRabotin/smd"
"github.com/gonum/matrix/mat64"
"github.com/spf13/viper"
)
// Scenario constants
const (
defaultScenario = "~~unset~~"
dateFormat = "2006-01-02 ... |
/*
Author => ArkAngeL43
Language => Golang
Type APP => CLI
Color => Standard, GRN, BLU, DEEPGRN ASCII
name => Ether_Rabbit
Tool DESC: This is a simple ethernet and tcp dump/traffic logger as a command line application which gives you the option to filter your capture
the filter types are tcp, ip, ... |
package enginemgo
import (
"encoding/json"
"strings"
"sync"
"time"
"kabao/app/models"
"github.com/nzlov/centrifugo/libcentrifugo/channel"
"github.com/nzlov/centrifugo/libcentrifugo/config"
"github.com/nzlov/centrifugo/libcentrifugo/engine"
"github.com/nzlov/centrifugo/libcentrifugo/logger"
"github.com/nzlo... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/core/config_source.proto
package core
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
wrappers "github.com/golang/protobuf/ptypes/wrapp... |
package web
// metrics module provides various metrics about our server
//
// Copyright (c) 2020 - <NAME> <<EMAIL>>
import (
"database/sql"
"fmt"
"os"
"runtime"
"time"
"github.com/dmwm/dbs2go/dbs"
"github.com/dmwm/dbs2go/utils"
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/load"
"github.com/... |
package testutil
import (
"context"
"errors"
"fmt"
"github.com/ScoreTrak/ScoreTrak/pkg/check"
"github.com/ScoreTrak/ScoreTrak/pkg/config"
"github.com/ScoreTrak/ScoreTrak/pkg/host"
"github.com/ScoreTrak/ScoreTrak/pkg/hostgroup"
"github.com/ScoreTrak/ScoreTrak/pkg/policy"
"github.com/ScoreTrak/ScoreTrak/pkg/pro... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/admin.proto
/*
Package admin is a generated protocol buffer package.
It is generated from these files:
proto/admin.proto
It has these top-level messages:
ConfigurationRequest
ConfigurationResponse
StatisticsRequest
StatisticsResponse
StatisticsC... |
package urlscan
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"net/url"
"time"
"github.com/valyala/fasthttp"
)
// Client contains the URLScan API token
type Client struct {
Token string
}
// NewClient returns a URLScan client
// which is containing required API token
func NewClient(token string) *Client {... |
package cmd
import (
"context"
"fmt"
"net/http"
"net/url"
"os"
"path/filepath"
"strings"
"github.com/Azure/azure-pipeline-go/pipeline"
"github.com/Azure/azure-storage-azcopy/common"
"github.com/Azure/azure-storage-azcopy/ste"
"github.com/Azure/azure-storage-blob-go/2018-03-28/azblob"
)
type syncUploadEnum... |
package disgord
import (
"context"
"sync"
"github.com/andersfylling/disgord/event"
)
type eventBox interface {
registerContext(ctx context.Context)
}
// EventAllEvents keys that does not fit within one of the existing files goes here
const EventAllEvents = "*"
// EventCallback is triggered on every event type
... |
// 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 wri... |
// Copyright 2018 Prometheus Team
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
package imagebuildah
import (
"context"
"fmt"
"io"
"io/ioutil"
"os"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/containers/buildah"
"github.com/containers/buildah/pkg/parse"
"github.com/containers/buildah/util"
"github.com/containers/common/pkg/config"
"github.com/containers/image/v5/docker/re... |
// Copyright 2018 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 appl... |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package cluster
import (
"bytes"
"encoding/base64"
"encoding/hex"
"encoding/pem"
"time"
"github.com/hyperledger/fabric-protos-go/common"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/common/flogging"
"... |
// 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.
/*Copyright (C) 2022 Mandiant, Inc. All Rights Reserved.*/
// Package macho implements access to Mach-O object files.
package macho
// High level access to lo... |
package ackhandler
import (
"errors"
"fmt"
"math"
"time"
"github.com/lucas-clemente/quic-go/internal/congestion"
"github.com/lucas-clemente/quic-go/internal/protocol"
"github.com/lucas-clemente/quic-go/internal/utils"
"github.com/lucas-clemente/quic-go/internal/wire"
"github.com/lucas-clemente/quic-go/qerr"
... |
package activation
import (
"bytes"
"context"
"errors"
"fmt"
"sync"
"time"
"github.com/spacemeshos/post/shared"
"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/common/util"
"github.com/spacemeshos/go-spacemesh/database"
"github.com/spacemeshos/go-spacemesh/events"
... |
// Copyright 2021 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 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 httptransport provides functions and template helpers for templating
// the http-transport of a go-kit based service.
package httptransport
import (
"bytes"
"fmt"
"go/format"
"strconv"
"strings"
"text/template"
"unicode"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/teamli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.