text
stringlengths
5.51k
28.1k
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: trigger.proto package pipeline import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Reference imports to suppress errors if they are not otherwise...
// Copyright hyperjumptech/grule-rule-engine 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 ap...
package catTracks import ( "encoding/binary" "encoding/json" "errors" "fmt" "log" "math" "net/http" "strings" "time" "github.com/boltdb/bolt" Stats "github.com/montanaflynn/stats" "github.com/rotblauer/trackpoints/trackPoint" ) var debug = false func debugLog(args ...interface{}) { if debug { log.Pri...
// // Copyright (c) 2022 Seagate Technology LLC and/or its Affiliates // // 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 requ...
/* * * Copyright (C) 2012 - <NAME>. * * Use of this source code is governed by the MIT Licence : * http://opensource.org/licenses/mit-license.php * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal i...
// Copyright 2014 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 main // TODO: package lex import ( "fmt" "go/build" "io" "log" "os" "path/filepath" "strconv" "strings" "text/scanner" "unicode" "code.goog...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: types.proto package tensorflow import ( fmt "fmt" proto "github.com/gogo/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 compi...
package integration import ( "bufio" "bytes" "fmt" "io/ioutil" "net" "os" "os/exec" "regexp" "strings" "testing" "time" log "github.com/inconshreveable/log15" "github.com/netsec-ethz/rains/internal/pkg/libresolve" "github.com/netsec-ethz/rains/internal/pkg/publisher" "github.com/netsec-ethz/rains/inter...
// MIT License // // Copyright 2018 Canonical Ledgers, LLC // // 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, ...
package definition import ( "bufio" "encoding/json" "fmt" "go/ast" "go/doc" "go/token" "go/types" "reflect" "regexp" "sort" "strings" "github.com/damejeras/gorpc/format" "github.com/fatih/structtag" "github.com/pkg/errors" "golang.org/x/tools/go/packages" ) // ErrNotFound is returned when an Object is...
package main import ( "flag" "fmt" "log" "math/rand" "net/http" "os" "os/signal" "strings" "syscall" "time" "github.com/bwmarrin/discordgo" "github.com/svntax/PlayingCardsBot/playingcards" ) // Bot token can be passed as a command line argument var ( Token string ) func init() { flag.StringVar(&Token,...
package service_test import ( "encoding/json" "fmt" "math/rand" "os" "strconv" "strings" "time" "github.com/pborman/uuid" "github.com/cloudfoundry-incubator/cf-test-helpers/cf" "github.com/cloudfoundry-incubator/cf-test-helpers/runner" "github.com/cloudfoundry-incubator/cf-test-helpers/services" . "gith...
package position import ( "fmt" "github.com/rjo67/chess/bitset" "github.com/rjo67/chess/move" "github.com/rjo67/chess/piece" "github.com/rjo67/chess/piece/colour" "github.com/rjo67/chess/ray" "github.com/rjo67/chess/square" ) // FindMoves returns all legal moves in the current position for the given colour.Fi...
// Copyright 2021 The CDK 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 w...
package main import ( "context" "encoding/json" "fmt" "log" "math/rand" "os" "sort" "sync/atomic" "time" "github.com/kiteco/kiteco/kite-golib/fileutil" callprobutils "github.com/kiteco/kiteco/local-pipelines/python-call-filtering/python-call-prob/call-prob-utils" "github.com/kiteco/kiteco/kite-golib/ten...
/* Tencent is pleased to support the open source community by making Blueking Container Service available. Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of...
/* * * k6 - a next-generation load testing tool * Copyright (C) 2017 Load Impact * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your o...
// Package hoverdnsapi offers some API actions to control your Hover/TuCOWS DNS entries // programmatically. This isn't a supported utility form Hover, it's just a thing I wrote because // I needed it at the time. package hoverdnsapi import ( "encoding/json" "fmt" "io/ioutil" golog "log" "net/http" "net/http/co...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: get.proto package project import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" pipeline "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/pipeli...
package server import ( goctx "context" "fmt" dubgo "github.com/apache/dubbo-go/config" "github.com/bytepowered/flux/flux-inspect" "github.com/bytepowered/flux/flux-node" "github.com/bytepowered/flux/flux-node/ext" "github.com/bytepowered/flux/flux-node/listener" "github.com/bytepowered/flux/flux-node/logger" ...
// Tideland Go Library - Audit // // Copyright (C) 2012-2017 <NAME> / Tideland / Oldenburg / Germany // // All rights reserved. Use of this source code is governed // by the new BSD license. package audit //-------------------- // IMPORTS //-------------------- import ( "fmt" "strings" "time" ) //---------------...
package api import ( "fmt" "log" "strconv" "strings" "sync" "unsafe" "github.com/biogo/hts/sam" "github.com/brentp/bix" "github.com/brentp/goluaez" "github.com/brentp/irelate/interfaces" "github.com/brentp/irelate/parsers" "github.com/brentp/vcfgo" ) const LEFT = "left_" const RIGHT = "right_" const BOTH...
// Copyright (c) 2016 <NAME>. All rights reserved. // Use of thighs source code is governed by the MIT license // that can be found in the LICENSE file. package data import ( "fmt" "testing" "time" "github.com/stretchr/testify/assert" ) var testHiLowsPackets = map[string][]byte{ "std": { 0x68, 0x75, 0xe1, 0x...
package main //////////////////////////////// // Author : <NAME> // // GitHub : // // github.com/Armingodiz // // // //////////////////////////////// import ( "errors" "fmt" "github.com/fatih/color" "strconv" ) ///////////////////////////////////////// types :...
package netlog import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "net" "net/http" "path/filepath" "strings" "time" "github.com/2beens/serjtubincom/internal/instrumentation" log "github.com/sirupsen/logrus" "google.golang.org/api/drive/v3" "google.golang.org/api/option" ) const ( rootBack...
package service import ( "fmt" "net/http" "time" "github.com/companieshouse/chs.go/log" "github.com/companieshouse/insolvency-api/constants" "github.com/companieshouse/insolvency-api/dao" "github.com/companieshouse/insolvency-api/models" ) // layout for parsing dates const dateLayout = "2006-01-02" const vali...
package jobsscheduler import ( "context" "errors" "fmt" "strings" "sync" "time" "github.com/gofrs/uuid" "github.com/gogo/protobuf/proto" mesos "github.com/mesos/mesos-go/api/v1/lib" "github.com/mesos/mesos-go/api/v1/lib/resources" "github.com/mlowicki/rhythm/model" log "github.com/sirupsen/logrus" ) cons...
package orm import ( "errors" "fmt" "reflect" strings2 "strings" "github.com/patrickascher/gofw/strings" ) // available relations. const ( HasOne = "hasOne" BelongsTo = "belongsTo" HasMany = "hasMany" ManyToMany = "m2m" ) // struct tag definition. const ( tagRelation = "relation" ...
package exr import ( "container/heap" "encoding/binary" "fmt" ) const ( HUF_ENCBITS = 16 HUF_DECBITS = 14 HUF_ENCSIZE = (1 << HUF_ENCBITS) + 1 HUF_DECSIZE = (1 << HUF_DECBITS) HUF_DECMASK = (1 << HUF_DECBITS) - 1 ) // A huffman code and it's length packed in 64 bits. // So, I will call this a pack. // huffm...
package tx_generic //nolint:revive import ( "bytes" "encoding/json" "errors" "fmt" "sort" "github.com/incognitochain/incognito-chain/common" "github.com/incognitochain/incognito-chain/dataaccessobject/statedb" "github.com/incognitochain/incognito-chain/metadata" "github.com/incognitochain/incognito-chain/pri...
package service import ( "encoding/json" "fmt" "math" "sort" "sync" "time" "github.com/jinzhu/gorm" "laser-control/common" "laser-control/context" ) type ShardRole int32 const ( Leader ShardRole = iota + 1 Follower ) type ControlStatus uint32 const ( Common ControlStatus = iota + 1 FollowerDynamicAs...
package chunkstore import ( "fmt" "io" "math" "github.com/nyaxt/otaru/blobstore" "github.com/nyaxt/otaru/blobstore/version" "github.com/nyaxt/otaru/btncrypt" "github.com/nyaxt/otaru/logger" "github.com/nyaxt/otaru/util" ) var mylog = logger.Registry().Category("chunkstore") const ( ContentFramePayloadLengt...
package redis import ( "crypto/sha1" "encoding/binary" "encoding/hex" "fmt" "io" "log" "math" "math/rand" "os" "strconv" "strings" "sync/atomic" "time" "unsafe" "github.com/VictoriaMetrics/VictoriaMetrics/lib/bytesutil" "github.com/VictoriaMetrics/metrics" goredis "github.com/go-redis/redis/v7" "gol...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: checkpointing.proto package checkpointing import ( fmt "fmt" proto "github.com/golang/protobuf/proto" common "github.com/offchainlabs/arbitrum/packages/arb-util/common" math "math" ) // Reference imports to suppress errors if they are not otherwise used...
package mailer import ( "bytes" "encoding/base64" "errors" "html/template" "io" "log" "mime" "mime/multipart" "os" "path/filepath" "strings" "time" ) type ( // Message represents an email. Message struct { header header parts []*part attachments []*file embedded []*file charset ...
// Copyright 2015 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0-devel // protoc v3.17.3 // source: crypto_add_live_hash.proto package services import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "re...
// +build darwin ios package keychain // See https://developer.apple.com/library/ios/documentation/Security/Reference/keychainservices/index.html for the APIs used below. // Also see https://developer.apple.com/library/ios/documentation/Security/Conceptual/keychainServConcepts/01introduction/introduction.html . /* ...
package player import ( "encoding/hex" "encoding/json" "errors" "fmt" "io" // "io/ioutil" "math" "net/http" "os" "path" "time" "github.com/lbryio/lbrytv/app/router" "github.com/lbryio/lbrytv/config" "github.com/lbryio/lbrytv/internal/metrics" "github.com/lbryio/lbrytv/internal/monitor" ljsonrpc "git...
package collect import ( "context" "fmt" "math/rand" "sort" "sync" "sync/atomic" "github.com/daotl/go-libp2p-collect/pb" "github.com/libp2p/go-libp2p-core/host" "github.com/libp2p/go-libp2p-core/peer" "github.com/libp2p/go-libp2p-core/protocol" ) const ( IntBFSProtocolID = protocol.ID("/intbfs/1.0.0") ) ...
package tcp import ( "sync" "log" "sync/atomic" "github.com/YaoZengzeng/yustack/seqnum" "github.com/YaoZengzeng/yustack/sleep" "github.com/YaoZengzeng/yustack/buffer" "github.com/YaoZengzeng/yustack/stack" "github.com/YaoZengzeng/yustack/types" "github.com/YaoZengzeng/yustack/waiter" "github.com/YaoZengzeng...
/* Copyright 2020 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 2018 The xfsgo Authors // This file is part of the xfsgo library. // // The xfsgo library is free software: you can redistribute it and/or modify // it under the terms of the MIT Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your o...
package main import ( "context" "flag" "fmt" "io" "io/ioutil" "log" "net/http" _ "net/http/pprof" "os" "regexp" "strconv" "strings" "sync" "syscall" "time" "github.com/docker/docker/api/types" "github.com/docker/docker/client" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/...
// Copyright 2020 cloudeng llc. 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 subcmd provides a multi-level command facility of the following form: // // Usage of <tool> // <sub-command-1> <flags for sub-command-1> <args...
package main import ( "context" log "github.com/Sirupsen/logrus" oidc "github.com/coreos/go-oidc" //"github.com/davecgh/go-spew/spew" "net/http" "net/url" "strconv" "strings" "time" "github.com/SermoDigital/jose/jws" "github.com/m4rw3r/uuid" "github.com/uninett/goidc-proxy/conf" "golang.org/x/oauth2" ...
package main import ( "context" "encoding/json" "fmt" "strings" "time" "github.com/opsgenie/opsgenie-go-sdk-v2/alert" "github.com/opsgenie/opsgenie-go-sdk-v2/client" "github.com/sensu-community/sensu-plugin-sdk/sensu" "github.com/sensu-community/sensu-plugin-sdk/templates" "github.com/sensu/sensu-go/types" ...
//Handles Install, Uninstall and Active Security Functions //TODO //Work on Uninstall //Work on Persistence and Active Security //Campaign targeting System (Detect region and compair to list whitelist) //Find (non-Admin) folder option other then APPDATA/ROAMING //Work on WatchDog (Make it check the files HASH and comp...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: submission_payload.proto package protocols import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/proto...
package ui import ( "fmt" "strconv" "strings" "sync" "github.com/darkhz/invidtui/lib" "github.com/darkhz/tview" "github.com/gdamore/tcell/v2" ) var ( chPages *tview.Pages chTitle *tview.TextView chDesc *tview.TextView chVbox *tview.Box chViewFlex *tview.Flex chPageMark *t...
package k8s import ( "context" "fmt" "regexp" "time" "github.com/atlassian/gostatsd" "github.com/atlassian/gostatsd/pkg/util" "github.com/sirupsen/logrus" "github.com/spf13/viper" core_v1 "k8s.io/api/core/v1" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/informers" "k8s.io/client-go/ku...
package k8swatch import ( "context" "fmt" "strconv" "strings" "sync" "testing" "time" "github.com/google/go-cmp/cmp" "github.com/tilt-dev/tilt/pkg/apis/core/v1alpha1" "github.com/tilt-dev/tilt/internal/store/k8sconv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" corev1 "k8...
package flipnotetools import ( "bytes" "encoding/binary" "errors" "image" "image/color" "io" "time" "unicode/utf16" ) var ThumbnailPalette = []color.Color{ color.RGBA{255, 255, 255, 255}, color.RGBA{82, 82, 82, 255}, color.RGBA{255, 255, 255, 255}, color.RGBA{165, 165, 165, 255}, color.RGBA{255, 0, 0, 25...
/* * Copyright 2012-2020 <NAME> and contributors * * This file is a modification of code from Logstash Forwarder. * Copyright 2012-2013 <NAME> and 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...
// This is free and unencumbered software released into the public // domain. For more information, see <http://unlicense.org> or the // accompanying UNLICENSE file. package navigator import ( "fmt" "go/ast" "go/parser" "go/token" "io/ioutil" "log" "os" "path/filepath" "strings" "sync" "github.com/nelsam...
package botdetector import ( "bufio" "os" "testing" "github.com/stretchr/testify/assert" ) const ( browserUaList = "./test-ua/browsers.txt" spidersUaList = "./test-ua/spiders.txt" ) var browsers = []string{ "Flock/14.15 (Android 2.9; fr_BE;)", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.0.16) Ge...
// Code generated by go-bindata. DO NOT EDIT. // sources: // ebpf/bin/probe.o package main import ( "bytes" "compress/gzip" "fmt" "io" "io/ioutil" "os" "path/filepath" "strings" "time" ) func bindataRead(data []byte, name string) ([]byte, error) { gz, err := gzip.NewReader(bytes.NewBuffer(data)) if err !...
package dnaProof import ( "bytes" "crypto/hmac" "crypto/sha256" "encoding/hex" "github.com/davecgh/go-spew/spew" "golang.org/x/crypto/sha3" "golang.org/x/image/draw" "image" "image/png" "log" "os" "encoding/json" "fmt" "github.com/mb-14/gomarkov" "golang.org/x/crypto/blake2b" "io/ioutil" "math/rand...
package v1 // This file contains a collection of methods that can be used from go-restful to // generate Swagger API documentation for its models. Please read this PR for more // information on the implementation: https://github.com/emicklei/go-restful/pull/215 // // TODOs are ignored from the parser (e.g. TODO(andron...
package download import ( "bytes" "crypto/tls" "encoding/base64" "encoding/json" "fmt" "io/ioutil" "net/http" "strings" "github.com/blacktop/go-plist" "github.com/blacktop/ipsw/internal/utils" ) const ( iOS13OtaDevBetaURL = "https://mesu.apple.com/assets/iOS13DeveloperSeed/com_apple_MobileAsset_SoftwareU...
/* Copyright 2014 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright 2016 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 entrypoint import ( "context" "encoding/json" "fmt" "os/exec" "reflect" "sync" "sync/atomic" "testing" "time" "github.com/datawire/ambassador/cmd/ambex" amb "github.com/datawire/ambassador/pkg/api/getambassador.io/v2" "github.com/datawire/ambassador/pkg/consulwatch" "github.com/datawire/ambassado...
// Copyright 2016 The Gofem 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 solid import ( "github.com/cpmech/gofem/ele" "github.com/cpmech/gofem/inp" "github.com/cpmech/gofem/mdl/solid" "github.com/cpmech/gofem/shp" "...
// Copyright 2016 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. // Package report contains functions that process kernel output, // detect/extract crash messages, symbolize them, etc. package report import ( "bufio" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/resultstore/v2/coverage_summary.proto package resultstore import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt...
// 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 in w...
// Copyright 2011 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. // Copyright 2020 <NAME>. All rights reserved. // Same license as the Go Authors in the LICENSE file. package parse import ( "fmt" "strings" "unicode" "un...
package v2 import ( "fmt" "strings" "testing" "github.com/gophercloud/gophercloud" "github.com/gophercloud/gophercloud/acceptance/tools" "github.com/gophercloud/gophercloud/openstack/loadbalancer/v2/l7policies" "github.com/gophercloud/gophercloud/openstack/loadbalancer/v2/listeners" "github.com/gophercloud/go...
// Copyright 2020 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. // This file implements type unification. package types import ( "bytes" "fmt" ) // The unifier maintains two separate sets of type parameters x and y // w...
package config import ( "fmt" "net" "net/url" "os" "strings" "github.com/Dreamacro/clash/adapters/outbound" "github.com/Dreamacro/clash/adapters/outboundgroup" "github.com/Dreamacro/clash/adapters/provider" "github.com/Dreamacro/clash/component/auth" trie "github.com/Dreamacro/clash/component/domain-trie" ...
/* 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, ...
// +build f746xx package pwr // DO NOT EDIT THIS FILE. GENERATED BY xgen. import ( "bits" "mmio" "unsafe" "stm32/o/f746xx/mmap" ) type PWR_Periph struct { CR1 RCR1 CSR1 RCSR1 CR2 RCR2 CSR2 RCSR2 } func (p *PWR_Periph) BaseAddr() uintptr { return uintptr(unsafe.Pointer(p)) } //emgo:const var PWR = (*PW...
// Copyright 2018 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 libpod import ( "bytes" "context" "encoding/json" "io" "io/ioutil" "os" "path/filepath" "time" "github.com/containers/image/docker/reference" "github.com/containers/image/image" is "github.com/containers/image/storage" "github.com/containers/image/types" "github.com/containers/storage" "github.c...
// TODO(DELETEME): This entire file is replaced by remote_miner.go. We should // delete all of this code and use remote_miner in all the places where we currently // use the miner. The reason we don't do this now is it would break a lot of test cases // that we have. package lib import ( "encoding/hex" "fmt" "math/...
// Copyright (c) 2020 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. package ipn import ( "errors" "fmt" "log" "strings" "sync" "time" "github.com/tailscale/wireguard-go/wgcfg" "tailscale.com/control/control...
// Copyright 2017-2018 Authors of Cilium // // 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 2011 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 di...
package domain import ( "context" "github.com/kyma-incubator/compass/components/director/internal/domain/runtime_auth" "github.com/kyma-incubator/compass/components/director/internal/domain/label" "github.com/kyma-incubator/compass/components/director/internal/domain/labeldef" "github.com/kyma-incubator/compas...
// +build sam,atsame51 sam,atsame54 package machine import ( "device/sam" "errors" "runtime/interrupt" "unsafe" ) const ( CANRxFifoSize = 16 CANTxFifoSize = 16 CANEvFifoSize = 16 ) // Message RAM can only be located in the first 64 KB area of the system RAM. // TODO: when the go:section pragma is merged, add...
package models import ( "encoding/json" "flag" "fmt" "github.com/APTrust/exchange/constants" "github.com/APTrust/exchange/util/fileutil" "github.com/op/go-logging" "os" "path/filepath" ) type WorkerConfig struct { // This describes how often the NSQ client should ping // the NSQ server to let it know it's s...
package cluster import ( "encoding/json" "fmt" "io" "io/ioutil" "math/rand" "os" "time" "github.com/cdipaolo/goml/base" ) // diff returns the square magnitude of the // vector subtraction between u and v. This // is also known as the Squared Euclidean // Distance: // // diff(u, v) == |u - v|^2 // // **NOTE**...
/* Copyright 2018 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 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 client import ( "path/filepath" gover "github.com/mcuadros/go-version" . "github.com/vtomar10/devicedetector/parser" ) // Known browsers mapped to their internal short codes var availableBrowsers = map[string]string{ `1B`: `115 Browser`, `2B`: `2345 Browser`, `36`: `360 Phone Browser`, `3B`: `360 Bro...
/* * This file is subject to the terms and conditions defined in * file 'LICENSE.md', which is part of this source code package. */ package arithmetic import ( "io" "math" "github.com/pzduniak/unipdf/common" "github.com/pzduniak/unipdf/internal/jbig2/reader" ) // Define the constant arithmetic decoder table...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.19.4 // source: envoy/extensions/filters/network/meta_protocol_proxy/v3/route.proto package meta_protocol_proxyv3 import ( _ "github.com/cncf/xds/go/udpa/annotations" _ "github.com/cncf/xds/go/xds/annotation...
package stmt import ( "io" "os/user" "reflect" "strings" "testing" "github.com/xo/usql/env" ) func sl(n int, r rune) string { z := make([]rune, n) for i := 0; i < n; i++ { z[i] = r } return string(z) } func TestAppend(t *testing.T) { a512 := sl(512, 'a') // b1024 := sl(1024, 'b') tests := []struct { ...
/* Copyright 2021 Erigon 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 t...
/* Copyright NetApp Inc, 2021 All rights reserved Package collector provides the Collector interface and the AbstractCollector type which implements most basic attributes. A Harvest collector should normally "inherit" all these attributes and implement only the PollData function. The AbstractCollector will mak...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: envoy/admin/v2alpha/metrics.proto package v2alpha import ( _ "github.com/cncf/xds/go/udpa/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang...
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libfuse import ( "net" "net/http" "net/http/pprof" "os" "runtime" "strconv" "strings" "sync" "syscall" "time" "bazil.org/fuse" "bazil.org/fuse/fs" ...
/* * Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package types import ( "crypto/sha1" "crypto/sha256" "crypto/sha512" "encoding/hex" "encoding/json" "encoding/xml" "fmt" "hash" "reflect" "strconv" "strings" "github.com/pkg/errors" ) const ( StartupLocalityTag ...
package producer import ( "encoding/json" "fmt" "math" "net" "os" "time" "github.com/couchbase/eventing/common" "github.com/couchbase/eventing/gen/flatbuf/cfg" "github.com/couchbase/eventing/logging" "github.com/couchbase/eventing/util" ) func (p *Producer) parseDepcfg() error { logPrefix := "Producer::pa...
package tabledrivenparser import ( "errors" "fmt" "io" "github.com/obonobo/esac/core/scanner" "github.com/obonobo/esac/core/token" ) // If this option causes problems, disabled it here var STATEMENT_CLOSER_ENABLED = true // A parser that is driven by a table type TableDrivenParser struct { scnr scanner.Scann...
package dockeracquisition import ( "bufio" "context" "fmt" "net/url" "regexp" "strconv" "strings" "time" "github.com/ahmetb/dlog" "github.com/crowdsecurity/crowdsec/pkg/acquisition/configuration" leaky "github.com/crowdsecurity/crowdsec/pkg/leakybucket" "github.com/crowdsecurity/crowdsec/pkg/types" docke...
// Copyright 2017-2021 DERO Project. All rights reserved. // Use of this source code in any form is governed by RESEARCH license. // license can be found in the LICENSE file. // GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8 // // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A...
// Copyright IBM Corp. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package blockstore import ( "encoding/binary" "fmt" "io/ioutil" "os" "path/filepath" "sync" "github.com/golang/protobuf/proto" "github.com/hyperledger-labs/orion-server/internal/fileops" "github.com/hyperledger-labs/orion-serv...
// Copyright 2016 The Chromium 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 som implements HTTP server that handles requests to default module. package som import ( "encoding/base64" "encoding/json" "fmt" "html/tem...