text stringlengths 5.51k 28.1k |
|---|
/*
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 themes
import (
"fmt"
"image/color"
"io/ioutil"
"github.com/golang/freetype"
"github.com/golang/freetype/truetype"
"github.com/renerocksai/mdstyle"
"github.com/renerocksai/nucular/fonts"
"github.com/yosuke-furukawa/json5/encoding/json5"
"golang.org/x/image/font"
)
type TextStyle struct {
Color ... |
//
//Copyright 2020 The Magma Authors.
//
//This source code is licensed under the BSD-style license found in the
//LICENSE file in the root directory of this source tree.
//
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHO... |
// Copyright 2016 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 receiver
import (
"able/common"
"able/config"
"bufio"
"context"
"crypto/tls"
"errors"
"fmt"
"io"
"math/rand"
"net"
"net/http"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus"
"github.com/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: yandex/cloud/endpoint/api_endpoint_service.proto
package endpoint // import "github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/g... |
/*
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 main
import (
"strings"
"github.com/bwmarrin/discordgo"
)
// Command holds data related to a command executable by any message system
type Command struct {
Function func([]string, *CommandEnvironment) *discordgo.MessageEmbed //The function value of what to execute when the command is ran
HelpTex... |
// Copyright 2017 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.0
// source: go.chromium.org/lu... |
package main
import (
"flag"
"fmt"
"log"
"os"
"reflect"
"strconv"
"strings"
"sync"
"time"
"unsafe"
"honnef.co/go/xcapture/internal/shm"
"github.com/BurntSushi/xgb"
"github.com/BurntSushi/xgb/composite"
"github.com/BurntSushi/xgb/damage"
xshm "github.com/BurntSushi/xgb/shm"
"github.com/BurntSushi/xgb/... |
package scrape
import (
"errors"
"fmt"
"strconv"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
"github.com/goextension/log"
)
// DefaultJavbusMainPage ...
const DefaultJavbusMainPage = "https://www.javbus.com"
const javbusCNURL = "/"
const javbusJAURL = "/ja/"
const javbusENURL = "/en/"
const javbusKOURL ... |
/*
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 enmime
import (
"bufio"
"bytes"
stderrors "errors"
"io"
"mime"
"net/textproto"
"strings"
"github.com/jhillyerd/enmime/internal/coding"
"github.com/pkg/errors"
)
const (
// Standard MIME content dispositions
cdAttachment = "attachment"
cdInline = "inline"
// Standard MIME content types
ctAp... |
/*
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.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: email_service.proto
package email
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runti... |
package main
import (
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/go-connections/nat"
"log"
"math/rand"
"net"
"os"
"os/exec"
"path"
"strconv"
"time"
)
type ContainerStatus int
const (
Created ContainerStatus = 0
Booting ContainerStatus = ... |
package parser
import (
"errors"
"fmt"
"sync"
"github.com/npillmayer/gorgo/lr"
"github.com/npillmayer/gorgo/lr/earley"
"github.com/npillmayer/gorgo/lr/sppf"
"github.com/npillmayer/gorgo/terex"
"github.com/npillmayer/gorgo/terex/termr"
"github.com/npillmayer/schuko/tracing"
"golang.org/x/text/unicode/bidi"
)... |
/*
* Copyright (c) 2008-2021, Hazelcast, 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 b... |
// Copyright (c) 2018 <NAME>
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package main
import (
"fmt"
"math"
"testing"
)
// Sphere
func TestSphereNormal(t *testing.T) {
s := NewSphere()
if !s.NormalAt(Point(1, 0, 0)).Equals(Vector(1, 0, 0)) {
t.Error... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/surfacers/proto/config.proto
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
github.com/google/cloudprober/surfacers/proto/config.proto
It has these top-level messages:
SurfacerDef
*... |
// ocw
package main
import (
"encoding/json"
"encoding/xml"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"runtime"
"strings"
"time"
oapi "github.com/Nemo08/goosmapi"
_ "github.com/davecgh/go-spew/spew"
"gopkg.in/telegram-bot-api.v4"
)
const (
getdataworkers = 5
memMonitorTimeout = 60
configpath ... |
package ingester
import (
"context"
"flag"
"fmt"
"net/http"
"sync"
"time"
// Needed for gRPC compatibility.
old_ctx "golang.org/x/net/context"
"google.golang.org/grpc/health/grpc_health_v1"
opentracing "github.com/opentracing/opentracing-go"
"github.com/prometheus/client_golang/prometheus"
"github.com/pr... |
// Copyright 2019-2021 <NAME>
// <NAME> <<EMAIL>>
package config
import (
"moproxy/internal/proxyconn"
"moproxy/pkg/auth"
"moproxy/pkg/misc"
"encoding/json"
"errors"
"fmt"
"net"
"os"
"regexp"
"strconv"
"time"
"github.com/DisposaBoy/JsonConfigReader"
"github.com/maurice2k/tcpserver"
"github.com/rs/zero... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: tests/message/message_extensions.proto
package message
import (
_ "github.com/alta/protopatch/patch/gopb"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.gol... |
/*
Copyright 2019 The Vitess Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
/*
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... |
/*
* MinIO Client (C) 2020 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
// Copyright 2017-2021 <NAME> (<EMAIL>) and other 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 ... |
package source
import (
"adiss-server-a/global"
gormadapter "github.com/casbin/gorm-adapter/v3"
"github.com/gookit/color"
"gorm.io/gorm"
)
var Casbin = new(casbin)
type casbin struct{}
var carbines = []gormadapter.CasbinRule{
{PType: "p", V0: "888", V1: "/base/login", V2: "POST"},
{PType: "p", V0: "888", V1: ... |
// 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... |
package actionlint
import (
"context"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"runtime"
"sort"
"strings"
"time"
"github.com/fatih/color"
"github.com/mattn/go-colorable"
"golang.org/x/sync/errgroup"
"golang.org/x/sync/semaphore"
)
// LogLevel is log level of logger used in Linter... |
// Copyright 2019 The gVisor 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 agree... |
// Copyright 2020 PingCAP, Inc. Licensed under Apache-2.0.
package restore
import (
"bytes"
"context"
"encoding/hex"
"strconv"
"strings"
"time"
"github.com/opentracing/opentracing-go"
"github.com/pingcap/errors"
sst "github.com/pingcap/kvproto/pkg/import_sstpb"
"github.com/pingcap/kvproto/pkg/pdpb"
"githu... |
// MIT License
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// 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 righ... |
package automation
import (
"context"
"fmt"
"log"
"strings"
"time"
"github.com/Azure/azure-sdk-for-go/services/preview/automation/mgmt/2018-06-30-preview/automation"
"github.com/Azure/go-autorest/autorest/date"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
"github.com/hashicorp/terraform-pr... |
package storage
import (
"fmt"
"path"
"strings"
"github.com/docker/distribution/digest"
)
const (
storagePathVersion = "v2" // fixed storage layout version
storagePathRoot = "/docker/registry/" // all driver paths have a prefix
// TODO(stevvooe): Get rid of the "storagePathRoot". Initially,... |
package commands // import "code.cloudfoundry.org/grootfs/commands"
import (
"crypto/x509"
"encoding/json"
"errors"
"fmt"
"net/url"
"os"
"path/filepath"
"regexp"
"code.cloudfoundry.org/commandrunner/linux_command_runner"
"code.cloudfoundry.org/grootfs/base_image_puller"
unpackerpkg "code.cloudfoundry.org/g... |
// Package ui provides primitives that initialises the UI.
package ui
import (
"fmt"
"runtime"
"strings"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/dialog"
"fyne.io/fyne/v2/layout"
"fyne.io/fyne/v2/widget"
appApp "github.com/beebeeoii/lominus/internal/app"
appAuth... |
// Copyright 2011 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.
// Extract example functions from file ASTs.
package doc
import (
"go/ast"
"go/token"
"internal/lazyregexp"
"path"
"sort"
"strconv"
"strings"
"unicode... |
// Copyright 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
package apiv2
import (
"context"
"net/url"
"strings"
"github.com/mittwald/goharbor-client/v4/apiv2/auditlog"
"github.com/mittwald/goharbor-client/v4/apiv2/gc"
modelv2 "github.com/mittwald/goharbor-client/v4/apiv2/model"
"github.com/mittwald/goharbor-client/v4/apiv2/quota"
"github.com/mittwald/goharbor-client/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/common/tap/v2alpha/common.proto
package envoy_config_common_tap_v2alpha
import (
fmt "fmt"
core "github.com/cilium/proxy/go/envoy/api/v2/core"
v2alpha "github.com/cilium/proxy/go/envoy/service/tap/v2alpha"
_ "github.com/cncf/udpa/go/udpa/ann... |
package aperture
import (
"crypto/tls"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"sync"
"time"
"github.com/lightninglabs/aperture/auth"
"github.com/lightninglabs/aperture/mint"
"github.com/lightninglabs/aperture/proxy"
"github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd... |
package keeper
import (
"math"
"reflect"
"testing"
"github.com/Agoric/agoric-sdk/golang/cosmos/app/params"
"github.com/Agoric/agoric-sdk/golang/cosmos/vm"
"github.com/Agoric/agoric-sdk/golang/cosmos/x/lien/types"
"github.com/cosmos/cosmos-sdk/crypto/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
... |
package types
import (
"fmt"
"strings"
"github.com/Nextdoor/conductor/shared/datadog"
"github.com/Nextdoor/conductor/shared/settings"
)
// Special settings table which should only have one row.
type Config struct {
ID uint64 `orm:"pk;auto;column(id)" json:"-"`
// Current mode
Mode Mode `json:"mode"`
// JSO... |
/*
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, ... |
/*
* (C) 2017 <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 i... |
package rpc
import (
"context"
"crypto/tls"
"crypto/x509"
"fmt"
"net"
"net/http"
"sync"
"time"
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
mwAuth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
mwRecovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery"
mwValidator "github.co... |
// Copyright 2021 The Fuchsia 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 fidlgen_cpp
import (
"fmt"
"strings"
"go.fuchsia.dev/fuchsia/tools/fidl/lib/fidlgen"
)
//
// Generate code for sending and receiving FIDL mes... |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 <EMAIL>
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//cmd/ipfs为ipfs实现主cli二进制文件
package main
import (
"context"
"errors"
"fmt"
"math/rand"
"os"
"path/filepath"
"runtime/pprof"
"strings"
... |
package main
import (
"bufio"
"encoding/csv"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
"golang.org/x/sys/unix"
)
const (
nodev = unix.MS_NODEV
noexec = unix.MS_NOEXEC
nosuid = unix.MS_NOSUID
readonly = unix.MS_RDONLY
rec = unix.MS_REC
relatime = unix.MS_RELATIME
r... |
package gql
import (
"container/heap"
"context"
"fmt"
"math"
"runtime"
"sort"
"sync"
"sync/atomic"
"github.com/grailbio/base/file"
"github.com/grailbio/base/log"
"github.com/grailbio/base/traverse"
"github.com/grailbio/bigslice"
"github.com/grailbio/bigslice/sliceio"
"github.com/grailbio/gql/hash"
"git... |
// Copyright 2019 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... |
package tg
import (
"crypto/md5"
"encoding/hex"
"fmt"
"reflect"
"strconv"
"strings"
api "k8s.io/api/core/v1"
extensions "k8s.io/api/extensions/v1beta1"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/elbv2"
"github.com/kubernetes-sigs/aws-alb-ingress-controller/internal/aws/albec2"
"g... |
// Copyright 2020 The Go Cloud Development Kit 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 appli... |
// Copyright 2016 The conprof 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... |
package main
import (
"os"
"regexp"
"fmt"
"strings"
"strconv"
"log"
"time"
"math"
"github.com/Tnze/go-mc/yggdrasil"
"github.com/Tnze/go-mc/bot"
"github.com/Tnze/go-mc/chat"
"github.com/Tnze/go-mc/realms"
_ "github.com/Tnze/go-mc/data/lang/en-us"
"github.com/ugjka/cleverbot-go"
)
const timeout = 45
con... |
package runner
import (
"archive/zip"
"bytes"
"context"
"errors"
"fmt"
"io"
"math/rand"
"net"
"os"
"path/filepath"
"reflect"
"sync"
"sync/atomic"
"time"
"golang.org/x/sync/errgroup"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"gith... |
// Copyright 2018-2021 CERN
//
// 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 wr... |
/*
Copyright (c) 2015-2016 <NAME>
Distributable under the terms of The "BSD New"" License
that can be found in the LICENSE file, herein included
as part of this header.
network.go: Client networking routines, DHCP lease monitoring, queue management, ICMP monitoring.
*/
package main
import (
"errors"
"golang.o... |
// Copyright 2020 OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Copyright (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... |
// Copyright 2019 Yunion
//
// 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... |
package server
import (
"errors"
"fmt"
"log"
"net"
"os"
"path/filepath"
"strconv"
"sync"
"time"
"github.com/golang/protobuf/proto"
"github.com/hashicorp/raft"
"google.golang.org/grpc"
raftboltdb "github.com/hashicorp/raft-boltdb"
context "golang.org/x/net/context"
"github.com/namreg/godown/internal/a... |
package db
import (
"fmt"
"reflect"
"strconv"
"strings"
"time"
"github.com/quintans/faults"
"github.com/quintans/goSQL/dbx"
tk "github.com/quintans/toolkit"
"github.com/quintans/toolkit/log"
)
var lgr = log.LoggerFor("github.com/quintans/goSQL/db")
// instead of setting globaly the logger with the caller a... |
// Copyright (c) 2013-2017 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package blockchain
import (
"compress/bzip2"
"encoding/binary"
"fmt"
"io"
"math"
"os"
"path/filepath"
"runtime"
"strings"
"time"
"github.com/btcsuite/btcd/b... |
// Package telldus exposes parts of the original Telldus C API
// see READMEs and http://developer.telldus.com/doxygen for documentation
// @author <NAME>
package telldus
import (
"bufio"
"errors"
"fmt"
"log"
"net"
"regexp"
"strconv"
"strings"
"sync"
"time"
)
const (
TELLSTICK_TURNON i... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: github.com/jmalloc/ax/envelope.proto
package ax
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/... |
//-----------------------------------------------------------------------------
/*
Wallaby Cylinder Head
No draft version for 3d printing and lost-PLA investment casting.
*/
//-----------------------------------------------------------------------------
package main
import (
"math"
"github.com/jakoblorz/sdfx/re... |
package buy
import (
"fmt"
"go.uber.org/zap"
"strings"
"time"
"github.com/yitume/shop-api/router/mdw"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"github.com/milkbobo/gopay"
"github.com/milkbobo/gopay/client"
"github.com/milkbobo/gopay/common"
"github.com/milkbobo/gopay/constant"
"github.com/pkg/... |
package router
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"path"
"strings"
"sync"
"time"
"github.com/aquasecurity/postee/v2/actions"
"github.com/aquasecurity/postee/v2/data"
"github.com/aquasecurity/postee/v2/dbservice"
"github.com/aquasecurity/postee/v2/formatting"
"github.com/aquase... |
/*
MIT License
Copyright (c) 2020-2021 <NAME>
This file is part of NGSI Go
https://github.com/lets-fiware/ngsi-go
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 ... |
package common
import (
"crypto/tls"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"time"
ipfsconfig "github.com/ipfs/go-ipfs-config"
logging "github.com/ipfs/go-log/v2"
crypto "github.com/libp2p/go-libp2p-core/crypto"
peer "github.com/libp2p/go-libp2p-core/peer"
ma "github.... |
package main
/*
typedef unsigned char Uint8;
void recordCallback(void* userdata, Uint8* stream, int len);
*/
import "C"
import (
"os"
"io"
"errors"
"flag"
"fmt"
"unsafe"
"sync"
"sort"
"math"
"github.com/veandco/go-sdl2/sdl"
"github.com/veandco/go-sdl2/ttf"
"github.com/jvlmdr/go-fftw/fftw"
)
type Options ... |
package rpc
import (
"bytes"
"encoding/json"
"errors"
"github.com/NethermindEth/juno/internal/services"
"github.com/NethermindEth/juno/pkg/common"
"github.com/NethermindEth/juno/pkg/types"
)
type RequestedScope string
const (
ScopeTxnHash RequestedScope = "TXN_HASH"
ScopeFullTxns Reque... |
// WARNING: This file has automatically been generated
// Code generated by https://git.io/c-for-go. DO NOT EDIT.
package generated
/*
#cgo LDFLAGS: -L${SRCDIR}/..
#cgo pkg-config: ${SRCDIR}/../cesscrypto.pc
#include "../cesscrypto.h"
#include <stdlib.h>
#include "cgo_helpers.h"
*/
import "C"
// CessBLSSignature as ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// ragù v0.2.3
// source: pkg/test/testdata/plugins/ext/ext.proto
package ext
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: delete_instance_batch.proto
package instance
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
cmdb "github.com/easyopsapis/easyops-api-go/protorepo-models/easyo... |
/*
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
*/
package testcommon
import (
"context"
"fmt"
"math"
"testing"
"time"
"github.com/dnaeon/go-vcr/recorder"
"github.com/onsi/gomega"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
kerrors "k8s.io/apimachinery/pkg/api/errors"
metav... |
package interp
import (
"context"
"errors"
"fmt"
"go/token"
"reflect"
"sort"
"sync"
)
var (
// ErrNotLive indicates that the specified ID does not refer to a (live) Go
// routine.
ErrNotLive = errors.New("not live")
// ErrRunning indicates that the specified Go routine is running.
ErrRunning = errors.New... |
package cache
import (
"bytes"
"encoding/json"
"net"
"net/http"
"strings"
"time"
"cloudtask-center/cache/driver"
_ "cloudtask-center/cache/driver/etcd"
_ "cloudtask-center/cache/driver/mongo"
_ "cloudtask-center/cache/driver/ngcloud"
"cloudtask-center/cache/driver/types"
"cloudtask/common/models"
"cloud... |
package cmd
import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "dig",
Short: "DNS lookup utility",
Long: "https://linux.die.net/man/1/dig",
Run: func(cmd *cobra.Command, args []string) {},
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
... |
// SPDX-License-Identifier: Unlicense OR MIT
// package glfw doesn't build on OpenBSD and FreeBSD.
// +build !openbsd,!freebsd,!windows,!android,!ios,!js
package main
import (
"image"
"log"
"math"
"runtime"
"strings"
"time"
"unsafe"
"gioui.org/f32"
"gioui.org/font/gofont"
"gioui.org/gpu"
giogl "gioui.org... |
package shadowsocks
import (
"bytes"
"crypto/cipher"
"encoding/binary"
"fmt"
"io"
"sync"
"github.com/Shadowsocks-NET/outline-ss-server/slicepool"
)
const (
// Max payload size for Shadowsocks 2022.
shadowsocks2022MaxPayloadSize = 0xFFFF // 64k - 1
// legacyPayloadSizeMask is the maximum size of payload in... |
package main
/*
#include <stdlib.h>
*/
import (
"encoding/json"
"fmt"
"github.com/gorilla/websocket"
"github.com/saitta/saserver/cron"
"github.com/saitta/saserver/suncalc"
"github.com/saitta/saserver/telldus"
"log"
"math"
"net/http"
"os"
"reflect"
"runtime"
"strconv"
"strings"
"sync"
"time"
)
//mutex... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/ad_schedule_view_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources"
_ "... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: funcpb.proto
/*
Package funcpb is a generated protocol buffer package.
It is generated from these files:
funcpb.proto
It has these top-level messages:
*/
package funcpb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "ma... |
package planparserv2
import (
"sync"
"testing"
"github.com/milvus-io/milvus/internal/proto/planpb"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus/internal/proto/schemapb"
"github.com/milvus-io/milvus/internal/util/typeutil"
)
func newTestSchema() *schemapb.CollectionSchema {
fields := []*... |
package build
import (
"encoding/binary"
)
type token byte
// token ids
const (
tokenReturnStatus token = 121 // 0x79
tokenColMetadata token = 129 // 0x81
tokenOrder token = 169 // 0xA9
tokenError token = 170 // 0xAA
tokenInfo token = 171 // 0xAB
tokenReturnValue token = 0xAC
tokenLog... |
package httptransport
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"os"
"sync"
"time"
"github.com/filecoin-project/boost/storagemarket/logs"
"github.com/filecoin-project/boost/transport"
"github.com/filecoin-project/boost/transport/types"
"github.com/google/uuid"
"github.com/jpillo... |
// Copyright 2016 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 ups
import (
"bufio"
"encoding/base64"
"encoding/json"
_ "expvar"
"flag"
"fmt"
"image"
_ "image/gif"
_ "image/jpeg"
_ "image/png"
"io"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"path/filepath"
"simonwaldherr.de/go/golibs/as"
"simonwaldherr.de/go/golibs/cache"
"simonwaldherr.de/go/golibs/file"... |
package discord
import (
"time"
)
// guild.go contains the structures to represent a guild.
// MessageNotificationLevel represents a guild's message notification level.
type MessageNotificationLevel int
// Message notification levels.
const (
MessageNotificationsAllMessages MessageNotificationLevel = iota
Messag... |
package main
import (
"experiments/experiments/noise"
"experiments/experiments/vec3"
"github.com/veandco/go-sdl2/sdl"
"image/png"
"log"
"math"
"math/rand"
"os"
"sort"
"time"
)
const (
windowWidth = 1200
windowHeight = 800
windowDepth = 100
)
type audioState struct {
explosionBytes []byte
deviceId ... |
// Copyright 2016-2018 Shulhan <<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 tekstus
// URIPrefixes contain list of common URI prefix in content of web pages.
var URIPrefixes = []string{
"http://", "https://", "ftp://",... |
package ensurepkg
import (
"fmt"
"reflect"
"sort"
"strings"
"github.com/JosiahWitt/erk"
"github.com/JosiahWitt/erk/erg"
"github.com/golang/mock/gomock"
)
type (
erkTableInvalid struct{ erk.DefaultKind }
erkEntriesGroup struct{ erk.DefaultKind }
erkEntryInvalid struct{ erk.DefaultKind }
)
var (
errInvalid... |
// 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... |
package node
import (
"fmt"
"strconv"
"time"
chain "github.com/wuyazero/Elastos.ELA.SideChain/blockchain"
"github.com/wuyazero/Elastos.ELA.SideChain/bloom"
"github.com/wuyazero/Elastos.ELA.SideChain/core"
"github.com/wuyazero/Elastos.ELA.SideChain/errors"
"github.com/wuyazero/Elastos.ELA.SideChain/events"
"g... |
// A multiple function gateway include http/https/dns server with auto let's encrypt (by certmagic)
/*
1. tls server autocert
2. http autoredirect to tls
3. tcp/udp proxy
4. tls+websocket proxy
5. domain acl
6. domain base path alias
*/
package main
// Todo: reverse proxy, remote ip register/datacache
import (
"c... |
// Code generated by goyacc parser.go.y. DO NOT EDIT.
//line parser.go.y:2
package parse
import __yyfmt__ "fmt"
//line parser.go.y:2
import (
"log"
)
type Token struct {
tok int
lit string
pos Position
}
var currentDepth = 0
//line parser.go.y:18
type yySymType struct {
yys int
statements []Statemen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.