text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/services/account_budget_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v2/resources"
_ "go... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.8
// source: internal/proto/search/search.proto
package search
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
proto... |
/*
A partitioner assigns partitions within a consumer group like a
consistent hash would. When group membership changes the least
number of partitions are reassigned.
I don't actually use a consistent hash because such algos take
either a lot of CPU (the max(N-hash-functions) algo) or a lot
of ram (the poi... |
package controller
import (
"encoding/json"
"fmt"
"strings"
"time"
pkgerrors "github.com/pkg/errors"
"github.com/google/go-cmp/cmp"
faasv1 "github.com/openfaas-incubator/ingress-operator/pkg/apis/openfaas/v1alpha2"
clientset "github.com/openfaas-incubator/ingress-operator/pkg/client/clientset/versioned"
faa... |
// Copyright 2016 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
/*
Copyright 2018 The OpenEBS Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
package hare
import (
"context"
"errors"
"fmt"
"sync"
"sync/atomic"
"time"
"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/common/util"
"github.com/spacemeshos/go-spacemesh/hare/config"
"github.com/spacemeshos/go-spacemesh/log"
"github.com/spacemeshos/go-spacemesh/p2... |
package cmd
import (
"context"
"crypto/ecdsa"
"encoding/hex"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"math/big"
"net/http"
"regexp"
"time"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: create.proto
package collector
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
inspection "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model... |
package client
import (
"bytes"
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"fmt"
"io"
"net"
"net/http"
"net/url"
"os"
"path"
"time"
"github.com/go-logr/logr"
"github.com/go-openapi/runtime"
"github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"
"github.com/juju/persistent-co... |
package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
"sync"
)
/////////////////////////////////////////////////////////////
// Global vars
var solverWG sync.WaitGroup
var integerSolution IntegerSolution
var simplexSolutionChannel chan *SimplexSolution
var nodesChannel chan *TreeNode
///////////... |
// Copyright 2019 <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 writi... |
package preparemedia
import (
"errors"
"fmt"
"math"
"path"
"regexp"
"strconv"
"strings"
"sync"
"time"
"github.com/kevintavog/findaphoto/common"
"github.com/kevintavog/findaphoto/indexer/steps/checkthumbnail"
"github.com/kevintavog/findaphoto/indexer/steps/resolveplacename"
)
const numConsumers = 8
var q... |
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"math"
"net/http"
"strconv"
"strings"
"sync"
"time"
"github.com/gin-gonic/gin"
"github.com/incognitochain/coin-service/shared"
"github.com/incognitochain/go-incognito-sdk-v2/coin"
"github.com/incognitochain/go-incognito-sdk-v2/common"
"github.... |
package blsbftv2
import (
"context"
"encoding/json"
"errors"
"fmt"
"sort"
"time"
lru "github.com/hashicorp/golang-lru"
"github.com/incognitochain/incognito-chain/common"
"github.com/incognitochain/incognito-chain/consensus/signatureschemes/blsmultisig"
"github.com/incognitochain/incognito-chain/incognitokey... |
// Code generated by protoc-gen-go.
// source: service.proto
// DO NOT EDIT!
/*
Package readinglist is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
PutLinkRequest
GetListLimitRequest
Link
LinkRequest
Links
Message
*/
package readinglist
... |
package handler
import (
"context"
"fmt"
pb "github.com/aibotsoft/gen/fortedpb"
"github.com/aibotsoft/micro/config"
"github.com/aibotsoft/micro/config_client"
"github.com/aibotsoft/micro/status"
"github.com/aibotsoft/micro/telegram"
"github.com/aibotsoft/micro/util"
"github.com/aibotsoft/surebet-service/pkg/c... |
package main
import (
"context"
"flag"
"fmt"
"io/ioutil"
"log"
"math/rand"
"net"
"net/http"
_ "net/http/pprof"
"net/url"
"os"
"strings"
"sync"
"time"
fgpb "github.com/Civil/ch-flamegraphs/flamegraphpb"
"github.com/Civil/ch-flamegraphs/helper"
pb "github.com/go-graphite/carbonzipper/carbonzipperpb3"
... |
package tracetracker
import (
"context"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/signalfx/golib/v3/datapoint"
"github.com/signalfx/golib/v3/sfxclient"
"github.com/signalfx/golib/v3/trace"
"github.com/signalfx/signalfx-agent/pkg/apm/correlations"
"github.com/signalfx/signalfx-agent/pkg/apm/log"
)
... |
package evntrace
import (
"syscall"
"github.com/mel2oo/win32/types"
)
var (
// EventTraceGuid is used to identify a event tracing session
EventTraceGuid = syscall.GUID{
Data1: 0x68fdd900,
Data2: 0x4a3e,
Data3: 0x11d1,
Data4: [8]byte{0x84, 0xf4, 0x00, 0x00, 0xf8, 0x04, 0x64, 0xe3},
}
// SystemTraceCont... |
package ruleaction
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"runtime/debug"
"strconv"
"github.com/TIBCOSoftware/flogo-lib/core/action"
"github.com/TIBCOSoftware/flogo-lib/core/data"
"github.com/TIBCOSoftware/flogo-lib/core/trigger"
"github.com/TIBCOSoftware/flogo-lib/logger"
"github.com/... |
package twitter
import (
"context"
"errors"
"fmt"
"net/http"
"os"
"github.com/dghubble/oauth1"
twitter "github.com/g8rswimmer/go-twitter/v2"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/plugin"
"github.com/turbot/steampipe-plugin-sdk/plugin/transform"
)
type ... |
package producer
import (
"bytes"
"fmt"
"os"
"strconv"
"strings"
"time"
"github.com/klauspost/compress/zlib"
"github.com/zjykzk/rocketmq-client-go"
"github.com/zjykzk/rocketmq-client-go/client"
"github.com/zjykzk/rocketmq-client-go/client/rpc"
"github.com/zjykzk/rocketmq-client-go/log"
"github.com/zjykzk... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.21.0
// protoc v3.6.1
// source: backend2.proto
package proto
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org... |
// same code just tweaked a bit make it different files why not
package main
import (
"bytes"
"crypto/tls"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
"net/url"
"os"
"os/signal"
"regexp"
"strings"
"sync"
"time"
"github.com/PuerkitoBio/goquery"
"github.com/atotto/clipboard"
"github.com/bndr/gotab... |
// Copyright 2018 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT license
// that can be found in the LICENSE file.
package compiler
const (
// List of compile states
cmMain = iota + 1
cmRun // run command
cmLCurly // {
cmBody // body of the code
cmExp // express... |
// Copyright 2016 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Code generated by jig; DO NOT EDIT.
//go:generate jig
package test
import (
"fmt"
"math"
"runtime"
"sync"
"sync/atomic"
"time"
)
//jig:name ChanPadding
const _PADDING = 1 // 0 turns padding off, 1 turns it on.
const _EXTRA_PADDING = 0 * 64 // multiples of 64, benefits inconclusive.
type pad60 [_PADDING ... |
// Copyright (c) 2016 OpenM++
// This code is licensed under the MIT license (see LICENSE.txt for details)
package db
// Model run part of database: run, workset, task, profile.
//
// That portion of model database updated during model run and should not be cached.
// Model run status (run_lst table) and mo... |
package main
import (
// JQUERY: Jquery allows many non type-safe operations.
// Uses of jquery are marked in the code as they are suspect.
"github.com/gopherjs/jquery"
//"honnef.co/go/js/console"
s5 "github.com/seven5/seven5/client"
"strings"
)
var (
//These are static references to the dom. They each specify... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.13.0
// source: sym/messages/expiration.proto
package messages
import (
proto "github.com/golang/protobuf/proto"
models "github.com/symopsio/types/go/models"
protoreflect "google.golang.org/protobuf/reflect... |
package pvdata
import (
"bytes"
"encoding/binary"
"fmt"
"reflect"
"strings"
"testing"
"github.com/google/go-cmp/cmp"
)
func TestPVSize(t *testing.T) {
s := PVSize(0)
var buf bytes.Buffer
pvf := PVField(&s)
if err := pvf.PVEncode(&EncoderState{
Buf: &buf,
ByteOrder: binary.BigEndian,
}); err != ... |
//
// 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, modify, merge, publish, dis... |
package cmd
import (
"context"
"flag"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"sort"
"strings"
"github.com/ktr0731/dept/deptfile"
"github.com/ktr0731/dept/filegen"
"github.com/ktr0731/dept/gocmd"
"github.com/ktr0731/dept/logger"
"github.com/mitchellh/cli"
"github.com/mitchellh/copystructure"
"github.com... |
//
// Copyright (c) 2016-2020 The Aurora Authors. All rights reserved.
// This program is free software. It comes without any warranty,
// to the extent permitted by applicable law. You can redistribute
// it and/or modify it under the terms of the Unlicense. See LICENSE
// file for more details or see below.
//
//
//... |
package domain
import (
"bytes"
"context"
"encoding/base64"
"encoding/binary"
"errors"
"fmt"
"net/url"
"sort"
"strings"
"time"
eh "github.com/looplab/eventhorizon"
"github.com/mitchellh/mapstructure"
log "github.com/superchalupa/sailfish/src/log"
"github.com/superchalupa/sailfish/src/looplab/event"
)
t... |
package main
import (
"flag"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
"github.com/pkg/profile"
)
const (
orgPatStr = "" +
"(?im)^(" +
"\\*.*" + // headline
"|((?s)[ \\t]*#\\+begin_.*?\\n#\\+end_[^\\n]*)" + // block
"|((?s)[ \\t]*#\\+begin:.*?\\n#\\+end:[ \\t]*)" + // dynblock
"|[ \\t]*#\\+[a-z... |
/*
* Copyright 2019 Grabtaxi Holdings PTE LTE (GRAB), All rights reserved.
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
*/
package scanner
import (
"errors"
"fmt"
"io/ioutil"
"os"
"path"
"regexp"
"strings"
"sync"
"time"
"gopkg.in/src-d/go-git.v4/plu... |
package crypto
import (
"crypto/rand"
"crypto/sha512"
"hash"
"github.com/pkg/errors"
"github.com/wavesplatform/gowaves/pkg/crypto/internal"
)
// This code is a port of the public domain, VXEdDSA C implementation by <NAME> / Open Whisper Systems.
// Specification: https://whispersystems.org/docs/specifications/x... |
package main
import (
"flag"
"fmt"
"html/template"
"log"
"math"
"net/http"
_ "net/http/pprof"
"os"
"regexp"
"strconv"
"time"
"github.com/RdecKa/0xAI/common/game/hex"
"github.com/RdecKa/0xAI/server/cmpr"
"github.com/RdecKa/0xAI/server/hexgame"
"github.com/RdecKa/0xAI/server/hexplayer"
"github.com/goril... |
package qliksense
import (
"bufio"
"bytes"
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"sort"
"strings"
"sync"
"time"
"gopkg.in/yaml.v2"
"github.com/gofrs/flock"
"github.com/pkg/errors"
"helm.sh/helm/v3/pkg/action"
"helm.sh/helm/v3/pkg/chart"
"helm.sh/helm/v3/pkg/chart/loader"
"helm.sh/helm/v... |
/*
Copyright 2017 Heptio Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
// Copyright © 2018 Banzai Cloud
//
// 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 endure
import (
"reflect"
"github.com/spiral/endure/pkg/graph"
"github.com/spiral/endure/pkg/vertex"
"github.com/spiral/errors"
"go.uber.org/zap"
)
/*
addProviders:
Adds a provided type via the Provider interface:
1. Key to the 'Vertex Provides' map with empty ProvidedEntry, because we use key at the In... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/errors/customer_client_link_error.proto
package errors
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors i... |
/*******************************************************************************
*
* Copyright 2017 SAP SE
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You should have received a copy of the License along with this
* program. If... |
package state
import (
"testing"
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/abci/types"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/basecoin/plugins/ibc"
"github.com/tendermint/basecoin/types"
)
//--------------------------------------------------------
// test environment... |
package check
import (
"fmt"
"io"
"net"
"net/http"
"net/http/httputil"
"net/url"
"strconv"
"strings"
"sync"
"time"
"github.com/WAY29/pocV/internal/common/errors"
"github.com/WAY29/pocV/pkg/xray/cel"
"github.com/WAY29/pocV/pkg/xray/requests"
xray_structs "github.com/WAY29/pocV/pkg/xray/structs"
"github.... |
package main
import (
"fmt"
"math/rand"
"sort"
"strings"
"sync"
"time"
)
// MessageHandler interface handles sending of messages to players
type MessageHandler interface {
SendMessage(p *Player, m *Message) error
EditMessage(p *Player, m *Message) error
GetMessage(p *Player) <-chan string
}
// Message struc... |
package main
import (
"bufio"
"fmt"
"github.com/1a1a11a/c2dnPrototype/src/myconst"
"github.com/1a1a11a/c2dnPrototype/src/myutils"
"io"
"io/ioutil"
"math"
"math/rand"
"net/http"
"runtime"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
)
func ProcessHeader(headerStr string) (cacheHitType int) {
if head... |
//go:generate stringer -type=Hook
//go:generate stringer -type=Message
//go:generate stringer -type=VKCode
package types
// Hook represents Windows hook types.
type Hook uintptr
const (
WH_JOURNALRECORD Hook = 0
WH_JOURNALPLAYBACK Hook = 1
WH_KEYBOARD Hook = 2
WH_GETMESSAGE Hook = 3
WH_CALLWNDPROC... |
/*
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 © 2017 Microsoft <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publ... |
package nlp
import (
"container/list"
"math"
"strconv"
"strings"
"github.com/fatih/set"
//"os"
)
const (
DICTIONARY_INDEX = 1 + iota
DICTIONARY_LEMMA_PREF
DICTIONARY_POS_PREF
DICTIONARY_ENTRIES
)
const (
TAG_DIVIDER = "|"
LEMMA_DIVIDER = " "
)
type Dictionary struct {
InverseDic bool
Re... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/user_interest.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/goog... |
package ui
import (
"git.kirsle.net/go/render"
"git.kirsle.net/go/ui/theme"
)
// BorderStyle options for widget.SetBorderStyle()
type BorderStyle string
// Styles for a widget border.
const (
BorderNone BorderStyle = ""
BorderSolid BorderStyle = "solid"
BorderRaised = "raised"
BorderSunken ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/resources/user_interest.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/googleapis/ads/goog... |
// Copyright 2017 The cypherBFT Authors
// This file is part of the cypherBFT library.
//
// The cypherBFT library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
/... |
//Palette © <NAME> 2021
package lobby
import (
"Palette/game"
"Palette/player"
"fmt"
"log"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/gorilla/websocket"
)
//Data describes all the data a lobby object holds
type Data struct {
name, password string
game *game.Data
playe... |
package main
import (
"encoding/json"
"flag"
"github.com/davidk/anaconda"
"github.com/davidk/lru"
"github.com/davidk/memberset"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
"io/ioutil"
"net/http"
"net/url"
"strco... |
package main // import "github.com/synerex/rpa_user"
import (
"context"
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"strconv"
"strings"
"sync"
"github.com/jinzhu/gorm"
"golang.org/x/crypto/bcrypt"
rpa "github.com/synerex/proto_rpa"
api "github.com/synerex/synerex_api"
proto "github.com/synerex/synere... |
// 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 report
import (
"math"
"time"
"github.com/adedayo/checkmate-core/pkg/code"
"github.com/adedayo/checkmate-core/pkg/diagnostics"
"github.com/adedayo/checkmate-core/pkg/projects"
"github.com/adedayo/checkmate-core/pkg/scores"
)
// Model models the generated report
type Model struct {
Grade ... |
// Code generated by protoc-gen-go.
// source: remote.proto
// DO NOT EDIT!
/*
Package remote is a generated protocol buffer package.
It is generated from these files:
remote.proto
It has these top-level messages:
Sample
LabelPair
TimeSeries
WriteRequest
ReadRequest
ReadResponse
Query
LabelMatcher
QueryRes... |
// This file was generated from JSON Schema using quicktype, do not modify it directly.
// To parse and unparse this JSON data, add this code to your project and do:
//
// types, err := UnmarshalTypes(bytes)
// bytes, err = types.Marshal()
//
// getIssueCommentsArguments, err := UnmarshalGetIssueCommentsArgume... |
package getql
import (
"bytes"
"encoding/json"
"fmt"
"math"
"net/http"
"net/url"
"regexp"
"sort"
"strconv"
"strings"
"time"
"github.com/jmoiron/sqlx"
)
// Suffixes
const (
Sel = "SEL" // SELECT
Frm = "FRM" // FROM
// Column Operator Value/Values
// name = 'bob'
// name IN ('b... |
package messaging
import (
"context"
"errors"
"fmt"
"strconv"
"time"
"github.com/gidyon/micro/v2/pkg/middleware/grpc/auth"
"github.com/gidyon/micro/v2/utils/errs"
"github.com/gidyon/micro/v2/utils/mdutil"
"github.com/gidyon/services/pkg/api/messaging/call"
"github.com/gidyon/services/pkg/api/messaging/email... |
// Copyright 2016 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.6.1
// source: yandex/cloud/containerregistry/v1/image.proto
package containerregistry
import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protor... |
// Copyright ©2014 The gonum 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 distuv
import (
"math"
"math/rand"
"github.com/gonum/floats"
"github.com/gonum/stat"
)
// UnitNormal is an instantiation of the standard norm... |
// Package imagetype provides types and functions for identifying Image document types
package imagetype
import (
"errors"
"strings"
)
var (
// ErrDataLength is an error for data length
ErrDataLength = errors.New("error the data is not long enough")
// ImageType stringer Index
_ImageTypeIndex = [...]uint{0, 24... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: loadbalancer.proto
package network
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 "go... |
// nolint forbidigo
package testproject
import (
"context"
"errors"
"fmt"
"os"
"path/filepath"
"regexp"
"runtime"
"strings"
"sync"
"testing"
"time"
"github.com/juju/fslock"
"github.com/spf13/cast"
"github.com/stretchr/testify/assert"
"github.com/keboola/keboola-as-code/internal/pkg/client"
"github.co... |
package tsdmetrics
import (
"bufio"
"bytes"
"compress/gzip"
"context"
"encoding/json"
"fmt"
"net"
"net/http"
"time"
"github.com/rcrowley/go-metrics"
log "github.com/sirupsen/logrus"
)
type OpenTSDBFormat int
const (
Tcollector OpenTSDBFormat = iota
Json
)
type OpenTSDBPoint struct {
Metric string ... |
// Copyright (C) 2010, <NAME> <<EMAIL>>. All rights reserved.
package log4go
import (
"bytes"
"fmt"
"os"
"strings"
"sync"
"time"
)
// This log writer sends output to a file
type FileLog2Writer struct {
rec chan *LogRecord
out chan *LogBuffer
rot chan bool
logBuffer *LogBuffer
// The op... |
package main
import (
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
)
// Login
func (a *goBlog) loginRouter(r chi.Router) {
r.Use(a.authMiddleware)
r.Get("/login", serveLogin)
r.Get("/logout", a.serveLogout)
}
// Micropub
func (a *goBlog) micropubRouter(r chi.Router) {
r.Use(a.checkIndieAuth... |
// Package crosswd provides a base for implementing crossword applications
// using data in the .puz format.
package crosswd
import (
"bytes"
"encoding/binary"
"errors"
"io"
"io/ioutil"
"strings"
"golang.org/x/text/encoding"
"golang.org/x/text/encoding/charmap"
)
// .puz constants
const (
Magic = "ACRO... |
// Copyright (C) 2021 Gridworkz Co., Ltd.
// KATO, Application Management Platform
// 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 r... |
// Copyright (c) 2017-2018 The qitmeer developers
// 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 peerserver
import (
"fmt"
"github.com/Qitmeer/qitmeer-lib/co... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package subtle
import (
"encoding/base64"
"encoding/json"
"fmt"
"testing"
"github.com/google/tink/go/aead"
subtleaead "github.com/google/tink/go/aead/subtle"
hybrid "github.com/google/tink/go/hybrid/subtle"
... |
// Copyright 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 lsp
import (
"context"
"crypto/sha256"
"fmt"
"os"
"path/filepath"
"strings"
"sync"
"golang.org/x/tools/internal/event"
"golang.org/x/tools/in... |
/*
Copyright 2015 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 v1beta1
import (
"github.com/openshift/assisted-service/api/common"
hivev1 "github.com/openshift/hive/apis/hive/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const (
ClusterSpecSyncedCondition string = "SpecSynced"
ClusterCompletedCondition string = hivev1.ClusterInsta... |
/*
Copyright 2011 The Perkeep Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
package wtserver
import (
"bytes"
"errors"
"fmt"
"net"
"sync"
"sync/atomic"
"time"
"github.com/breez/lightninglib/lnwire"
"github.com/breez/lightninglib/watchtower/wtdb"
"github.com/breez/lightninglib/watchtower/wtwire"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcd/connmgr"
"github.com/btcsu... |
// Copyright (c) 2017 Tigera, 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 applica... |
// Package kerr contains Kafka errors.
//
// The errors are undocumented to avoid duplicating the official descriptions
// that can be found at https://kafka.apache.org/protocol.html#protocol_error_codes (although,
// this code does duplicate the descriptions into the errors themselves, so the
// descriptions can be se... |
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.
package e2eutil
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io/ioutil"
"math"
"math/rand"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"runtime"
"strings"
"syscall"
"testing"
"time"
"github.com/go-kit/kit/log"
... |
/*
MIT License
Copyright (c) 2021 StorageOS
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, dist... |
/*
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, ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0-devel
// protoc v3.11.4
// source: rcode.proto
package rcode
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.4
// source: xsuportal/services/registration/join.proto
package registration
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "go... |
/*
* riak-sniffer.go
*
* A straightforward program for sniffing Riak proto-buffer streams and providing
* diagnostic information on the realtime queries your database is handling.
*
* FIXME: this assumes IPv4.
*
* Taken from:
* https://github.com/xb95/riak-sniffer
*
* See the LICENSE file at the above lin... |
package prompt
import (
"bytes"
"image/color"
"strings"
"code.google.com/p/jamslam-freetype-go/freetype/truetype"
"github.com/BurntSushi/xgb/xproto"
"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/keybind"
"github.com/BurntSushi/xgbutil/mousebind"
"github.com/BurntSushi/xgbutil/xevent"
"git... |
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package java
import (
"bytes"
"fmt"
"log"
"path"
"v.io/x/ref/lib/vdl/compile"
"v.io/x/ref/lib/vdl/vdlutil"
)
const clientImplTmpl = header + `
//... |
package cmd
import (
"bufio"
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"time"
"github.com/jenkins-x/jx/pkg/apis/jenkins.io/v1"
"github.com/jenkins-x/jx/pkg/chats"
"github.com/jenkins-x/jx/pkg/config"
"github.com/jenkins-x/jx/pkg/gits"
"github.com/jenkins-x/jx/pkg/i... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: credentialmonitor.proto
package admin
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference i... |
// Copyright (c) 2017-2018 Zededa, Inc.
// SPDX-License-Identifier: Apache-2.0
// Process input in the form of collections of DownloaderConfig structs
// and publish the results as collections of DownloaderStatus structs.
// There are several inputs and outputs based on the objType.
package downloader
import (
"fla... |
//go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... |
package main
import (
"encoding/csv"
"encoding/json"
"errors"
"flag"
"fmt"
"io"
"log"
"os"
"sort"
"strconv"
"strings"
"unicode/utf8"
goparquet "github.com/gulshalla/parquet-go"
"github.com/gulshalla/parquet-go/parquet"
"github.com/gulshalla/parquet-go/parquetschema"
)
var printLog = func(string, ...in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.