text stringlengths 8.57k 38.1k |
|---|
package chainntnfs
import (
"errors"
"fmt"
"sync"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcutil"
)
var (
// ErrTxConfNotifierExiting is an error returned when attempting to
// interact with the TxConfNotifier but it been shut down.
ErrTxConfNotifierExiting = errors.New("TxConfNot... |
package smtpd
import (
"bufio"
"bytes"
"context"
"fmt"
"log"
"net"
"regexp"
"strings"
"time"
)
const (
maxUnrecognisedCommands = 20 // this normally indicates SMTP has got out sync
)
// InboundTransactionProcessor is an interface representing an inbound transaction processor, i.e.
// structs that satisfy t... |
// MIT License
//
// (C) Copyright [2020-2021] Hewlett Packard Enterprise Development LP
//
// 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 limitatio... |
package ramfs
import (
"errors"
"fmt"
"github.com/coolprototype-9000/cp9-proto/nine"
)
func (r *RamFs) Register(devNumber uint32) error {
r.fidTable = make(map[uint64]map[fidDesc]uint64)
r.devNumber = devNumber
r.statTable = make(map[uint64]nine.Stat)
r.dirTable = make(map[uint64][]uint64)
r.fileTable = make... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.6.1
// source: protos/health/health.proto
package greet
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "g... |
package internal
import (
"context"
"errors"
"fmt"
"github.com/WelcomerTeam/RealRock/limiter"
discord "github.com/WelcomerTeam/Sandwich-Daemon/discord/structs"
structs "github.com/WelcomerTeam/Sandwich-Daemon/structs"
"github.com/WelcomerTeam/czlib"
jsoniter "github.com/json-iterator/go"
"github.com/rs/zerolo... |
package main
import (
"bytes"
"encoding/binary"
"flag"
"fmt"
"net"
"net/url"
"os"
"strconv"
"strings"
//"reflect"
//"strconv"
"compress/flate"
"io"
"time"
)
//constants
const AJP_HEADER_LEN int = 4
//
const SC_REQ_ACCEPT string = "\xA0\x01"
const SC_REQ_ACCEPT_CHARSET string = "\xA0\x02"
const SC_REQ_A... |
package main
import (
"archive/tar"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"
"time"
)
type FileJob struct {
Language string
PossibleLanguages []string
Filename string
Extension string
Location string
Content ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/securitycenter/v1/asset.proto
package securitycenter // import "google.golang.org/genproto/googleapis/cloud/securitycenter/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _struct "github.com/golang/... |
// Copyright 2019 GRAIL, Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// Package dydb implements a diviner.Database on top of dynamodb
// and the AWS cloudwatch logs storage. Database instances may be
// safely shared between multi... |
//
//
// File generated from our OpenAPI spec
//
//
package stripe
import "encoding/json"
// Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
type PersonPoliticalEx... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
*/
package jsonast
import (
"context"
"fmt"
"math"
"math/big"
"net/url"
"strings"
"github.com/devigned/tab"
"github.com/pkg/errors"
"k8s.io/klog/v2"
"github.com/Azure/azure-service-operator/hack/generator/pkg/astmodel"
"githu... |
package main
import "C"
import (
"encoding/json"
"flag"
"fmt"
"github.com/faiface/mainthread"
"github.com/go-gl/gl/v3.3-core/gl"
"github.com/go-gl/glfw/v3.3/glfw"
"github.com/wieku/danser-go/app/audio"
"github.com/wieku/danser-go/app/beatmap"
difficulty2 "github.com/wieku/danser-go/app/beatmap/difficulty"
ca... |
// Copyright (c) 2019, The Hdfchain developers
// See LICENSE for details.
package dcrpg
import (
"context"
"database/sql"
"fmt"
"io/ioutil"
"os"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/wire"
"github.com/hdfchain/hdfdata/db/dcrpg/v5/internal"
"github.com/hdfchain/hdfdata/stakedb/... |
package generator
import (
"errors"
"fmt"
"go/format"
"io"
"os"
"path/filepath"
"strings"
"unicode"
"github.com/sanity-io/litter"
"github.com/atombender/go-jsonschema/pkg/codegen"
"github.com/atombender/go-jsonschema/pkg/schemas"
)
type Config struct {
SchemaMappings []SchemaMapping
Capitalizations... |
// 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 2018 Pressinfra SRL
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
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/firestore/admin/v1beta2/index.proto
package admin
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwi... |
// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
package config
import (
"bufio"
"bytes"
"crypto/rand"
"encoding/json"
"fmt"
"io/ioutil"
"math/big"
"net"
"os"
"strconv"
"strings"
"time"
"git.arvados.org/arvados.git/sdk/go/arvados"
"github.com/sirupsen/l... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/config/event_feed/config_request.proto
package event_feed // import "github.com/chef/automate/api/config/event_feed"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import shared "github.com/chef/automate/api/config/sh... |
package coordinator
import (
"time"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
kubeerrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/selection"
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
kubeinformers "k8s.io/clie... |
/*
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... |
package runner
import (
"archive/tar"
"context"
"fmt"
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
"regexp"
"runtime"
"strings"
"github.com/kballard/go-shellquote"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/nektos/act/pkg/common"
"github.com/nektos/act/pkg/container"
"githu... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.13.0
// source: odpf/assets/group.proto
package assets
import (
common "github.com/odpf/meteor/proto/odpf/assets/common"
facets "github.com/odpf/meteor/proto/odpf/assets/facets"
protoreflect "google.golang.... |
package pods
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"os/user"
"path/filepath"
"runtime"
"strconv"
"strings"
"testing"
"github.com/square/p2/pkg/artifact"
"github.com/square/p2/pkg/auth"
"github.com/square/p2/pkg/cgroups"
"github.com/square/p2/pkg/hoist"
"github.com/square/p2/pkg/launch"
"github.com/s... |
// 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 flag implements command-line flag parsing.
Usage
Define flags using flag.String(), Bool(), Int(), etc.
This declares an integer flag, -flagnam... |
package tetra3d
import (
"strconv"
"strings"
"github.com/kvartborg/vector"
)
// NodeType represents a Node's type. Node types are categorized, and can be said to extend or "be of" more general types.
// For example, a BoundingSphere has a type of NodeTypeBoundingSphere. That type can also be said to be NodeTypeBo... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.11.4
// source: proto/control_plane/v1/drkey.proto
package control_plane
import (
context "context"
proto "github.com/golang/protobuf/proto"
drkey "github.com/scionproto/scion/go/pkg/proto/drkey"
grpc "goo... |
package item
import (
"bytes"
"crypto"
"crypto/hmac"
"crypto/md5"
"crypto/rsa"
"crypto/sha1"
"crypto/x509"
"encoding/base64"
"encoding/json"
"encoding/pem"
"errors"
"fmt"
"hash"
"io"
"io/ioutil"
"log"
"net/http"
"strconv"
"time"
"a2os/safeu-backend/common"
"github.com/gin-gonic/gin"
"github.com... |
package profileutils
import (
"context"
"fmt"
"io"
"strconv"
"time"
"github.com/savannahghi/enumutils"
"github.com/savannahghi/feedlib"
"github.com/savannahghi/firebasetools"
"github.com/savannahghi/scalarutils"
)
// PermissionType defines the type of a permission
type PermissionType string
// bewell admin... |
package web
import (
"crypto/md5"
"encoding/hex"
"fmt"
"log"
"net/url"
"sort"
"strconv"
"strings"
"time"
"github.com/dmwm/das2go/config"
"github.com/dmwm/das2go/das"
"github.com/dmwm/das2go/dasql"
"github.com/dmwm/das2go/mongo"
"github.com/dmwm/das2go/utils"
"gopkg.in/mgo.v2/bson"
)
// helper function... |
package internet
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
serial "github.com/SwordJason/v2ray-core/common/serial"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/type/http_status.proto
package envoy_type
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 ... |
//go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... |
package mos65xx
// Mnemonic is an instruction
type Mnemonic uint8
// mnemonics
const (
ADC Mnemonic = iota
AND
ASL
BCC
BCS
BEQ
BIT
BMI
BNE
BPL
BRK
BVC
BVS
CLC
CLD
CLI
CLV
CMP
CPX
CPY
DEC
DEX
DEY
EOR
INC
INX
INY
JMP
JSR
LDA
LDX
LDY
LSR
NOP
ORA
PHA
PHP
PLA
PLP
ROL
ROR
RTI
RTS
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/extensions/filters/common/fault/v3/fault.proto
package envoy_extensions_filters_common_fault_v3
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/go-control-plane/envoy/annotations"
v3 "github.com/envoyproxy/g... |
package schema
import (
"github.com/drycc/que-go"
"github.com/jackc/pgx"
)
var preparedStatements = map[string]string{
"ping": pingQuery,
"app_list": appListQuery,
"app_select_by_name": appSelectByNameQuery,
"app_select_by_name_for... |
/*
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,... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/config/infra_proxy/config_request.proto
package infra_proxy
import (
fmt "fmt"
shared "github.com/chef/automate/api/config/shared"
_ "github.com/chef/automate/components/automate-grpc/protoc-gen-a2-config/api/a2conf"
proto "github.com/golang/protobuf... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: message.proto
package xuperp2p
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 compi... |
package issuetriage
import (
"context"
"fmt"
"net/http"
"regexp"
"strings"
"sync"
"time"
githubql "github.com/shurcooL/githubv4"
"github.com/sirupsen/logrus"
tiexternalplugins "github.com/ti-community-infra/tichi/internal/pkg/externalplugins"
"github.com/ti-community-infra/tichi/internal/pkg/externalplugin... |
//go:generate go-bindata -prefix ../../migrations/ -pkg migrations -o ../../internal/migrations/migrations_gen.go ../../migrations/
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"net"
"os"
"os/signal"
"strings"
"syscall"
"time"
log "github.com/sirupsen/logrus"
"github.com/codegangsta... |
/*
* Copyright (C) 2015 Red Hat, 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 ofthe License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
package replication
import (
"encoding/binary"
"encoding/hex"
"fmt"
"io"
"strconv"
"strings"
"time"
"unicode"
"github.com/pingcap/errors"
uuid "github.com/satori/go.uuid"
. "github.com/go-mysql-org/go-mysql/mysql"
)
const (
EventHeaderSize = 19
SidLength = 16
LogicalTimesta... |
package param
var DelayWorkarounds = generateDelayWorkarounds() // called "removal workarounds" in previous versions
func generateDelayWorkarounds() map[string][]int32 {
return map[string][]int32{
"travtest01": {426898},
"gauntlet-invade-the-darkness-lvl-1-of": {583305},
"fr-le... |
// 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 2010 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 math
/*
Floating-point error function and complementary error function.
*/
// The original C code and the long comment below are
// from FreeBSD's /u... |
// Copyright 2016-2018, Pulumi 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... |
/*
Copyright 2017 Mirantis
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
distri... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/tasks/v2/task.proto
package tasks
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/g... |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package gmsigner
import (
"bytes"
"crypto"
"crypto/ecdsa"
"crypto/rand"
"crypto/sha1"
"crypto/x509"
"crypto/x509/pkix"
"encoding/asn1"
"encoding/hex"
"encoding/pem"
"fmt"
mathRand "math/rand"
"github.com/Hyperledger-TWGC... |
package face
// Copyright (c) Microsoft and contributors. 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: ras/client/v1/client_service.proto
package clientv1
import (
_ "github.com/v8platform/protoc-gen-go-ras/plugin/ras/client"
v1 "github.com/v8platform/protos/gen/ras/protocol/v1"
protoreflect ... |
/*
Copyright 2020 <NAME>. 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 writ... |
// Copyright 2022 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 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, ... |
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/bigtable/admin/table/v1/bigtable_table_service_messages.proto
// DO NOT EDIT!
package google_bigtable_admin_table_v1 // import "google.golang.org/genproto/googleapis/bigtable/admin/table/v1"
import proto "github.com/golang/protobuf/p... |
package api
import (
"fmt"
"sort"
"strings"
"github.com/grafana/grafana/pkg/api/dtos"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/plugins"
"github.com/grafana/grafana/pkg/setting"
)
const (
// Themes
lightName = "light"
darkName = "dark"
)
... |
package main
import (
"bytes"
"flag"
"fmt"
"io"
"log"
"net"
"os"
"strings"
"time"
"crypto/rand"
"crypto/tls"
"encoding/json"
"io/ioutil"
"net/http"
"golang.org/x/net/proxy"
URL "net/url"
)
type attack struct {
agent string
debug int
email string
endpoint string
groupID ... |
// Copyright IBM Corp. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
package bft
import (
"sync"
"time"
"github.com/SmartBFT-Go/consensus/pkg/api"
"github.com/SmartBFT-Go/consensus/pkg/types"
protos "github.com/SmartBFT-Go/consensus/smartbftprotos"
"github.com/golang/protobuf/proto"
"githu... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.6.1
// source: token_transfer.proto
package models
import (
_ "github.com/infobloxopen/protoc-gen-gorm/options"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/pr... |
package flowscheduler
import (
"fmt"
//"vlog"
"github.com/golang/glog"
)
// flowgraphmanager only handle the follow:
// map the task to node
// map the res to node
// sinknode,leafnodes,leaf resource id
// running arc from running task to res
// arc from unaggnode to sinknode
// other arc that need to be add will ... |
//go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... |
package app
import (
"fmt"
"os"
"path/filepath"
"time"
"gopkg.in/urfave/cli.v1/altsrc"
"git.parallelcoin.io/dev/pod/cmd/node"
"git.parallelcoin.io/dev/pod/cmd/node/mempool"
walletmain "git.parallelcoin.io/dev/pod/cmd/walletmain"
"git.parallelcoin.io/dev/pod/pkg/util/cl"
"gopkg.in/urfave/cli.v1"
)
func Mai... |
// Code generated by "go run countries_gen.go cldr-common-38.1.zip"; DO NOT EDIT.
package country
import "github.com/blueboardio/cldr/v2/currency"
type Info struct {
Code Code
Name string
Currencies []currency.Code
}
// Countries is the list of countries from Unicode CLDR.
//
// Source: cldr-common-3... |
/*
Copyright 2020 The Knative 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... |
// Copyright 2016 <NAME> and 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 a... |
package rui
import (
"fmt"
"strconv"
"strings"
)
const (
// TableVerticalAlign is the constant for the "table-vertical-align" property tag.
// The "table-vertical-align" int property sets the vertical alignment of the content inside a table cell.
// Valid values are LeftAlign (0), RightAlign (1), CenterAlign (2... |
package box2d
import (
"fmt"
"math"
)
/// Distance joint definition. This requires defining an anchor point on both
/// bodies and the non-zero distance of the distance joint. The definition uses
/// local anchor points so that the initial configuration can violate the
/// constraint slightly. This helps when savin... |
//go:generate protoc -I ../rpc/common --go_out=plugins=grpc:$GOPATH/src ../rpc/common/cloud_event.proto
//go:generate protoc -I ../rpc/common --go_out=plugins=grpc:$GOPATH/src ../rpc/common/common.proto
//go:generate protoc -I ../rpc --go_out=plugins=grpc:$GOPATH/src ../rpc/service.proto
package client
import (
"con... |
// 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... |
// 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 neutrinonotify
import (
"container/heap"
"errors"
"sync"
"sync/atomic"
"time"
"github.com/lightninglabs/neutrino"
"github.com/lightningnetwork/lnd/chainntnfs"
"github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/roasbeef/btcd/rpcclient"
"github.com/roasbeef/btcd/wire"
"github.com/roasbeef/btcu... |
// Copyright 2020 Authors of Cilium
//
// 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 ... |
/*
* Tencent is pleased to support the open source community by making 蓝鲸 available.
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the Li... |
// +build sam
package machine
import (
"bytes"
"encoding/binary"
"errors"
"runtime/volatile"
)
const deviceDescriptorSize = 18
// DeviceDescriptor implements the USB standard device descriptor.
//
// Table 9-8. Standard Device Descriptor
// bLength, bDescriptorType, bcdUSB, bDeviceClass, bDeviceSubClass, bDevic... |
package v1
import (
"fmt"
"path"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/storageos/cluster-operator/internal/pkg/image"
"github.com/storageos/cluster-operator/internal/pkg/toleration"
)
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are... |
package main
import (
"fmt"
"image"
"os"
"path/filepath"
"strings"
"sync"
"github.com/rjkroege/edwood/draw"
"github.com/rjkroege/edwood/file"
"github.com/rjkroege/edwood/frame"
"github.com/rjkroege/edwood/runes"
"github.com/rjkroege/edwood/util"
)
type Window struct {
display draw.Display
lk sync.M... |
package v1
import (
v1 "k8s.io/api/core/v1"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
)
const (
// StorageClusterResourceName is name for "storagecluster" resource
StorageClusterResourceName = "storagecluster"
// StorageClusterResourcePlural is plural for "storagecluster"... |
// Copyright 2019 The Go Authors. All rights reserved.
// Copyright 2019 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package ristretto255 implements the group of prime order
//
// 2**252 + 2774231777737235353585193779088364... |
package newrelic
import (
"errors"
"fmt"
"io"
"net/http"
"os"
"strconv"
"strings"
"time"
"unicode/utf8"
"github.com/newrelic/go-agent/v3/internal"
)
// Config contains Application and Transaction behavior settings.
type Config struct {
// AppName is used by New Relic to link data across servers.
//
// h... |
// Copyright 2018 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package cover
import (
"bufio"
"bytes"
"fmt"
"html"
"html/template"
"io"
"io/ioutil"
"math"
"path/filepath"
"sort"
"strconv"
"strings"
"gith... |
package kitgo
import (
"bufio"
"bytes"
"context"
"fmt"
"io"
"net"
"net/http"
"net/http/httptest"
"net/http/httptrace"
"net/http/httputil"
"net/url"
"runtime/debug"
"sort"
"strings"
"syscall"
"time"
)
var HTTP http_
type http_ struct {
Client httpClient_
Server httpServer_
Transport httpTrans... |
// Copyright 2019 Asavie Technologies Ltd. All rights reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree.
/*
Package xdp allows to use XDP sockets from Go.
An XDP socket allows to get packets from a network interface dr... |
package softmail
import (
"errors"
"log"
"net/http"
"regexp"
"encoding/base64"
"fmt"
"time"
"crypto/md5"
"hash/fnv"
"strings"
"math/rand"
"strconv"
)
var extractSentEmailIdFromImgPixel = regexp.MustCompile(".*/(.+?).png")
var extractSentEmailIdFromUrlEndDash = regexp.MustCompile("(.*)-(.+?$)")
var extract... |
// Package worker contains code that will compute the diffs for PNG images and write them to the
// SQL database. There could be multiple of these workers running in parallel to make sure the
// frontend can quickly make queries based on how close images are to one another.
package worker
import (
"bytes"
"context"
... |
package routes
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"strconv"
"strings"
"time"
config "github.com/traderboy/collector-server/config"
structs "github.com/traderboy/collector-server/structs"
)
func Updates(name string, id string, parentTableName string, tableName string, updateTxt string, gl... |
// Package clusterloader implements cluster loader.
// ref. https://github.com/kubernetes/perf-tests/tree/master/clusterloader2
// ref. https://github.com/kubernetes/perf-tests/tree/master/clusterloader2/testing/overrides
package clusterloader
import (
"bytes"
"context"
"encoding/json"
"fmt"
"html/template"
"io"... |
// Copyright 2016 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/protobuf/debug.proto
package core_protos_go_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
v... |
package nessie
type Acl struct {
Permissions int `json:"permissions"`
Owner interface{} `json:"owner"`
DisplayName interface{} `json:"display_name"`
Name interface{} `json:"name"`
ID interface{} `json:"id"`
Type string `json:"type"`
}
type LicenseInfo struct {
Trimmed ... |
package cfitsio
// #include "go-cfitsio.h"
// #include "go-cfitsio-utils.h"
import "C"
import (
"fmt"
"reflect"
"strconv"
"strings"
"unsafe"
)
type TypeCode int
const (
TBIT TypeCode = C.TBIT /* codes for FITS table data types */
TBYTE TypeCode = C.TBYTE
TSBYTE TypeCode = C.TSBYTE
TLOGICAL... |
// Copyright (c) 2017, Boise State University All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bufio"
"context"
"crypto/tls"
"flag"
"fmt"
"html/template"
"log"
"net/http"
"net/http/httputil"
"net/http/pprof"
... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: error.proto
package models
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import strconv "strconv"
import strings "strings"
import reflect "reflect"
import io "io"
// Refe... |
//
// The kstat package provides a Go interface to the Solaris/OmniOS
// kstat(s) system for user-level access to a lot of kernel
// statistics. For more documentation on kstats, see kstat(1) and
// kstat(3kstat).
//
// In an ideal world the package documentation would go here. This is
// not an ideal world, because an... |
// Copyright 2014 pendo.io
//
// 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 writ... |
/*
* Copyright (c) 2012-2020 MIRACL UK Ltd.
*
* This file is part of MIRACL Core
* (see https://github.com/miracl/core).
*
* 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... |
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" fil... |
package Euler2D
import (
"fmt"
"math"
"sort"
"sync"
"github.com/notargets/gocfd/DG2D"
"github.com/notargets/gocfd/utils"
)
type VertexToElement [][3]int32 // Vertex id is the first int32, element ID is the next, threadID third
func (ve VertexToElement) Len() int { return len(ve) }
func (ve VertexTo... |
package repos
import (
"bytes"
"context"
"encoding/json"
"fmt"
"net/url"
"strings"
"time"
"github.com/cockroachdb/errors"
"github.com/inconshreveable/log15"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/sourcegraph/sourcegraph/inter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.