text stringlengths 5.51k 28.1k |
|---|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// An Access Control List. You can authenticate users with Access Contol Lists.
// ACLs enable you to control cluster access by grouping users. These Access
// control lists are de... |
// Copyright (c) 2013-2018 <NAME>. All rights reserved.
// Licensed under a simplified BSD license (see LICENSE file).
package input
import (
"github.com/cozely/cozely/internal"
)
////////////////////////////////////////////////////////////////////////////////
// A keyLabel designate a key by its label in the curr... |
package thirdparty
import (
"bytes"
"crypto/hmac"
"crypto/sha1"
"encoding/base64"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"sort"
"strings"
"time"
awsSDK "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
awsS3 "... |
// Package skysql provides primitives to interact with the openapi HTTP API.
//
// Code generated by unknown module path version unknown version DO NOT EDIT.
package skysql
const (
HTTPBearerScopes = "HTTPBearer.Scopes"
)
// Defines values for AllowlistStatuses.
const (
AllowlistStatusesEnforcing AllowlistStatuses ... |
package lifx
import (
"bytes"
"fmt"
"log"
"net"
"reflect"
"sync"
"time"
)
const (
// BroadcastPort port used for broadcasting messages to lifx globes
BroadcastPort = 56700
// PeerPort port used for peer to peer messages to lifx globes
PeerPort = 56750
bulbOff uint16 = 0
bulbOn uint16 = 1
)
var emptyA... |
package d3d9
import "unsafe"
const MAX_DEVICE_IDENTIFIER_STRING = 512
// ADAPTER_IDENTIFIER contains information identifying the adapter.
type ADAPTER_IDENTIFIER struct {
Driver [MAX_DEVICE_IDENTIFIER_STRING]byte
Description [MAX_DEVICE_IDENTIFIER_STRING]byte
DeviceName [32]byte
DriverVersio... |
// Copyright 2015 The Vanadium 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 ipc implements a simple IPC system based on VOM.
package ipc
import (
"fmt"
"io"
"net"
"os"
"reflect"
"sync"
"syscall"
"time"
"v.io/... |
// BSD 2-Clause License
//
// Copyright (c) 2020 <NAME> <<EMAIL>>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
... |
package template
import (
"fgame/fgame/core/template"
"fgame/fgame/core/template/validator"
coretypes "fgame/fgame/core/types"
"fgame/fgame/core/utils"
coreutils "fgame/fgame/core/utils"
"fgame/fgame/game/common/common"
pktypes "fgame/fgame/game/pk/types"
scenetypes "fgame/fgame/game/scene/types"
"fmt"
"math... |
/*
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 distributor
import (
"context"
"encoding/hex"
"fmt"
"math"
"strings"
"time"
"github.com/go-kit/log/level"
"github.com/gogo/status"
"github.com/grafana/dskit/limiter"
"github.com/grafana/dskit/ring"
ring_client "github.com/grafana/dskit/ring/client"
"github.com/grafana/dskit/services"
"github.com/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: proto/consensus_service.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: user_service.proto
package user_service
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sy... |
package factable
import (
"bytes"
"fmt"
"github.com/pkg/errors"
)
// Combiner combines ordered keys and values of a relation on behalf of a
// QuerySpec. It applies query filters, identifies opportunities to seek forward
// in the input key space due to current filters, and produces grouped output
// keys and agg... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1/translation.proto
package automl
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwis... |
/*
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... |
/*
patch image/jpeg: bad RST marker due to pre-reset marker byte alignment
https://github.com/golang/go/issues/28717
src/image/jpeg/scan.go
if err := d.readFull(d.tmp[:2]); err != nil {
return err
}
+++ patch +++
// detect the presence of a stuffed 0xff00 pair caused by byte alignment before RST marker
if d.tmp[0] =... |
// Copyright The Linux Foundation and each contributor to CommunityBridge.
// SPDX-License-Identifier: MIT
package cmd
import (
"net/http"
"net/url"
"os"
"runtime"
"strconv"
"strings"
"github.com/communitybridge/easycla/cla-backend-go/github_organizations"
v2GithubOrganizations "github.com/communitybridge/ea... |
// Copyright 2013 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 astutil contains common utilities for working with the Go AST.
package astutil // import "golang.org/x/tools/go/ast/astutil"
import (
"fmt"
"go/as... |
/*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
/*
* Copyright 2019-2020 by <NAME>
* https://www.fibratus.io
* 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
*... |
package pcap
// https://pcapng.github.io/pcapng/draft-ietf-opsawg-pcapng.html
import (
"encoding/binary"
"net"
"github.com/wader/fq/format"
"github.com/wader/fq/format/inet/flowsdecoder"
"github.com/wader/fq/format/registry"
"github.com/wader/fq/pkg/decode"
"github.com/wader/fq/pkg/scalar"
)
var pcapngEther8... |
// Copyright 2021 dairongpeng <<EMAIL>>. 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... |
// Package at provides a low level driver for AT modems.
package at
import (
"bufio"
"context"
"fmt"
"io"
"strings"
"sync"
"time"
"github.com/pkg/errors"
)
// AT represents a modem that can be managed using AT commands.
// Commands can be issued to the modem using the Command and SMSCommand methods.
// The A... |
package service
import (
"context"
"errors"
"fmt"
"strings"
"time"
"getsturdy.com/api/pkg/analytics"
"getsturdy.com/api/pkg/auth"
"getsturdy.com/api/pkg/change"
"getsturdy.com/api/pkg/change/message"
vcs_change "getsturdy.com/api/pkg/change/vcs"
"getsturdy.com/api/pkg/codebase"
"getsturdy.com/api/pkg/even... |
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... |
/*
* Copyright (c) 2013, 2014 Conformal Systems LLC <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS"... |
// Copyright 2019 The etcd 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 t... |
// Copyright 2018 The go-libvirt Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
// 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.
package ldap
import (
"fmt"
"strconv"
"gopkg.in/asn1-ber.v1"
)
const (
// ControlTypePaging - https://www.ietf.org/rfc/rfc2696.txt
ControlTypePaging = "... |
package operands
import (
"errors"
"fmt"
"os"
"reflect"
"strconv"
"strings"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/util/yaml"
conditionsv1 "github.com/openshift/custom-resource-status/conditions/v1"
corev1 "k8s.io/api/core/v1"
schedulingv1 "k8s.io/api/scheduling/v1"
metav1 "k8s.i... |
package health
import (
"encoding/json"
"errors"
"fmt"
"io"
"log"
"net/http"
"os"
"strconv"
"sync"
"time"
"github.com/atsu/goat/build"
"github.com/atsu/goat/stream"
"github.com/atsu/goat/util"
"github.com/confluentinc/confluent-kafka-go/kafka"
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsut... |
package renter
import (
"io"
"os"
"sync"
"github.com/HyperspaceApp/Hyperspace/modules"
"github.com/HyperspaceApp/Hyperspace/modules/renter/siafile"
"github.com/HyperspaceApp/errors"
)
// uploadChunkID is a unique identifier for each chunk in the renter.
type uploadChunkID struct {
fileUID string // Unique to... |
package workers
import (
"encoding/json"
"fmt"
"strconv"
"strings"
"sync"
"time"
log "github.com/sirupsen/logrus"
"github.com/appdynamics/cluster-agent/config"
m "github.com/appdynamics/cluster-agent/models"
"github.com/appdynamics/cluster-agent/utils"
"github.com/appdynamics/cluster-agent/web"
"k8s.io/a... |
/*
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. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.0
// source: info/info.proto
package info
import (
context "context"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status ... |
// Code generated by transpiler. DO NOT EDIT.
/**
* Go Video Downloader
*
* Copyright 2019 Tenta, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
// 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.
// The tabwriter package implements a write filter (tabwriter.Writer)
// that translates tabbed columns in input into properly aligned text,
// using the Elasti... |
// Copyright (c) 2017 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 main
import (
"bytes"
"crypto/subtle"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/httputil"
"net/url"
"os"
"path"
"regexp"
"runtime"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/cred... |
// Package sjson provides setting json values.
package sjson
import (
jsongo "encoding/json"
"strconv"
"strings"
"github.com/tidwall/gjson"
)
type errorType struct {
msg string
}
func (err *errorType) Error() string {
return err.msg
}
// Options represents additional options for the Set and Delete functions.... |
/* Copyright 2016 The Bazel Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: single_crawler.proto
package proto
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.gol... |
package claimtrie
import (
"bytes"
"fmt"
"path/filepath"
"runtime"
"sort"
"sync"
"github.com/pkg/errors"
"github.com/lbryio/lbcd/claimtrie/block"
"github.com/lbryio/lbcd/claimtrie/block/blockrepo"
"github.com/lbryio/lbcd/claimtrie/change"
"github.com/lbryio/lbcd/claimtrie/config"
"github.com/lbryio/lbcd/... |
package app
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"os"
"strconv"
"strings"
"sync"
"syscall"
"text/tabwriter"
"github.com/AlecAivazis/survey"
multierror "github.com/hashicorp/go-multierror"
"github.com/ktr0731/evans/adapter/cli"
"github.com/ktr0731/evans/adapter/cui"
"github.com/ktr0731/eva... |
package http
import (
"fmt"
"strings"
"github.com/pkg/errors"
"github.com/projectdiscovery/fileutil"
"github.com/projectdiscovery/nuclei/v2/pkg/operators"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/expressions"
"github.com/projectdiscover... |
// Copyright (c) 2020 tickstep.
//
// 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 sysregistriesv2
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"testing"
"github.com/containers/image/v5/docker/reference"
"github.com/containers/image/v5/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestParseLocation(t *testing.T) {
var err error
var l... |
package utils
import (
"context"
"crypto/rand"
"encoding/base64"
"fmt"
mathRand "math/rand"
"net"
"strconv"
"sync"
"time"
bs "github.com/ipfs/go-bitswap"
"github.com/ipfs/go-datastore"
dsq "github.com/ipfs/go-datastore/query"
blockstore "github.com/ipfs/go-ipfs-blockstore"
config "github.com/ipfs/go-ip... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
package main
import (
// "crypto/md5"
// "regexp"
// "encoding/base64"
// er "errors"
// "log"
// "strconv"
// "bufio"
// "bytes"
"strings"
"flag"
"io/ioutil"
"encoding/json"
"time"
"math/rand"
"io"
"html/template"
"os"
"net/url"
"fmt"
"net/http"
"github.com/labstack/echo"
"github.com/labstack... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: github.com/google/cloudprober/probes/ping/proto/config.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtim... |
// Copyright 2020-2021 InfluxData, Inc. All rights reserved.
// Use of this source code is governed by MIT
// license that can be found in the LICENSE file.
package write
import (
"bytes"
"fmt"
"math"
"math/rand"
"reflect"
"strings"
"testing"
"time"
lp "github.com/influxdata/line-protocol"
"github.com/stre... |
// Code generated by pggen. DO NOT EDIT.
package numeric_external
import (
"context"
"fmt"
"github.com/jackc/pgconn"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4"
"github.com/shopspring/decimal"
)
// Querier is a typesafe Go interface backed by SQL queries.
//
// Methods ending with Batch enqueue a query... |
package handlers
/**
* Panther is a scalable, powerful, cloud-native SIEM written in Golang/React.
* Copyright (C) 2020 Panther Labs Inc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Found... |
// 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 ... |
// Copyright 2013 wetalk authors
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
/*
Copyright 2021 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... |
package v1
import (
"fmt"
"runtime"
"strings"
)
// Important to jigo, as to most languages, is the idea of an expression.
// Here is the ebnf grammar for jigo expressions, which are actually largely
// based off of the ebnf grammar for Go. The way that these manifest
// themselves in a template is quite different... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: ves.io/schema/site/public_config_kubeconfig.proto
// Site KubeConfig custom API
//
// x-displayName: "Site"
// API for manage kube configs.
package site
import (
context "context"
fmt "fmt"
_ "github.com/gogo/googleapis/google/api"
_ "github.com/gogo/... |
// 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 gcpragma
import (
"fmt"
"path/filepath"
"runtime"
"strconv"
"strings"
"unicode"
"unicode/utf8"
"github.com/despiteallobjections/amigo/syntax"
... |
package rlwe
import (
"github.com/ldsec/lattigo/v2/ring"
"math"
)
// KeySwitcher is a struct for RLWE key-switching.
type KeySwitcher struct {
*Parameters
*keySwitcherBuffer
Baseconverter *ring.FastBasisExtender
Decomposer *ring.Decomposer
}
type keySwitcherBuffer struct {
// PoolQ[0]/PoolP[0] : on the fly... |
package heraldry
import (
"bytes"
"fmt"
"io"
"os"
"strings"
"github.com/ajstarks/svgo"
"github.com/divan/num2words"
)
// RenderToBlazon renders a device as its blazon and returns it.
func (device Device) RenderToBlazon() string {
blazon := ""
if device.Field.Division.Name == "plain" {
if device.Field.HasV... |
package parser
import (
"errors"
"fmt"
"regexp"
"strings"
"github.com/redneckbeard/thanos/types"
)
var (
setterPatt = regexp.MustCompile(`\w+=`)
interrogPatt = regexp.MustCompile(`\w+\?`)
interrogPrefix = regexp.MustCompile(`^(Can|Is|Does|Has)`)
)
type MethodSet struct {
Methods map[string]*Method
O... |
// Copyright (c) 2017 <NAME>
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
//
// Based on PHP code by Copyright (c) 2009, J.P.Westerhof <<EMAIL>>
// available at http://www.edesign.nl/2009/05/14/math-behind-a-world-sunlight-map/
// Package sunlightlib merges two im... |
/*
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
package polling
import (
"fmt"
"regexp"
"sort"
"strings"
"time"
"github.com/pegnet/pegnet/common"
log "github.com/sirupsen/logrus"
config "github.com/zpatrick/go-config"
)
var dLog = log.WithField("id", "DataSources")
// AllDataSources is just a hard coded list of all the available assets. This list is copi... |
package daemon
import (
"bytes"
"context"
"crypto/sha256"
"encoding/base64"
"fmt"
"time"
"github.com/fluxcd/flux/pkg/metrics"
"github.com/go-kit/kit/log"
"github.com/pkg/errors"
"github.com/fluxcd/flux/pkg/cluster"
"github.com/fluxcd/flux/pkg/event"
"github.com/fluxcd/flux/pkg/git"
"github.com/fluxcd/fl... |
package business
import (
"encoding/json"
"fmt"
"net/http"
"os"
"time"
"gopkg.in/yaml.v2"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/client-go/rest"
"github.com/kiali/kiali/config"
"github.com/kiali/kiali/kubernetes"
"github.com/kiali/kiali/log"
"github.com/kiali/kiali/util/httputil"
)
// MeshService ... |
/*
Copyright 2019 The Crossplane 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. DO NOT EDIT.
// source: google/ads/googleads/v0/enums/local_placeholder_field.proto
package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v0/enums"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to su... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/proposal_response.proto
package peer
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not other... |
package liquid
// Copyright (c) 2015-2019 Bitontop Technologies Inc.
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"math"
"net/http"
"strconv"
"strin... |
package conf // import "bosun.org/cmd/bosun/conf"
import (
"bytes"
"fmt"
"hash/fnv"
"net/mail"
"net/url"
"os/exec"
"regexp"
"strings"
"time"
"bosun.org/cloudwatch"
"bosun.org/cmd/bosun/conf/template"
"bosun.org/cmd/bosun/expr"
"bosun.org/cmd/bosun/expr/parse"
"bosun.org/graphite"
"bosun.org/models"
"... |
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.
package txmetrics
import (
"context"
"fmt"
"math"
"strings"
"sync"
"time"
"... |
package gofakes3
import (
"encoding/xml"
"fmt"
"sort"
"strings"
"time"
)
type Storage struct {
XMLName xml.Name `xml:"ListAllMyBucketsResult"`
Xmlns string `xml:"xmlns,attr"`
Owner *UserInfo `xml:"Owner,omitempty"`
Buckets Buckets `xml:"Buckets>Bucket"`
}
type UserInfo struct {
ID string... |
package passthepoop
import (
"errors"
"fmt"
"mondaynightpoker-server/pkg/deck"
"mondaynightpoker-server/pkg/playable"
"strconv"
"time"
"github.com/google/uuid"
"github.com/sirupsen/logrus"
)
// seed must be -1 to ensure crypto-secure randomness
var seed int64 = -1
// Game is an individual game of pass the p... |
package config
import (
"crypto/md5"
"encoding/base64"
"encoding/json"
"fmt"
"hash/fnv"
"io"
"io/ioutil"
"os"
"strings"
"sync"
"sync/atomic"
"time"
"unsafe"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/kms"
sjson "github.com/bitly/go-simpl... |
package main
import (
"errors"
"fmt"
"net/http"
"os"
"path/filepath"
"time"
"github.com/bitrise-io/go-steputils/stepconf"
"github.com/bitrise-io/go-utils/command"
"github.com/bitrise-io/go-utils/command/gems"
"github.com/bitrise-io/go-utils/command/rubycommand"
"github.com/bitrise-io/go-utils/fileutil"
"g... |
package main
import (
"errors"
"fmt"
"net"
"os"
"os/signal"
"path/filepath"
"strings"
"syscall"
"time"
"github.com/netauth/netauth/internal/crypto"
_ "github.com/netauth/netauth/internal/crypto/bcrypt"
"github.com/netauth/netauth/internal/db"
_ "github.com/netauth/netauth/internal/db/bitcask"
_ "github.... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this fi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.4
// source: similarproducts.proto
package similarproducts
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
catalog "github... |
/* Skimmer - Lightweight port scanner
* Based off: github.com/anvie/port-scanner
*/
//https://github.com/drael/GOnetstat/blob/master/gonetstat.go
//https://github.com/stvp/go-udp-testing/blob/master/udp.go
package main
import (
"fmt"
"net"
"sync"
"log"
"flag"
"os"
"time"
"github.com/gosuri/uiprogress"
"gi... |
package ogame
// All ogame objects
var (
AllianceDepot = newAllianceDepot() // Buildings
CrystalMine = newCrystalMine()
CrystalStorage = newCrystalStorage()
DeuteriumSynthesizer = newDeuteriumSynthesizer()
DeuteriumTank = newDeuteriumTank()
Fus... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/services/detail_placement_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/v2/resources"... |
// The MIT License (MIT)
// Copyright (c) 2016 <NAME>
// 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... |
// Copyright 2017-2021 DERO Project. All rights reserved.
// Copyright 2022 SYFER Project. All rights reserved.
// Use of this source code in any form is governed by RESEARCH license.
// license can be found in the LICENSE file.
// GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8
//
//
// THIS SOFTWARE IS PROVI... |
// The "opencontainer" package implements support for launching services packaged in an
// OpenContainer image. Containers can be used by specifying "type: opencontainer" in a
// launchable's configuration in a pod manifest.
//
// P2 support for OpenContainer images is EXPERIMENTAL, even beyond the fact that the
// Ope... |
package webgl
import (
"errors"
"syscall/js"
)
var (
float32Array = js.Global().Get("Float32Array")
uint8Array = js.Global().Get("Uint8Array")
)
type ErrorNumber int
type ShaderType int
type BufferType int
type BufferUsage int
type Capacity int
type DepthFunc int
type Type int
type BufferMask int
type DrawMode... |
package ledgerbackend
import (
"encoding/hex"
"io"
"sync"
"time"
"github.com/pkg/errors"
"github.com/aiblocks/go/historyarchive"
"github.com/aiblocks/go/support/log"
"github.com/aiblocks/go/xdr"
)
// Ensure CaptiveAiBlocksCore implements LedgerBackend
var _ LedgerBackend = (*CaptiveAiBlocksCore)(nil)
const... |
package main
import (
"bytes"
"context"
"crypto/tls"
"crypto/x509"
"encoding/base64"
"encoding/hex"
"fmt"
"io"
"io/ioutil"
"mime/multipart"
"net/http"
"net/url"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"time"
"github.com/EmilLaursen/go-s3-fs/libraries/box"
"github.com/rs/zerolog"
"github.c... |
// Copyright 2019 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/endpoint.proto
package envoy_api_v2
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
endpoint "github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint"
_type "github.com/envoyproxy/go-control-plane/envoy/type"
_ "github.... |
// Copyright 2013 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 counter
import (
"bytes"
"fmt"
"go/ast"
"go/parser"
"go/token"
"io/ioutil"
"log"
"os"
"path"
"strconv"
)
var (
mode = "atomic"
)
var profi... |
// Copyright (c) 2017 <NAME> <<EMAIL>>
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package ml_test
import (
"github.com/miscoler/xlsx/format/styles"
"github.com/miscoler/xlsx/internal/ml"
"github.com/miscoler/xlsx/internal/ml/primitives"
"github.com/plan... |
// (c) 2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package avm
import (
"context"
"encoding/hex"
"sort"
"testing"
"time"
"github.com/alicebob/miniredis"
"github.com/ava-labs/gecko/ids"
"github.com/ava-labs/gecko/utils/hashing"
"github.com/gocraft/dbr"
"github.com... |
package dpkg
import (
"bufio"
"os"
"sort"
"testing"
"github.com/d4l3k/messagediff"
"github.com/knqyf263/fanal/analyzer"
)
func TestParseApkInfo(t *testing.T) {
var tests = map[string]struct {
path string
pkgs []analyzer.Package
}{
"Valid": {
path: "./testdata/dpkg",
pkgs: []analyzer.Package{
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/campaign_draft.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
wrappers "github.com/catper/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads/goog... |
package numeric
import "github.com/apaxa-io/mathhelper"
const (
// Limit on the precision (and hence scale) specifiable in a NUMERIC typmod.
// Note that the implementation limit on the length of a numeric value is much larger --- beware of what you use this for!
// pgMaxPrecision is a copy of PostgreSQL NUMERIC_M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.