text stringlengths 5.51k 28.1k |
|---|
/*
Copyright 2016 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... |
// Copyright (c) 2021 Terminus, 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 agree... |
package dht
import (
"sync"
"time"
"bytes"
"encoding/json"
"../../peer"
kb "../kbucket"
"../../swarm"
u "../../util"
"../../identify"
ma "github.com/multiformats/go-multiaddr"
ds "github.com/ipfs/go-datastore"
"github.com/golang/protobuf/proto"
"golang.org/x/crypto/ocsp"
"errors"
)
// TODO. SEE htt... |
// Package keeper specifies the keeper for the cvm module.
package keeper
import (
"bytes"
gobin "encoding/binary"
"math/big"
"github.com/tendermint/tendermint/libs/log"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
authtyp... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: downloader.proto
package downloader
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/services/geographic_view_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"
_ "g... |
/*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"os"
"os/signal"
"strings"
"sync"
"time"
cv "github.com/easeway/go-cliview"
"github.com/easeway/langx.go/errors"
"github.com/ttacon/emoji"
"github.com/codingbrain/clix.go/term"
"github.com/evo-cloud/hmake/docker"
hm "github.com/evo-cloud/hmake/... |
/*
* Copyright (c) 2015, <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 conditions and ... |
/*
* Simple kiss-light CLI client written in Go.
*
* SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) 2019-2021, <NAME>
* kiss-light Hub is released under the New BSD license (see LICENSE).
* Go to the project repo here:
* https://gitlab.com/kiss-light-project/Kiss-Light_Hub
*
* Written by: <NAME>
*/
pa... |
package core
import (
"fmt"
"log"
"os"
"path/filepath"
"strconv"
"sync"
"github.com/icon-project/rewardcalculator/common"
"github.com/icon-project/rewardcalculator/common/db"
"github.com/syndtr/goleveldb/leveldb/util"
)
const (
NumDelegate = 10
AccountDBNameFormat = "calculate_%d_%d_%d"
BackupDBN... |
package swarm
import (
"errors"
"fmt"
"math/rand"
"net"
"sync"
"time"
mconn "github.com/djbarber/ipfs-hack/metrics/conn"
conn "github.com/djbarber/ipfs-hack/p2p/net/conn"
addrutil "github.com/djbarber/ipfs-hack/p2p/net/swarm/addr"
peer "github.com/djbarber/ipfs-hack/p2p/peer"
lgbl "github.com/djbarber/ipfs... |
package multitenant
import (
"crypto/md5"
"fmt"
"io"
"strconv"
"sync"
"time"
log "github.com/Sirupsen/logrus"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/bluele/gcache"
"github.com/nats-io/nats"
"github.com/prometheus/cl... |
// 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... |
package load
import (
"context"
"crypto/ecdsa"
"fmt"
"math/big"
"net"
"net/url"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/... |
// editPageHandler.go contains the handler for creating a new page edit.
package site
import (
"database/sql"
"encoding/json"
"fmt"
"net/http"
"regexp"
"strings"
"zanaduu3/src/core"
"zanaduu3/src/database"
"zanaduu3/src/pages"
"zanaduu3/src/sessions"
"zanaduu3/src/tasks"
)
const (
CommentTitleLength = 5... |
package joe
import (
"context"
"fmt"
"reflect"
"runtime"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/pkg/errors"
"go.uber.org/zap"
)
// The Brain contains the core logic of a Bot by implementing an event handling
// system that dispatches events to all registered event handlers.
type Brain struct {
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/common/message/proto/message.proto
package proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ =... |
// package IPsec provides primitives for establishing IPsec in the fastdp mode.
package ipsec
import (
"crypto/rand"
"crypto/sha256"
"encoding/binary"
"fmt"
"io"
"net"
"strconv"
"sync"
"syscall"
"github.com/Sirupsen/logrus"
"github.com/coreos/go-iptables/iptables"
"github.com/pkg/errors"
"github.com/vish... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
package graphql
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"strconv"
"strings"
"github.com/graphql-go/graphql"
"github.com/graphql-go/graphql/language/ast"
"github.com/graphql-go/graphql/language/parser"
"github.com/julienschmidt/httprouter"
"github.com/project-flogo/core/data/coerce"
"github.co... |
// +build !windows
package dmidecode
import (
"errors"
"fmt"
"strconv"
"strings"
"time"
)
type ReqType uint8
const (
TypeBIOSInfo ReqType = iota
TypeSystem
TypeBaseBoard
TypeChassis
TypeProcessor
TypeMemoryController
TypeMemoryModule
TypeCache
TypePortConnector
TypeSystemSlots
TypeOnBoardDevices
Ty... |
// Package db implements bridge to persistent storage represented by Mongo database.
package db
import (
"context"
"fantom-api-graphql/internal/types"
"fmt"
"github.com/ethereum/go-ethereum/common"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"... |
/**
* Copyright 2020 Appvia Ltd <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
package main
import (
"encoding/xml"
"flag"
"fmt"
"github.com/appf-anu/chamber-tools"
"github.com/mdaffin/go-telegraf"
"io/ioutil"
"log"
"math"
"net/http"
"net/url"
"os"
"reflect"
"regexp"
"strconv"
"strings"
"time"
)
var (
errLog *log.Logger
)
var (
noMetrics, dummy, loopFirstDay bo... |
// Copyright 2013 Unknown
//
// 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 writ... |
// BSD 3-Clause License
// Copyright (c) 2022, <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
// li... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: call_event_handler.proto
package rpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grp... |
package node
import (
"errors"
"fmt"
"reflect"
"strconv"
"strings"
"time"
)
// Node is an abstraction of a struct field.
//
// It contains a reference to the actual field value among other useful
// information.
type Node struct {
Prefix string // The prefix name representing the parent(s).
// Actual struct ... |
package lint
import (
"bytes"
"errors"
"fmt"
tt "html/template"
"io"
"log"
"os"
"regexp"
"strings"
"github.com/b4b4r07/stein/lint/internal/policy"
"github.com/b4b4r07/stein/lint/internal/policy/loader"
"github.com/b4b4r07/stein/lint/internal/topological"
"github.com/b4b4r07/stein/pkg/logging"
"github.co... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: todo_service/todo_service.proto
package gen
import (
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protob... |
/*
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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: cs3/authprovider/v0alpha/authprovider.proto
package authproviderv0alphapb
import (
context "context"
fmt "fmt"
rpc "github.com/cs3org/go-cs3apis/cs3/rpc"
types "github.com/cs3org/go-cs3apis/cs3/types"
proto "github.com/golang/protobuf/proto"
grpc "goog... |
package consul_test
import (
"context"
"sync"
"testing"
"time"
"github.com/hashicorp/consul/api"
"github.com/robsignorelli/configify"
"github.com/robsignorelli/configify-consul"
"github.com/robsignorelli/configify/configifytest"
"github.com/stretchr/testify/suite"
)
var consulTestEndpoint = "127.0.0.1:8500"... |
/*
===========================================================================
> Game of Life and War
___________________________________________________________________________
Grid Square Types
0 = Neutral
1 = Player 1
2 = Player 2
3 = Red
4 = Pink
[5 - 10] = Red, in different
Credits
- <NAME> - The Idea for th... |
// Copyright 2019 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
package rapid
import (
"bytes"
"flag"
"fmt"
"log"
"os"
"reflect"
"rege... |
/*
* Copyright 2019 VMware, Inc. All rights reserved. Licensed under the Apache v2 License.
*/
package govcd
import (
"crypto/tls"
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"strings"
"time"
"github.com/vmware/go-vcloud-director/v2/types/v56"
"github.com/vmware/go-v... |
// Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
package main
import (
"crypto/md5"
"fmt"
"io"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
"github.com/apex/httplog"
"github.com/apex/log"
"github.com/apex/log/handlers/logfmt"
"github.com/blacktop/scifgif/ascii"
"github.com/blacktop/scifgif/database"
"github.com/blacktop/scifgif/dilbert"
"git... |
// Copyright 2021 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
package messageservice
import (
"bcjh-bot/config"
"bcjh-bot/global"
"bcjh-bot/model/database"
"bcjh-bot/scheduler"
"bcjh-bot/scheduler/onebot"
"bcjh-bot/util/e"
"bcjh-bot/util/logger"
"bytes"
"encoding/base64"
"fmt"
"github.com/golang/freetype"
"github.com/nfnt/resize"
"image"
"image/color"
"image/draw"... |
package relay
import (
"bytes"
"crypto/tls"
"errors"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"net/http"
"net/rpc"
"net/url"
"regexp"
"sync"
"time"
"github.com/atsu/goat/health"
"github.com/gorilla/mux"
"github.com/zserge/metric"
)
// Response is a container that encapsulates a response from a relayed req... |
// gomuks - A terminal Matrix client written in Go.
// Copyright (C) 2020 <NAME>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your opti... |
package main
import (
"bufio"
"encoding/csv"
"flag"
"fmt"
"io"
"log"
"os"
"sort"
"strconv"
"strings"
"time"
"github.com/olekukonko/tablewriter"
"github.com/soulsplit/goex"
"github.com/soulsplit/goex/builder"
)
var apiGoex goex.API = getAPIHandle()
type matrix [][]string
type credentials struct {
AP... |
package main
import (
"fmt"
//"context"
//"syscall"
"net"
"os"
"time"
"bufio"
"io/ioutil"
"encoding/hex"
"encoding/binary"
)
const (
// SERVER_HOST="172.24.223.187"
SERVER_HOST="192.168.49.132"
SERVER_PORT="8888"
SERVER_TYPE="tcp"
)
func main() {
//config := &net.ListenConfig(Co... |
// Copyright 2012-2015 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT-license.
// See http://olivere.mit-license.org/license.txt for details.
package elastic
import (
"encoding/json"
"fmt"
"net/url"
"reflect"
"strings"
"log"
"gopkg.in/olivere/elastic.v3/uritemplates... |
package main
import (
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"log"
"math/rand"
"net"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
consulapi "github.com/hashicorp/consul/api"
cleanhttp "github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/go-sockaddr/template"
)
const defaultIn... |
package main
import (
"errors"
"flag"
"fmt"
"io/ioutil"
"math/big"
"math/rand"
"net"
"net/http"
"net/url"
"os"
"os/signal"
"runtime"
"strconv"
"strings"
"sync"
"sync/atomic"
"syscall"
"time"
"github.com/json-iterator/go"
)
type txType uint
const (
syncTx txType = iota
asyncTx
commitTx
unconf... |
package goinsee
import (
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strings"
"time"
"github.com/guregu/null"
"github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/log"
)
var (
inseeAuthUrl = "https://api.insee.fr/token"
inseeC... |
// Code generated by protoc-gen-go.
// source: messages.proto
// DO NOT EDIT!
/*
Package serverpb is a generated protocol buffer package.
It is generated from these files:
messages.proto
It has these top-level messages:
SelectGroupRequest
SelectGroupResponse
SelectProfileRequest
SelectProfileResponse
GroupPutR... |
// +build !providerless
/*
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 ... |
/*
* MinIO Cloud Storage, (C) 2015-2019 MinIO, 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 applicab... |
package randomizer
import (
"fmt"
"io"
"os"
"regexp"
"sort"
"strconv"
"strings"
"gopkg.in/yaml.v2"
)
// loaded from yaml, then converted to asm.
type asmData struct {
filename string
Common yaml.MapSlice
Floating yaml.MapSlice
Seasons yaml.MapSlice
Ages yaml.MapSlice
}
// designates a position a... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: greeter/v1/greeter.proto
package greeter
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.g... |
// Package servers provides a Manager interface for Manager managed
// agent.Server objects. The servers package manages servers from a Consul
// client's perspective (i.e. a list of servers that a client talks with for
// RPCs). The servers package does not provide any API guarantees and should
// be called only by ... |
/*
* 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 ethereum
import (
"context"
"math/big"
"sync"
"time"
"github.com/consensys/orchestrate/pkg/toolkit/app/log"
"github.com/consensys/orchestrate/pkg/types/entities"
"github.com/consensys/orchestrate/pkg/utils"
"github.com/consensys/orchestrate/services/tx-listener/metrics"
"github.com/consensys/orchest... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto
package websecurityscanner
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.... |
/*
Copyright (c) 2015, Alcatel-Lucent 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 retain the above copyright
notice, this list of condi... |
// Copyright 2015 Light Code Labs, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/data/tap/v2alpha/http.proto
package envoy_data_tap_v2alpha
import (
fmt "fmt"
core "github.com/altipla-consulting/envoy-api/envoy/api/v2/core"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they a... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: udpa/annotations/migrate.proto
package udpa_annotations
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
math "math"
)
// Reference imports to suppress errors if they are not ot... |
package shuffle
import (
"bytes"
"context"
"fmt"
"io"
"math"
"math/rand"
"testing"
"time"
"github.com/bradleyjkemp/cupaloy"
"github.com/estuary/flow/go/flow"
pf "github.com/estuary/flow/go/protocols/flow"
"github.com/gogo/protobuf/proto"
"github.com/stretchr/testify/require"
pb "go.gazette.dev/core/brok... |
// Copyright 2015 <NAME>. All rights reserved.
//
// 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, mer... |
package handler
import (
"fmt"
"github.com/bytedream/sshoneypot/sshoneypot/info"
"github.com/pborman/getopt"
"math/rand"
"mime"
"net"
"regexp"
"strconv"
"strings"
"time"
)
func randomIp() string {
return fmt.Sprintf("%d.%d.%d.%d", rand.Intn(254), rand.Intn(254), rand.Intn(254), rand.Intn(254))
}
func Ifco... |
// Copyright 2019 Yunion
//
// 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 kopach
import (
"context"
"crypto/rand"
"fmt"
"net"
"os"
"runtime"
"time"
"github.com/cybriq/gotiny"
"github.com/cybriq/p9/pkg/chainrpc/p2padvt"
"github.com/cybriq/p9/pkg/chainrpc/templates"
"github.com/cybriq/p9/pkg/constant"
"github.com/cybriq/p9/pkg/log"
"github.com/cybriq/p9/pkg/pipe"
"gith... |
// +build f303xe
// Peripheral: CAN_Periph Controller Area Network.
// Instances:
// CAN mmap.CAN_BASE
// Registers:
// 0x00 32 MCR Master control register.
// 0x04 32 MSR Master status register.
// 0x08 32 TSR Transmit status register.
// 0x0C 32 RF0R Receive FIFO 0 register.
// 0x10 32 RF1R ... |
// Copyright (c) 2012-2020 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT license found in the LICENSE file.
package codec
import (
"bufio"
"bytes"
"encoding/hex"
"math"
"os"
"regexp"
"strings"
"testing"
)
func TestCborIndefiniteLength(t *testing.T) {
oldMapType := testCborH.Ma... |
/*
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... |
// Copyright © 2019 IBM Corporation and others.
//
// 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 la... |
package localizable
const ENGLISH = "en"
// one string per line, no multiline
// semicolon is not compulsory
const EN = `
"appName" = "godcr";
"appTitle" = "godcr (%s)";
"recentTransactions" = "Recent Transactions";
"recentProposals" = "Recent Proposals";
"seeAll" = "See all";
"send" = "Send";
"receive" = "Receive";
... |
package priority_task_scheduler
import (
"container/list"
"context"
"flag"
"sync"
"time"
"github.com/buildbuddy-io/buildbuddy/enterprise/server/remote_execution/executor"
"github.com/buildbuddy-io/buildbuddy/enterprise/server/scheduling/priority_queue"
"github.com/buildbuddy-io/buildbuddy/enterprise/server/sc... |
package proj
import (
"fmt"
"math"
"runtime"
"strconv"
"strings"
"sync"
"database/sql/driver"
"github.com/airbusgeo/geocube/internal/utils"
"github.com/airbusgeo/geocube/internal/utils/affine"
"github.com/airbusgeo/godal"
"github.com/twpayne/go-geom"
"github.com/twpayne/go-geom/encoding/ewkbhex"
)
const... |
// Package AppInsightsMonitor adds Azure AppInsights webtest support in IngressMonitorController
package appinsights
import (
"context"
"encoding/xml"
"fmt"
"net/http"
"os"
"github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights"
insightsAlert "github.com/Azure/azure-sdk-for-go/service... |
package scheduler
import (
"fmt"
"sort"
"sync"
"time"
"github.com/benbjohnson/clock"
"github.com/golang/protobuf/ptypes"
"github.com/lovoo/goka"
"github.com/lovoo/goka/codec"
"github.com/lovoo/goka/logger"
"github.com/lovoo/goka/multierr"
)
const (
// group name of the scheduler
orderGroup prefixable = ... |
package server
import (
"context"
"errors"
"fmt"
"math/big"
"net"
"net/http"
"os"
"path/filepath"
"time"
"github.com/0xPolygon/polygon-edge/archive"
"github.com/0xPolygon/polygon-edge/blockchain"
"github.com/0xPolygon/polygon-edge/chain"
"github.com/0xPolygon/polygon-edge/consensus"
"github.com/0xPolygo... |
// Copyright 2016 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 resources
import (
"context"
"errors"
"fmt"
productsConfig "github.com/integr8ly/integreatly-operator/pkg/config"
integreatlyv1alpha1 "github.com/integr8ly/integreatly-operator/apis/v1alpha1"
"github.com/integr8ly/integreatly-operator/pkg/resources/backup"
l "github.com/integr8ly/integreatly-operator... |
// Copyright 2020-2021 Buf Technologies, 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.6.1
// source: user_message.proto
package pb
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golan... |
package rscore
/*
Package of core operations and data types
Used by randomslide
*/
import (
"os"
"io"
"fmt"
"log"
"sync"
"time"
"regexp"
"strings"
"strconv"
"net/http"
"io/ioutil"
"os/signal"
"math/rand"
"encoding/json"
"path/filepath"
"github... |
// Copyright 2018 GRAIL, Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// Package frame implements a typed, columnar data structure that
// represents data vectors throughout Bigslice.
//
// The package contains the definition of Fr... |
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"sort"
"strings"
"github.com/go-graphite/carbonapi/expr/types"
)
// It's ok to ignore values that's only in 'capi' as currently I don't care about superset of features.
func isUnsortedSuggestionSlicesEqual(capi, grWeb [... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.15.8
// source: common/membership.proto
package common
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
syn... |
package main
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
uuid "github.com/nu7hatch/gouuid"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"strings"
"time"
)
type Button struct {
caption string
handler *func(*... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: mesh/v1alpha1/dataplane_insight.proto
package v1alpha1
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference... |
// 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.
// TODO(jsimsa):
// - Add support for shell files without the .sh suffix.
// - Add support for Makefiles.
// - Decide what to do with the contents of the ... |
// Copyright 2017 - 2019 <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
package exchange
import (
"encoding/json"
"errors"
"fmt"
"github.com/open-horizon/anax/cli/cliutils"
"github.com/open-horizon/anax/exchange"
"github.com/open-horizon/rsapss-tool/sign"
"github.com/open-horizon/rsapss-tool/verify"
"net/http"
"os"
"path/filepath"
"strings"
)
// This can't be a const because a... |
// Copyright 2018 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum 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... |
package plugin
import (
"bytes"
"net/url"
"regexp"
"strings"
"text/template"
"github.com/Masterminds/sprig/v3"
"github.com/pkg/errors"
)
const mdCommentRegexPattern string = `(<!--[\S\s]+?-->)`
// There is no public documentation of what constitutes a GitHub username, but
// according to the error messages r... |
// Copyright (c) 2014 by <NAME> <<EMAIL>>
// All rights reserved. Distributed under the Simplified BSD License.
package main
import (
"bytes"
"fmt"
"image"
_ "image/jpeg"
"log"
"math"
"os"
"strings"
"unicode"
"unicode/utf8"
"github.com/tux21b/imp/imp/otf"
"github.com/tux21b/imp/imp/pdf"
"github.com/tux2... |
// Code generated by protoc-gen-go.
// source: google/api/servicecontrol/v1/check_error.proto
// DO NOT EDIT!
/*
Package servicecontrol is a generated protocol buffer package.
It is generated from these files:
google/api/servicecontrol/v1/check_error.proto
google/api/servicecontrol/v1/distribution.proto
google/api... |
/*
Copyright © 2019 Doppler <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
package main
import (
"log"
xp "github.com/BurntSushi/xgb/xproto"
)
type orientation int
const (
noOrientation orientation = iota
horizontal
vertical
)
type traversal int
const (
next traversal = iota
prev
)
type listing int
const (
listNone listing = iota
listWindows
listWorkspaces
)
// offscreenXY ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/filter/http/buffer/v2/buffer.proto
package v2
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import duration "github.com/golang/protobuf/ptypes/duration"
import w... |
package main
import (
. "./llrp"
"bufio"
log "github.com/sirupsen/logrus"
"math/rand"
"os"
"reflect"
"strconv"
"strings"
sc "text/scanner"
"time"
)
var (
card_evt bool = true
count = 0
limit_card = 100000
toggle = true
host *Conn
am bool
)
func handler(msg *Msg... |
// Copyright 2015 Google Inc. All Rights Reserved.
// This file is available under the Apache license.
package vm
// mtail programs may be updated while mtail is running, and they will be
// reloaded without having to restart the mtail process. Programs can be
// created and deleted as well, and some configuration sy... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.