text
stringlengths
8.57k
38.1k
package extractors import ( "context" "encoding/json" "errors" "fmt" "math/rand" "net/url" "os" "os/exec" "path" "regexp" "strconv" "strings" "time" ) type Youtube struct { API thumb string cookie string Duration time.Duration VideoInfo ytPlayerResponseData Formats ytFormatList } // inhe...
package utils // #cgo CFLAGS: -g -Wall // #include <stdio.h> // #include <stdlib.h> // #include <string.h> // #include "cutils.h" import "C" import ( "bufio" "encoding/json" "fmt" "io/ioutil" "math/rand" "os" "os/exec" "path" "path/filepath" "runtime" "runtime/debug" "runtime/pprof" "strconv" "strings" ...
// Copyright 2020 Opsani // // 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 writ...
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2017 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...
// +build fvtests // Copyright (c) 2018 Tigera, 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 // // Unles...
package gocloc import ( "bufio" "bytes" "fmt" "io/ioutil" "os" "path/filepath" "regexp" "sort" "strings" "unicode" enry "github.com/go-enry/go-enry/v2" ) // ClocLanguage is provide for xml-cloc and json format type ClocLanguage struct { Name string `xml:"name,attr" json:"name,omitempty"` FilesCoun...
// Package instance provides a mini Prometheus scraper and remote_writer. package instance import ( "bytes" "context" "crypto/md5" "encoding/hex" "encoding/json" "errors" "fmt" "math" "os" "path/filepath" "sync" "time" "github.com/go-kit/log" "github.com/go-kit/log/level" "github.com/grafana/agent/pkg/...
// Copyright 2021 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
// Copyright 2016 The G3N 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 physics import ( "github.com/kasworld/h4o/experimental/collision/shape" "github.com/kasworld/h4o/experimental/physics/equation" "github.com/kasworl...
package dyld import ( "fmt" "math/bits" "strings" "github.com/blacktop/go-macho/types" ) type formatVersion uint32 const ( DylibsExpectedOnDisk formatVersion = 0x100 IsSimulator formatVersion = 0x200 LocallyBuiltCache formatVersion = 0x400 BuiltFromChainedFixups formatVersion = 0x800 ) fu...
// 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. package lsp import ( "bytes" "context" "fmt" "go/ast" "go/token" "go/types" "log" "sort" "strings" "time" "golang.org/x/tools/internal/event" "gol...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.14.0 // source: envoy/extensions/filters/network/rbac/v4alpha/rbac.proto package envoy_extensions_filters_network_rbac_v4alpha import ( v4alpha "github.com/cilium/proxy/go/envoy/config/rbac/v4alpha" _ "githu...
/* Copyright 2014 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 et import ( "github.com/blugelabs/bluge/analysis" ) // this content was obtained from: // lucene-4.7.2/analysis/common/src/resources/org/apache/lucene/analysis/ // ` was changed to ' to allow for literal string var StopWordsBytes = []byte(`# This file was created by <NAME> and is distributed under the BSD l...
package bass import ( "bytes" "context" "errors" "fmt" "io" "strings" "time" "github.com/jonboulle/clockwork" "github.com/vito/bass/ioctx" "github.com/vito/bass/zapctx" ) // Ground is the scope providing the standard library. var Ground = NewEmptyScope() // Clock is used to determine the current time. var...
//go:build go1.18 // +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
package gorgonia import ( "fmt" "hash" "image" "github.com/chewxy/hm" "github.com/chewxy/math32" "github.com/pkg/errors" "gorgonia.org/tensor" ) // YoloTrainer Wrapper around yoloOP // It has method for setting desired bboxes as output of network type YoloTrainer interface { ActivateTrainingMode() DisableTr...
package main import ( "fmt" "io/ioutil" "math/rand" "sort" "strconv" "strings" "time" ) const ( MethodA = iota MethodB = iota MethodC = iota MethodD = iota MethodE = iota MethodF = iota ) // A Street, described by the intersection it originates from (B), the // intersection it arrives to (E), a length (...
// Copyright 2013 <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...
// SQLIFINDER is a remake of the og Sqlifinder made in python // credits to the og developer see the based project here // => https://github.com/americo/sqlifinder // // // This rewrite was written and recreated by ArkAngeL43 with new features and general // and base ideas of personally what i thought sqlifinder might ...
package tunnel import ( "encoding/binary" "fmt" "io" "net" "runtime" "strconv" "sync" "sync/atomic" "time" "github.com/Lafeng/deblocus/crypto" ex "github.com/Lafeng/deblocus/exception" log "github.com/Lafeng/deblocus/glog" "github.com/cloudflare/golibs/bytepool" "github.com/cloudflare/golibs/lrucache" )...
package pool import ( "bytes" "encoding/binary" "errors" consulApi "github.com/hashicorp/consul/api" net_error "github.com/mindalpha/mindalpha-serving-go-client/error" msg_hdr "github.com/mindalpha/mindalpha-serving-go-client/message_header" client_logger "github.com/mindalpha/mindalpha-serving-go-client/logger...
// // upload.go // Copyright(c)2014-2015 Google, Inc. // // This file is part of skicka. // // 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: container.proto package storage import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" empty "github.com/golang/protobuf/ptypes/empty" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "github.com/microsoft/moc/rpc/com...
/* 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 rtmp import ( "encoding/binary" "github.com/ZachGill/rtmp/amf/amf0" "github.com/ZachGill/rtmp/config" ) const NetConnectionSucces = "NetConnection.Connect.Success" func generateWindowAckSizeMessage(size uint32) []byte { windowAckSizeMessage := make([]byte, 16) //---- HEADER ----// // fmt = 0 and csid =...
/* * Copyright (c) 2019 UPLEX Nils Goroll Systemoptimierung * All rights reserved * * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain t...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/common.proto package common import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a c...
package main import ( "flag" "time" "net/url" "os" "bufio" "fmt" "regexp" "encoding/csv" "net" "strconv" "sync" "strings" "golang.org/x/net/publicsuffix" "github.com/franela/goreq" "github.com/moovweb/gokogiri" "github.com/moovweb/gokogiri/xpath" "runtime" "gopkg.in/mgo.v2" "path" //"github.com/stre...
// Copyright 2019 <NAME>. 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...
// Copyright 2015, <NAME> <<EMAIL>> // See the LICENSE file for more details. package cubez import ( m "github.com/harbdog/cubez/math" ) // a few internal epsilon values const ( velocityEpsilon m.Real = 0.01 positionEpsilon m.Real = 0.01 ) // Contact holds all of the data associated with a contact between two co...
// Package saml contains login methods for SAML. package saml import ( "bytes" "compress/flate" "crypto/x509" "encoding/base64" "encoding/pem" "encoding/xml" "fmt" "io/ioutil" "strings" "sync" "time" "github.com/beevik/etree" xrv "github.com/mattermost/xml-roundtrip-validator" "github.com/pkg/errors" d...
// Copyright © 2013-2018 Galvanized Logic Inc. // Use is governed by a BSD-style license found in the LICENSE file. package vu // pov.go controls world transforms and scene graph child parent // relationships. import ( "log" "github.com/gazed/vu/math/lin" ) // AddPart creates a new entity with a point-of-...
// Copyright (c) 2018 Uber Technologies, Inc. // // 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/resultstore/v2/target.proto package resultstore // import "github.com/sunnogo/go-genproto/googleapis/devtools/resultstore/v2" import proto "github.com/sunnogo/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppre...
// Copyright 2016 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
package main import ( "bytes" "errors" "flag" "fmt" "io/ioutil" "os" "path/filepath" "regexp" "strings" "sync" "github.com/sirupsen/logrus" utilerrors "k8s.io/apimachinery/pkg/util/errors" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/test-infra/experiment/autobumper/bumper" "k8s.io/test-infra/prow/conf...
// Package s3 provides a storagedriver.StorageDriver implementation to // store blobs in Amazon S3 cloud storage. // // This package leverages the docker/goamz client library for interfacing with // S3. It is intended to be deprecated in favor of the s3-aws driver // implementation. // // Because S3 is a key, value sto...
/* 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, ...
package sharedhttpcache import ( "bufio" "fmt" "io" "io/ioutil" "math" "net/http" "net/url" "sort" "strconv" "strings" "time" "golang.org/x/net/context" "github.com/dylandreimerink/sharedhttpcache/layer" "github.com/sirupsen/logrus" ) //The CacheController is the high level interface for a cache. The...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: mux/mux.proto package mux import ( descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org...
package scheduler import ( "context" "errors" "os" "sync" "time" "github.com/heyfey/vodascheduler/config" "github.com/heyfey/vodascheduler/pkg/algorithm" "github.com/heyfey/vodascheduler/pkg/common/mongo" "github.com/heyfey/vodascheduler/pkg/common/trainingjob" "github.com/heyfey/vodascheduler/pkg/common/ty...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/talent/v4beta1/company.proto package talent import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwi...
// 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. package postgres import ( "context" "database/sql" "errors" "fmt" "strings" "github.com/Masterminds/squirrel" "github.com/lib/pq" "golang.org/x/mod/se...
// 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...
/* * Copyright 2019-2020 VMware, 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...
// Copyright 2018 Shift Devices AG // Copyright 2020 Shift Crypto AG // // 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 req...
package main import ( "context" "errors" "fmt" "io" "io/fs" "net" "net/url" "os" "path" "path/filepath" "strconv" "strings" "time" dc "github.com/docker/cli/cli/compose/types" "github.com/rs/zerolog" "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/tendermint/tendermint/libs/log" rpcht...
/* * gomacro - A Go interpreter with Lisp-like macros * * Copyright (C) 2017-2018 <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * * st...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.18.0 // source: udpa/service/orca/v1/orca.proto package v1 import ( context "context" v1 "github.com/cncf/xds/go/udpa/data/orca/v1" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: common/v1/common.proto package v1 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 co...
package p2p import ( "context" "errors" "fmt" "io" "net" "net/url" "runtime/debug" "strconv" "sync" "time" "github.com/tendermint/tendermint/libs/cmap" "github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/service" tmconn "github.com/tendermint/tendermint/p2p/conn" ) // Pee...
// Package mal - Mini audio library (mini_al cgo bindings). package mal /* #cgo CFLAGS: -std=gnu99 #cgo mal_debug CFLAGS: -DMAL_DEBUG_OUTPUT=1 #cgo linux LDFLAGS: -ldl -lpthread -lm #cgo openbsd LDFLAGS: -lpthread -lm -lossaudio #cgo netbsd LDFLAGS: -lpthread -lm -lossaudio #cgo freebsd LDFLAGS: -lpthread -lm #cgo an...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: config.proto package config import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-...
// Copyright 2016 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 applicabl...
package server // import "github.com/FrankerFaceZ/FrankerFaceZ/socketserver/server" import ( "bytes" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "net/http" "net/http/httputil" "net/url" "os" "os/signal" "runtime" "strconv" "strings" "sync" "sync/atomic" "syscall" "time" "unicode/utf8" "...
package items import ( "encoding/json" "errors" "fmt" "net/http" "time" "github.com/go-chi/render" "github.com/jinzhu/gorm" "github.com/France-ioi/validator" "github.com/France-ioi/AlgoreaBackend/app/database" "github.com/France-ioi/AlgoreaBackend/app/formdata" "github.com/France-ioi/AlgoreaBackend/app/s...
package cron import ( "strings" "testing" "time" ) func TestActivation(t *testing.T) { tests := []struct { time, spec string expected bool }{ // Every fifteen minutes. {"Mon Jul 9 15:00 2012", "0/15 * * * *", true}, {"Mon Jul 9 15:45 2012", "0/15 * * * *", true}, {"Mon Jul 9 15:40 2012", "0/15 * * ...
// Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2017 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package models import ( "encoding/json" "fmt" "strings" "time" "code.gitea.io/gitea/modules/l...
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build ignore package main import "strings" // Notes: // - Less-than-64-bit integer types live in the low portion of registers. // For now, the upper ...
package ipmigo import ( "encoding/binary" "encoding/hex" "fmt" "math" ) const ( sdrFirstID uint16 = 0x0000 sdrLastID uint16 = 0xffff sdrIDStringMaxSize = 16 sdrHeaderSize = 5 sdrDefaultReadBytes = 32 sdrCommonSensorSize = 18 sdrFullSensorSize = 25 + sdrCommonSensorSize sdrCompactSensor...
// Copyright (c) 2017, <NAME> <<EMAIL>> // See LICENSE for licensing information package interp import ( "bytes" "context" "fmt" "io" "io/ioutil" "math" "math/rand" "os" "regexp" "runtime" "strings" "sync" "time" "lacima.com/sh/expand" "lacima.com/sh/pattern" "lacima.com/sh/syntax" ) func (r *Runner...
package types //go:generate stringer -type=LoadCmd -output commands_string.go import ( "encoding/binary" "fmt" "strings" ) // A LoadCmd is a Mach-O load command. type LoadCmd uint32 func (c LoadCmd) Command() LoadCmd { return c } func (c LoadCmd) Put(b []byte, o binary.ByteOrder) int { panic(fmt.Sprintf("Put n...
// 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 resolver implements a stub DNS resolver that can also serve // records out of an internal local zone. package resolver import ( "bufio"...
package chain import ( "bytes" "fmt" "os" "path/filepath" "strings" "time" "github.com/copernet/copernicus/conf" "github.com/copernet/copernicus/errcode" lmp "github.com/copernet/copernicus/logic/mempool" "github.com/copernet/copernicus/model/block" "github.com/copernet/copernicus/model/blockindex" mchain...
/* * Copyright 2019-2020 by <NAME> * https://www.fibratus.io * 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 *...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.12.3 // source: branch.proto package pb import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grp...
// 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...
package service import ( "context" "encoding/base64" "encoding/json" "fmt" "net/http" "strings" "testing" "github.com/fleetdm/fleet/v4/server/fleet" "github.com/fleetdm/fleet/v4/server/ptr" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) fu...
// Copyright 2021 The Chromium OS 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 conference import ( "context" "regexp" "strconv" "strings" "time" "chromiumos/tast/common/action" "chromiumos/tast/errors" "chromiumo...
// MIT License // // Copyright (c) 2016 GenesisCommunity // // 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, mo...
package eligibility import ( "context" "encoding/binary" "errors" "fmt" "sync" lru "github.com/hashicorp/golang-lru" "github.com/spacemeshos/fixed" "github.com/spacemeshos/go-spacemesh/codec" "github.com/spacemeshos/go-spacemesh/common/types" "github.com/spacemeshos/go-spacemesh/hare/eligibility/config" "...
package x86 import ( "encoding/binary" "fmt" "log" "math" "github.com/francoishill/rsc/c2go/liblink" ) // Inferno utils/8l/pass.c // http://code.google.com/p/inferno-os/source/browse/utils/8l/pass.c // // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. // Portions Copyright © 1995-1997 <NAM...
// Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
/* Copyright 2018 Pressinfra SRL 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.16.0 // source: envoy/extensions/filters/http/rbac/v3/rbac.proto package envoy_extensions_filters_http_rbac_v3 import ( _ "github.com/cncf/xds/go/udpa/annotations" v3 "github.com/envoyproxy/go-control-plane/...
package retrievalmarket import ( "bytes" "context" "errors" "fmt" "io" "github.com/filecoin-project/go-address" "github.com/filecoin-project/specs-actors/actors/abi" "github.com/filecoin-project/specs-actors/actors/abi/big" "github.com/filecoin-project/specs-actors/actors/builtin/paych" "github.com/ipfs/go-...
package context import ( "encoding/binary" "errors" "fmt" "math" "math/rand" "net" "reflect" "sort" "github.com/free5gc/pfcp/pfcpType" "github.com/free5gc/smf/context/pool" "github.com/free5gc/smf/factory" "github.com/free5gc/smf/logger" ) // UserPlaneInformation store userplane topology type UserPlaneIn...
// Copyright (c) 2018 Aidos Developer // 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,...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: pb/http/entry.proto package http import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang....
// This checks a disc for errors. It is also a sensitive memory tester // (suprisingly) so if you get a fault using this program then it could // be disc or RAM. // // <NAME> <<EMAIL>> /* KEEP a state file - maybe number of rounds so could restart? Estimate time to finish also No timeout on write file? Or read once...
package specr import ( "bytes" "errors" "os" "os/exec" "os/user" "path" "path/filepath" "strings" "sync" "time" gotree "github.com/DiSiqueira/GoTree" "github.com/hashicorp/hil" "github.com/hashicorp/hil/ast" "github.com/murdinc/terminal" "github.com/olekukonko/tablewriter" "gopkg.in/ini.v1" ) // Spe...
// functions for post, thread, board, and page building package main import ( "encoding/json" "fmt" "io" "io/ioutil" "os" "path" "strconv" "syscall" "text/template" "github.com/tdewolff/minify" minifyHTML "github.com/tdewolff/minify/html" minifyJS "github.com/tdewolff/minify/js" minifyJSON "github.com/t...
package fb import ( "github.com/gotang/godefs" "unsafe" ) /* #include <linux/fb.h> */ import "C" /* Definitions of frame buffers */ var( FBIO_CURSOR int FBIOGET_VBLANK int FBIO_WAITFORVSYNC int ) func init() { FBIO_CURSOR = godefs.IOWR('F', 0x08, int(unsafe.Sizeof(Fb_cursor{}))) FBIOGET_VBLAN...
package p2p import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/ecdsa" "crypto/elliptic" "crypto/hmac" "crypto/rand" "errors" "fmt" "hash" "io" "net" "sync" "time" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto/ecies" "github.com/ethereum/go-ethereum/crypto/secp256...
// Code generated by protoc-gen-go. // source: google.golang.org/genproto/googleapis/api/servicecontrol/v1/distribution.proto // DO NOT EDIT! package google_api_servicecontrol_v1 // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" im...
package agozon import "strings" var AudienceRatingList = map[string][]string{ "CA": []string{"G", "PG", "PG-13", "R", "NC-17", "NR", "Unrated", "Family Viewing"}, "DE": []string{"6", "12", "16"}, "FR": []string{"PG", "12", "16", "18"}, "US": []string{"G", "PG", "PG-13", "R", "NC-17", "NR", "Unrated"}, } // Defau...
package fuse import ( "bytes" "fmt" "log" "unsafe" ) var _ = log.Printf var _ = fmt.Printf type opcode int const ( _OP_LOOKUP = opcode(1) _OP_FORGET = opcode(2) _OP_GETATTR = opcode(3) _OP_SETATTR = opcode(4) _OP_READLINK = opcode(5) _OP_SYMLINK = opcode(6) _OP_MKNOD = opco...
/* ================================================================================== Copyright (c) 2019 AT&T Intellectual Property. Copyright (c) 2019 Nokia 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 co...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: einride/bigquery/public/v1/whos_on_first_geojson.proto package publicv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/p...
package check import ( "bytes" "luahelper-lsp/langserver/check/common" "luahelper-lsp/langserver/check/results" "luahelper-lsp/langserver/log" "reflect" "runtime" "sort" "strings" "unicode" ) const ( // 最终返回的最大结果 maxSymbols = 200 // 最低分 minScore = -1000 // 最大的候选查询字符 maxInputSize = 127 // 最大输入的查询字符 ma...
package c3to10min import ( "bufio" "log" "math" "os" "strings" "github.com/eaciit/dbox" tk "github.com/eaciit/toolkit" "eaciit/wfdemo-git/library/helper" . "eaciit/wfdemo-git/library/models" _ "github.com/eaciit/dbox/dbc/mongo" "errors" "reflect" "time" // "github.com/eaciit/orm" // dc "eaciit/wfdem...
// The MIT License (MIT) // // Copyright (c) 2015 <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...
package solutions import ( "testing" ) func TestSolution1(t *testing.T) { transactions := []int{1721, 979, 366, 299, 675, 1456} part1 := Product(SearchDouble2020(transactions)) if part1 != 514579 { t.Fatal("Double search got wrong answer") } part2 := Product(SearchTriple2020(transactions)) if part2 != 241...
// s3finder finds S3 buckets package main /* * s3finder.go * Find s3 buckets * By <NAME> * Created 20171202 * Last Modified 20171224 */ import ( "bufio" "bytes" "encoding/json" "flag" "fmt" "io/ioutil" "log" "net/http" "net/url" "os" "strings" "sync" "time" certstream "github.com/CaliDog/certstre...
package rog import ( "math" "math/rand" ) func colorToFloats(c RGB) (r, g, b float64) { r = float64(c.R) / 255.0 g = float64(c.G) / 255.0 b = float64(c.B) / 255.0 return } func colorToFloatsA(c RGB) (r, g, b float64) { r = float64(c.R) / 255.0 g = float64(c.G) / 255.0 b = float64(c.B) / 255.0 return } fun...
// Copyright (c) <NAME>. (https://github.com/jeevatkm) // aahframework.org/aah source code and usage is governed by a MIT style // license that can be found in the LICENSE file. package aah import ( "bytes" "compress/gzip" "io" "io/ioutil" "net/http" "net/http/httptest" "net/url" "os" "path" "path/filepath"...
package youtube import ( "encoding/json" "github.com/CodingVoid/gomble/gomble/audioformats" "github.com/CodingVoid/gomble/gomble/container/matroska" "github.com/CodingVoid/gomble/logger" "io" "io/ioutil" "net/http" "net/url" "errors" "fmt" "regexp" "runtime" "strconv...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...