text stringlengths 5.51k 28.1k |
|---|
package grab
import (
"context"
"crypto/md5"
"crypto/sha1"
"crypto/sha256"
"crypto/sha512"
"encoding/hex"
"fmt"
"hash"
"os"
"strings"
"testing"
"time"
)
// testComplete validates that a completed Response has all the desired fields.
func testComplete(t *testing.T, resp *Response) {
<-resp.Done
if !resp.... |
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/rpc/code/code.proto
// DO NOT EDIT!
/*
Package code is a generated protocol buffer package.
It is generated from these files:
google.golang.org/genproto/googleapis/rpc/code/code.proto
It has these top-level messages:
*/
package cod... |
package hestia
type HestiaDB struct {
Balances []CoinBalances `json:"balances"`
Cards []Card `json:"cards"`
Coins []Coin `json:"coins"`
Config Config `json:"config"`
Deposits []Deposit `json:"deposits"`
Exchanges ... |
package compiler
import (
"encoding/binary"
"math"
"os"
"strconv"
"strings"
"../types"
)
var opcodes = map[string]uint16{
"type": uint16(0xEEEE),
"nop": uint16(0x1000),
"store": uint16(0x0000),
"v_dyn": uint16(0x0101),
"v_int8": uint16(0x0108),
"v_int16": uint16(0x0110),
"v_int32... |
package podsecurity
import (
"fmt"
"log"
"strconv"
"strings"
"github.com/cucumber/godog"
"github.com/citihub/probr/audit"
"github.com/citihub/probr/config"
"github.com/citihub/probr/service_packs/coreengine"
"github.com/citihub/probr/service_packs/kubernetes"
"github.com/citihub/probr/service_packs/kuberne... |
// fontgen is a commandline tool for generating pixel fonts supported by pixfont.
// First is to create an image of your pixel font in your favorite graphics
// program with your set of supported characters. Ex:
//
// ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
//
// Ensure that there is a solid... |
// Copyright (c) 2013-2016 The btcsuite developers
// Copyright (c) 2015-2017 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package main
import (
"context"
"fmt"
"net"
"os"
"os/user"
"path/filepath"
"runtime"
"sort"
"strings"
"githu... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/type/matcher/v4alpha/value.proto
package envoy_type_matcher_v4alpha
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
math "math"
)
// R... |
package main
import (
"context"
"encoding/json"
"fmt"
"strconv"
"time"
log "github.com/sirupsen/logrus"
av1 "github.com/zalando-incubator/kube-aws-iam-controller/pkg/apis/zalando.org/v1"
"github.com/zalando-incubator/kube-aws-iam-controller/pkg/clientset"
"github.com/zalando-incubator/kube-aws-iam-controller... |
package yabi
import (
"database/sql"
"errors"
"fmt"
"gowebapp/config"
"strings"
"time"
"github.com/itrepablik/itrlog"
"github.com/itrepablik/sakto"
"github.com/itrepablik/sulat"
"github.com/itrepablik/tago"
"github.com/itrepablik/timaan"
)
// LoginUser validate the user's account from the... |
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Command memlat is a web-based browser for memory load latency profiles.
//
// Memory stalls and conflicts are increasingly important for software
// performa... |
package ttlcache
import (
"container/list"
"context"
"fmt"
"sync"
"time"
"golang.org/x/sync/singleflight"
)
// Available eviction reasons.
const (
EvictionReasonDeleted EvictionReason = iota + 1
EvictionReasonCapacityReached
EvictionReasonExpired
)
// EvictionReason is used to specify why a certain item wa... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.11.4
// source: proto/person/person.proto
package person
import (
phone "github.com/VicRen/go-playground/proto/phone"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/ti... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.2
// source: kubeappsapis/plugins/kapp_controller/packages/v1alpha1/kapp_controller.proto
package v1alpha1
import (
v1alpha1 "github.com/kubeapps/kubeapps/cmd/kubeapps-apis/gen/core/packages/v1alpha1"
_ "... |
package loglineparser
import (
"time"
)
// nolint lll
/*
-- http://192.168.131.32:9000/develop/FOOTSTONE/GateWay/Code/api-gateway-ng/blob/master/lua/web/gateway.lua
ngx.log(ngx.NOTICE, string.format("[%s] [%s], [%s], [%s, %s, %s, %s, %s], [%s, %s, %s, %s], [%s, %s, %s], [%s, %s, %s, %s, %s, %s, %s, %s], [%s], [%s,... |
package view
import (
"bytes"
"context"
"fmt"
"io"
"os"
"path/filepath"
"regexp"
"strings"
"time"
"github.com/atotto/clipboard"
"github.com/derailed/k9s/internal/client"
"github.com/derailed/k9s/internal/color"
"github.com/derailed/k9s/internal/config"
"github.com/derailed/k9s/internal/dao"
"github.co... |
// Copyright 2017 HenryLee. 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 v1beta4
import (
"github.com/loft-sh/devspace/pkg/devspace/config/versions/config"
)
// Version is the current api version
const Version string = "v1beta4"
// GetVersion returns the version
func (c *Config) GetVersion() string {
return Version
}
// New creates a new config object
func New() config.Config ... |
// Copyright 2017 Google, Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree.
package layers
import (
"bytes"
"fmt"
"io"
"strconv"
"strings"
"github.com/google/gopacket"
)
// SIPVersion defines t... |
// Copyright 2015 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
// Copyright 2020 The PipeCD Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
package certificate
import (
"crypto/dsa"
"crypto/ecdsa"
"crypto/md5"
"crypto/rsa"
"crypto/sha1"
"crypto/sha256"
"crypto/x509"
"encoding/base64"
"encoding/hex"
"fmt"
"log"
"net"
"strconv"
"strings"
"time"
certconstraints "github.com/mozilla/tls-observatory/certificate/constraints"
)
const (
Ubuntu_T... |
//go:build linux && cgo && !agent
// +build linux,cgo,!agent
package db
import (
"database/sql"
"fmt"
"os"
"path/filepath"
"sync"
"time"
"github.com/canonical/go-dqlite/driver"
"github.com/pkg/errors"
"github.com/lxc/lxd/lxd/db/cluster"
"github.com/lxc/lxd/lxd/db/node"
"github.com/lxc/lxd/lxd/db/query"
... |
package browser
import (
"bytes"
"io"
"mime/multipart"
"net/http"
"net/url"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
"github.com/haruyama/surf/errors"
"github.com/haruyama/surf/jar"
)
// Attribute represents a Browser capability.
type Attribute int
// AttributeMap represents a map of Attribute va... |
package main
import (
"fmt"
"github.com/gofiber/cors"
"github.com/gofiber/fiber"
"github.com/jung-kurt/gofpdf"
"golang.org/x/text/language"
"golang.org/x/text/message"
"github.com/leekchan/accounting"
"log"
"os"
"sync"
"strconv"
"strings"
)
var (
mutex sync.Mutex
)
const (
bannerHt = 42.0
xI... |
// Copyright 2016 Circonus, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Dashboard API support - Fetch, Create, Update, Delete, and Search
// See: https://login.circonus.com/resources/api/calls/dashboard
package api
import (
"en... |
package scaling_test
import (
"encoding/json"
"fmt"
"io/ioutil"
"math/rand"
"net"
"net/http"
"os/exec"
"strings"
"time"
"code.cloudfoundry.org/cf-networking-helpers/testsupport"
pusherConfig "code.cloudfoundry.org/cf-pusher/config"
"code.cloudfoundry.org/lager"
"code.cloudfoundry.org/lib/policy_client"
... |
// Copyright © 2019 Alibaba Co. Ltd.
//
// 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... |
/*
Copyright 2019 Gravitational, 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, soft... |
// Copyright (c) 2016-2017 <NAME> <<EMAIL>>
// released under the MIT license
package irc
import (
"encoding/json"
"fmt"
"strconv"
"strings"
"time"
"github.com/tidwall/buntdb"
"github.com/oragono/oragono/irc/modes"
"github.com/oragono/oragono/irc/utils"
)
// this is exclusively the *persistence* layer for ... |
/*
Package purell offers URL normalization as described on the wikipedia page:
http://en.wikipedia.org/wiki/URL_normalization
*/
package purell
import (
"bytes"
"fmt"
"net/url"
"regexp"
"sort"
"strconv"
"strings"
"github.com/PuerkitoBio/urlesc"
"golang.org/x/net/idna"
"golang.org/x/text/uni... |
package main
import (
"code.google.com/p/log4go"
"fmt"
"io/ioutil"
"lime/3rdparty/libs/termbox-go"
"lime/backend"
"lime/backend/loaders"
"lime/backend/primitives"
"lime/backend/sublime"
"lime/backend/textmate"
"strings"
"time"
)
var (
lut = map[termbox.Key]backend.KeyPress{
termbox.KeyCtrlA: backen... |
// Copyright 2019 The TCell Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use 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 ... |
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: proto/contract_get_records.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "refle... |
/*
* Copyright 2018 The Kythe 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 ap... |
// Copyright 2019 The Hugo 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 ... |
package cloud
import (
"database/sql"
"encoding/base64"
"errors"
"fmt"
"github.com/kubecost/cost-model/pkg/clustermanager"
"github.com/kubecost/cost-model/pkg/util"
"io"
"io/ioutil"
"os"
"regexp"
"strings"
"time"
"k8s.io/klog"
"cloud.google.com/go/compute/metadata"
"github.com/kubecost/cost-model/pkg... |
// Copyright 2019 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
// Copyright 2015-2018 HenryLee. 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 applic... |
// 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... |
// Copyright 2019, Pure Storage Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// Package e2e launches an OSD cluster, performs tests on it, and destroys it.
package e2e
import (
"bytes"
"compress/gzip"
"encoding/json"
"encoding/xml"
"fmt"
"io/ioutil"
"log"
"math"
"os"
"path/filepath"
"strings"
"testing"
"github.com/hpcloud/tail"
vegeta "github.com/tsenart/vegeta/lib"
"github.co... |
package simulation
import (
"Backend/pkg/state"
"log"
)
const (
// Turnos de los jugadores
t1 = iota
t2
t3
t4
// Check sings
singing
// Check triumph changes
swap7
// Check if there is a winner
checkWinnerIdas
checkWinnerVueltas
// Has a winner
ended
TeamA = 1
TeamB = 2
)
// Game has 10 rounds
t... |
/*
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 agreed to in writing, soft... |
package rds
import (
"bytes"
"fmt"
"log"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/rds"
"github.com/hashicorp/aws-sdk-go-base/tfawserr"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"gith... |
/*
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... |
// Copyright 2011 Google 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.
/*
go-app-builder is a program that builds Go App Engine apps.
It takes a list of source file names, loads and parses them,
deduces their package structure, cre... |
package model3d
import (
"math"
"github.com/unixpickle/model3d/numerical"
)
const (
// ARAPDefaultTolerance is the default convergence
// tolerance for ARAP.
// It allows for early convergence stopping.
ARAPDefaultTolerance = 1e-3
// ARAPMaxIterations is the default maximum number
// of iterations for ARAP.... |
/*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
package main
import (
"context"
"encoding/json"
"fmt"
"sort"
"strconv"
"sync"
"sync/atomic"
"github.com/k-yomo/kagu-miru/backend/item_fetcher"
"cloud.google.com/go/spanner"
"github.com/k-yomo/kagu-miru/backend/internal/xspanner"
"cloud.google.com/go/pubsub"
"github.com/k-yomo/kagu-miru/backend/internal/... |
package art
import (
"bufio"
"bytes"
"fmt"
"math/rand"
"net"
"os"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
)
const (
CtrlExitcd = 99
CtrlRoomTree = "tree"
roomTreeEnvSqlx = "tree_env_cur_sqlx"
roomTreeEnvStat = "tree_env_cur_stat"
//
passLength = 24
passTables = "<KEY>" // 32
//
ro... |
package types
import (
"bytes"
"encoding/json"
"fmt"
"strings"
"github.com/pkg/errors"
cmn "github.com/tendermint/tendermint/libs/common"
abci "github.com/tendermint/tendermint/abci/types"
)
// CodeType - ABCI code identifier within codespace
type CodeType uint32
// CodespaceType - codespace identifier
type... |
// Copyright (c) 2018, The GoKi Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// color parsing is adapted from github.com/srwiley/oksvg:
//
// Copyright 2017 The oksvg Authors. All rights reserved.
//
// created: 2/12/2017 by S.R.W... |
// Copyright 2017 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... |
// Copyright (c) nano Author and TFG Co. 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, cop... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.6
// source: Qot_UpdateOrderDetail.proto
package qotupdateorderdetail
import (
_ "github.com/Lawrence93Ho/go-futu-api/pb/common"
qotcommon "github.com/Lawrence93Ho/go-futu-api/pb/qotcommon"
protoreflect ... |
/*
Package debugger provides an interactive stepping debugger for go6502 with
breakpoints on instruction type, register values and memory location.
Example
An example interactive debugging session:
$ go run go6502.go --via-ssd1306 --debug
CPU PC:0xF31F AC:0x00 X:0x00 Y:0x00 SP:0x00 SR:--_b-i--
Next: SEI im... |
/*
Copyright 2017 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 2021 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-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, software
distrib... |
package client
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"math/big"
"net/http"
"strings"
"github.com/rs/zerolog/log"
)
// OneLINK representation of a single LINK token
var OneLINK = big.NewFloat(1e18)
// Chainlink interface that enables interactions with a chainlink node
type Chainlink interface {
... |
// Copyright 2016 <NAME>, Inc. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
package types
import (
"bytes"
"fmt"
"testing"
"github.com/attic-labs/noms/go/hash"
"github.com/attic-labs/testify/assert"
)
func hashIdx(v Value) string {
retur... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: accesslog.proto
/*
Package envoy is a generated protocol buffer package.
It is generated from these files:
accesslog.proto
It has these top-level messages:
KeyValue
HttpLogEntry
*/
package envoy
import proto "github.com/golang/protobuf/proto"
import fmt... |
/*
* File: area.go
*
* Description: Class to handle game Areas.
*/
package main
import (
"fmt"
"math/rand"
"strconv"
)
// Coords ... Structure to hold the points of the form (x,y)
type Coords struct {
// Quick comparison value in the form "x:y"
id string
// Coord (x,y) pair
y int
x int
}
// Tile ... S... |
// Copyright (c) 2017-2018 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 applicabl... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: xds/core/v3/resource_locator.proto
package xds_core_v3
import (
fmt "fmt"
_ "github.com/cncf/xds/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to ... |
package gosqs
import (
"crypto/md5"
"encoding/hex"
"fmt"
"log"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/sqs"
)
// error codes for invalid batch delete requests
// ErrAWSInvalidParameter is returned when ReceiptHandles/VisiblityTimeou... |
package git
import (
"bytes"
"compress/zlib"
"crypto/sha1"
"encoding/binary"
"encoding/hex"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"syscall"
"time"
)
type GitRepository struct {
Worktree string
GitDir string
}
type GitObject interface {
Serialize() []byte
De... |
package api
import (
"errors"
"fmt"
"github.com/boltdb/bolt"
"github.com/golang/glog"
"github.com/open-horizon/anax/config"
"github.com/open-horizon/anax/cutil"
"github.com/open-horizon/anax/events"
"github.com/open-horizon/anax/exchange"
"github.com/open-horizon/anax/microservice"
"github.com/open-horizon/a... |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
package main
import (
"bytes"
"encoding/xml"
"errors"
"flag"
"fmt"
"go/format"
"io"
"io/ioutil"
"log"
"os"
"path"
"path/filepath"... |
package graphs
import (
"fmt"
"image"
"image/color"
"math/rand"
"strconv"
"github.com/fogleman/gg"
"github.com/veandco/go-sdl2/sdl"
"github.com/wdevore/Deuron5/deuron"
"github.com/wdevore/Deuron5/deuron/app/comm"
"github.com/wdevore/Deuron5/deuron/app/gui"
"github.com/wdevore/Deuron5/simulation/samples"
)
... |
package httpservice
import (
"fmt"
"github.com/duanhf2012/origin/event"
"github.com/duanhf2012/origin/network"
"github.com/duanhf2012/origin/service"
"github.com/duanhf2012/origin/util/uuid"
jsoniter "github.com/json-iterator/go"
"io"
"io/ioutil"
"net/http"
"os"
"strings"
"time"
)
var json = jsoniter.Conf... |
package zwords
import (
"fmt"
"math"
"strconv"
"strings"
"github.com/torlangballe/zutil/zgeo"
"github.com/torlangballe/zutil/zstr"
)
const (
KiloByte = 1024
MegaByte = 1024 * 1024
GigaByte = 1024 * 1024 * 1024
TerraByte = 1024 * 1024 * 1024 * 1024
)
// DefaultLanguage can be set with language gotten os... |
package outputs
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
. "github.com/carbonblack/cb-event-forwarder/pkg/config"
log "github.com/sir... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: example.proto
/*
Package example is a generated protocol buffer package.
It is generated from these files:
example.proto
It has these top-level messages:
Parent
Dependent
CreateDependencyRequest
CreateDependencyResponse
*/
package example
import proto... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/resources/ad_group_simulation.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/ad... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: protos/ignores/ignores.proto
package ignores
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect... |
// Copyright (c) 2017 IBM Corp. Rights Reserved.
// This project is licensed under the Apache License 2.0, see LICENSE.
package perfevents
import (
"encoding/binary"
"errors"
"strconv"
"strings"
"syscall"
"unsafe"
)
// To create an event in the kernel which can monitor/profile for
// a process, we need to use ... |
package serial
import (
"context"
"encoding/hex"
"errors"
"sensibled/logger"
"sensibled/model"
"sensibled/rdb"
"strconv"
redis "github.com/go-redis/redis/v8"
scriptDecoder "github.com/sensible-contract/sensible-script-decoder"
"go.uber.org/zap"
)
var (
ctx = context.Background()
)
// ParseGetSpentUtxoDat... |
// Copyright (c) 2019 Oasis Labs Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditio... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common.proto
package common
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a c... |
/*
Copyright 2021 Red Hat Community of Practice.
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 wr... |
package main
import (
"errors"
"fmt"
"math"
"strings"
"sync"
"sync/atomic"
"time"
core "github.com/semi-technologies/contextionary/contextionary/core"
errortypes "github.com/semi-technologies/contextionary/errors"
"github.com/semi-technologies/contextionary/extensions"
"github.com/semi-technologies/context... |
// 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, distribu... |
// Copyright (C) 2020 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
package suites
import (
"bytes"
"context"
"fmt"
"path/filepath"
"strings"
"testing"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/vmware-tanzu/buildkit-cli-for-kubec... |
package ut4updater
import (
"archive/tar"
"bytes"
"compress/gzip"
"context"
"crypto/sha256"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path/filepath"
"regexp"
"sort"
"strings"
"time"
"github.com/cavaliercoder/grab"
"github.com/elauqsap/workerpool"
"github.com/googl... |
package biz
import (
"bufio"
"log"
"math/rand"
"os"
"strings"
"sync"
"github.com/zii/pet-sim/base"
)
// enemybase.txt [:7]前7个字段(都是字符串)
const (
E_T_NAME = 0 // 宠物品种名称
E_T_ATOMFIXNAME1 // 素材1 ...
E_T_ATOMFIXNAME2
E_T_ATOMFIXNAME3
E_T_ATOMFIXNAME4
E_T_ATOMFIXNAME5
E_T_DATACHARNUM
)
// enemyba... |
package analysis
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
"os"
"sort"
"strings"
"unicode/utf8"
"github.com/fatih/set"
"github.com/pkg/errors"
)
type analyzer struct {
fileset *token.FileSet
debug bool
declaredFuncInfo map[string]BlanketFunc
calledFu... |
// Copyright 2019 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
package main
import (
"fmt"
"github.com/upmio/cmha-cli/cliconfig"
"errors"
"strconv"
"strings"
"time"
)
func ShowLog(_service string, _node string, _logtype string, _timestamps ...string) error {
if len(_timestamps) > 0 {
if len(_timestamps) == 1 {
if len(_timestamps[0]) == 10 {
show_log_detail(_se... |
//go:build integration_test
/*
Test for third-party app integrations. Can be run with Kokoro or "go test".
For instructions, see the top of gce_testing.go.
This test needs the following environment variables to be defined, in addition
to the ones mentioned at the top of gce_testing.go:
PLATFORMS: a comma-separated l... |
// Package parse implements parsing of POSIX shell scripts.
package parse
//go:generate stringer -type=RedirMode,PrimaryType,DQSegmentType -output=string.go
import (
"bytes"
"regexp"
"strconv"
"strings"
"unicode/utf8"
)
func Parse(text string, n Node) (string, error) {
p := newParser(text)
p.parse(n)
if len(... |
package pythongraph
import (
"fmt"
"io"
"math"
"sort"
"strings"
"time"
"github.com/kiteco/kiteco/kite-go/lang/python/pythonast"
"github.com/kiteco/kiteco/kite-go/lang/python/pythonresource"
"github.com/kiteco/kiteco/kite-go/lang/python/pythonscanner"
"github.com/kiteco/kiteco/kite-golib/kitectx"
)
/*
Prese... |
// Copyright 2016 <NAME>. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
package main
import (
"flag"
"fmt"
"os"
"path"
"sort"
"time"
"github.com/attic-labs/noms/go/datas"
"github.com/attic-labs/noms/go/hash"
"github.com/attic-labs/noms/... |
package exe
// PE/COFF exe (Win32, Win64)
// http://wiki.osdev.org/PE
// https://en.wikibooks.org/wiki/X86_Disassembly/Windows_Executable_Files
// https://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx
// STATUS: 50%
import (
"fmt"
"log"
"os"
"github.com/martinlindhe/formats/parse"
)
var (
peHead... |
// Copyright 2020 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 impl4
import (
"fmt"
"io"
"log"
"math"
"sort"
"strconv"
"github.com/mrrtf/pigiron/geo"
"github.com/mrrtf/pigiron/mapping"
)
// InvalidPadCID is a special integer that denotes a non existing pad
const invalidPadCID mapping.PadCID = -1
type cathodeSegmentation4 struct {
segType i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.