text stringlengths 5.51k 28.1k |
|---|
package main
import (
"flag"
"time"
"net/url"
"os"
"bufio"
"fmt"
"regexp"
"encoding/csv"
"net"
"strconv"
"sync"
"strings"
"golang.org/x/net/publicsuffix"
"github.com/franela/goreq"
"github.com/moovweb/gokogiri"
"github.com/moovweb/gokogiri/xpath"
"runtime"
"gopkg.in/mgo.v2"
"path"
"github.com/stream... |
/*
* Copyright 2018- The Pixie 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... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package s3
import (
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Provides a S3 bucket object resource.
type BucketObjec... |
//go:generate goderive .
package checks
import (
"github.com/StackVista/stackstate-process-agent/cmd/agent/features"
"sync"
"time"
"github.com/DataDog/gopsutil/cpu"
"github.com/DataDog/gopsutil/process"
"github.com/StackVista/stackstate-agent/pkg/util/containers"
"github.com/StackVista/stackstate-process-agen... |
package broker
import (
"encoding/json"
"fmt"
"net/http"
"os"
"regexp"
"strings"
"unicode"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds"
"github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/aws/aws-sdk-go/service/clo... |
// 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.
// Windows printing.
package printer
import (
"strings"
"syscall"
"time"
"unsafe"
"golang.org/x/sys/windows"
)
//go:generate go run mksyscall_windows.g... |
// +build linux
// Package nlgo implements netlink library routines.
//
// This was golang port of libnl. For basic concept, please have a look at
// original libnl documentation http://www.infradead.org/~tgr/libnl/ .
//
package nlgo
import (
"fmt"
"github.com/pkg/errors"
"strings"
"sync"
"syscall"
"time"
"uns... |
/*
Copyright ArxanChain Ltd. 2020 All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package structs
import (
"time"
"github.com/csiabb/donation-service/common/rest"
"github.com/shopspring/decimal"
)
// ReceiveFundsRequest defines the request of receiving funds
type ReceiveFundsRequest struct {
UID ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/core/protocol.proto
package core
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf3 "github.com/golang/protobuf/ptypes/duration"
import google_protobuf1 "github.com/golang/protobuf/ptypes/... |
/*******************************************************************************
inexpugnable - an esmtp server
Copyright (c) 2016 <EMAIL>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without ... |
// Code generated by protoc-gen-go.
// source: card.proto
// DO NOT EDIT!
/*
Package card is a generated protocol buffer package.
It is generated from these files:
card.proto
It has these top-level messages:
Empty
Card
DeleteRequest
CardList
*/
package card
import proto "github.com/golang/protobuf/proto"
impor... |
package system
const (
SyscallArmUnknownNum = -1
SyscallArmUnknownName = "unknown_syscall"
SyscallArmMinNum32 = 0
SyscallArmMaxNum32 = 377
SyscallArmLastName32 = "process_vm_writev"
)
var syscallNumTableArmFamily32 = map[uint32]string{
0: "restart_syscall",
1: "exit",
2: "fork",
3: "read",
4... |
package main
import (
"biu"
"bufio"
"flag"
"log"
"net"
"os"
"strings"
"time"
"sync"
)
var epoch = time.Now()
var index_channel = make(chan int64, 20)
type DNSHeader struct { // 描述 DNS 报文结构
id []byte
qr int64
operationCode int64
aa int64
tc int64
rd ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/errors/campaign_draft_error.proto
package errors
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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/enums/distance_bucket.proto
package enums
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 no... |
// Copyright 2020 The Moov Authors
// Use of this source code is governed by an Apache License
// license that can be found in the LICENSE file.
package fed
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"sort"
"strings"
"unicode/utf8"
"github.com/moov-io/base"
"github.com/moov-io/fed/pkg... |
package bridge
import (
"bufio"
"bytes"
"crypto/tls"
"crypto/x509"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"os/signal"
"sort"
"strconv"
"strings"
"sync"
"syscall"
"time"
"github.com/nats-io/nats.go"
"github.com/nats-io/nuid"
"github.com/tada/mqtt-nats/jsonstr... |
// Copyright 2017 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 project
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
"fuchsia.googlesource.com/jiri"
"fuchsia.googlesource.com/jiri/gitutil"
... |
// Copyright (c) 2020, Alliance for Sustainable Energy, LLC.
// All rights reserved.
package main
import (
"bufio"
"io"
"io/ioutil"
"strings"
"github.com/antlr/antlr4/runtime/Go/antlr"
"github.com/urbanopt/modelica-fmt/thirdparty/parser"
)
const (
// indent
spaceIndent = " "
)
// insertIndentBefore return... |
package service
import (
"context"
"errors"
"fmt"
"math"
"math/big"
"strconv"
"strings"
"sync"
"github.com/BurntSushi/locker"
"github.com/bonedaddy/go-indexed/bclient"
"github.com/bonedaddy/go-indexed/bindings/erc20"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"... |
package main
import (
"bytes"
"net"
"os"
"strconv"
"testing"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcapgo"
)
func TestMain(m *testing.M) {
// Init code
InitLog(os.Stderr, os.Stdout, os.Stdout)
// Run other tests
runTests := m.Run(... |
package main
import (
"flag"
"fmt"
"github.com/flipkart-incubator/dkv/internal/discovery"
"gopkg.in/ini.v1"
"log"
"net"
"net/http"
"net/url"
"os"
"os/signal"
"path"
"strings"
"syscall"
"time"
"github.com/flipkart-incubator/dkv/internal/master"
"github.com/flipkart-incubator/dkv/internal/slave"
"githu... |
// Core CDK Construct for patterns library
package awssolutionsconstructscore
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsapigateway"
"github.com/aws/aws-cdk-go/awscdk/v2/awscognito"
"github.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb"
"github.com/aws/aws-cdk-go/awscdk/v2/awsec2"
"github.com/aws/aws-cdk-go/awsc... |
package core
import (
"bytes"
"debug/elf"
"encoding/binary"
"fmt"
"io"
"os"
"golang.org/x/arch/x86/x86asm"
"github.com/go-delve/delve/pkg/proc"
"github.com/go-delve/delve/pkg/proc/linutil"
)
// Copied from golang.org/x/sys/unix.PtraceRegs since it's not available on
// all systems.
type LinuxCoreRegisters ... |
package cache
// This model is just for cache info
// We can ref k8s
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"sync"
rmderror "github.com/intel/rmd/internal/error"
proxyclient "github.com/intel/rmd/internal/proxy/client"
"github.com/intel/rmd/modules/policy"
... |
package dgs
import (
"fmt"
dgsv1alpha1 "github.com/dgkanatsios/azuregameserversscalingkubernetes/pkg/apis/azuregaming/v1alpha1"
dgsclientset "github.com/dgkanatsios/azuregameserversscalingkubernetes/pkg/client/clientset/versioned"
dgsscheme "github.com/dgkanatsios/azuregameserversscalingkubernetes/pkg/client/clie... |
/*
Copyright 2021 Erigon 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 agreed t... |
// Copyright (c) 2015, <NAME> (<EMAIL>).
// All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
package modbus
import (
"bufio"
"io"
"time"
)
// ModBus over serial default timing parameters (very conservative)
const (
// For masters
DflSer... |
//
// Copyright 2015 <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 ... |
package builtin
import (
"bytes"
"testing"
"github.com/brettbuddin/shaden/errors"
"github.com/brettbuddin/shaden/lisp"
"github.com/stretchr/testify/require"
)
func TestParser(t *testing.T) {
errors.Separator = ": "
var tests = []struct {
input []byte
result interface{}
error string
}{
// Comments
... |
package capnp
import (
"errors"
"strconv"
"golang.org/x/net/context"
)
// An Interface is a reference to a client in a message's capability table.
type Interface struct {
seg *Segment
cap CapabilityID
}
// NewInterface creates a new interface pointer. No allocation is
// performed; s is only used for Segment(... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/accesslog/v2/als.proto
package envoy_config_accesslog_v2
import (
fmt "fmt"
core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
dura... |
// Copyright (c) 2019, The GoKi 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 giv
import (
"math"
"reflect"
"sort"
"github.com/chewxy/math32"
"github.com/goki/gi/gi"
"github.com/goki/gi/gist"
"github.com/goki/gi/os... |
package swag
import (
"fmt"
"os"
"reflect"
"strings"
"github.com/alexisvisco/gadgeto/tonic"
"github.com/alexisvisco/gadgeto/tonic/utils/swag/doc"
"github.com/alexisvisco/gadgeto/tonic/utils/swag/swagger"
)
// GENERATOR
// SchemaGenerator is the object users have to manipulate, it internally collects data abo... |
package flowgraph
import (
"github.com/vectaport/fgbase"
"fmt"
)
// GraphHub interface for flowgraph hub made out of a graph of hubs.
// Relevant code args for NewGraphHub are Graph, While, and During.
type GraphHub interface {
Hub
Flowgraph
// Loop builds a conditional iterator for a while or during loop
Loo... |
package extfield
import (
"math/bits"
"math/rand"
"regexp"
"testing"
"time"
"github.com/ReneBoedker/algobra/errors"
"github.com/ReneBoedker/algobra/finitefield/ff"
)
var prg = rand.New(rand.NewSource(time.Now().UTC().UnixNano()))
func defineField(card uint) *Field {
f, err := Define(card)
if err != nil {
... |
package cloudstore
// How to test individual cloudstore.Filesystem implementations:
// * Local: go test -v github.com/LiveRamp/gazette/pkg/cloudstore -check.vv -cloudFS file:///tmp/path
// * GCS: go test -v github.com/LiveRamp/gazette/pkg/cloudstore -check.vv -cloudFS "gs://pippio-uploads/test?compress" -gcpServic... |
// Copyright 2014 The go-gl Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Renders a textured spinning cube using GLFW 3 and OpenGL 4.1 core forward-compatible profile.
package main
import (
"fmt"
"go/build"
"image"
"image/d... |
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package ui
import (
"context"
"fmt"
"strings"
"time"
"chromiumos/tast/common/perf"
"chromiumos/tast/errors"
"chromiumos/tast/local/bundles/cro... |
// Copyright © 2016 <NAME>.
// All rights reserved, except as granted under license.
// Licensed per file LICENSE.txt
package transform
import (
"fmt"
"io"
"sort"
"strings"
"unicode"
"github.com/philpennock/character/internal/table"
)
// This file would be less repetitive, albeit more complex, if it used Refl... |
package launcher
import (
"context"
"database/sql"
"fmt"
"git.ddex.io/infrastructure/ethereum-launcher/internal/api"
"git.ddex.io/infrastructure/ethereum-launcher/internal/config"
"git.ddex.io/infrastructure/ethereum-launcher/internal/gas"
"git.ddex.io/infrastructure/ethereum-launcher/internal/messages"
models... |
package main
import (
"bufio"
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/url"
"os"
"strings"
"sync"
"github.com/2tvenom/cbor"
"github.com/mkideal/cli"
clix "github.com/mkideal/cli/ext"
"github.com/rsocket/rsocket-go"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
const (
... |
/*
Copyright 2016 Medcl (m AT medcl.net)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
package sfu
import (
"io"
"sync"
"time"
"github.com/juju/errors"
"github.com/peer-calls/peer-calls/server/identifiers"
"github.com/peer-calls/peer-calls/server/logger"
"github.com/peer-calls/peer-calls/server/multierr"
"github.com/peer-calls/peer-calls/server/pubsub"
"github.com/peer-calls/peer-calls/server/... |
package controller_test
import (
"bytes"
"context"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"os"
"testing"
"time"
"github.com/filecoin-project/dealbot/controller"
"github.com/filecoin-project/dealbot/controller/client"
"github.com/filecoin-project/dealbot/controller/state"
"githu... |
package es
import (
"bufio"
"bytes"
"context"
"database/sql"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"path/filepath"
"regexp"
"runtime"
"strings"
log "github.com/Sirupsen/logrus"
"github.com/pkg/errors"
"github.com/spf13/viper"
"gopkg.in/olivere/elastic.v6"
"github.com/Bn... |
package main
import (
"github.com/pebbe/util"
"github.com/rug-compling/alud/v2"
"bytes"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"os/signal"
"path/filepath"
"regexp"
"strings"
"syscall"
"time"
)
type Response struct {
Code int
Status string
Messa... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.6.1
// source: response.proto
package plugins
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
... |
// Copyright (c) 2014-2016 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package chaincfg
import (
"time"
"github.com/Actinium-project/acmd/chaincfg/chainhash"
"github.com/Actinium-project/acmd/wire"
)
// genesisCoinbaseTx is the coinba... |
// This code is transcompiled by LuneScript.
package lnsc
import . "github.com/ifritJP/LuneScript/src/lune/base/runtime_go"
var init_OutputDepend bool
var OutputDepend__mod__ string
// for 145
func OutputDepend_convExp0_612(arg1 []LnsAny) LnsAny {
return Lns_getFromMulti( arg1, 0 )
}
// for 143
func OutputDepend_co... |
package wxcli
import (
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"os"
"path"
"reflect"
"strconv"
"strings"
)
//Parse with os.Args
func (n *node) Parse() ParsedWXCli {
return n.ParseArgs(os.Args)
}
//ParseArgs with the provided arguments
func (n *node) ParseArgs(args []string) ParsedWXCli {
//shel... |
// Copyright 2017 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 dashapi defines data structures used in dashboard communication
// and provides client interface.
package dashapi
import (
"bytes"
"compress/... |
package retryrpc
import (
"container/list"
"encoding/binary"
"encoding/json"
"fmt"
"net"
"os"
"reflect"
"sync"
"time"
"github.com/swiftstack/ProxyFS/bucketstats"
"github.com/swiftstack/ProxyFS/logger"
"golang.org/x/sys/unix"
)
// Variable to control debug output
var printDebugLogs bool = false
var debugP... |
package coin
import (
"bytes"
"errors"
"fmt"
"log"
"math"
"sort"
"github.com/samoslab/haicoin/src/cipher"
"github.com/samoslab/haicoin/src/cipher/encoder"
)
var (
// DebugLevel1 checks for extremely unlikely conditions (10e-40)
DebugLevel1 = true
// DebugLevel2 enable checks for impossible conditions
Deb... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package mailservice
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
"testing"
"time"
"net/mail"
"net/smtp"
"github.com/adacta-ru/mattermost-server/v6/config"
"github.c... |
package lib
import (
"fmt"
"os"
"strings"
oss "github.com/aliyun/aliyun-oss-go-sdk/oss"
)
var aclMap = map[oss.ACLType][]string{
oss.ACLPublicReadWrite: []string{},
oss.ACLPublicRead: []string{},
oss.ACLPrivate: []string{},
oss.ACLDefault: []string{},
}
var bucketACLList = []oss.ACLType... |
/*
Copyright 2019 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 2020 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... |
// Copyright 2018 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
package lstoremem
import (
"context"
"sort"
"sync"
"sync/atomic"
"time"
"github.com/dgtony/collections/bitset"
logging "github.com/ipfs/go-log"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-peerstore/addr"
ma "github.com/multiformats/go-multiaddr"
core "github.com/textileio/go-thread... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.19.4
// source: auth-plugin.proto
// Copyright (c) 2018 Bhojpur Consulting Private Limited, India. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of thi... |
// Copyright (c) 2017 Cisco and/or its affiliates.
//
// 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 applicabl... |
package k8sadmisssion
import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/http/httputil"
"github.com/hashicorp/go-multierror"
"github.com/ghodss/yaml"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
gloov1 "github.com/solo-io/gloo/projects/gloo/pkg/api/v1"
"git... |
// Copyright 2015 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 services
import (
"bufio"
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"sync/atomic"
"text/template"
"time"
"github.com/solo-io/gloo/projects/gloo/pkg/defaults"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/config"
. "gith... |
/*
Copyright 2019 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, sof... |
/*
Copyright 2018 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, ... |
package main
import (
"bufio"
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"flag"
"fmt"
"io"
"reflect"
"runtime"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"unsafe"
"github.com/maurice2k/tcpserver"
)
type request struct {
proto, method string
path, query... |
package main
import (
"bufio"
"bytes"
"crypto/tls"
"crypto/x509"
"encoding/json"
"errors"
"flag"
"fmt"
"html/template"
"io"
"io/ioutil"
"log"
"net"
"net/http"
"runtime/debug"
"strings"
"sync"
"time"
"github.com/eternal-flame-AD/goproxy"
)
var (
BlackHoleDomains = []string{
"www.google.com",
"... |
// Copyright 2020 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... |
// 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 runtime
import (
"runtime/internal/sys"
"unsafe"
)
type mOS struct{}
//go:noescape
func thr_new(param *thrparam, size int32) int32
//go:noescape
f... |
package server
import (
"context"
"fmt"
"time"
"github.com/CyCoreSystems/ari-proxy/v5/proxy"
"github.com/CyCoreSystems/ari-proxy/v5/server/dialog"
"github.com/CyCoreSystems/ari/v5"
"github.com/CyCoreSystems/ari/v5/client/native"
"github.com/inconshreveable/log15"
"github.com/nats-io/nats.go"
"github.com/pk... |
// Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package git
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"io/ioutil"
"strconv"
"strings"
)
// DiffLineType is the line type in diff.
type DiffLineTy... |
package ogcservice
import (
"encoding/json"
"fmt"
"log"
"kronos/src/geom"
"github.com/go-pg/pg/v10" // version error, wtf!!!!!!
)
const (
hostname = "172.16.31.10:5432"
user = "han"
password = "<PASSWORD>"
dbname = "features"
)
var db *pg.DB
type LayerInfo struct {
//tableName struct{} `pg:"layers... |
package block
import (
"bufio"
"encoding/hex"
"io"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/jaypipes/ghw/pkg/block"
"github.com/jaypipes/ghw/pkg/context"
"github.com/jaypipes/ghw/pkg/linuxpath"
"github.com/jaypipes/ghw/pkg/option"
"github.com/jaypipes/ghw/pkg/util"
iscsiutil "git... |
package services
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"os/signal"
"strconv"
"strings"
"syscall"
"text/template"
"time"
clowder "github.com/redhatinsights/app-common-go/pkg/api/v1"
"github.com/redhatinsights/edge-api/config"
"github.com/redhatinsights/edge-api/pkg/clients/playbo... |
package main
import (
"errors"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"
"github.com/opendevstack/pipeline/internal/command"
"github.com/opendevstack/pipeline/internal/repository"
"github.com/opendevstack/pipeline/pkg/bitbucket"
"github.com/opendevstack/pipeline/pkg/config"
"github.co... |
//go:build js || wasm || test_web_driver
// +build js wasm test_web_driver
package glfw
import (
"context"
_ "image/png" // for the icon
"runtime"
"sync"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/driver/desktop"
"fyne.io/fyne/v2/internal"
"fyne.io/fyne/v2/internal/driver/common"
"fyne.io/fyne/v2/internal/painter/g... |
/*
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, ... |
package rollbar
import (
"context"
"net/http"
"os"
"regexp"
)
const (
// NAME is the name of this notifier sent with the payload to Rollbar.
NAME = "rollbar/rollbar-go"
// VERSION is the version of this notifier sent with the payload to Rollbar.
VERSION = "1.0.1"
// CRIT is the critial severity level.
CRIT... |
package sqlitemeta
import (
"database/sql"
"fmt"
"strings"
)
// A Schema represents a database attached to the current
// database connection.
type Schema struct {
name string
}
// DB returns a Schema with the given name. It does not verify
// that a database with this name actually exists.
func DB(name string) ... |
// Copyright 2022 The CubeFS 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... |
package evidence
import (
"bytes"
"errors"
"fmt"
"reflect"
"sync"
"sync/atomic"
"time"
"github.com/gogo/protobuf/proto"
gogotypes "github.com/gogo/protobuf/types"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types"
clist "github.com/tendermint/tendermint/libs/clist"
"git... |
// Copyright 2021 The LUCI 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... |
// 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 unde... |
/* Package make provides some simple functions to handle build and go
dependencies.
We used to do this with gnumake rules, but as we added windows
compatibility, we found make too limiting. Moving this into go allows
us to write cleaner cross-platform code.
*/
package make
import (
"bytes"
"context"
"encoding/jso... |
package ipset
import (
"net"
"syscall"
"unsafe"
)
const (
NFNL_SUBSYS_IPSET = 6
NFNETLINK_V0 = 0
)
// /* Netlink flags of the commands */
// static const uint16_t cmdflags[] = {
// [IPSET_CMD_CREATE-1] = NLM_F_REQUEST|NLM_F_ACK|
// NLM_F_CREATE|NLM_F_EXCL,
// [IPSET_CMD_DESTROY-1] = NLM_F_REQUEST|NLM_F_... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/errors/customer_client_link_error.proto
package errors
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 _ =... |
package fauxgl
import (
"image"
"image/color"
"math"
"runtime"
"sync"
)
type Face int
const (
_ Face = iota
FaceCW
FaceCCW
)
type Cull int
const (
_ Cull = iota
CullNone
CullFront
CullBack
)
type RasterizeInfo struct {
TotalPixels uint64
UpdatedPixels uint64
}
func (info RasterizeInfo) Add(other ... |
package main
import (
"embed"
"flag"
"fmt"
"log"
"os"
"os/signal"
"path/filepath"
"runtime"
"strings"
"github.com/cloudfoundry/jibber_jabber"
"github.com/itchio/damage"
"github.com/itchio/damage/hdiutil"
"github.com/itchio/headway/state"
"github.com/ncruces/zenity"
tbget "i2pgit.org/idk/i2p.plugins.tor... |
/*
* Copyright NetApp Inc, 2021 All rights reserved
*/
package zapi
import (
"fmt"
"goharvest2/cmd/collectors/zapi/plugins/quota"
"goharvest2/cmd/collectors/zapi/plugins/shelf"
"goharvest2/cmd/collectors/zapi/plugins/snapmirror"
"goharvest2/cmd/collectors/zapiperf/plugins/fcp"
"goharvest2/cmd/collectors/zapip... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.17.3
// source: freeze.proto
package services
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/p... |
package migrate
import (
"fmt"
"strconv"
"strings"
"time"
shieldtypes "github.com/certikfoundation/shentu/v2/x/shield/types"
certtypes "github.com/certikfoundation/shentu/v2/x/cert/types"
proto "github.com/gogo/protobuf/proto"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/co... |
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
package orm
import (
"database/sql"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"sort"
"time"
"gorm.io/gorm"
"github.com/tealeg/xlsx/v3"
"github.com/fullstack-lang/gongmarkdown/go/models"
)
// dummy variab... |
package router
import (
"crypto/rand"
"crypto/sha256"
"encoding/binary"
"encoding/gob"
"fmt"
"io"
"sync"
"github.com/andybalholm/go-bit"
"golang.org/x/crypto/nacl/box"
"golang.org/x/crypto/nacl/secretbox"
)
func GenerateKeyPair() (publicKey, privateKey *[32]byte, err error) {
return box.GenerateKey(rand.R... |
/*
Copyright 2020 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... |
package webircgateway
import (
"bufio"
"crypto/tls"
"errors"
"fmt"
"io"
"net"
"runtime/debug"
"strconv"
"strings"
"sync/atomic"
"syscall"
"time"
"golang.org/x/time/rate"
"sync"
"github.com/kiwiirc/webircgateway/pkg/dnsbl"
"github.com/kiwiirc/webircgateway/pkg/irc"
"github.com/kiwiirc/webircgateway/... |
package orm
import (
"database/sql"
"fmt"
"reflect"
"time"
// Drivers
_ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqlite3"
)
var globalConnections = map[string]*connection{}
// Schematic prints all information ORM inferred from your entities in startup, remember to pass
/... |
// Copyright 2021 <NAME>. All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
// Package o365 implements an imap client, using Office 365 Mail REST API.
package o365
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"path/filepath"
"strings"
"time"
"golan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.