text
stringlengths
3.08k
10.4k
package main // awsTargets.go - handle targets // Copyright 2020 Threat Stack, Inc. // Licensed under the BSD 3-clause license; see LICENSE.md for more information. import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-...
/* * Copyright 2018 The original author or 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 applicabl...
package main import ( "errors" "flag" "fmt" "io" "io/fs" "net/http" "os" "sync" "sync/atomic" "github.com/meagar/himama-dl/internal/himama" ) func main() { fmt.Println("himama-dl v0.0.3") username, password, err := fetchCredentials() if err != nil { fmt.Println("Error colleting credentials:", err) ...
package main import ( "errors" "fmt" "github.com/kcz17/dimmer/logging" "github.com/kcz17/dimmer/pid" "github.com/kcz17/dimmer/responsetimecollector" "sync" "time" ) // Percentiles the developer can choose as response time input. const ( P50 = "p50" P75 = "p75" P95 = "p95" ) // ServerControlLoop handles the...
package outlay import ( "image" "gioui.org/layout" "gioui.org/op" ) // inf is an infinite axis constraint. const inf = 1e6 // GridElement lays out the ith element of a Grid. type GridElement func(gtx layout.Context, i int) layout.Dimensions // Grid lays out at most Num elements along the main axis. // The numbe...
package health import ( "context" "encoding/json" "errors" "fmt" "net" "net/http" "sync" "time" "git.curoverse.com/arvados.git/sdk/go/arvados" "git.curoverse.com/arvados.git/sdk/go/auth" ) const defaultTimeout = arvados.Duration(2 * time.Second) // Aggregator implements http.Handler. It handles "GET /_hea...
// Copyright Nitric Pty Ltd. // // SPDX-License-Identifier: Apache-2.0 // // 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 r...
package critbit import ( "math/rand" "sort" "testing" ) type UintSlice []uint func (s UintSlice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } func (s UintSlice) Len() int { return len(s) } func (s UintSlice) Less(i, j int) bool { return s[i] < s[j] } func TestBasic(t *testing.T) { const L = 10000 ...
/* 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 © 2019 Circonus, Inc. <<EMAIL>> // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // // Package events is the cluster events collector package events import ( "context" "crypto/tls" "encoding/json" "errors" "time" cgm "github.com/circonus-labs/...
package pinpoint import ( "runtime" "sync" "syscall" "time" ) type inspectorStats struct { sampleTime time.Time cpuUserTime float64 cpuSysTime float64 goroutineNum int heapAlloc int64 heapMax int64 nonHeapAlloc int64 nonHeapMax int64 gcNum int64 gcTime int64 responseAvg int...
package yawf import ( "net/http" "strconv" ) // Params is a map of name/value pairs for named routes. An instance of yawf.Params is available to be injected into any route handler. type PathParams map[string]string // Routes is a helper service for Yawf's routing layer. type Routes interface { // URLFor returns a...
package docker import ( a "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" "gitlab.com/kiringo/narwhal_lib/test_helper" "sort" "testing" ) type ImageSuite struct { suite.Suite d Docker } func TestImage(t *testing.T) { suite.Run(t, new(ImageSuite)) } func (s *ImageSuite) SetupSuite()...
// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not...
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/SamsungSLAV/weles/controller (interfaces: JobsController) // Package mock is a generated GoMock package. package mock import ( weles "github.com/SamsungSLAV/weles" gomock "github.com/golang/mock/gomock" reflect "reflect" ) // MockJobsController is a...
package port import ( "fmt" "strconv" "strings" "time" "github.com/gizak/termui" "github.com/yittg/ving/addons/common" "github.com/yittg/ving/addons/port/types" et "github.com/yittg/ving/types" ) const ( portsHeight = 8 ) var ( rotating = []string{"/", "-", "\\", "|"} ) type viewEnum int const ( viewNa...
package main import( "database/sql" _ "github.com/go-sql-driver/mysql" "os" "io" "bufio" "strings" "compress/gzip" "fmt" "time" "flag" ) const ProgramVersion string = "1.1.0" type options struct { driver string host string port string user string password s...
package playlist import ( "fmt" "html" "html/template" "regexp" "strings" "time" "github.com/slintes/bluesstammtisch/pkg/types" ) const ( Ditto = template.HTML("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"") ) type templateData struct { Songs []types.Song Next string Moderation string } func (h *Ha...
// This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this // file, you can obtain one at https://opensource.org/licenses/MIT. // // Copyright (c) DUSK NETWORK. All rights reserved. package chain import ( "bytes" "encoding/hex" "time" "githu...
package db import ( "github.com/ddidwyll/comico/cnst" "github.com/tidwall/buntdb" "fmt" "log" "strings" "time" ) var expire = &buntdb.SetOptions{ Expires: true, TTL: time.Second * cnst.EXPIRE, } var ( Users, usersErr = buntdb.Open("users.db") Passwords, passwordsErr = buntdb.Open("passwords.db...
package datastore import ( "context" "fmt" "io/fs" "log" "path" "regexp" "strconv" "strings" _ "github.com/mattn/go-sqlite3" ) type migration struct { date string number int } func (m1 migration) before(m2 migration) bool { return m1.date < m2.date || (m1.date == m2.date && m1.number < m2.number) } f...
// Copyright 2018 Google LLC All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
// -*- coding: utf-8 -*- // Copyright (C) 2018 Nippon Telegraph and Telephone 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...
package data import ( "context" "fmt" "io" "io/ioutil" "os" "path" "path/filepath" "reflect" "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" "github.com/flyteorg/flytestdlib/futures" "github.com/flyteorg/flytestdlib/logger" "github.com/flyteorg/flytestdlib/storage" "github.com/golang/protobuf/prot...
package main type PushEvent struct { Ref string `json:"ref"` Before string `json:"before"` Create bool `json:"create"` Deleted bool `json:"deleted"` Forced bool `json:"forced"` Baseref string `json:...
// Code generated by go-swagger; DO NOT EDIT. package plugins // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/...
package calibre import ( "bytes" "fmt" "math" "math/rand" "mime/multipart" "strings" "time" ) type Format uint8 func (f Format) Ext() string { switch f { case FormatPDF: return "pdf" case FormatEPUB: return "epub" case FormatMOBI: return "mobi" case FormatAZW3: return "azw3" case FormatDOCX: r...
package main import ( "encoding/json" "github.com/google/uuid" "github.com/jessevdk/go-flags" qsvencc_tcp "github.com/zlm2012/qsvencc-tcp" "io" "log" "net" "os/exec" ) var opts struct { Listen string `short:"l" long:"listen" description:"addr to listen" default:"192.168.122.1:11111"` CmdPath string `short:...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package fsx import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) // The request object for DescribeBackups operation. type DescribeBackupsInput struct { _ struct{} `type:"structure"` // IDs ...
package iperf import ( "context" "encoding/json" "fmt" "github.com/google/uuid" "io" "strings" "time" ) var ( defaultPort = 5201 defaultInterval = 1 defaultJSON = true ) func NewServer() *Server { s := &Server{ Options: &ServerOptions{ Port: &defaultPort, Interval: &defaultInterval, ...
package catalogsource import ( "fmt" "regexp" "strconv" "strings" "sync" "github.com/sirupsen/logrus" versionutil "k8s.io/apimachinery/pkg/util/version" "k8s.io/apimachinery/pkg/version" "github.com/operator-framework/api/pkg/operators/v1alpha1" ) const ( // regex capture group names // capGrpKubeMajor...
/* * 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...
// Copyright 2020 Self Group Ltd. All Rights Reserved. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.6.1 // source: msgtype.proto package msgprotov1 import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflec...
package api import ( "net/http" "net/http/httptest" "os" "strings" "testing" "time" "github.com/aquasecurity/starboard-aqua-csp-webhook/pkg/ext" "github.com/aquasecurity/starboard-aqua-csp-webhook/pkg/starboard" sec "github.com/aquasecurity/starboard/pkg/apis/aquasecurity/v1alpha1" "github.com/stretchr/test...
/* * Copyright 2017 XLAB d.o.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
package main import ( "os" "path" "github.com/gdamore/tcell" "github.com/orcaman/concurrent-map" "github.com/rivo/tview" usUI "UsedSpace/usUI" usWalk "UsedSpace/usWalk" ) // Create the application instance, all main components, start the app and directory scan in parallel func main() { givenPath, _ := os.Ge...
// slice_flags is a tool to instantly implement a flag.Value called // <Something>SliceFlag, which contains a // slice of <Something>Flags, an accessor called <Something>Slice, and a test to // ensure that the SliceFlag parses and Preprocesses correctly if necessary. // // It's intended for use in cmd/bytemark/app/flag...
package integration import ( "bytes" "context" "crypto/rand" "crypto/tls" "encoding/json" "flag" "fmt" "log" "net" "os" "sort" "sync" "testing" "time" "decred.org/cspp" "decred.org/cspp/coinjoin" "decred.org/cspp/internal/nettest" "decred.org/cspp/server" "github.com/decred/dcrd/wire" "golang.org/...
package main import ( "bufio" "log" _ "math" "os" "strconv" "strings" "github.com/eaciit/dbox" tk "github.com/eaciit/toolkit" . "eaciit/wfdemo-git/library/models" "time" _ "github.com/eaciit/dbox/dbc/mongo" "github.com/eaciit/orm" dc "eaciit/wfdemo-git/processapp/threeextractor/dataconversion" ) var...
// Copyright 2021 ETH Zurich // // 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 wri...
package aws import ( "crypto/hmac" "crypto/sha256" "encoding/base64" "encoding/xml" "fmt" "io/ioutil" "net/http" "os" "sort" "strings" "time" ) var b64 = base64.StdEncoding type Client struct { Key, Secret string } var Debug = os.Getenv("DEBUG") == "true" func (client *Client) Debug(format string, i .....
package clone import ( "bytes" "context" "encoding/gob" "fmt" "github.com/Microsoft/hcsshim/internal/regstate" "github.com/Microsoft/hcsshim/internal/uvm" specs "github.com/opencontainers/runtime-spec/specs-go" ) const ( configRoot = "LateClone" configKey ...
package app_test import ( "io" "testing" "github.com/o1egl/paseto/v2" "github.com/powerman/check" "github.com/Djarvur/allcups-itrally-2020-task/internal/app/game" ) func TestBalance(tt *testing.T) { t := check.T(tt) cleanup, a, _, mockGame := testNew(t) defer cleanup() mockGame.EXPECT().Balance().Return(0...
package policy import ( "context" "fmt" "hash/fnv" "strings" page "github.com/infraboard/mcube/pb/page" "github.com/infraboard/mcube/types/ftime" "github.com/infraboard/keyauth/app/namespace" "github.com/infraboard/keyauth/app/role" "github.com/infraboard/keyauth/app/user" ) // New 新实例 func New(req *Create...
package wireguardexporter import ( "bytes" "net" "sort" "strings" "github.com/prometheus/client_golang/prometheus" "golang.zx2c4.com/wireguard/wgctrl/wgtypes" ) var _ prometheus.Collector = &collector{} // A collector is a prometheus.Collector for a WireGuard device. type collector struct { DeviceInfo *prome...
package ast import ( "bytes" "encoding/binary" "fmt" "go-database/util" "io" ) type SQLType int8 type SQLInt int64 type SQLFloat float64 type SQLString string type SQLColumn string const ( ST_INT SQLType = iota ST_FLOAT ST_STRING ST_COLUMN ST_ILLEGAL ) type SQLValue interface { Raw() []byte GetType() S...
package cyclonedx import ( "encoding/xml" "fmt" "strings" "github.com/anchore/grype/grype/match" "github.com/anchore/grype/grype/vulnerability" "github.com/anchore/syft/syft/pkg" syftCDX "github.com/anchore/syft/syft/presenter/cyclonedx" "github.com/google/uuid" ) // Source: https://github.com/CycloneDX/spec...
package main import ( "bufio" "bytes" "fmt" "io/ioutil" "os" exec "os/exec" "sort" "text/template" ) func post(DS *MainSearch) { fmt.Printf("\n\nMain - Post Processing\n======================\n\n") DC := DS.cnfg // setup log dir and open main log files basedir, _ := os.Open(DC.logDir) subdirs, _ := bas...
package graphics import ( "github.com/go-gl/mathgl/mgl32" "github.com/go-gl/mathgl/mgl64" "github.com/maxfish/gojira2d/pkg/utils" "math" ) const MinZoom float64 = 0.01 const MaxZoom float64 = 20 // Camera2D a Camera based on an orthogonal projection type Camera2D struct { x float64 y ...
package cli import ( "context" "fmt" "github.com/auth0/auth0-cli/internal/ansi" "github.com/auth0/auth0-cli/internal/branding" "github.com/auth0/auth0-cli/internal/prompt" "github.com/spf13/cobra" "golang.org/x/sync/errgroup" "gopkg.in/auth0.v5" "gopkg.in/auth0.v5/management" ) var ( templateBody = Flag{ ...
package core /* #cgo CFLAGS: -I./ffmpeg/include #cgo LDFLAGS: -L./ffmpeg/lib -lavcodec -lavformat -lavutil -lswscale #cgo CFLAGS: -I./sdl/include #cgo LDFLAGS: -L./sdl/lib -lSDL2 -lSDL2main -lSDL2_image #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavutil/avutil.h> #include <libswscal...
package hlsserver import ( "context" "io" "net" "net/http" "path" "strings" "sync" "time" "github.com/aler9/rtsp-simple-server/internal/hlsconverter" "github.com/aler9/rtsp-simple-server/internal/logger" "github.com/aler9/rtsp-simple-server/internal/pathman" "github.com/aler9/rtsp-simple-server/internal/s...
package main import ( "log" "os" p "path" "path/filepath" "sort" "strings" "time" ) type RecordSet map[time.Time]string // omittingComment: if omittingComment is set to true, // no comparison on 'comment' records will be made func PerformDedupe(path string, usingModTime bool, omittingComment bool, maxCount i...
/* Copyright 2014 Ooyala, Inc. All rights reserved. * * This file is 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 2019 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
/* Copyright 2018 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
package storage import ( "errors" "fmt" "github.com/syndtr/goleveldb/leveldb/util" ) // KeyPrefix constants. const ( DataExecutable KeyPrefix = 0x01 // DataMPT is used for MPT node entries identified by Uint256. DataMPT KeyPrefix = 0x03 // DataMPTAux is used to store additional MPT data like height-root // m...
package v1alpha1 import ( "fmt" "net/url" "path/filepath" "strconv" "strings" "time" rbac "k8s.io/api/rbac/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // KoliPrefixValue is used for creating annotations and labels const ( KoliPrefixValue = "kolihub.io" Rel...
package jwt import ( "crypto" b64 "encoding/base64" "encoding/json" "fmt" "strings" "time" perror "github.com/leeif/pluto/datatype/pluto_error" "github.com/leeif/pluto/utils/rsa" ) const ( ALGRAS = "rsa" ACCESS = "access" REGISTERVERIFY = "register_verify" PASSWORDRESET = "password_rese...
/* Copyright © 2020 <NAME> <<EMAIL>> 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, distribute, ...
// 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 locales import ( "fmt" ) var attrDesc = map[string]string{ "json": `Attributes are JSON format.`, "selector": `Filter used to select on which nodes should the automation be executed. Basic ex: @identity='{node_id}'.`, "run-id": ...
// Copyright 2021 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 The Perses 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 writi...
package dnsmadeeasy import ( "bytes" "encoding/json" "fmt" "github.com/imdario/mergo" "strconv" ) // DataResponse is the response from a GET ie all records for // a domainID type DataResponse struct { Data []Record `json:"data"` } // Record is used to represent a retrieved Record. type Record struct { Name ...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2021 Datadog, Inc. /* Licensed under the Apache License, Version 2.0 (the "License"); you may not u...
//go:build amd64 && !appengine && !noasm && gc // +build amd64,!appengine,!noasm,gc // This file contains the specialisation of Decoder.Decompress4X // that uses an asm implementation of its main loop. package huff0 import ( "errors" "fmt" ) // decompress4x_main_loop_x86 is an x86 assembler implementation // of De...
package main import ( "encoding/json" "flag" "fmt" "html/template" "log" "net/http" "strings" "github.com/threefoldfoundation/tfchain/pkg/config" "github.com/threefoldtech/rivine/modules" "github.com/threefoldtech/rivine/pkg/api" "github.com/threefoldtech/rivine/pkg/daemon" "github.com/threefoldtech/rivi...
package main import ( "context" "log" "net/http" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/exporters/otlp/otlptrace" "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" "go.opentelemetry.io/otel/exporters/stdout/stdouttrace" "go.opentelemetry.io/o...
package results import ( "luahelper-lsp/langserver/check/common" "luahelper-lsp/langserver/check/compiler/ast" "luahelper-lsp/langserver/check/compiler/lexer" "luahelper-lsp/langserver/log" "strings" ) // SelfConvertInterface 接口, self转换的 type SelfConvertInterface interface { ChangeSelfToReferVar(strTable string...
package messenger import ( "fmt" "reflect" "time" "github.com/go-distributed/messenger/codec" "github.com/go-distributed/messenger/transporter" log "github.com/golang/glog" ) const defaultQueueSize = 1024 const preparePeriod = time.Second * 1 // MessageHandler is a callback that handles the messages. // One c...
package aws import ( "github.com/infracost/infracost/internal/resources" "github.com/infracost/infracost/internal/schema" "fmt" "github.com/infracost/infracost/internal/usage" "github.com/shopspring/decimal" "strings" ) type APIgatewayv2API struct { Address *string ProtocolType *strin...
package shellframework import ( "flag" "fmt" "github.com/eshu0/shellframework/interfaces" ) type CommandFlags struct { sfinterfaces.IFlags command sfinterfaces.ICommand parsedflags map[string]sfinterfaces.IFlag flags []sfinterfaces.IFlag } type CommandFlag struct { sfinterfaces.IFlag name string...
// Parser for JUnit XML output. package test import ( "bytes" "encoding/xml" "io/ioutil" "os" "path" "strings" "time" "core" ) func looksLikeJUnitXMLTestResults(b []byte) bool { return bytes.HasPrefix(b, []byte{'<', '?', 'x', 'm', 'l'}) || bytes.HasPrefix(b, []byte{'<', 't', 'e', 's', 't'}) } func parseJU...
/* Copyright 2014 <NAME> 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 writing, ...
package main // Main emulator executable. This integrates all the components of the emulator // and contains the ebiten main loop. import ( "flag" "fmt" "os" "github.com/hajimehoshi/ebiten" "github.com/freewilll/apple2-go/audio" "github.com/freewilll/apple2-go/cpu" "github.com/freewilll/apple2-go/disk" "git...
package instruction import ( "github.com/deepvalue-network/software/pangolin/domain/middle/instructions/instruction/condition" "github.com/deepvalue-network/software/pangolin/domain/middle/instructions/instruction/match" "github.com/deepvalue-network/software/pangolin/domain/middle/instructions/instruction/remainin...
package signal // Code generated by go generate; DO NOT EDIT. // This file was generated by robots at // 2020-12-16 20:52:36.092991 +0100 CET m=+0.012766905 import ( "math" "sync" ) // u8 is uint8 Unsigned fixed-point signal. type u8 struct { buffer []uint8 channels bitDepth } // Uint8 allocates a new sequenti...
package filesharing import ( "bufio" "errors" "io" "os" "path/filepath" "nimona.io/internal/rand" "nimona.io/pkg/blob" "nimona.io/pkg/context" "nimona.io/pkg/did" "nimona.io/pkg/log" "nimona.io/pkg/network" "nimona.io/pkg/object" "nimona.io/pkg/objectmanager" ) var ErrTransferRejected = errors.New("tran...
// 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. package glide import ( "bytes" "io/ioutil" "log" "os" "path" "path/filepath" "github.com/golang/dep" "github.com/golang/dep/gps" "github.com/golang/d...
package graph import ( "code.google.com/p/plotinum/plot" "code.google.com/p/plotinum/plotter" "code.google.com/p/plotinum/vg" "fmt" "github.com/THUNDERGROOVE/SDETool2/log" "github.com/THUNDERGROOVE/SDETool2/market" "github.com/lucasb-eyer/go-colorful" "math" "math/rand" "sort" "time" ) type...
// +build ignore // Credit to <NAME> (https://github.com/neelance/dom) // His code was crafted to fit haiku's use package main import ( "fmt" "io" "os" "strings" "github.com/PuerkitoBio/goquery" "github.com/influx6/flux" ) var elemNameMap = map[string]string{ "a": "Anchor", "article": "Article",...
/* Copyright 2019 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
package defaultrpc import ( "context" "fmt" "time" "github.com/golang/protobuf/proto" module "github.com/shihray/gserver/module" mqRPC "github.com/shihray/gserver/rpc" rpcPB "github.com/shihray/gserver/rpc/pb" argsUtil "github.com/shihray/gserver/rpc/util" utils "github.com/shihray/gserver/utils" "github.co...
package emr //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 //distribut...
// 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. /* The taskqueue package provides a client for App Engine's taskqueue service. Using this service, applications may perform work outside a user's request. A Tas...
// 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 logpolicy manages the creation or reuse of logtail loggers, // caching collection instance state on disk for use on future runs of // pro...
// Copyright 2020 <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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
// Code generated by entc, DO NOT EDIT. package ent import ( "fmt" "strings" "entgo.io/ent/dialect/sql" "github.com/fogo-sh/grackdb/ent/project" "github.com/fogo-sh/grackdb/ent/projecttechnology" "github.com/fogo-sh/grackdb/ent/technology" ) // ProjectTechnology is the model entity for the ProjectTechnology s...
package stateMachine import ( "LogWatcher/pkg/mongo" "LogWatcher/pkg/requests" "LogWatcher/pkg/server" "LogWatcher/pkg/stats" "regexp" "strconv" "github.com/sirupsen/logrus" ) var ( roundStart = regexp.MustCompile(`: World triggered "Round_Start"`) roundWin = regexp.MustCompile(`: World trigge...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: error.proto package pb import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import any "github.com/golang/protobuf/ptypes/any" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _...
/* 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 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 a...
package filebuf import ( "io" "os" "golang.org/x/exp/mmap" ) /*************************************************************************************** * Data is an interface for a piece of data that comes from a certain source * For now we have 2 sources, a memory buffer ([]byte) or a file (io.ReaderAt) * TODO:...
/** Copyright (c) 2016 The ConnectorDB Contributors Licensed under the MIT license. **/ package query import ( "connectordb/datastream" "errors" "fmt" "github.com/connectordb/pipescript" "github.com/connectordb/pipescript/interpolator" ) var ( //DatasetIndexBacktrack is the number of elements to backtrack in a...
//go:build windows package win import ( "runtime" "syscall" "unsafe" "github.com/rodrigocfd/windigo/internal/proc" "github.com/rodrigocfd/windigo/win/co" "github.com/rodrigocfd/windigo/win/errco" ) // 📑 https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createdialogparamw fu...
package services import ( "net/http" "net/url" "path" "strings" "github.com/jfrog/gofrog/parallel" "github.com/jfrog/jfrog-client-go/artifactory/services/utils" "github.com/jfrog/jfrog-client-go/auth" "github.com/jfrog/jfrog-client-go/http/jfroghttpclient" clientutils "github.com/jfrog/jfrog-client-go/utils"...
// Copyright 2016 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package v1 import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Gets the details of a specific instance. func LookupInstance(ctx *pul...