text stringlengths 5.51k 28.1k |
|---|
package broker
import (
"context"
"fmt"
"net/http"
"sync"
"time"
osb "github.com/kubernetes-sigs/go-open-service-broker-client/v2"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
securityv1beta1 "istio.io/client-go/pkg/apis/security/v1beta1"
securityclientv1beta1 "istio.io/client-go/pkg/clientset/vers... |
/*
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... |
// 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 tor
import (
"context"
"fmt"
"io"
"io/ioutil"
"net/textproto"
"os"
"path/filepath"
"strconv"
"time"
"github.com/cretz/bine/control"
"github.com/cretz/bine/process"
)
// Tor is the wrapper around the Tor process and control port connection. It
// should be created with Start and developers should ... |
package cmdutils
import (
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/utils"
"github.com/xanzy/go-gitlab"
"github.com/AlecAivazis/... |
package operator
import (
"fmt"
"sort"
"github.com/blang/semver/v4"
"github.com/imdario/mergo"
"github.com/operator-framework/operator-registry/alpha/declcfg"
"github.com/operator-framework/operator-registry/alpha/model"
"github.com/operator-framework/operator-registry/alpha/property"
"k8s.io/apimachinery/pkg... |
// Copyright 2017 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package xmss
import (
"bytes"
"crypto/sha256"
"crypto/sha512"
"math"
"golang.org/x/crypto/sha3"
)
// XMSS address types
const (
otsAddr = iota
ltreeAddr
hash... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/enums/content_label_type.proto
package enums
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Error... |
package diff
import (
"fmt"
"strings"
"github.com/go-openapi/spec"
)
// StringType For identifying string types
const StringType = "string"
// URLMethodResponse encapsulates these three elements to act as a map key
type URLMethodResponse struct {
Path string `json:"path"`
Method string `json:"method"`
R... |
// Package client provides the high level API for using shed.
package client
import (
"context"
"fmt"
"io"
"os"
"path/filepath"
"runtime"
"sort"
"github.com/cszatmary/shed/cache"
"github.com/cszatmary/shed/errors"
"github.com/cszatmary/shed/internal/util"
"github.com/cszatmary/shed/lockfile"
"github.com/c... |
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
// Copyright 2018 CoreOS, 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 queue
import (
"context"
"fmt"
"sync"
"time"
"github.com/evergreen-ci/utility"
"github.com/mongodb/amboy"
"github.com/mongodb/grip"
"github.com/mongodb/grip/level"
"github.com/mongodb/grip/message"
"github.com/mongodb/grip/recovery"
"github.com/pkg/errors"
)
// RetryableQueueOptions represent comm... |
// Copyright 2020 ConsenSys Software 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 a... |
/*
Go Language Raspberry Pi Interface
(c) Copyright <NAME> 2016-2018
All Rights Reserved
Documentation http://djthorpe.github.io/gopi/
For Licensing and Usage information, please see LICENSE.md
*/
package sensors
import (
"fmt"
"time"
// Frameworks
"github.com/djthorpe/gopi"
)
////////////////////////////... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2019-2022 Intel Corporation
package main
import (
"fmt"
"math"
"strconv"
"strings"
cz "github.com/CloudNativeDataPlane/cndp/lang/go/tools/pkgs/colorize"
tab "github.com/CloudNativeDataPlane/cndp/lang/go/tools/pkgs/taborder"
tlog "github.com/CloudNative... |
// This is free and unencumbered software released into the public domain.
// Package rng provides several more efficient PRNGs sources for use
// with math/rand.Rand. Each PRNG implements the math/rand.Source64
// interface.
package rng
import (
"math/bits"
"math/rand"
)
// An Lcg128 is a truncated 12... |
package repositorystress_test
import (
"context"
cryptorand "crypto/rand"
"fmt"
"math/rand"
"os"
"path/filepath"
"sync/atomic"
"testing"
"time"
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
"golang.org/x/sync/errgroup"
"github.com/kopia/kopia/internal/clock"
"github.com/kopia/kopia/inte... |
// Copyright 2020 The 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... |
// DBDeployer - The MySQL Sandbox
// Copyright © 2006-2018 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... |
// Copyright (c) 2014 Dataence, LLC. 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 app... |
// What it does:
//
// This example detects motion using a delta threshold from the first frame,
// and then finds contours to determine where the object is located.
//
// Very loosely based on <NAME>brock code located at:
// http://www.pyimagesearch.com/2015/06/01/home-surveillance-and-motion-detection-with-the-raspbe... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/keyword_plan.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/googleapis/ads/googl... |
// Copyright (c) 2018 NEC Laboratories Europe GmbH.
//
// Authors: <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
//... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/resources/google_ads_field.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads/go... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: wso2/discovery/api/endpoint_security.proto
package api
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.gola... |
package main
// Command line tool to enable testing for Bazel requests in Scoot
// We use this for client-side operations Scoot does not implement,
// and are difficult to reproduce using generic tools like grpc_cli.
// Not part of production deployment
//
// Supports subcommands (--help for usage):
// * remoteexecuti... |
package cian
import "time"
type OffersResponse struct {
Status string `json:"status"`
Data Data `json:"data"`
}
type DegradationInfo struct {
OfferChatsV2 bool `json:"offerChatsV2"`
Users bool `json:"users"`
OfferChats bool `json:"offerChats"`
Collections bool `json:"collec... |
// Copyright (c) 2020 The Jaeger 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: xfeed_proto/event_points.proto
package xfeed_proto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = m... |
// 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, m... |
// Code generated by entc, DO NOT EDIT.
package ent
import (
"encoding/json"
"fmt"
"strings"
"time"
"entgo.io/ent/dialect/sql"
"github.com/dopedao/RYO/api/ent/schema"
"github.com/dopedao/RYO/api/ent/turn"
)
// Turn is the model entity for the Turn schema.
type Turn struct {
config `json:"-"`
// ID of the e... |
package proxy
import (
"bytes"
"compress/gzip"
"errors"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"encoding/json"
"github.com/influxdata/influxdb/models"
)
type HTTP struct {
addr string
name string
sc... |
package main
import (
"github.com/silvasur/gomcmap/mcmap"
"github.com/mattn/go-gtk/gdk"
)
var blockColors = map[mcmap.BlockID]*gdk.Color{
mcmap.BlkStone: gdk.NewColor("#666666"),
mcmap.BlkGrassBlock: gdk.NewColor("#00aa00"),
mcmap.BlkDirt: gdk.NewColor("... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.17.3
// source: protos/domain/JobApplicationStatusUpdate.proto
package domain
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/proto... |
package show
import (
"bytes"
"fmt"
"reflect"
"strconv"
"strings"
"time"
"github.com/iancoleman/strcase"
)
var (
flagTag = "flag"
envTag = "env"
jsonTag = "json"
yamlTag = "yaml"
tomlTag = "toml"
reqTag = "req"
showTag = "show"
configTag = "config" // Expected general config values (on... |
// Package cluster provides a sorted-set API (via Redis ZSETs) on top of a
// group of Redis instances.
package cluster
import (
"fmt"
"log"
"math/rand"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/garyburd/redigo/redis"
"github.com/soundcloud/roshi/common"
"github.com/soundcloud/roshi/instrumentation"... |
package main
// Copyright (c) 2018, Arm Limited and affiliates.
// SPDX-License-Identifier: Apache-2.0
//
// 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/lic... |
package main
import (
"fmt"
"github.com/go-telegram-bot-api/telegram-bot-api"
"github.com/patrickmn/go-cache"
"io"
"log"
"math/rand"
"strings"
"time"
)
const (
// osProgramadoresURL contains the main group URL.
osProgramadoresURL = "https://osprogramadores.com"
// osProgramadoresURL contains the main grou... |
/******************************************************************************
*
* Copyright (C) 2014 Tinode, All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; ... |
package main
import (
"flag"
"fmt"
"io"
"math"
"math/rand"
"os"
"time"
)
// UNSET denotes an empty cell on board.
const (
UNSET = 0
MAXIMIZER = 1
MINIMIZER = -1
)
// This program represents a 5x5 board by a [25]int.
// Humans give moves as "0 0" or "3 2", the program
// converts ordered pair human inpu... |
// Copyright 2012-2016 Apcera Inc. All rights reserved.
package tarhelper
import (
"archive/tar"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
"regexp"
"strings"
)
// User options enumeration type. This encodes the control options provided
// by user.
type UserOption int
// DirStack t... |
// Copyright 2021 Monoskope 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.16.0
// source: muxer.proto
package muxer
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
c... |
package itest
import (
"encoding/json"
"testing"
"github.com/ligato/cn-infra/core"
etcdmock "github.com/ligato/cn-infra/db/keyval/etcdv3/mocks"
httpmock "github.com/ligato/cn-infra/rpc/rest/mock"
"github.com/onsi/gomega"
//etcdmock "github.com/ligato/cn-infra/db/keyval/etcdv3/mocks"
"bytes"
"fmt"
"io/ioutil... |
package main
import (
"bufio"
"fmt"
"log"
"math"
"os"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"time"
// hdf5 "github.com/sbinet/go-hdf5"
"github.com/brunetto/goutils/debug"
"github.com/brunetto/goutils"
"github.com/brunetto/goutils/readfile"
)
func main () () {
defer debug.TimeMe(time.... |
// Copyright 2012 The Freetype-Go Authors. All rights reserved.
// Use of this source code is governed by your choice of either the
// FreeType License or the GNU General Public License version 2 (or
// any later version), both of which can be found in the LICENSE file.
package truetype
// The Truetype opcodes are su... |
package renter
import (
"context"
"fmt"
"time"
"gitlab.com/NebulousLabs/errors"
"go.sia.tech/siad/build"
"go.sia.tech/siad/crypto"
"go.sia.tech/siad/modules"
"go.sia.tech/siad/modules/host/registry"
"go.sia.tech/siad/types"
)
var (
// MaxRegistryReadTimeout is the default timeout used when reading from
//... |
// Package saver contains all logic for writing records to files.
// 1. Sets up a channel that accepts slices of *netlink.ArchivalRecord
// 2. Maintains a map of Connections, one for each connection.
// 3. Uses several marshallers goroutines to serialize data and and write to
// zstd files.
// 4. Rotates Connec... |
// Copyright 2018 The Kubeflow 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... |
package julius
import (
"regexp"
"strings"
)
var kanaToPhoneticTable = [][2]string{
// 3文字以上からなる変換規則
{"う゛ぁ", " b a"},
{"う゛ぃ", " b i"},
{"う゛ぇ", " b e"},
{"う゛ぉ", " b o"},
{"う゛ゅ", " by u"},
// 2文字からなる変換規則
{"ぅ゛", " b u"},
{"あぁ", " a a"},
{"いぃ", " i i"},
{"いぇ", " i e"},
{"いゃ", " y a"},
{"うぅ", " u:"},
{"え... |
package db
import (
"context"
"fmt"
"github.com/gedex/inflector"
. "github.com/goradd/goradd/pkg/orm/query"
"github.com/kenshaw/snaker"
"log"
"regexp"
"strings"
)
// The Database is the top level struct that contains a complete description of a database for purposes of
// creating queries and doing code gener... |
/*
Copyright 2019 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 texture
import (
"fmt"
g2d "github.com/jphsd/graphics2d"
g2dcol "github.com/jphsd/graphics2d/color"
"github.com/jphsd/graphics2d/util"
"image/color"
"math"
"math/rand"
)
// Leaf describes a Field that has no predecessors.
type Leaf struct {
Name string
Make func() Field
}
var LeafOptions = []Leaf{
... |
package log
import (
"bytes"
"fmt"
"io"
"os"
"path"
"runtime"
"strings"
"sync"
"time"
)
// Flag controls output format
type Flag uint32
// These flags define which text to prefix to each log entry generated by the Logger.
// Bits are or'ed together to control what's printed.
const (
Ldefault Flag = 0
LUT... |
// Package cal provides extensions to the time package for handling holidays
// and work days (business days).
//
// Work days are defined as Monday through Friday on dates that are not
// holidays or the alternate observation dates for holidays.
//
// As in the time package, all calculations assume a Gregorian calenda... |
package main
import (
"flag"
"fmt"
"math"
"os"
"runtime"
"runtime/pprof"
"sort"
"sync"
"time"
"container/heap"
"adscodex/oligo"
"adscodex/oligo/short"
"adscodex/oligo/long"
"adscodex/io/fastq"
"adscodex/io/csv"
"adscodex/criteria"
"adscodex/utils"
)
type Kmer string
type Kpair struct {
k Kmer
n flo... |
package chain_test
import (
"context"
"testing"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/venus/pkg/chain"
"github.com/filecoin-project/venus/pkg/repo"
"github.com/filecoin-project/venus/pkg/testhelpers"
tf "github.com/filecoin-project/venus/pkg/testhelpers/testflags"
"github.com/f... |
/*
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... |
/*
Copyright 2019 The Tekton 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, softw... |
/*
Copyright 2019 The KubeSphere 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 contractcourt
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io"
"github.com/btcsuite/btcutil"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/htlcswitch/hop"
"github.com/lightningnetwork/lnd/invoices"
"github.com/lightningnetwork/lnd/lntypes"
"github.com/lightningn... |
// Copyright 2016-2018, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
// Copyright 2015 Light Code Labs, 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 agre... |
package vader
import (
"io/ioutil"
"math"
"strings"
"github.com/gonum/floats"
)
//Give a sentiment intensity score to sentences.
type SentimentIntensityAnalyzer struct {
LexiconMap map[string]float64
EmojiLexiconMap map[string]string
SpecialCaseIdioms map[string]float64
}
// Initialize sentiment ana... |
/*
Copyright 2018 The Doctl 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 to ... |
package public
import (
"context"
"errors"
"fmt"
"io"
"reflect"
"sort"
"sync"
"time"
destinationPb "github.com/linkerd/linkerd2-proxy-api/go/destination"
"github.com/linkerd/linkerd2-proxy-api/go/net"
"github.com/linkerd/linkerd2/controller/api/discovery"
healthcheckPb "github.com/linkerd/linkerd2/control... |
// Copyright 2015 go-swagger maintainers
//
// 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 (c) 2021 Oasis Labs Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions... |
// Copyright 2015 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 http2
import (
"bufio"
"bytes"
"crypto/tls"
"errors"
"fmt"
"io"
"log"
"net"
"net/http"
"strconv"
"strings"
"sync"
"golang.org/x/net/http2... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the MIT License.
// This product includes software developed at Guance Cloud (https://www.guance.com/).
// Copyright 2021-present Guance, Inc.
package parser
import (
"fmt"
"reflect"
"strings"
"unicode"
"unicode/utf8"
"git... |
// Copyright (C) 2014 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
package main
import (
"bytes"
"context"
"crypto/rand"
"crypto/t... |
// 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 ... |
/*
Copyright 2021 Gravitational, 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, soft... |
/*
Copyright 2019 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 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 ... |
package bittorrent
import (
"sync"
"sync/atomic"
"time"
"honnef.co/go/bittorrent/channel"
"honnef.co/go/bittorrent/container"
"honnef.co/go/bittorrent/oursync"
"honnef.co/go/bittorrent/protocol"
)
type Request struct {
Piece uint32
Begin uint32
Length uint32
}
type peerState struct {
amInterested bool
... |
// Package cli implements a generic interactive line editor.
package cli
import (
"io"
"os"
"sort"
"sync"
"syscall"
"src.elv.sh/pkg/cli/term"
"src.elv.sh/pkg/cli/tk"
"src.elv.sh/pkg/sys"
"src.elv.sh/pkg/ui"
)
// App represents a CLI app.
type App interface {
// ReadCode requests the App to read code from t... |
// Copyright 2021 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 agre... |
// Package stravax extends the Strava API to allow for retrieving complete
// Strava leaderboard information for a logged in user.
package stravax
import (
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/http/cookiejar"
"net/url"
"strconv"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
"github.com/sche... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.13.0
// source: envoy/extensions/filters/http/aws_request_signing/v3/aws_request_signing.proto
package envoy_extensions_filters_http_aws_request_signing_v3
import (
_ "github.com/cncf/udpa/go/udpa/annotations... |
// 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, ... |
/*
Copyright 2018 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 writing, software
dist... |
/*
Copyright 2020 the Velero 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 to in writing, sof... |
// Copyright © 2020 The Homeport Team
//
// 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, publis... |
package comparator
import (
"fmt"
"io"
"sync"
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/grafana/loki/pkg/canary/reader"
)
const (
ErrOutOfOrderEntry = "out of order entry %s was received before entries: %v\n"
ErrE... |
package server
import (
"context"
"io"
"net"
"net/http"
"os"
"path/filepath"
"runtime/pprof"
"time"
"github.com/gorilla/mux"
"github.com/improbable-eng/grpc-web/go/grpcweb"
"github.com/rs/cors"
"github.com/spf13/cobra"
"github.com/xlab/closer"
"google.golang.org/grpc"
tcmd "github.com/tendermint/tende... |
package composite
import (
"fmt"
"image"
"image/jpeg"
"image/png"
"io/ioutil"
"log"
"math"
"os"
"path"
"strconv"
"golang.org/x/image/draw"
"golang.org/x/image/font"
"golang.org/x/image/font/basicfont"
"golang.org/x/image/math/fixed"
"github.com/disintegration/imaging"
"github.com/golang/freetype"
"g... |
/*
Copyright 2020 Gravitational, 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, soft... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/campaign_criterion_simulation.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
wrappers "github.com/catper/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/goo... |
package aws
import (
"context"
"encoding/json"
"fmt"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/plugin"
"github.com/tur... |
// Copyright 2013 The lime Authors.
// Use of this source code is governed by a 2-clause
// BSD-style license that can be found in the LICENSE file.
package textmate
import (
"encoding/json"
"errors"
"fmt"
"github.com/limetext/lime/backend/loaders"
"github.com/limetext/lime/backend/log"
"github.com/limetext/rub... |
package main
import (
"context"
"reflect"
plogger "github.com/heytribe/go-plogger"
"github.com/heytribe/live-webrtcsignaling/rtcp"
"github.com/heytribe/live-webrtcsignaling/srtp"
)
/*
* Pipeline listener:
* Link node UDP => node Demux
* Link node Demux.OutPacketSRTP => node SRTP
* Link node SRTP.OutPacketRTP =>... |
// Copyright 2017 clair authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
// Copyright 2015, <NAME> <<EMAIL>>
// See the LICENSE file for more details.
package deferred
import (
"fmt"
"time"
glfw "github.com/go-gl/glfw/v3.1/glfw"
mgl "github.com/go-gl/mathgl/mgl32"
graphics "github.com/tbogdala/fizzle/graphicsprovider"
"github.com/tbogdala/groggy"
)
// ScreenSizeChanged is the type... |
/*
Copyright 2019 Pressinfra SRL
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
package gormfixes
import (
"fmt"
"reflect"
"strings"
"github.com/jinzhu/gorm"
"github.com/t2wu/betterrest/libs/datatypes"
"github.com/t2wu/betterrest/models"
)
// Remove strategy
// If pegassoc, record it as dissociate and you're done.
// If pegged, record it as to be removed., traverse into the struct. If the... |
package cmd
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path"
"strings"
"text/template"
"time"
"github.com/blang/semver"
"github.com/cenkalti/backoff"
"github.com/exoscale/egoscale"
"github.com/spf13/cobra"
"golang.org/x/crypto/ssh"
)
const (
// kubeDockerVersion is the version recommend... |
package instance
import (
"errors"
"fmt"
"runtime/debug"
"github.com/TIBCOSoftware/flogo-contrib/action/flow/definition"
"github.com/TIBCOSoftware/flogo-contrib/action/flow/model"
"github.com/TIBCOSoftware/flogo-contrib/action/flow/support"
"github.com/TIBCOSoftware/flogo-lib/core/data"
"github.com/TIBCOSoftw... |
//
//
// File generated from our OpenAPI spec
//
//
package stripe
import "encoding/json"
import "github.com/stripe/stripe-go/v72/form"
// The status of the most recent automated tax calculation for this quote.
type QuoteAutomaticTaxStatus string
// List of values that QuoteAutomaticTaxStatus can take
const (
Quot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.