text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.14.0
// source: wso2/discovery/subscription/application_key_mapping.proto
package subscription
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/ru... |
package monocular
import (
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path"
"sort"
"strings"
"time"
"github.com/cloudfoundry-incubator/stratos/src/jetstream/plugins/monocular/store"
"github.com/labstack/echo/v4"
yaml "gopkg.in/yaml.v2"
)
// Artifact Hub support
type artifactHubHa... |
/*
* Copyright (C) 2018 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ofthe License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
package helper
import (
"context"
"sort"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/run... |
// Copyright 2021 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 webcodecs provides common code for video.WebCodecs* tests
package webcodecs
import (
"context"
"fmt"
"io"
"math"
"net/http"
"net/http... |
// Package play implements a simple mp3 player. In general, to use this package first create a Player using NewPlayer,
// start a goroutine that listens for events on Player.Event, Load an mp3 using Player.Load, and play it using Player.Play().
// GetMetadata can be used to retrieve ID3 information from mp3 files.
pack... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: messages.proto
package core
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/timestamp"
math "math"
time "time"
)
// Reference imports to suppress errors if they ar... |
/*
This package starts up the daemon and everything else. It contains the entry point
for Android bindings: the Run() function.
*/
package gateway
// Adapted from
// https://github.com/ipfs/go-ipfs/tree/master/docs/examples/go-ipfs-as-a-library
import (
"context"
"fmt"
"io/ioutil"
"log"
"net"
"os"
"os/signal"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: Qot_GetOrderBook.proto
/*
Package Qot_GetOrderBook is a generated protocol buffer package.
It is generated from these files:
Qot_GetOrderBook.proto
It has these top-level messages:
C2S
S2C
Request
Response
*/
package Qot_GetOrderBook
import proto "git... |
// Package kubernetes provides the kubernetes backend.
package kubernetes
import (
"errors"
"fmt"
"net"
"strings"
"sync/atomic"
"time"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/healt... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: tensorflow_serving/config/platform_config.proto
package config
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"... |
/*
* Copyright 2009-2018 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 reflect
import (
"errors"
"runtime"
"unsafe"
systemReflect "reflect"
)
const (
maxUint = ^uint(0)
maxInt = int(maxUint >> 1)
)
co... |
// Package mocks defines implemented interfaces for testing modules
package mocks
import (
"context"
"io"
"net/http"
"net/url"
"strings"
"time"
"github.com/friendsofgo/errors"
"github.com/volatiletech/authboss/v3"
)
// User represents all possible fields a authboss User may have
type User struct {
Username ... |
// Package goparser was taken from an open source project (https://github.com/zpatrick/go-parser) by zpatrick. Since it seemed
// that he had abandon it, I've integrated it into this project (and extended it).
package goparser
import (
"bytes"
"fmt"
"go/ast"
"go/token"
"go/types"
"io/ioutil"
"unicode"
)
func p... |
/*
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 ... |
package bdns
import (
"context"
"encoding/base64"
"errors"
"fmt"
"math/rand"
"net"
"strconv"
"strings"
"sync"
"time"
"github.com/jmhodges/clock"
"github.com/miekg/dns"
"github.com/prometheus/client_golang/prometheus"
blog "github.com/letsencrypt/boulder/log"
"github.com/letsencrypt/boulder/metrics"
)
... |
package healthcheck
import (
"time"
"github.com/romberli/das/internal/dependency/healthcheck"
"github.com/romberli/das/internal/dependency/metadata"
"github.com/romberli/das/pkg/message"
msghc "github.com/romberli/das/pkg/message/healthcheck"
"github.com/romberli/go-util/constant"
)
const (
dbConfigMaxUserCon... |
package aws
import (
"bytes"
"fmt"
"github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/mutexkv"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/terraform"
)
// Provider returns a terraform.ResourceProvider.
func Provider() terraform.ResourcePro... |
// * Copyright 2003-2005 <NAME>
// * All rights reserved
// *
// * Redistribution and use in source and binary forms, with or without
// * modification, are permitted providing that the following conditions
// * are met:
// * 1. Redistributions of source code must retain the above copyright
// * notice, this list of... |
package poset
import (
// "bytes"
"crypto/ecdsa"
"fmt"
"reflect"
"github.com/SamuelMarks/dag1/src/crypto"
"github.com/SamuelMarks/dag1/src/peers"
"github.com/golang/protobuf/proto"
)
/*******************************************************************************
InternalTransactions
**************************... |
package credentials
import (
"container/list"
"encoding/binary"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"math"
"reflect"
"sort"
"strings"
"github.com/privacybydesign/gabi"
"github.com/privacybydesign/gabi/big"
"github.com/privacybydesign/gabi/revocation"
)
// Separator is used to separate JSON key... |
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package net
import (
"errors"
"io"
"os"
"runtime"
"sync"
"syscall"
"time"
"unsafe"
)
var initErr error
// CancelIo Windows API cancels all outstandin... |
// Copyright (c) 2016-2018 <NAME> (https://github.com/jeevatkm)
// Copyright (c) 2013 <NAME> (https://github.com/julienschmidt)
// All rights reserved.
// Use of this radix_tree.go source code is governed by a BSD-style license that can be found
// in the LICENSE file at https://raw.githubusercontent.com/julienschmidt/... |
// Copyright 2020 The Chromium Authors. All Rights Reserved.
// Use of this source code is governed by the Apache v2.0 license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: infra/appengine/rubber-st... |
/*
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 vcfgo
import (
"os"
"testing"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
type VCFSuite struct{}
var _ = Suite(&VCFSuite{})
var (
kv1 = map[string]string{`ID`: `NS`, `Number`: `1`, `Type`: `Integer`,
`Description`: `Number of Samples With Data`}
kv2 = map[string]string{`ID`: `DP... |
package m
import (
"bufio"
"bytes"
"fmt"
"io"
"os"
"os/exec"
"path"
"strings"
"sync"
"time"
"github.com/alecthomas/chroma"
log "github.com/sirupsen/logrus"
)
// Reader reads a file into an array of strings.
//
// It does the reading in the background, and it returns parts of the read data
// upon request... |
package input
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"strings"
"text/template"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
type GitlabModule struct {
channelMapping mapping
channel chan IRCMessage
commitLimit int
}
type mapping struct {
DefaultChannel string ... |
// Copyright 2012, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package tabletserver
import (
"bytes"
"fmt"
"math/rand"
"strings"
"sync"
"time"
log "github.com/golang/glog"
"github.com/youtube/vitess/go/mysql"
mproto... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: msp/msp_principal.proto
package msp
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 _ = math.Inf
type M... |
package main
import (
"github.com/gopherjs/gopherjs/js"
)
var (
showBlueHeads = true
overlap = 0 // 0-N, allowable drop overlaps for a column
background = "linear-gradient(#ccddee, #ffffff);" //"#000000"
githubLinkColor = "rgba(107,165,184,.5)" ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: isis_sh_nbr_summ.proto
package cisco_ios_xr_clns_isis_oper_isis_instances_instance_neighbor_summaries_neighbor_summary
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are no... |
// Copyright 2019 <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, merge, publish, distribute... |
package terexlang
/*
BSD License
Copyright (c) 2019–21, <NAME>
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 c... |
/*
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 Banrai LLC. All rights reserved. Use of this source code is
// governed by the license that can be found in the LICENSE file.
// Package database provides access to the sqlite database on the Pi client
package database
import (
"fmt"
"github.com/Banrai/PiScan/server/database/barcodes"
"github.com/mxk... |
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// Copyright (c) 2016 The Go Authors. All rights reserved.
// Copyright (c) 2019 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:
//
// * Redistributions of source code must ... |
// Copyright 2015 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.24.0-devel
// protoc v3.12.1
// source: go.chromium.... |
package jsonextract
import (
"bufio"
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"strconv"
"strings"
"github.com/tdewolff/parse/v2"
"github.com/tdewolff/parse/v2/js"
)
// Opening Characters as defined by the JSON spec
const (
openObject = '{'
openArray = '['
)
var matchingBracket = map[byt... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.6.1
// source: tensorflow/core/protobuf/data_service.proto
package for_core_protos_go_proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runti... |
// Copyright 2014-2016 The Zurichess Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// basic.go defines basic types.
//
//go:generate stringer -type Figure
//go:generate stringer -type Color
//go:generate stringer -type Piece
//go:g... |
package dianpindesigner
import (
"fmt"
browser "github.com/EDDYCJY/fake-useragent"
"github.com/nange/gospider/common"
"github.com/nange/gospider/spider"
log "github.com/sirupsen/logrus"
"math/rand"
"strconv"
"time"
)
func init() {
spider.Register(rule)
}
var (
// 北京、上海、广州、深圳、杭州、成都、重庆、武汉、南京、西安、长沙、郑州、苏州、天津、东... |
// Copyright (c) 2015 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... |
/*
Copyright 2019 Cisco Systems
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
package main
import (
"bytes"
"flag"
"fmt"
"github.com/ChimeraCoder/gojson"
"github.com/PuerkitoBio/goquery"
"github.com/iancoleman/strcase"
"github.com/pkg/errors"
"io/ioutil"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"text/template"
)
// 生成企微api代码
type Field struct {
Name string
IsRequired ... |
/*
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 va
import (
"context"
"crypto/sha256"
"crypto/subtle"
"crypto/tls"
"crypto/x509"
"encoding/asn1"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"math/rand"
"net"
"net/http"
"net/url"
"os"
"runtime"
"strconv"
"strings"
"time"
"github.com/letsencrypt/challtestsrv"
"github.com/letsencrypt/pebble/... |
package scWriter
import (
"fmt"
"log"
"runtime"
"strings"
"sync"
"time"
ringBuffer "github.com/dh1tw/golang-ring"
"github.com/dh1tw/gosamplerate"
"github.com/dh1tw/remoteAudio/audio"
pa "github.com/gordonklaus/portaudio"
)
// ScWriter implements the audio.Sink interface and is used to write (play)
// audio... |
package blockchain
import (
"container/list"
"fmt"
"log"
"math"
"math/rand"
"net/http"
"os"
"os/signal"
"reflect"
"strconv"
"syscall"
"time"
"github.com/mroth/weightedrand"
)
// Middleware is the Middleware object
type Middleware struct {
communicationComponent CommunicationComponent
transactionQueue ... |
package baccarat
import (
"fmt"
"strconv"
"time"
"github.com/aoyako/telegram_2ch_res_bot/games"
"github.com/aoyako/telegram_2ch_res_bot/storage"
"github.com/leekchan/accounting"
"github.com/aoyako/telegram_2ch_res_bot/logic"
)
const (
GAME_PLAYER = 2
MAX_COUNT = 3
//索引定义
INDEX_PLAYER = 0 //闲家索引
INDE... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto
package websecurityscanner // import "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"... |
package janet
import (
"strconv"
"unicode/utf8"
)
type JanetParserStatus int
const (
JANET_PARSE_ROOT = iota
JANET_PARSE_ERROR
JANET_PARSE_PENDING
JANET_PARSE_DEAD
)
const (
PFLAG_CONTAINER = 0x100
PFLAG_BUFFER = 0x200
PFLAG_PARENS = 0x400
PFLAG_SQRBRACKETS = 0x800
PFLAG_CURLYBRACKETS... |
// Package image provides the database.Model implementation for the Image entity.
package image
import (
"context"
"database/sql"
"io"
"net/url"
"path/filepath"
"strconv"
"strings"
"time"
"djinn-ci.com/database"
"djinn-ci.com/driver"
"djinn-ci.com/env"
"djinn-ci.com/errors"
"djinn-ci.com/event"
"djinn-c... |
//go:generate protoc --gofast_out=plugins=grpc:. ./liftbridge-grpc/api.proto
// Package liftbridge implements a client for the Liftbridge messaging system.
// Liftbridge provides lightweight, fault-tolerant message streams by
// implementing a durable stream augmentation NATS. In particular, it offers a
// publish-sub... |
/*
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 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 mailslurper
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"regexp"
"strings"
"testing"
"time"
"github.com/ory/dockertest"
dc "github.com/ory/dockertest/docker"
"github.com/radekg/app-kit-orytest/common"
)
const (
// DefaultMailslurperImageName specifies the Mailslurper d... |
/*
Copyright 2014 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 law or agreed to in ... |
package sequencer
import (
"time"
"fmt"
"math"
"strings"
"github.com/but80/smaf825/serial"
"github.com/but80/smaf825/smaf/chunk"
"github.com/but80/smaf825/smaf/enums"
"github.com/but80/smaf825/smaf/event"
"github.com/but80/smaf825/smaf/log"
"github.com/but80/smaf825/smaf/util"
"github.com/but80/smaf825/... |
package gtk
/*
#include "includes.h"
#include <gdk/gdk.h>
*/
import "C"
import (
"log"
"github.com/PucklaMotzer09/GoHomeEngine/src/gohome"
)
//export gtkgo_quit
func gtkgo_quit() {
C.gtk_main_quit()
}
//export gtkgo_gl_area_render
func gtkgo_gl_area_render(area *C.GtkGLArea, context *C.GdkGLContext) {
if OnRe... |
package bugzillarest
import (
"testing"
"github.com/stretchr/testify/mock"
libAffiliations "github.com/LF-Engineering/dev-analytics-libraries/affiliation"
"github.com/LF-Engineering/da-ds/bugzilla/mocks"
jsoniter "github.com/json-iterator/go"
"github.com/stretchr/testify/assert"
)
func TestEnrichItem(t *tes... |
package graphite
import (
"encoding/json"
"fmt"
"os"
)
// this file implements tracing helpers, which are only used
// in debug mode
var tr = &traceOutput{}
type traceOutput struct {
colliderEnv colliderEnv
Outputdir string `json:"outputdir"`
Id string `json:"id"`
Output []slotJSON `j... |
// Copyright (c) 2013 <NAME>. All rights reserved.
// See LICENCE file for permissions and restrictions.
/*
Register all entry-points in gdi32.dll.
DLL entry-points are registered for use by the
API access functions of github.com/tHinqa/outside.
Note that all dll exported named entry-points are listed,
including tho... |
// ClueGetter - Does things with mail
//
// Copyright 2016 <NAME>, Freeaqingme.
//
// This Source Code Form is subject to the terms of the Apache License, Version 2.0.
// For its contents, please refer to the LICENSE file.
//
package quotas
import (
"database/sql"
"fmt"
"net/http"
"strconv"
"strings"
"sync"
"ti... |
package install
import (
"context"
"errors"
"fmt"
"os"
"time"
log "github.com/sirupsen/logrus"
"golang.org/x/net/http/httpproxy"
"github.com/newrelic/newrelic-cli/internal/cli"
"github.com/newrelic/newrelic-cli/internal/diagnose"
"github.com/newrelic/newrelic-cli/internal/install/discovery"
"github.com/n... |
// Inferno utils/6c/6.out.h
// https://bitbucket.org/inferno-os/inferno-os/src/default/utils/6c/6.out.h
//
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
// Portions Copyright © 1995-1997 <NAME> (<EMAIL>)
// Portions Copyright © 1997-1999 Vita Nuova Limited
// Portions Copyright © 2000-2007 Vit... |
/*
* 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... |
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package raft
import (
"context"
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
"strconv"
"sync"
"time"
"github.com/coreos/etcd/etcdserver/stats"
"gi... |
/*
Copyright 2021 Crunchy Data Solutions, 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 wri... |
package exec_test
import (
"code.cloudfoundry.org/lager/lagerctx"
"code.cloudfoundry.org/lager/lagertest"
"github.com/concourse/concourse/atc/db"
"github.com/concourse/concourse/atc/types"
"github.com/concourse/concourse/atc/worker/workerfakes"
"context"
"errors"
"io"
"github.com/concourse/concourse/atc/exe... |
package cli
import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
"github.com/spf13/cobra"
kapi "k8s.io/kubernetes/pkg/api"
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/runtime"
kerrs "k8s.io/kubernetes/pkg/util/errors"
"k8s.io/kubernetes/pkg/util/sets"
"k8s.io/kubernetes/p... |
// CLI Commands & helpers
package main
import (
"bufio"
"context"
"errors"
"fmt"
"io"
"log"
"os"
"path/filepath"
"strconv"
"strings"
"text/tabwriter"
"time"
"github.com/gofrs/flock"
cli "github.com/spf13/cobra"
"github.com/spf13/pflag"
"golang.org/x/term"
"google.golang.org/grpc"
"google.golang.org... |
/**
* Copyright 2020 Comcast Cable Communications Management, 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 requir... |
package tpcc
import (
"context"
"database/sql"
"fmt"
"math"
"math/rand"
"sort"
"strings"
"sync"
"time"
"github.com/pingcap/go-tpc/pkg/load"
"github.com/pingcap/go-tpc/pkg/measurement"
"github.com/pingcap/go-tpc/pkg/workload"
)
type contextKey string
const stateKey = contextKey("tpcc")
var tables = []st... |
// Copyright 2020 <NAME>
// SPDX-License-Identifier: Apache-2.0
package dkg
import (
"errors"
"fmt"
"sync"
"time"
"github.com/iotaledger/hive.go/crypto/ed25519"
"github.com/iotaledger/hive.go/logger"
"github.com/iotaledger/wasp/packages/peering"
"github.com/iotaledger/wasp/packages/registry"
"github.com/iot... |
package compose
import (
"bytes"
"fmt"
"reflect"
"strings"
"github.com/deref/exo/internal/manifest/exohcl"
"github.com/deref/exo/internal/manifest/exohcl/hclgen"
"github.com/deref/exo/internal/providers/docker/compose"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclsyntax"
"github.com/zclconf... |
/*
Copyright IBM Corp All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package world
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
"syscall"
"time"
"github.com/alecthomas/template"
docker "github.com/fsouza/go-dockerclient"
"github.com/mcc-github/blockchain/... |
/*
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, ... |
// Copyright 2017 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.
// +build 386 amd64 amd64p32
package cpu
import (
"fmt"
"strings"
)
const CacheLineSize = 64
// cpuid is implemented in cpu_x86.s.
func cpuid(eaxArg, ecxA... |
// Copyright (c) 2013-2016 The btcsuite developers
// Copyright (c) 2015-2018 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package txscript
import (
"encoding/binary"
"fmt"
"math"
"github.com/valhallacoin/vhcd/chaincfg"
"github.com/valh... |
package ast
import (
"fmt"
"github.com/elliotchance/c2go/cc"
"io/ioutil"
"os"
"path"
"testing"
)
func TestCharacterLiteral(t *testing.T) {
nodes := map[string]Node{
`0x7f980b858308 <col:62> 'int' 10`: &CharacterLiteral{
Addr: 0x7f980b858308,
Pos: NewPositionFromString("col:62"),
Type: ... |
package k8s
import (
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"strings"
"sync"
"time"
"github.com/andres-erbsen/clock"
"github.com/hashicorp/hcl"
"github.com/spiffe/spire/pkg/agent/common/cgroups"
"github.com/spiffe/spire/p... |
// Copyright 2021 IBM 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 agreed to... |
package ofp
import (
"bytes"
"fmt"
"io"
"github.com/netrack/openflow/internal/encoding"
)
// MeterCommand represents a type of meter modification message.
type MeterCommand uint16
const (
// MeterAdd is a command used to add a new meter.
MeterAdd MeterCommand = iota
// MeterModify is a command used to modif... |
/*
Copyright 2014 The Kubernetes 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 ag... |
package set
import (
"encoding/json"
"errors"
"fmt"
"regexp"
"sort"
"strings"
"github.com/spf13/cobra"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
"k8s.io/apimachinery/pk... |
package scm
import (
"github.com/analogj/capsulecd/pkg/config"
"github.com/analogj/capsulecd/pkg/errors"
"github.com/analogj/capsulecd/pkg/pipeline"
"github.com/analogj/capsulecd/pkg/utils"
"fmt"
"github.com/analogj/go-bitbucket"
"github.com/mitchellh/mapstructure"
"io/ioutil"
"log"
"net/http"
"os"
"path"
... |
//
// Copyright (C) 2020 IBM Corporation.
//
// Authors:
// <NAME> <<EMAIL>>
// <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/L... |
package main
import (
"bytes"
"fmt"
"go/ast"
"go/parser"
"go/token"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"sort"
"time"
)
//-------------------------------------------------------------------------
// out_buffers
//
// Temporary structure for writing autocomplete response.
//--------------------------... |
package cli
import (
"bytes"
"context"
_ "embed"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path"
"path/filepath"
"regexp"
"strings"
"github.com/auth0/auth0-cli/internal/ansi"
"github.com/auth0/auth0-cli/internal/auth0"
"github.com/auth0/auth0-cli/internal/prompt"
"github.com/m... |
// Copyright 2014 The Macaron Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" file ... |
// Copyright 2018 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
package main
import (
"bufio"
"encoding/csv"
"flag"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"regexp"
"runtime"
"sort"
"strconv"
"strings"
"encoding/json"
"text/template"
"bytes"
"encoding/binary"
"net"
"golang.org/x/net/idna"
"golang.org/x/text/encoding/charmap"
"golang.org/x/text/transform"
)
... |
// Copyright 2020 The Ebiten 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... |
package config
import (
"bytes"
"crypto/sha256"
"database/sql"
"encoding/base64"
"encoding/json"
"errors"
"net"
"net/url"
"os/user"
"strconv"
"strings"
"time"
"github.com/go-ini/ini"
"github.com/google/wire"
// MySQL DB Driver
_ "github.com/go-sql-driver/mysql"
// SQLite3 DB Driver
_ "github.com/ma... |
// Copyright (C) 2018 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 t... |
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1beta20210501storage
import (
"github.com/Azure/azure-service-operator/v2/pkg/genruntime"
"github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions"
"gith... |
package api
import (
"fmt"
"io"
"io/ioutil"
"os"
"os/user"
"path/filepath"
"runtime"
"strings"
)
const (
currentContextKeyJSON = "currentContext"
currentContextKeyYAML = "CurrentContext"
contextsKeyJSON = "contexts"
contextsKeyYAML = "Contexts"
basicAuthenticationKeyJSON = "basic"
basicAuthenticationK... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.