text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.7.1
// source: slimarray.proto
package slimarray
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtim... |
package node
import (
"bytes"
"context"
"fmt"
"os"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/rlp"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/api/proto"
proto_discovery "github.com/harmony-one/harmony/api/proto/discovery"
proto_identity "gi... |
package urlstore_test
// Copyright 2019 hotstone-seo. Modifications: 1) 'id' of node 2) Delete node by ID
// Copyright 2016 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import (
"fmt"
"testing"
"github.com/hotstone-seo/hotston... |
package datetime
import (
"fmt"
"math"
"os"
"strings"
"time"
"unsafe"
"github.com/spf13/cast"
)
/*
#cgo CFLAGS: -I./timelib
#cgo LDFLAGS: -L${SRCDIR}/timelib -lastro -linterval -lparsedate -lparseisointervals -lparsetz -ltimelib -ltm2unixtime -lunixtime2tm -ldow -lm
#include "time.h"
#include "timelib.h"
time... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: group.proto
package cloud
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "github.com/microsoft/moc/rpc/common"
grpc "google.golang.org/grpc"
codes "google.gola... |
// Copyright 2017 Team 254. All Rights Reserved.
// Author: <EMAIL> (<NAME>)
//
// Methods for interfacing with the field PLC.
package plc
import (
"fmt"
"github.com/Team254/cheesy-arena/game"
"github.com/Team254/cheesy-arena/websocket"
"github.com/goburrow/modbus"
"log"
"strings"
"time"
)
type Plc struct {
... |
// The MIT License (MIT)
// Copyright (c) 2016 <NAME>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
/*
Copyright 2016-present <NAME> <www.webx.top>
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 ... |
package main
import (
"fmt"
"io/ioutil"
"math"
"math/rand"
"net/http"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
"time"
"github.com/pyke369/golang-support/rcache"
"github.com/pyke369/golang-support/uconfig"
"github.com/pyke369/golang-support/uws"
)
type HOST struct {
host string
weight int... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/securitycenter/v1/finding.proto
package securitycenter
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "g... |
package main
import (
"fmt"
"io/ioutil"
"log"
"math/rand"
"path/filepath"
"strings"
"time"
"github.com/tinode/chat/server/auth"
_ "github.com/tinode/chat/server/auth/basic"
"github.com/tinode/chat/server/store"
"github.com/tinode/chat/server/store/types"
)
func genDb(data *Data) {
var err error
var botA... |
//
// Copyright 2021 The Sigstore 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 ... |
package photosync
import (
"encoding/json"
"fmt"
"github.com/garyburd/go-oauth/oauth"
"github.com/go-fsnotify/fsnotify"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
)
// time formats
const FilenameTimeLayout = "20060102_150405"
const ExifTimeLayout = "2006:01:02 15:04:05"
const FlickrT... |
// The MIT License (MIT)
//
// Copyright (c) 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, mo... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: orc8r/protos/streamer.proto
package protos
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.gola... |
package mains
import (
"errors"
"fmt"
"os"
"reflect"
"runtime"
"unsafe"
"github.com/zetamatta/nyagos/completion"
"github.com/zetamatta/nyagos/history"
"github.com/zetamatta/nyagos/lua"
ole "github.com/zetamatta/nyagos/lua/ole"
"github.com/zetamatta/nyagos/readline"
"github.com/zetamatta/nyagos/shell"
)
c... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.4
// source: api/proto/v1/meta.proto
package v1
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runt... |
/*
jsonpack-parser is a tool to generate jsonpack schema definition from specified package and struct name.
Usage: jsonpack-parser -s <PACKAGE_DIR> -n <STRUCT_NAME> [options]
<PACKAGE_DIR> is the package directory which contains golang source files.
<STRUCT_NAME> is the structure name that want to generate schema de... |
package main
import (
"bufio"
"compress/gzip"
"encoding/csv"
"fmt"
"io"
"mime"
"net"
"net/http"
"net/url"
"os"
"regexp"
"sort"
"strconv"
"strings"
"time"
"github.com/datatogether/warc"
)
type warcWriter struct {
WARCWriter *warc.Writer
WARCInfoID string
warcFile *os.File
warcGz *gzip.W... |
package main
import (
"fmt"
"log"
"math/rand"
"os"
"strconv"
"time"
"github.com/wiless/cellular/pathloss"
cell "github.com/wiless/cellular"
"github.com/wiless/cellular/antenna"
"github.com/wiless/cellular/deployment"
"github.com/wiless/vlib"
)
var matlab *vlib.Matlab
var defaultAAS antenna.SettingAAS
va... |
// Copyright 2015 <NAME> (LA5NTA). All rights reserved.
// Use of this source code is governed by the MIT-license that can be
// found in the LICENSE file.
package winmor
import (
"bufio"
"errors"
"fmt"
"io"
"log"
"net"
"runtime"
"strconv"
"strings"
"time"
"github.com/la5nta/wl2k-go/transport"
)
var (
E... |
package blockchain
import (
"bytes"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"encoding/gob"
"encoding/hex"
"fmt"
"log"
"math/big"
"strings"
"github.com/lp74/uc74-blockchain-go/hash"
"github.com/lp74/uc74-blockchain-go/wallet"
)
// COutPoint una combinazione dell'hash di una transazione e dell'indic... |
/*
* Copyright 2022 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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package image_test
import (
"archive/tar"
"crypto/sha256"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"code.cloudfoundry.org/lager"
"code.cloudfoundry.org/lager/lagertest"
"github.com/concourse/atc"
"github.com/concourse/atc/db"
"github.com/concourse/atc/resource"
rfakes "github.com/concourse/atc/resource/resou... |
package engine
import (
"archive/zip"
"bytes"
"encoding/json"
"errors"
"fmt"
"image"
"image/draw"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
"sync"
"time"
"gopkg.in/gomail.v2"
)
// Debug controls debugging
var Debug = debugFlags{}
type debugFlags struct {
Advance ... |
/*
Copyright 2021 <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 required by applicable law or agreed to in writing, software
distrib... |
package stats
import (
"bytes"
"fmt"
"log"
"os"
"strings"
"sync"
"sync/atomic"
"text/tabwriter"
"time"
"github.com/bmizerany/perks/quantile"
)
var HammerStats Stats
var _csv_file *os.File
var slowThreshold uint64 // in ms
type GetProfileCSV func(total_time float64) string // to return current profile's s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.13.0
// source: wso2/discovery/service/api/apids.proto
package api
import (
context "context"
v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
grpc "google.golang.org/grpc"
code... |
//
//Copyright [2016] [SnapRoute 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... |
// Copyright 2018 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... |
//go:build !dockerless
// +build !dockerless
/*
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 requir... |
package main
import (
"fmt"
"image"
"image/color"
"strings"
"github.com/gdamore/tcell/v2"
)
type direction bool
type state int
type saveImageCallback = func(fileName string, m image.Image) error
const (
maxHue = 380
borderSize = 1
dirIncrease direction = true
dirDecrease direction = false
stateDraw... |
// Copyright 2015 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... |
package server
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"os/exec"
"path/filepath"
"reflect"
"sort"
"strings"
"sync"
"time"
"github.com/inconshreveable/log15"
"github.com/pkg/errors"
"github.com/sourcegraph/sourcegraph/internal/api"
"github.com/sourcegraph/sourceg... |
/*
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 under the License... |
package oaipmh
import (
"encoding/xml"
"fmt"
"log"
"net/http"
"net/url"
"time"
)
const (
xmlnsXsi = "http://www.w3.org/2001/XMLSchema-instance"
xsiSchemaLocation = "http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"
)
var (
OAIDC = MetadataFormat{
MetadataPrefix... |
package slack
import (
"context"
"encoding/json"
"net/url"
"strconv"
"time"
)
const (
DEFAULT_USER_PHOTO_CROP_X = -1
DEFAULT_USER_PHOTO_CROP_Y = -1
DEFAULT_USER_PHOTO_CROP_W = -1
)
// UserProfile contains all the information details of a given user
type UserProfile struct {
FirstName string ... |
package iamrole
import (
"bytes"
"encoding/gob"
"encoding/json"
"fmt"
"sort"
"text/template"
smith_v1 "github.com/atlassian/smith/pkg/apis/smith/v1"
smith_plugin "github.com/atlassian/smith/pkg/plugin"
"github.com/atlassian/voyager"
"github.com/atlassian/voyager/pkg/execution/plugins"
"github.com/atlassian... |
// Copyright 2018 Istio Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
package telegram
import (
"context"
"fmt"
"net/url"
"sort"
"strings"
"time"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/hako/durafmt"
"github.com/metalmatze/alertmanager-bot/pkg/alertmanager"
"github.com/oklog/run"
"github.com/prometheus/alertmanager/notify"
"github.com/prom... |
package main
import (
"bufio"
"fmt"
"image"
"os"
"path/filepath"
"regexp"
"runtime/debug"
"strings"
"9fans.net/go/plan9"
"9fans.net/go/plan9/client"
"9fans.net/go/plumb"
"github.com/rjkroege/edwood/runes"
"github.com/rjkroege/edwood/util"
)
var (
plumbsendfid *client.Fid
nuntitled int
)
type plumb... |
package api
import (
"fmt"
"net/url"
"path/filepath"
"strings"
utilglog "github.com/openshift/source-to-image/pkg/util/glog"
"github.com/openshift/source-to-image/pkg/util/user"
)
var glog = utilglog.StderrLog
// Image label namespace constants
const (
DefaultNamespace = "io.openshift.s2i."
KubernetesNa... |
package generator
import (
"bytes"
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
func TestURLBuilder_SimplePathParams(t *testing.T) {
assert := assert.New(t)
gen, err := opBuilder("simplePathParams", "../fixtures/codegen/todolist.url.simple.yml")
if assert.NoError(err) {
op, err := gen.MakeOperati... |
// Copyright 2015 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
/* This file implements algorithms that are variations of the IPDPS 2016 SODA algorithm
MIT License
Copyright (c) 2017 Ercost
Authors:
<NAME> (<EMAIL>)
<NAME> (<EMAIL>)
*/
package daemons
import (
"math"
"os"
"reflect"
"runtime"
"strconv"
"time"
zmq3 "github.com/pebbe/zmq3"
//"log"
//"math/rand"
//"str... |
package controller
import (
"encoding/json"
"fmt"
"strings"
"github.com/Knetic/govaluate"
"github.com/argoproj/argo/errors"
wfv1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
"github.com/argoproj/argo/workflow/common"
"github.com/argoproj/argo/workflow/templateresolution"
"github.com/valyala/fasttemp... |
// Copyright 2020-2021 Dolthub, 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... |
// Copyright 2018 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... |
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.11.2
// source: example/feature_demo/demo_multi_file_service.proto
package example
import (
_ "github.com/edhaight/protoc-gen-gorm/options"
query "github.com/infobloxopen/atlas-app-toolkit/query"
prot... |
// Copyright (c) 2018, 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.
// based on golang.org/x/exp/shiny:
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// licen... |
// 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 ssa
import (
"bytes"
"cmd/internal/objabi"
"cmd/internal/src"
"fmt"
"hash/crc32"
"log"
"math/rand"
"os"
"regexp"
"runtime"
"sort"
"strings"... |
// Copyright 2015 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.
package client
import (
"encoding/json"
"fmt"
"os/exec"
"path/filepath"
"reflect"
"strings"
"golang.org/x/net/context"
"github.com/keybase/cli"
"github.com/keybase/client/go/install"
"g... |
package hclwrite
import (
"sort"
"github.com/hashicorp/hcl2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax"
)
// Our "parser" here is actually not doing any parsing of its own. Instead,
// it leans on the native parser in hclsyntax, and then uses the source ranges
// from the AST to partition the raw token sequenc... |
package util
import (
"bytes"
"crypto/sha512"
"encoding/hex"
"encoding/json"
"fmt"
"io"
"net"
"net/http"
"net/url"
"os"
"os/exec"
"os/signal"
"path/filepath"
"regexp"
"sort"
"strings"
"sync"
"syscall"
"time"
"github.com/gorilla/handlers"
"github.com/pkg/errors"
"github.com/satori/go.uuid"
"gith... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc (unknown)
// source: aserto/management/v2/controller.proto
package management
import (
v2 "github.com/aserto-dev/go-grpc/aserto/api/v2"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/errors/date_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 are not o... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc (unknown)
// source: api/models/v1/projects.proto
package v1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
... |
// Copyright 2016 VMware, 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... |
package p2p
import (
"context"
"errors"
"fmt"
"io"
"sync"
"time"
"github.com/gogo/protobuf/proto"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"
)
// Router manages peer connections and routes messages between peers and reactor
// channels. This is an early proto... |
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package query
import (
"context"
"strings"
"gorm.io/gorm"
"gorm.io/gorm/clause"
"gorm.io/gorm/schema"
"app/dal/model"
"gorm.io/gen"
"gorm.io/gen/field"
)
func newSub... |
// Code generated by main. DO NOT EDIT.
package caaa_013_001_01
import (
"bytes"
"encoding/base64"
"encoding/xml"
"time"
)
type AcceptorDiagnosticRequest1 struct {
Envt CardPaymentEnvironment8 `xml:"urn:iso:std:iso:20022:tech:xsd:caaa.013.001.01 Envt"`
}
type AcceptorDiagnosticRequestV01 struct {
Hdr He... |
package helper
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"sort"
"strings"
"text/template"
"github.com/SAP/jenkins-library/pkg/config"
)
// generates the step documentation and replaces the template with the generated documentation
func generateStepDocumentation(stepData config.StepData, docuHelperData DocuHelp... |
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/api/serviceconfig/auth.proto
// DO NOT EDIT!
package google_api // import "google.golang.org/genproto/googleapis/api/serviceconfig"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imp... |
package gitdiff
import (
"bufio"
"errors"
"fmt"
"io"
"io/ioutil"
"mime/quotedprintable"
"net/mail"
"strconv"
"strings"
"time"
"unicode"
)
const (
mailHeaderPrefix = "From "
prettyHeaderPrefix = "commit "
mailMinimumHeaderPrefix = "From:"
)
// PatchHeader is a parsed version of the preamble ... |
// 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 factory
import (
"context"
"fmt"
"k8s.io/api/autoscaling/v2beta2"
policyv1beta1 "k8s.io/api/policy/v1beta1"
victoriametricsv1beta1 "github.com/VictoriaMetrics/operator/api/v1beta1"
"github.com/VictoriaMetrics/operator/controllers/factory/finalize"
"github.com/VictoriaMetrics/operator/internal/config"
... |
package ckit
import (
"bytes"
"context"
"database/sql"
"errors"
"fmt"
"io"
"log"
"net/http"
"regexp"
"time"
"github.com/gorilla/mux"
"github.com/jmoiron/sqlx"
"github.com/klauspost/compress/zstd"
"github.com/patrickmn/go-cache"
"github.com/segmentio/encoding/json"
"github.com/slub/labe/go/ckit/set"
)
... |
package conf
import (
"github.com/whatedcgveg/v2ray-core/app/router"
)
var (
chinaSitesDomains []*router.Domain
)
func init() {
domains := []string{
"cn",
"xn--fiqs8s", /* .中国 */
"10010.com",
"100offer.com",
"115.com",
"123juzi.com",
"123juzi.net",
"123u.com",
"126.com",
... |
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you ... |
// Copyright (c) 2014-2018 by <NAME>. All Rights Reserved.
// Use of this source code is governed by a MIT-style license that can
// be found in the LICENSE file.
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// prope... |
package services
import (
"encoding/json"
"fmt"
"github.com/chenziliang/descartes/base"
kafkawriter "github.com/chenziliang/descartes/sinks/kafka"
"github.com/chenziliang/descartes/sinks/memory"
kafkareader "github.com/chenziliang/descartes/sources/kafka"
"github.com/golang/glog"
"math/rand"
"os"
"strconv"
... |
// 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... |
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.
package query
import (
"context"
"fmt"
"io/ioutil"
"math"
"regexp"
"strconv"
"strings"
"testing"
"time"
"github.com/pkg/errors"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/pkg/labels"
"github.com/pr... |
package main
import (
"crypto/ecdsa"
cRand "crypto/rand"
"encoding/base64"
"encoding/hex"
"flag"
"fmt"
"io"
"io/ioutil"
"math/big"
"math/rand"
"os"
"path"
"strconv"
"time"
"github.com/ethereum/go-ethereum/common"
crypto2 "github.com/ethereum/go-ethereum/crypto"
"github.com/harmony-one/harmony/core"
... |
package aes
import (
"encoding/binary"
"errors"
)
// AESCipher is the base structure for encryption/decryption operations using the package
type AESCipher struct {
keyLength int
numRounds int
key []byte
expandedKeys [][]byte
}
var sBoxMatrix []byte = []byte{
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, ... |
/*
Copyright 2020 Docker Compose CLI 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 a... |
package cmd
import (
"bufio"
"encoding/json"
"fmt"
"github.com/spf13/pflag"
"net/http"
"os"
"regexp"
"strconv"
"strings"
"sync"
"github.com/go-errors/errors"
irma "github.com/privacybydesign/irmago"
"github.com/privacybydesign/irmago/server"
"github.com/privacybydesign/irmago/server/irmaserver"
"github... |
package proto
import (
"bytes"
"encoding/binary"
"fmt"
"github.com/cloudhut/kowl/backend/pkg/filesystem"
"github.com/cloudhut/kowl/backend/pkg/git"
"github.com/cloudhut/kowl/backend/pkg/schema"
"github.com/jhump/protoreflect/desc"
"github.com/jhump/protoreflect/desc/protoparse"
"github.com/jhump/protoreflect/... |
package providercache
import (
"context"
"fmt"
"sort"
"strings"
"github.com/apparentlymart/go-versions/versions"
"github.com/hashicorp/terraform/addrs"
copydir "github.com/hashicorp/terraform/internal/copy"
"github.com/hashicorp/terraform/internal/depsfile"
"github.com/hashicorp/terraform/internal/getprovid... |
package script
import (
"github.com/copernet/copernicus/errcode"
"github.com/stretchr/testify/assert"
"testing"
. "github.com/copernet/copernicus/model/opcodes"
)
var p2SHScript = [23]byte{
OP_HASH160,
0x14, //length
0x89, 0xAB, 0xCD, 0xEF, 0xAB,
0xBA, 0xAB, 0xBA, 0xAB, 0xBA,
0xAB, 0xBA, 0xAB, 0xBA, 0xAB,
... |
package mail
import (
"fmt"
"os"
"path"
"text/template"
"github.com/itpkg/chaos/engines/ops"
"github.com/itpkg/chaos/web"
"github.com/spf13/viper"
"github.com/urfave/cli"
)
func write_config(c *cli.Context, files map[string]string) error {
user := c.String("user")
password := c.String("password")
if len(u... |
package mcts
import (
"context"
"runtime"
"sort"
"sync"
"sync/atomic"
"time"
"github.com/chewxy/math32"
"github.com/gorgonia/agogo/game"
)
/*
Here lies the majority of the MCTS search code, while node.go and tree.go handles the data structure stuff.
Right now the code is very specific to the game of Go. Ide... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: yandex/cloud/mdb/mongodb/v1/database.proto
package mongodb
import (
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: report.proto
package report
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import admin "github.com/piyush2206/go-domain-driven-design/admin"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
con... |
package Persister
import (
"errors"
"fmt"
"log"
"math/big"
"strings"
"sync"
"time"
"github.com/KyberNetwork/server-go/ethereum"
)
const (
STEP_SAVE_RATE = 10 //1 minute
MAXIMUM_SAVE_RECORD = 60 //60 records
INTERVAL_UPDATE_KYBER_ENABLE = 20
INTERVAL_UPDATE_MAX_GAS = 70
INTERVAL_UP... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package main
import (
"context"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"os"
"strconv"
"github.com/hotnops/gTunnel/common"
as "github.com/hotnops/gTunnel/grpc/admin"
"github.com/olekukonko/tablewriter"
"google.golang.org/grpc"
)
// ServerHost constant is the env variable
// used to co... |
package model
import (
"crypto/sha1"
"encoding/hex"
"fmt"
"io"
"os"
"path/filepath"
"reflect"
"sort"
"strings"
"code.cloudfoundry.org/fissile/util"
"code.cloudfoundry.org/fissile/validation"
)
// InstanceGroups is an array of Role*
type InstanceGroups []*InstanceGroup
// Len is the number of instance gro... |
// Package coordinator contains the coordinator definition
package coordinator
import (
"errors"
"net/http"
"sort"
"time"
"github.com/decentraland/webrtc-broker/internal/logging"
"github.com/decentraland/webrtc-broker/internal/ws"
"github.com/decentraland/webrtc-broker/pkg/authentication"
protocol "github.com... |
package configutil
import (
"context"
"errors"
"fmt"
"time"
"github.com/hashicorp/go-secure-stdlib/parseutil"
monitoring "cloud.google.com/go/monitoring/apiv3"
"github.com/armon/go-metrics"
"github.com/armon/go-metrics/circonus"
"github.com/armon/go-metrics/datadog"
"github.com/armon/go-metrics/prometheus"... |
package mdb
import (
"context"
"encoding/binary"
"fmt"
"sync"
"sync/atomic"
"time"
"github.com/AlexTransit/vender/internal/engine"
"github.com/AlexTransit/vender/internal/types"
"github.com/AlexTransit/vender/log2"
"github.com/juju/errors"
"github.com/temoto/atomic_clock"
)
const ErrCodeNone int32 = -1
c... |
/*
Sniperkit-Bot
- Status: analyzed
*/
// Copyright 2015-present, Cyrill @ <EMAIL>acher.fm and the CoreStore 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:/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: file1.proto
package multi_files
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.go... |
package ast
// VisitFunc is used to examine a node in the AST when walking the tree.
// It returns true or false as to whether or not the descendants of the
// given node should be visited. If it returns true, the node's children
// will be visisted; if false, they will not. When returning true, it
// can also return ... |
// Code generated by transpiler. DO NOT EDIT.
/**
* Go Video Downloader
*
* Copyright 2019 Tenta, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may ... |
package engine
import (
"bytes"
"encoding/binary"
"github.com/Monibuca/utils/v3"
"github.com/Monibuca/utils/v3/codec"
// "github.com/pion/rtp/codecs"
)
const (
fuaStartBitmask = 0b1000_0000
fuaEndBitmask = 0b0100_0000
stapaNALULengthSize = 2
naluRefIdcBitmask = 0x60
)
var sizeMap = map[uint8]in... |
package resolver
import (
"encoding/json"
"io/ioutil"
"log"
"path"
"path/filepath"
"sort"
"strings"
"github.com/bazelbuild/bazel-gazelle/config"
"github.com/bazelbuild/bazel-gazelle/label"
"github.com/bazelbuild/bazel-gazelle/repo"
"github.com/bazelbuild/bazel-gazelle/resolve"
"github.com/bazelbuild/bazel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.