text
stringlengths
5.51k
28.1k
// +build linux package shared import ( "bufio" "fmt" "os" "path/filepath" "reflect" "strings" "syscall" "unsafe" "golang.org/x/sys/unix" "github.com/lxc/lxd/shared/units" ) // --- pure Go functions --- func GetFileStat(p string) (uid int, gid int, major uint32, minor uint32, inode uint64, nlink int, er...
package stmgr import ( "bytes" "context" "encoding/binary" "sort" "sync" "time" "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/specs-actors/v7/actors/migration/nv15" "github.com/ipfs/go-cid" "golang.org/x/xerrors" "github.com/filecoin-project/go-address" "github.com/filecoin-pro...
package endpoints import ( "bytes" "fmt" "io/ioutil" "math/big" "net/http" "reflect" "strings" "testing" "time" "golang.org/x/net/context" "google.golang.org/appengine" "google.golang.org/appengine/memcache" "appengine/aetest" ) func TestParseToken(t *testing.T) { tts := []struct { header, value, wa...
package utils import ( "context" "fmt" "reflect" "strconv" "strings" "golang.org/x/mod/semver" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metaerrors "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" utilrand "k8s.io/apimachinery/pkg/...
// Copyright 2012 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // A library for efficiently storing and querying spatial data. package rtreego import ( "fmt" "math" "sort" ) // Rtree represents an R-tree, a balanced search tr...
package cmdflagsfromhost import ( "context" "errors" "fmt" "strings" "github.com/hashicorp/errwrap" "github.com/henvic/wedeploycli/config" "github.com/henvic/wedeploycli/defaults" "github.com/henvic/wedeploycli/flagsfromhost" "github.com/henvic/wedeploycli/inspector" "github.com/henvic/wedeploycli/instances...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.8 // source: api/central/v1/central.proto package v1 import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.go...
// Copyright 2014 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...
package loadtest import ( "context" "fmt" "net/http" "sync" "time" "github.com/gorilla/websocket" "github.com/informalsystems/tm-load-test/internal/logging" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "github.com/prometheus/client_golang/prometh...
package sqlcapture import ( "context" "encoding/json" "fmt" "sort" "strings" "time" "github.com/estuary/protocols/airbyte" "github.com/google/uuid" "github.com/sirupsen/logrus" ) // PersistentState represents the part of a connector's state which can be serialized // and emitted in a state checkpoint, and r...
// Copyright 2017 Intel Corporation. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package test import ( "bufio" "context" "fmt" "net" "os" "os/user" "regexp" "strconv" "time" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types...
package remotescmd import ( "context" "fmt" "os" "path" "strings" "github.com/spf13/cobra" "github.com/ubclaunchpad/inertia/cfg" "github.com/ubclaunchpad/inertia/client" "github.com/ubclaunchpad/inertia/client/bootstrap" "github.com/ubclaunchpad/inertia/client/runner" "github.com/ubclaunchpad/inertia/cmd/...
/* Handlers and types specific to Chromium perf tasks. */ package chromium_perf import ( "context" "fmt" "net/http" "path" "path/filepath" "strconv" "strings" "text/template" "cloud.google.com/go/datastore" "github.com/gorilla/mux" "go.skia.org/infra/ct/go/ctfe/task_common" ctfeutil "go.skia.org/infra/c...
// Code generated by protoc-gen-goten-go // File: edgelq/common/rpc/status.proto // DO NOT EDIT!!! package rpc import ( "fmt" "reflect" "sync" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" preflect "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protob...
/* * Copyright (C) 2019 The Winc Authors. All Rights Reserved. */ package winc import ( "errors" "fmt" "syscall" "unsafe" "github.com/AlpineAIO/wails/v2/internal/frontend/desktop/windows/winc/w32" ) // ListItem represents an item in a ListView widget. type ListItem interface { Text() []string // Text retur...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: server.proto package gitalypb // import "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Re...
// // Copyright (c) 2019, 2021 Oracle and/or its affiliates. All rights reserved. // // Licensed under the Universal Permissive License v 1.0 as shown at // https://oss.oracle.com/licenses/upl/ // package nosqldb import ( "crypto/md5" "fmt" "io" "os" "reflect" "sort" "strconv" "github.com/oracle/nosql-go-sd...
// Package core represents the core functionality of all commands package core import ( "crypto/sha1" "fmt" "gitrob/common" "gitrob/github" "gitrob/gitlab" "gitrob/localRepo" "gitrob/matching" "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing/object" "os" "path/filepath" "strconv" "strings" "...
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package modcmd implements the ``go mod'' command. package modcmd import ( "bufio" "encoding/json" "fmt" "os" "sort" "strings" "cmd/go/internal/base"...
package server import ( "fmt" "io/ioutil" "net" "net/http" "net/url" "os" "reflect" "strconv" "strings" "sync" "time" "github.com/getlantern/fronted" "github.com/getlantern/geolookup" "github.com/getlantern/go-igdman/igdman" "github.com/getlantern/golog" "github.com/getlantern/yaml" "github.com/hashi...
// Copyright 2021 The Serverless Workflow Specification 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...
// 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. // +build windows // Package win32 implements a partial shiny screen driver using the Win32 API. // It provides window, lifecycle, key, and mouse management, b...
// 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 lexer import ( "math/big" "sort" "github.com/vs-ude/tinyfyr/internal/errlog" ) // TokenKind ... type TokenKind int const ( // TokenDot ... TokenDot TokenKind = 1 + iota // TokenIdentifier ... TokenIdentifier // TokenOctal ... TokenOctal // TokenHex ... TokenHex // TokenInteger ... TokenInteger ...
package tenable import ( "context" "fmt" "strconv" "time" ) type WorkbenchesService service // Workbenches, not representing an independent resource in its own right, does not prepend Workbenches to the resource structs // cf the other endpoint implementations, which do // RESPONSE STRUCTS type Asset struct { ...
package mqtt import ( "context" "crypto/tls" "encoding/json" "errors" "fmt" "log" "os" "regexp" "time" aws "github.com/aws/aws-sdk-go/aws/credentials" paho "github.com/eclipse/paho.mqtt.golang" "github.com/uhppoted/uhppote-core/uhppote" "github.com/uhppoted/uhppoted-lib/uhppoted" "github.com/uhppoted/u...
package gnfinder_test import ( "fmt" "io" "log" "regexp" "testing" "time" "github.com/gnames/bayes" "github.com/gnames/gnfinder" "github.com/gnames/gnfinder/config" "github.com/gnames/gnfinder/ent/lang" "github.com/gnames/gnfinder/ent/nlp" "github.com/gnames/gnfinder/io/dict" "github.com/stretchr/testify...
// Copyright 2017 Intel Corporation. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "errors" "flag" "log" "sync" "sync/atomic" "time" "github.com/intel-go/nff-go/flow" "github.com/intel-go/nff-go/packet" "github.com/intel-go/nff-...
// Copyright 2019 yhyzgn gox // // 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 w...
package main import ( "bufio" "bytes" "encoding/json" "errors" "fmt" "io/ioutil" "log" "net" "net/http" "os" "os/exec" "os/signal" "runtime" "strconv" "sync" "syscall" "time" beego "web-servers/beego/server" buffalo "web-servers/buffalo/server" "web-servers/domain/models" "web-servers/domain/serve...
/* * Copyright IBM Corporation 2021 * * 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/api/v2/endpoint.proto package envoy_api_v2 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" endpoint "github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint" _type "github.com/envoyproxy/go-control-plane/envoy/type" _ "github....
// 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...
/* Copyright 2015 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 law or agreed to in ...
package main import ( "encoding/base64" "encoding/binary" "encoding/hex" "encoding/json" "fmt" "math/big" "net" "net/http" "os" "sync" "time" sq "github.com/Masterminds/squirrel" "github.com/dustin/go-broadcast" "github.com/icook/btcd/rpcclient" log "github.com/inconshreveable/log15" "github.com/jmoir...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/ad_group_extension_setting.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googlea...
package staticbackend import ( "context" "database/sql" "encoding/json" "errors" "fmt" "log" "net/http" "os" "os/signal" "strings" "syscall" "time" "github.com/staticbackendhq/core/cache" "github.com/staticbackendhq/core/database/mongo" "github.com/staticbackendhq/core/database/postgresql" "github.com...
package main import ( "bytes" "crypto/tls" "flag" "fmt" "github.com/gomarkdown/markdown" "github.com/gomarkdown/markdown/html" "github.com/gomarkdown/markdown/parser" "golang.org/x/crypto/acme/autocert" "html/template" "io/ioutil" "log" "net/http" "net/url" "os" "path/filepath" "sort" "strings" "time...
package controller import ( "bytes" "errors" "fmt" "gitlab.com/cretz/fusty/config" "log" "net/mail" "os" "os/exec" "path" "path/filepath" "strconv" "strings" "sync" "time" ) type DataStore interface { Store(job *DataStoreJob) } func NewDataStoreFromConfig(conf *config.DataStore) (DataStore, error) { ...
package log_parser import ( "bufio" "context" "errors" "io" "os/exec" "regexp" "strings" "sync" "go.skia.org/infra/go/ring" "go.skia.org/infra/go/skerr" "go.skia.org/infra/go/sklog" "go.skia.org/infra/task_driver/go/td" ) const ( // Maximum number of output lines stored in memory to pass along as // er...
// 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 pam import ( "context" "fmt" "sync" "sync/atomic" "unsafe" "github.com/grailbio/base/errors" "github.com/grailbio/base/file" "github.com/grailb...
package domain import ( "context" "database/sql" "errors" "fmt" "io" "log" "math" "math/rand" "net/http" "os" "regexp" "strings" "sync" "time" "github.com/gobuffalo/buffalo" "github.com/gobuffalo/envy" mwi18n "github.com/gobuffalo/mw-i18n" "github.com/gobuffalo/packr/v2" "github.com/gofrs/uuid" "g...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: event_state.proto package event_state import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "goog...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/common/tap/v3alpha/common.proto package envoy_config_common_tap_v3alpha import ( fmt "fmt" core "github.com/envoyproxy/go-control-plane/envoy/api/v3alpha/core" v3alpha "github.com/envoyproxy/go-control-plane/envoy/service/tap/v3alpha" _ "git...
/* Copyright IBM Corp All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package e2e import ( "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "syscall" "time" docker "github.com/fsouza/go-dockerclient" "github.com/gogo/protobuf/proto" "github.com/sinochem-tech/fabric/common/tools/configtxl...
package main import ( "fmt" "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/testdata/protoexample" "log" "net/http" "time" ) // gin的helloworld // 定义接收数据的结构体 type Login struct { // binding:"required"修饰的字段, 若接收为空值,则报错,是必须字段 User string `form:"username" json:"user" uri:"user" xml:"user" binding:"requi...
package election import ( "fmt" "math" "github.com/DCNT-developer/dcnt/electionsCore/election/volunteercontrol" "github.com/DCNT-developer/dcnt/electionsCore/imessage" "github.com/DCNT-developer/dcnt/electionsCore/messages" . "github.com/DCNT-developer/dcnt/electionsCore/primitives" ) var _ = fmt.Println typ...
/* 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...
package tdigest import ( "math" "math/rand" "sort" "testing" ) // Test of tdigest internals and accuracy. Note no t.Parallel(): // during tests the default random seed is consistent, but varying // concurrency scheduling mixes up the random values used in each test. // Since there's a random number call inside td...
package core import ( "encoding/json" "fmt" "io/ioutil" "log" "os" "path/filepath" "strings" "sync" openapispec "github.com/go-openapi/spec" "github.com/magodo/terraform-provider-azurerm-insight/pkg/core/propertyaddr" ) const swaggerExtensionMSDiscriminatorValue = "x-ms-discriminator-value" type TFLink st...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
// Copyright 2013 <NAME> // Copyright 2016 ego 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 applic...
package pipedrive import "time" // Pipeline models the pipeline API object type Pipeline struct { ID int `json:"id"` Name string `json:"name"` URLTitle string `json:"url_title"` OrderNr int `json:"order_nr"` Active bool `json:"active"` AddTime Time `json:"add_time"` UpdateTi...
package main // When iterating on these tests: // Unix: // make -s -j build/server.exe && go run tests/test.go // // Windows // wsl WINDOWS=1 make -s -j build/server.exe && go run tests/test.go // // To benchmark with ab: // make server && ./server --concurrent // ab -k -n 10000 -c 4 http://localhost:8080/echo...
// Package rom deals with the structure of the oracles ROM files themselves. // The given addresses are for the English versions of the games, and if two // are specified, Ages comes first. package rom import ( "crypto/sha1" "fmt" "sort" "strings" ) const bankSize = 0x4000 const ( GameNil = iota GameAges Game...
// Copyright 2016 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package apa102 import ( "errors" "fmt" "image" "image/color" "image/draw" "periph.io/x/periph/conn/display" "periph.io/x/periph/conn...
package editor import ( "bytes" "fmt" "io/ioutil" "math" "os" "runtime" "strings" "sync" "time" "github.com/neovim/go-client/nvim" "github.com/therecipe/qt/core" "github.com/therecipe/qt/gui" "github.com/therecipe/qt/widgets" ) type miniMapSignal struct { core.QObject _ func() `signal:"stopSignal"` _...
package api import ( "fmt" "math/rand" "strings" "niuniu/app/model" "github.com/gogf/gf/errors/gerror" "github.com/gogf/gf/util/gconv" "time" "niuniu/library/response" "github.com/gogf/gf/container/garray" "github.com/gogf/gf/container/gmap" "github.com/gogf/gf/container/gset" "github.com/gogf/gf/enco...
// Copyright 2020 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 covargs import ( "bytes" "compress/zlib" "fmt" "math" "os" "os/exec" "path/filepath" "runtime" "sort" "strconv" "strings" "sync" "go...
// Package team4 contains code for team 4's client implementation package team4 import ( "math" "sort" "github.com/SOMAS2020/SOMAS2020/internal/common/baseclient" "github.com/SOMAS2020/SOMAS2020/internal/common/rules" "github.com/SOMAS2020/SOMAS2020/internal/common/shared" "gonum.org/v1/gonum/mat" ) // Default...
package sequence import ( "go-sequencediagrams/utils" "bytes" "encoding/json" "fmt" "github.com/fogleman/gg" "github.com/golang/freetype/truetype" "golang.org/x/image/font" "golang.org/x/image/font/gofont/goregular" "image" "image/color" "image/png" "strings" ) type Diagram struct { participants []*Parti...
package main import ( "fmt" "io" "net" "net/http" "os" "strconv" "strings" "time" "github.com/akamensky/argparse" "github.com/atotto/clipboard" "github.com/c-bata/go-prompt" "github.com/common-nighthawk/go-figure" "github.com/fatih/color" tw "github.com/olekukonko/tablewriter" cf "github.com/redcode-la...
/** * Copyright 2021 uk * * 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 models import ( "crypto/md5" "fmt" "time" "github.com/astaxie/beego" "github.com/astaxie/beego/cache" "github.com/astaxie/beego/orm" ) var ( Bm cache.Cache ) //用户表 type Customer struct { Id int `orm:"index"` Loginname string `orm:"index"` Loginnamemd5 string `orm:"null;ind...
package notify import ( "context" "encoding/json" "errors" "fmt" "net/url" "sort" "strconv" "strings" "sync" "time" "go-common/app/infra/notify/conf" "go-common/app/infra/notify/dao" "go-common/app/infra/notify/model" "go-common/library/log" "go-common/library/net/netutil" "go-common/library/stat/prom...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/iam/v1/role_service.proto package iam // import "github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/yandex-cloud/go-genproto/yandex/cl...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: api/v1/reporting.proto package v1 import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // Reference impo...
package gonf import ( "errors" "fmt" "io/ioutil" "os" "path/filepath" "sync" "testing" "time" ) // mockStat (shamelessly "borrowed" from `types_unix.go`) type mockStat struct { name string size int64 mode os.FileMode modTime time.Time sys interface{} dir bool } func (self *mockStat) Na...
package jobsd import ( "context" "database/sql" "strings" "sync" "sync/atomic" "time" "github.com/google/uuid" "github.com/pkg/errors" "github.com/simpleframeworks/logc" "github.com/sirupsen/logrus" "gorm.io/gorm" ) // ScheduleFunc . type ScheduleFunc func(now time.Time) time.Time // Instance . type Inst...
package congestion import ( "time" "math" "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol" ) var ( InfiniteBandwidth = Bandwidth(math.MaxUint64) ) // SendTimeState is a subset of ConnectionStateOnSentPacket which is returned // to the caller when the packet is acked or lost. type S...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.12.2 // source: eolymp/judge/entitlement.proto package judge import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect...
// Package columns provides a widget for organizing other widgets in columns. package columns import ( "fmt" "strings" "github.com/gcla/gowid" "github.com/gcla/gowid/gwutil" "github.com/gcla/gowid/widgets/fill" tcell "github.com/gdamore/tcell/v2" "github.com/hinshun/ptmux/rvt" "github.com/hinshun/ptmux/ui/wid...
// Copyright (c) 2015 Rackspace // // 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 © 2021 AMIS Technologies // // 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 k8swatch import ( "context" "fmt" "sort" "sync" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/api/equality" "github.com/tilt-dev/tilt/pkg/apis/core/v1alpha1" "github.com/tilt-dev/tilt/internal/store/k8sconv" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/labels" "k8s....
package main import ( "flag" "log" "runtime" "github.com/wirepair/gcd" "encoding/csv" "fmt" "io/ioutil" "net/url" "os" "path/filepath" "sync" "math" "time" "math/rand" "errors" "github.com/wirepair/gcd/gcdapi" "encoding/json" "os/signal" "github.com/chromedp/cdproto/page" ) // TODO: (in decreasin...
package main import ( "encoding/json" "errors" "fmt" "io/ioutil" "log" "os" "strconv" "strings" "time" "github.com/fatih/structs" ) /* Tile numbers will be: 0 1 2 3 4 5 6 7 8 */ var maxPPrintWidth int = 30 var printDetails = 0 var width = 3 var height = 3 var tiles []Tile type TileSide struct { Directio...
// Copyright 2021 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 ...
// Copyright © 2016, The T Authors. // Package text handles rich-formatted text layout and drawing. // // A Setter lays out styalized text into a bounding box // by repeatedly calling Add or AddStyle, and then calling Set. // Set returns a Text which contains the text // from all previous calls to Add or AddStyle. // ...
// +build linux /* http://www.apache.org/licenses/LICENSE-2.0.txt Copyright 2016 Intel Corporation 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 ...
// +build all utils config // Package utils :: config_test.go package utils import ( "fmt" "io/ioutil" "os" "testing" "github.com/stretchr/testify/assert" ) var ( _configFile = "config_test.yaml" _configReaderMock ConfigReaderFunc = func(file string) ([]byte, error) { f, _ := os.Open...
/* Copyright 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, softw...
// Copyright (c) 2013-2016 The btcsuite developers // Copyright (c) 2015-2016 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package txscript import ( "bytes" "encoding/binary" "fmt" "github.com/decred/dcrd/chaincfg" "github.com/decred/dc...
// Package scanner implements a scanner for bibtex source text. // It takes a []byte as source which can then be tokenized // through repeated calls to the Scan method. package scanner import ( "fmt" gotok "go/token" "path/filepath" "strings" "unicode" "unicode/utf8" "github.com/jschaf/bibtex/token" ) const (...
/* Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
package codescan import ( "sort" "testing" "github.com/go-openapi/spec" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) var ( petstoreCtx *scanCtx classificationCtx *scanCtx ) func loadPetstorePkgsCtx(t testing.TB) *scanCtx { if petstoreCtx != nil { return petstoreCtx ...
package vmprotect import ( "bytes" "crypto/sha1" "encoding/base64" _ "encoding/binary" "errors" "fmt" "math/big" "math/rand" "strconv" "strings" "time" ) type License struct { Name, Email string Expiration, MaxBuild time.Time HardwareId []byte RunningTimeLimit int UserData ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/contrib/tensorboard/graph_explorer/proto/graph_explorer.proto /* Package proto is a generated protocol buffer package. It is generated from these files: tensorflow/contrib/tensorboard/graph_explorer/proto/graph_explorer.proto It has these top-le...
package giDevice import ( "bytes" "context" "fmt" "log" "time" "github.com/electricbubble/gidevice/pkg/libimobiledevice" "github.com/electricbubble/gidevice/pkg/nskeyedarchiver" ) type Usbmux interface { Devices() ([]Device, error) ReadBUID() (string, error) Listen(chan Device) (context.CancelFunc, error) ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.19.0 // source: envoy/config/cluster/dynamic_forward_proxy/v2alpha/cluster.proto package envoy_config_cluster_dynamic_forward_proxy_v2alpha import ( _ "github.com/cncf/xds/go/udpa/annotations" v2alpha "githu...
/* Copyright 2021 The OpenYurt 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/licenses/LICENSE-2.0 Unless required by app...
package relayer import ( "context" "encoding/json" "fmt" "net/url" "os" "path" "strconv" "sync" "time" sdkCtx "github.com/cosmos/cosmos-sdk/client/context" ckeys "github.com/cosmos/cosmos-sdk/client/keys" aminocodec "github.com/cosmos/cosmos-sdk/codec" codecstd "github.com/cosmos/cosmos-sdk/codec/std" "...
// Copyright 2013-2018 go-diameter authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Diameter S6A client example. package main /* NOTE: If you are using OAI HSS for testing - Update oai_db database: * * -- Update Tables oai_db.mme...
package network import ( "bufio" "context" "math/rand" "net" "sync" "sync/atomic" "time" "github.com/gogo/protobuf/proto" "github.com/perlin-network/myNoise/crypto" "github.com/perlin-network/myNoise/internal/protobuf" "github.com/perlin-network/myNoise/log" "github.com/perlin-network/myNoise/network/tran...
// Copyright 2017 Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
/* Copyright 2017-present <NAME> & <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 a...
// 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...
// Copyright © 2019 Developer Network, LLC // // This file is subject to the terms and conditions defined in // file 'LICENSE', which is part of this source code package. package alog import ( "context" "encoding/json" "fmt" "sync" "time" "go.devnw.com/validator" ) // TODO: Setup so that new destinations can ...
package action import ( "encoding/json" "errors" "io/ioutil" "os" "path/filepath" "regexp" "strings" "unicode" "github.com/zyedidia/json5" "github.com/zyedidia/micro/v2/internal/config" "github.com/zyedidia/micro/v2/internal/screen" "github.com/zyedidia/tcell/v2" ) var Binder = map[string]func(e Event, a...
package httpgraph import ( "fmt" "html" "net/http" "sort" "strings" "time" "github.com/openshift/ci-search/metricdb" "github.com/openshift/ci-search/pkg/httpwriter" "k8s.io/klog" _ "modernc.org/sqlite" ) type Server struct { DB *metricdb.DB } type Graph struct{} func (g *Graph) From(req *http.Request) e...