text stringlengths 5.51k 28.1k |
|---|
// Copyright 2019 The UNICORE Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file
//
// Author: <NAME> <<EMAIL>>
package buildtool
import (
"bufio"
"io"
"os"
"strings"
u "tools/srcs/common"
)
const (
configLine = iota //... |
// Enhanced Suffix Array routines
package esa
import (
"bytes"
"fmt"
"log"
"sort"
"github.com/golang-collections/collections/stack"
"github.com/mlinhard/sais-go/sais"
)
const (
UNDEF = int32(-1)
CUNDEF = int16(-1)
)
type int32stack []int32
func (s int32stack) Peek() int32 {
return s[len(s)-1]
}
func (s ... |
package render
import (
"bytes"
"fmt"
"strings"
"github.com/pcelvng/go-config/util"
"github.com/pcelvng/go-config/util/node"
)
var (
configTag = "config"
reqTag = "req"
showTag = "show"
fmtTag = "fmt"
ignoreTag = "ignore"
helpTag = "help"
sepTag = "sep"
flagTag = "flag"
envTag = "env"... |
// Copyright 2018 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.1
// source: app/endpoint/pb/endpoint.proto
package endpoint
import (
http "github.com/infraboard/mcube/pb/http"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.or... |
// ORIGINAL: java/PathComponentPagePattern.java
// Copyright (c) 2020 <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 right... |
package ui
import (
"io/ioutil"
"math"
"github.com/jakubDoka/mlok/ggl"
"github.com/jakubDoka/mlok/ggl/drw"
"github.com/jakubDoka/mlok/ggl/pck"
"github.com/jakubDoka/mlok/ggl/txt"
"github.com/jakubDoka/mlok/mat"
"github.com/jakubDoka/sterr"
"github.com/jakubDoka/goml/goss"
)
// Error thrown when processors ... |
//Package arithfunc provides a function for converting a string based arithmetic function to a func variable.
package arithfunc
import (
"errors"
"fmt"
"math"
"runtime"
"strconv"
"strings"
)
//Node types
const (
operatorNode = iota
variableNode = iota
constantNode = iota
functionNode = iota
)
//Operator ty... |
package integration
import (
"bytes"
"context"
"database/sql"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"regexp"
"strings"
"testing"
"time"
"ariga.io/atlas/schema/schemaspec"
"ariga.io/atlas/sql/mysql"
"ariga.io/atlas/sql/schema"
entsql "entgo.io/ent/dialect/sql"
"entgo.io/ent/entc/inte... |
package sqlgen_test
import (
"testing"
"github.com/stretchr/testify/suite"
"github.com/yz89122/goqu/v10/exp"
"github.com/yz89122/goqu/v10/internal/sb"
"github.com/yz89122/goqu/v10/sqlgen"
)
type (
commonSQLTestCase struct {
gen func(builder sb.SQLBuilder)
sql string
isPrepared bool
err ... |
package main
import (
"bytes"
"fmt"
"net/mail"
"strings"
"unicode"
)
func parse(code []byte) (document, error) {
var p parser
p.code = code
p.parse()
if p.err == nil {
p.resolveRefs()
}
return p.doc, p.err
}
type parser struct {
doc document
err error
code []byte
vars varTable
}
type varTable map... |
package golf
import (
"math"
"syscall/js"
)
// Engine Screen Width and Height
const (
ScreenHeight = 192
ScreenWidth = 192
)
// Engine is the golf engine
type Engine struct {
RAM *[0xFFFF]byte
screenBufHook js.Value
Draw func()
Update func()
}
//go:generate ../generate/genTemplate... |
// 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 data
import (
"bytes"
"errors"
"fmt"
"io"
"math"
"strings"
"time"
"github.com/devork/grava/config"
"github.com/devork/grava/geo"
"github.com/devork/grava/vtile"
"github.com/devork/geom"
"github.com/devork/geom/ewkb"
"github.com/jackc/pgx"
log "github.com/sirupsen/logrus"
)
var (
// TODO: mak... |
// Copyright © 2018 The ELPS authors
/*
Package parser provides a lisp parser.
expr := '(' <expr>* ')' | <number> | <string> | <symbol>
number := /[+-]?[0-9]+/ <fraction>? <exponent>?
fraction := '.' /[0-9]+/
exponent := e /[0-9]+/
string := '"' <strcontent> '"'
strcontent := /[^"]+/ | '\' '"'
symbol := /[^[... |
package main
import (
"bytes"
"fmt"
"html/template"
"io/ioutil"
"path/filepath"
"sort"
"strings"
"time"
"github.com/go-playground/validator/v10"
"github.com/patrickmn/go-cache"
"golang.org/x/text/collate"
"golang.org/x/text/language"
"gopkg.in/yaml.v2"
)
// Source type - źródła informacji: książki, arty... |
package host
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io"
"go.sia.tech/core/consensus"
"go.sia.tech/core/net/rhp"
"go.sia.tech/core/net/rpc"
"go.sia.tech/core/types"
)
const (
blocksPerYear = 144 * 365
)
// A ProgramExecutor executes an MDM program in the context of the current
// host session.
... |
package ingestion_processors
import (
"context"
"io/ioutil"
"net/http"
"strings"
"time"
"golang.org/x/oauth2"
"go.skia.org/infra/go/buildbucket"
"go.skia.org/infra/go/firestore"
"go.skia.org/infra/go/gerrit"
"go.skia.org/infra/go/httputils"
"go.skia.org/infra/go/metrics2"
"go.skia.org/infra/go/skerr"
"g... |
/*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* This source code is licensed under the Apache License Version 2.0.
*/
package cluster_user
import (
"bytes"
"context"
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"github.com/pkg/errors"
"gopkg.in... |
package appwindow
import (
"image"
"image/color"
"image/draw"
"math"
"time"
"github.com/steveoc64/memdebug"
"github.com/llgcode/draw2d"
"github.com/llgcode/draw2d/draw2dkit"
republique "github.com/steveoc64/republique5/proto"
"fyne.io/fyne"
"fyne.io/fyne/canvas"
"github.com/llgcode/draw2d/draw2dimg"
)
... |
package main
import (
"flag"
"fmt"
"io/ioutil"
"os"
"regexp"
"runtime"
"strings"
_ "github.com/go-sql-driver/mysql"
"github.com/iancoleman/strcase"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
)
/*
you can using dbTag to get any tag from database
support postgresql and mysql
you can use args ... |
package genauth
import (
"fmt"
"strings"
)
const (
implHeader = `#include "auth.h"
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
namespace tao {
namespace {
// This is the canonical implementation of make_unique for C++11. It is wrapped
// in an anonymous namespace to keep it from conflicting with th... |
package api
import (
"database/sql"
"encoding/json"
"encoding/xml"
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
"html/template"
"log"
"net/http"
"net/url"
"strconv"
"strings"
Password "n<PASSWORD>ra.com/api/password"
Pseudoauth "nathankozyra.com/api/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: mpc/evaluation.proto
package mpc
import (
fmt "fmt"
common "github.com/PaddlePaddle/PaddleDTX/dai/protos/common"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto... |
package jsonappender
import (
"bufio"
"encoding/json"
"fmt"
"io"
"math"
"strconv"
"time"
"unicode/utf8"
)
// JSONAppender will append json
type JSONAppender interface {
AppendJSON(buf []byte) ([]byte, error)
}
// BufWriter write json to your writer in a buffered manner. Don't forget to Flush.
// Errors are ... |
// 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 writin... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.24.0-devel
// protoc v3.11.2
// source: greeting.proto
package pb
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.
// source: google/ads/googleads/v2/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 2016 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... |
package authutils
import (
"bytes"
"encoding/base64"
"regexp"
"strings"
"time"
basiccrypt "alessiosavi/AuthentiGo/crypt"
basicmongo "alessiosavi/AuthentiGo/database/mongo"
basicredis "alessiosavi/AuthentiGo/database/redis"
"alessiosavi/AuthentiGo/datastructures"
stringutils "github.com/alessiosavi/GoGPUti... |
package collector
import (
"encoding/json"
"fmt"
"strconv"
"strings"
"sync"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus"
kingpin "gopkg.in/alecthomas/kingpin.v2"
)
var (
bgpSubsystem = "bgp"
bgpPeerTypes = kingpin.Flag("collector.bgp.peer... |
package main
import (
"fmt"
"io/ioutil"
"os"
"strconv"
)
// TODO: Clean up the code.
const TRACE_CALLS = false
const DEBUGINST = false
var mcallcount int = 0
type RunContext struct {
valueStack []Value
method *Method
FailHandler Instruction
Args []string
}
func NewRunContext() *RunContext {
return... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/users/keyboard/callback_data/datatype.proto
package callback_data
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt... |
// Copyright 2018 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... |
// Lute - 一款结构化的 Markdown 引擎,支持 Go 和 JavaScript
// Copyright (c) 2019-present, b3log.org
//
// Lute is licensed under Mulan PSL v2.
// You can use this software according to the terms and conditions of the Mulan PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
// http://license.coscl.org.cn/MulanPSL2
// THI... |
/*
Copyright 2019 The Jetstack cert-manager contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... |
/*
Copyright 2019 The Tekton Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.13.0
// source: envoy/type/v3/hash_policy.proto
package envoy_type_v3
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/pr... |
// Copyright ©2018 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 quat
import (
"fmt"
"math"
"testing"
"github.com/coderme/gonum/floats"
)
var arithTests = []struct {
x, y Number
f float64
wantAdd N... |
package client
import (
"bufio"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io"
"net"
"net/http"
"net/url"
"os"
"path/filepath"
"regexp"
"sort"
"strconv"
"time"
"github.com/Sirupsen/logrus"
"github.com/docker/distribution/digest"
"github.com/docker/distribution/registry/client/auth"
"github.com/... |
package dynakube
import (
"context"
"fmt"
"net/http"
"os"
"time"
dynatracev1beta1 "github.com/Dynatrace/dynatrace-operator/api/v1beta1"
"github.com/Dynatrace/dynatrace-operator/controllers"
"github.com/Dynatrace/dynatrace-operator/controllers/activegate/capability"
rcap "github.com/Dynatrace/dynatrace-operat... |
/*
Copyright 2016 The Fission 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... |
// Copyright 2020 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... |
package uvm
import (
"context"
"fmt"
"io"
"net"
"os"
"path/filepath"
"strings"
"github.com/Microsoft/go-winio"
"github.com/Microsoft/go-winio/pkg/guid"
"github.com/Microsoft/hcsshim/internal/gcs"
"github.com/Microsoft/hcsshim/internal/log"
"github.com/Microsoft/hcsshim/internal/logfields"
"github.com/Mic... |
package cmd
import "bytes"
import "io"
import "net"
import "os"
import "os/exec"
import "strconv"
import "time"
import "golang.org/x/sync/syncmap"
import "github.com/google/gopacket"
import "github.com/google/gopacket/pcap"
import "github.com/google/gopacket/pcapgo"
import "github.com/google/gopacket/layers"
import "... |
/*
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 fastping is an ICMP ping library inspired by AnyEvent::FastPing Perl
// module to send ICMP ECHO REQUEST packets quickly. Original Perl module is
// available at
// http://search.cpan.org/~mlehmann/AnyEvent-FastPing-2.01/
//
// It hasn't been fully implemented original functions yet.
//
// Here is an example... |
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
//
//Copyright [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... |
package h2mux
import (
"bytes"
"encoding/binary"
"fmt"
"io"
"net/url"
"time"
"github.com/rs/zerolog"
"golang.org/x/net/http2"
)
type MuxReader struct {
// f is used to read HTTP2 frames.
f *http2.Framer
// handler provides a callback to receive new streams. if nil, new streams cannot be accepted.
handler... |
package nsqlookup
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"path"
"sort"
"strconv"
"strings"
"time"
)
const (
// DefaultConsulAddress is the default address at which a consul agent is
// expected to be available for consul engines.
DefaultConsulAddress = "localhost:8... |
// This file was generated by go generate; DO NOT EDIT
package htmlindex
type htmlEncoding byte
const (
utf8 htmlEncoding = iota
ibm866
iso8859_2
iso8859_3
iso8859_4
iso8859_5
iso8859_6
iso8859_7
iso8859_8
iso8859_8I
iso8859_10
iso8859_13
iso8859_14
iso8859_15
iso8859_16
koi8r
koi8u
macintosh
wind... |
// Copyright © 2019 The Knative 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... |
// Written by <NAME> in 2018 as public domain software. See LICENSE
// Package windowsiana provides support in converting date timezones from
// the non-standard windows timezone format into UTC. It also provides a function
// to return a timezone-aware date given a date string and an IANA timezone
// the date can the... |
/*
Copyright 2020 The Knative 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... |
/*
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
*... |
package cmd
import (
"encoding/json"
"fmt"
"reflect"
"regexp"
"sort"
"strconv"
"strings"
"sync"
gm "google.golang.org/api/gmail/v1"
"github.com/tsiemens/gmail-tools/api"
"github.com/tsiemens/gmail-tools/config"
"github.com/tsiemens/gmail-tools/plugin"
"github.com/tsiemens/gmail-tools/prnt"
"github.com/... |
package canvas
import (
"math"
"sort"
"github.com/InterwebCounty/canvas/backend/backendbase"
)
const samePointTolerance = 1e-20
func pointIsRightOfLine(a, b, p backendbase.Vec) (bool, bool) {
if a[1] == b[1] {
return false, false
}
dir := false
if a[1] > b[1] {
a, b = b, a
dir = !dir
}
if p[1] < a[1]... |
package collectors
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"regexp"
"strconv"
"time"
"bosun.org/cmd/scollector/conf"
"bosun.org/metadata"
"bosun.org/opentsdb"
"bosun.org/slog"
"github.com/bosun-monitor/statusio"
)
func init() {
registerInit(func(c *conf.Conf) {
for ... |
// 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 not... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/configuration.proto
package common
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/filter/http/header_to_metadata/v3alpha/header_to_metadata.proto
package envoy_config_filter_http_header_to_metadata_v3alpha
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
ma... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: nodeattestor.proto
package nodeattestor
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import common "github.com/spiffe/spire/proto/common"
import plugin "github.com/spiffe/spire/proto/common/plugin"
import (
context "g... |
package renter
import (
"fmt"
"path/filepath"
"strings"
"time"
"gitlab.com/NebulousLabs/errors"
"gitlab.com/NebulousLabs/fastrand"
"gitlab.com/SkynetLabs/skyd/build"
"gitlab.com/SkynetLabs/skyd/skymodules"
)
var (
// errNoStuckFiles is a helper to indicate that there are no stuck files in
// the renter's ... |
package main
import (
"bufio"
"database/sql"
"encoding/json"
"errors"
"io"
"log"
"net"
// "os"
"strings"
"sync"
"time"
_ "github.com/mattn/go-sqlite3"
)
// This is a simple TCP server with it's own communication protocol over TCP
// All messages to server should end with '\n' character, server does the s... |
//
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
package api
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net"
"sort"
"strconv"
"sync"
"time"
"github.com/gorilla/websocket"
)
var (
// NodeDownErr marks an operation as not able to complete since the node is
// down.
NodeDownErr = fmt.Errorf("node down")
)
const (
AllocDesiredStatusRun =... |
// Package run implements structs for scheduling and performing apply runs that
// apply manifest files from a git repository source based on configuration
// stored in Waybill CRDs and scheduling.
package run
import (
"bufio"
"bytes"
"context"
"fmt"
"io/fs"
"os"
"path"
"path/filepath"
"regexp"
"strings"
"s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: artifacts.proto
package proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
proto1 "www.velocidex.com/golang/velociraptor/actions/proto"
_ "www.velocidex.com/golang/velociraptor/proto"
)
// Reference imports to suppress errors... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: gcsystemmsgs.proto
package dota
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a comp... |
/*
Copyright 2021 The Skaffold 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, softwar... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.0
// source: nopkg/desc_test_nopkg_new.proto
package nopkg
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/p... |
// Copyright (c) 2013 VividCortex. Please see the LICENSE file for license terms.
/*
Package pm is a process manager with an HTTP monitoring/control interface.
To this package, processes or tasks are user-defined routines within a running
program. This model is particularly suitable to server programs, with
independe... |
// Copyright (c) 2019 Uber 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 o... |
package antch
import (
"errors"
"fmt"
"log"
"net"
"net/http"
"net/url"
"strings"
"sync"
"time"
)
// Item is represents an item object.
type Item interface{}
// Crawler is core of web crawl server that provides crawl websites
// and calls pipeline to process for received data from their pages.
type Crawler s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/errors/label_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 if they are not ... |
// Copyright 2021 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... |
package oauth2
import (
"context"
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
"sync"
"time"
)
// {
// "token_endpoint": "https://login.windows.net/common/oauth2/v2.0/token",
// "token_endpoint_auth_methods_supported": [
// "client_secret_post",
// "private_key_jwt",
// "client_secret_... |
// Copyright 2021 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... |
/*
Copyright The Stash 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, software
d... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: device_info.proto
package dialog
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/types"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
_ "google.golang.org/genproto/googleapis/api/annotat... |
/*
* Copyright (C) 2019 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 main
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"net/http/httptest"
"os"
"runtime"
"strconv"
"strings"
"syscall"
"testing"
"time"
"github.com/powerman/check"
"github.com/powerman/gotest/testexec"
)
func TestFlagHelp(tt *testing.T) {
t := check.T(tt)
t.Parallel()
out, err := t... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.0
// source: test.proto
package maps
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
con... |
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux || (darwin && !ios)
// +build linux darwin,!ios
// Package tailssh is an SSH server integrated into Tailscale.
package tailssh
im... |
// Copyright 2019 The SQLFlow 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 applicab... |
// Copyright 2019, OpenCensus 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 2018 The Fuchsia 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 fidlgen_cpp
import (
"bytes"
"fmt"
"sort"
"go.fuchsia.dev/fuchsia/tools/fidl/lib/fidlgen"
)
type Attributes struct {
fidlgen.Attributes
}
... |
package lprlib
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strconv"
"strings"
"time"
)
type QueueState func(queue string, list string, long bool) string
// LprDaemon structure
type LprDaemon struct {
/* All connections */
connections []*LprConnection
/* Used for closing the Listener */
closing chan boo... |
// Copyright 2009 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.
// A scanner for Go source text. Takes a []byte as source which can
// then be tokenized through repeated calls to the Scan function.
// For a sample use of a s... |
// -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) 2016 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope tha... |
package adapter
import (
"bytes"
"context"
"database/sql"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/http/httputil"
"net/url"
"strconv"
"strings"
"text/template"
"time"
"github.com/lokhman/yams-lua"
"github.com/lokhman/yams-lua-base64"
"github.com/lokhman/yams-lua-json"
"github.com/lokhman/yams... |
package rtc
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"log"
"sort"
"sync"
"time"
quic "github.com/lucas-clemente/quic-go"
"github.com/lucas-clemente/quic-go/quicvarint"
"github.com/mengelbart/rtp-over-quic/rtc/scream"
screamcgo "github.com/mengelbart/scream-go"
"github.com/pion/interceptor"
"githu... |
package rftp
import (
"crypto/md5"
"fmt"
"hash"
"io"
"log"
"net"
"sort"
"sync"
"time"
)
type FileHandler func(name string) (*io.SectionReader, error)
type fileReader struct {
index uint16
offset uint64
sr *io.SectionReader
hasher hash.Hash
}
type clientConnection struct {
rtt time.Durat... |
package main
import (
"fmt"
"math"
"github.com/kutuluk/xterm-color-chart/color"
"github.com/nsf/termbox-go"
)
// обертка над termbox'ом
type Screen struct {
Buffer []termbox.Cell
Width int
Height int
}
func (s *Screen) reScreen() {
s.Buffer = termbox.CellBuffer()
s.Width, s.Height = termbox.Size()
}
func... |
/*
Copyright 2022.
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 un... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 The Kubernetes Authors
/*
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/l... |
// SPDX-FileCopyrightText: 2021 The Go-SSB Authors
//
// SPDX-License-Identifier: CC0-1.0
package tests
import (
"context"
"encoding/json"
"fmt"
"net"
"os"
"strconv"
"testing"
"time"
"github.com/stretchr/testify/require"
"go.cryptoscope.co/luigi"
"go.cryptoscope.co/netwrap"
"go.cryptoscope.co/secretstrea... |
package retrievalimpl
import (
"context"
"errors"
"time"
"github.com/hannahhoward/go-pubsub"
lru "github.com/hashicorp/golang-lru"
"github.com/ipfs/go-cid"
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/namespace"
"golang.org/x/xerrors"
"github.com/filecoin-project/go-address"
datatransfer "... |
package main
/*
classic roguelike frontend, input method.
despite the name, the implementation is left up to termbox.
*/
import (
"fmt"
"strings"
"time"
"github.com/japanoise/gorl"
"github.com/japanoise/termbox-util"
"github.com/nsf/termbox-go"
)
// It's beautiful.
const logo string = ` .@@@@@@@@@@@@@... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.