text
stringlengths
5.51k
28.1k
// 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 frontend import ( "encoding/json" "fmt" "net/http" "strconv" "time" "github.com/luci/gae/service/memcache" "github.com/luci/luci-go/commo...
// Copyright 2014 <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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: yandex/cloud/lockbox/v1/payload.proto package lockbox import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect...
/* 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 belkin import ( "bytes" "encoding/xml" "errors" "fmt" "html" "io/ioutil" "net/http" "regexp" "strconv" "strings" "time" "github.com/go-home-iot/gossdp" ) // Device contains information about a device that has been found on the network type Device struct { Scan ScanResponse DeviceTyp...
// Copyright 2019 eBay Inc. // Primary authors: <NAME>, <NAME>, // <NAME>, and <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/...
// Copyright (c) 2020, The Emergent Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // kinaseq plots kinase learning simulation over time package main import ( "fmt" "math/rand" "github.com/emer/axon/axon" "github.com/emer/emer...
package main import ( "encoding/json" "github.com/framely/sgdnlu/generate_framely/framely" "github.com/framely/sgdnlu/generate_framely/framely/p" "github.com/framely/sgdnlu/generate_framely/sgd" "github.com/naturali/CrossWOZ/generate_framely/crosswoz" "github.com/naturali/CrossWOZ/generate_framely/dialog" "io/i...
// Copyright (c) <NAME> @bwplotka // Licensed under the Apache License 2.0. package linktransformer import ( "bufio" "bytes" "context" "io" "net" "net/http" "net/url" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "sync" "time" "github.com/bwplotka/mdox/pkg/mdformatter" "github.com/efficie...
// The MIT License // // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. // // Copyright (c) 2020 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 Soft...
// Package mbtiles contains some code parts borrowed from github.com/consbio/mbtileserver which is released under ISC. package mbtiles import ( "bytes" "compress/gzip" "compress/zlib" "database/sql" "encoding/json" "errors" "fmt" "io" "os" "path/filepath" "strconv" "strings" "sync" "time" "github.com/g...
// // MIT License // // (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP // // 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 lim...
/*Package cmd ... Copyright © 2020 NAME HERE <EMAIL ADDRESS> 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 agr...
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This package manages the SystemUpdateMonitor, which polls for changes to the // update/0 package. When a change is observed, it triggers a system update...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/landing_page_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" _ ...
// Copyright 2021 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 contains transformation functions on nodes, which are the // transformations that the typecheck package does that are distinct from the // typechec...
package nanoarch import ( "bufio" "errors" "fmt" "image" "image/color" "log" "os" "os/user" "reflect" "sync" "unsafe" ) /* #include "libretro.h" #cgo LDFLAGS: -ldl #include <stdlib.h> #include <stdio.h> #include <dlfcn.h> #include <string.h> void bridge_retro_init(void *f); void bridge_retro_deinit(void *...
package main import ( "bytes" "encoding/xml" "errors" "fmt" "go/format" "io" "io/ioutil" "sort" "strconv" "strings" "text/template" "github.com/botlink/go-mavlink/x25" ) type Dialect struct { Name string StringSizes map[int]bool XMLName xml.Name `xml:"mavlink"` Version string `xml:"ve...
package omnicli import ( "fmt" "testing" "github.com/dabankio/omnicli/testtool" "github.com/dabankio/omnicli/btcjson" ) /// TextTx createRawTx, signTx, sendTx func TestOmniSimpleTx(t *testing.T) { cli, killomnicored, err := RunOmnicored(&RunOptions{NewTmpDir: true}) testtool.FailOnFlag(t, err != nil, "Failed ...
// Copyright (c) 2018 The Biodv Authors. // All rights reserved. // Distributed under BSD2 license that can be found in the LICENSE file. // // Originally written by <NAME> <<EMAIL>>. // Package geolocate implements an interface // to GEOLocate gazetteer. package geolocate import ( "bytes" "encoding/json" "net/htt...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0 // protoc v3.12.3 // source: shape_hash.proto package interception import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/r...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/enums/placeholder_type.proto package enums 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 n...
package keeper import ( "fmt" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" "math" authtypes "github....
// 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...
package scrape // The following code was sourced and modified from the // https://github.com/andrew-d/goscrape package governed by MIT license. //TODO: add paginator to details import ( "errors" "fmt" "io" "regexp" "strings" "time" "github.com/slotix/dataflowkit/splash" "github.com/sirupsen/logrus" "githu...
/* * (c) 2016-2018 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
package easytgbot import ( "encoding/json" "fmt" "log" "net/url" "regexp" "strconv" "strings" "time" "github.com/imroc/req" "github.com/tidwall/gjson" ) // Telegram constants const ( // UserAgent is http user-agent header UserAgent = "EasyTGBot/1.0.0" // Endpoint is the endpoint for all API methods, //...
package keeper import ( "container/list" "fmt" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/params" "github.com/stratosnet/stratos-chain/x/register/types" "github.com/te...
// Copyright (C) MongoDB, Inc. 2017-present. // // 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 package bsoncodec import ( "errors" "fmt" "ref...
// 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...
/* Copyright 2011-2021 <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, s...
package main import ( "bufio" "errors" "fmt" "log" "math/rand" "os" "os/signal" "strconv" "strings" "syscall" "time" "github.com/shelomentsevd/mtproto" ) const updatePeriod = time.Second * 2 type Command struct { Name string Arguments string } // Returns user nickname in two formats: // <id> <Fi...
/* Copyright 2020 The KubeOne 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, sof...
package main import ( "context" "flag" "fmt" "net/http" "os" "strings" _ "net/http" _ "net/http/pprof" "github.com/spf13/viper" "github.com/pkg/profile" "github.com/kelseyhightower/envconfig" "github.com/O-C-R/singlepage" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "...
// 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 ...
// Copyright 2019 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, ...
// Copyright 2012-2016 <NAME>. All rights reserved. // Use of this source code is governed by a MIT-license. // See http://olivere.mit-license.org/license.txt for details. package elastic import ( "sync" "sync/atomic" "time" "github.com/hellofresh/elastic/backoff" ) // BulkProcessorService allows to easily proc...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/errors/conversion_action_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v1/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang....
// 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 a...
// Copyright 2020 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...
package ber import ( "bytes" "errors" "fmt" "io" "os" "reflect" ) type Packet struct { Identifier Value interface{} ByteValue []byte Data *bytes.Buffer Children []*Packet Description string } type Identifier struct { ClassType Class TagType Type Tag Tag } type Tag uint64 co...
// 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...
// Copyright (C) MongoDB, Inc. 2017-present. // // 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 package topology import ( "context" "errors" "...
// +build integrationtest package integrationtest import ( "bufio" "flag" "fmt" "io/ioutil" "os" "os/exec" "testing" "time" storkdriver "github.com/libopenstorage/stork/drivers/volume" _ "github.com/libopenstorage/stork/drivers/volume/portworx" "github.com/libopenstorage/stork/pkg/schedule" "github.com/l...
// Copyright 2016 The Prometheus 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...
// Copyright 2020 <NAME>, The PTT APP 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 agr...
/* Copyright 2019 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
/* * Copyright 2018 Venafi, 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...
// Copyright 2013-2020 go-diameter authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package diam import ( "bytes" "container/heap" "io" "net" "strconv" "sync" "sync/atomic" "unsafe" "github.com/ishidawataru/sctp" ) const (...
package ip2proxy import ( "bytes" "encoding/binary" "fmt" "math/big" "net" "os" "strconv" ) type ip2proxymeta struct { databasetype uint8 databasecolumn uint8 databaseday uint8 databasemonth uint8 databaseyear uint8 ipv4databasecount uint32 ipv4databaseaddr uint32 ipv6databaseco...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: moc_cloudagent_credentialmonitor.proto package admin import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) ...
package vips // #include "foreign.h" import "C" import ( "bytes" "encoding/xml" "fmt" "image/png" "math" "runtime" "unsafe" "golang.org/x/image/bmp" "golang.org/x/net/html/charset" ) // SubsampleMode correlates to a libvips subsample mode type SubsampleMode int // SubsampleMode enum correlating to libvips ...
package hjem import ( "context" "encoding/json" "fmt" "io" "net/http" "regexp" "strconv" "strings" "sync" "time" "github.com/PuerkitoBio/goquery" "gorm.io/gorm" ) const ( boligaBaseUrl = "https://www.boliga.dk" ) type PropertyType int const ( PropertyHouse PropertyType = iota + 1 PropertySharedHouse...
//go:generate mcube enum -m -p // // Code generated by protoc-gen-go-ext. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.1 // source: pkg/namespace/pb/service.proto package namespace import ( protoreflect "google.golang.org/protobuf/refle...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/common/tap/v3alpha/common.proto package envoy_config_common_tap_v3alpha import ( fmt "fmt" core "github.com/altipla-consulting/envoy-api/envoy/api/v3alpha/core" v3alpha "github.com/altipla-consulting/envoy-api/envoy/service/tap/v3alpha" _ "g...
// Copyright 2021 iLogtail 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 Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package container import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Get info about a GKE cluster from its name and...
// Copyright 2019 The Bazel 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 appl...
// Copyright 2020-2022 <NAME> / Quobix // SPDX-License-Identifier: MIT package rulesets import ( _ "embed" "encoding/json" "errors" "fmt" "github.com/daveshanley/vacuum/model" "github.com/daveshanley/vacuum/utils" "github.com/mitchellh/mapstructure" "github.com/xeipuuv/gojsonschema" "go.uber.org/zap" "strin...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/errors/ad_group_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are n...
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Command git-p prints the status of pending commits on all branches. // // git-p summarizes the status of each commit on every branch, // starting with HEAD a...
// Copyright 2012 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. // DWARF line number information. package dwarf import ( "errors" "path/filepath" "sort" "strconv" ) // A Line holds all the available information about...
// Copyright © 2018 The wormhole-connector 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...
// Copyright 2021 iLogtail Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
package main import ( "flag" "fmt" "os" "sort" "strconv" "strings" ) type uintslice []uint func (a uintslice) Len() int { return len(a) } func (a uintslice) Swap(i, j int) { a[i], a[j] = a[j], a[i] } func (a uintslice) Less(i, j int) bool { return a[i] < a[j] } func (i *uintsl...
/* Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR...
// Copyright 2011 Google Inc. All Rights Reserved. // This file is available under the Apache license. package parser import ( "strings" "testing" "github.com/google/mtail/internal/testutil" "github.com/google/mtail/internal/vm/position" ) type lexerTest struct { name string input string tokens []Token } ...
package main import ( "fmt" "github.com/jessevdk/go-flags" "io" "log" "os" "path" "path/filepath" "strings" "sync" "time" ) type Config struct { ReportFileStartDone bool `short:"e" long:"report-each" description:"Report as each file has completed being copied (for multi-file copy using recursive or config ...
package internal import ( "encoding/json" "fmt" "strings" compose "github.com/compose-spec/compose-go/types" "github.com/docker/docker/api/types/container" "github.com/docker/docker/oci" "github.com/docker/docker/oci/caps" "github.com/docker/docker/pkg/system" "github.com/docker/docker/profiles/seccomp" "gi...
package depinject import ( "bytes" "fmt" "github.com/cosmos/cosmos-sdk/depinject/internal/graphviz" "github.com/pkg/errors" "reflect" ) type container struct { *debugConfig resolvers map[string]resolver interfaceBindings map[string]interfaceBinding moduleKeys map[string]*moduleKey resolveStack []...
/* Copyright 2018 The Knative Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
package reporter import ( "context" "encoding/json" "fmt" "net/http" "net/url" "strconv" "strings" "sync" "time" "github.com/atlassian/voyager" comp_v1 "github.com/atlassian/voyager/pkg/apis/composition/v1" ops_v1 "github.com/atlassian/voyager/pkg/apis/ops/v1" "github.com/atlassian/voyager/pkg/apis/repor...
// Package embed provides interfaces to embed gocryptfs in an application package embed import ( "encoding/json" "fmt" "log" "math" "net" "os" "os/exec" "os/signal" "path" "path/filepath" "runtime" "runtime/debug" "strings" "sync/atomic" "syscall" "time" "github.com/hanwen/go-fuse/fuse" "github.com/...
package app import ( "encoding/json" "fmt" "io/ioutil" "math/rand" "os" "testing" "time" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" "github.com/cosmos/cosmos-sdk/baseapp" "github....
// Copyright 2012, <NAME> <<EMAIL>>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package htmlgen import ( "bytes" "errors" "fmt" "strconv" "testing" ) func compareHtml(root Tag, cmp string, usePretty bool, env ...Environment) error...
// Copyright 2017 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //first fat32 implementation in Go? package embedded import "unsafe" import "fmt" import "strings" const MBR_MAGIC = 0xAA55 const FAT_TYPE = 0xb const BLKSIZE = 512 c...
// sms_service_BulkService.go package v4 import ( "encoding/json" "errors" "fmt" // "time" ) //使用此服务可以将对您的大批量请求安排为异步批量请求,并可以获取您近期所执行请求的状态、 结果等信息。 const ( GET_AllChangedObjects = "getAllChangedObjects" CANCEL_Download = "cancelDownload" GET_ChangedItemId = "getChangedItemId" GET_ChangedScale = "...
package main import ( "encoding/json" "errors" "fmt" "io/ioutil" "math" "os" "runtime" "strconv" "strings" "time" "github.com/alecthomas/kingpin" "github.com/bojand/ghz/printer" "github.com/bojand/ghz/runner" "github.com/jinzhu/configor" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) var ( // set by ...
package main import ( //"crypto/sha256" "encoding/json" "fmt" "io/ioutil" "net/http" "os/user" "strconv" "strings" //"github.com/ghodss/yaml" "github.com/golang/glog" "k8s.io/api/admission/v1beta1" admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1" corev1 "k8s.io/api/core/v1" metav1...
package webdav import ( "container/list" "context" "crypto/sha1" "errors" "fmt" "github.com/jakeslee/aliyundrive" "github.com/jakeslee/aliyundrive/models" "github.com/sirupsen/logrus" "golang.org/x/net/webdav" "hash" "io" "io/fs" "io/ioutil" "os" "path/filepath" "strings" "sync" "time" ) const ( Ct...
package ascii /* * Copyright 2020-2021 Aldelo, LP * * 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...
// +build f40_41xxx // Peripheral: FSMC_Bank4_Periph Flexible Static Memory Controller Bank4. // Instances: // FSMC_Bank4 mmap.FSMC_Bank4_R_BASE // Registers: // 0x00 32 PCR4 PC Card control register 4. // 0x04 32 SR4 PC Card FIFO status and interrupt register 4. // 0x08 32 PMEM4 PC Card Common memory s...
// Copyright (c) 2014 Dataence, 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 app...
package main import ( "bytes" "context" "crypto/rand" "encoding/json" "flag" "fmt" "math/big" "net/http" "strconv" "strings" "sync" "text/template" "time" "github.com/coreos/go-oidc/v3/oidc" "github.com/gunsluo/go-example/hydra-client/pkce" "github.com/julienschmidt/httprouter" "golang.org/x/oauth2" ...
package fp import ( _ "errors" "reflect" "testing" ) func TestUnionInt(t *testing.T) { var v8 int = 8 var v2 int = 2 var v1 int = 1 expected := []int{v8, v2, v1} list1 := []int{v8, v2, v1, v1, v2, v8} list2 := []int{v8, v2, v1, v1, v2, v8} actual := UnionInt(list1, list2) if len(actual) != 3 || !ExistsInt...
package template // import "github.com/docker/infrakit/pkg/template" import ( "bytes" "fmt" "io" "net/http" "reflect" "strings" "sync" "text/template" "github.com/Masterminds/sprig" logutil "github.com/docker/infrakit/pkg/log" "github.com/docker/infrakit/pkg/types" ) var log = logutil.New("module", "core/...
// Code generated by protoc-gen-go. // source: google/spanner/v1/query_plan.proto // DO NOT EDIT! package spanner import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/genproto/googleapis/api/annotations" import google_protobuf1 "github.com/golang/protobuf/pty...
// Copyright 2022 Staex GmbH (https://staex.io) // 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 main import ( "bufio" "errors" "fmt" "log" "os" "path/filepath" "time" "github.com/gdamore/tcell/v2" "github.com/mattn/go-runewidth" ) func newEditor(scr tcell.Screen) *editor { ed := &editor{ scr: scr, } ed.ops = []keyMapping{ {tcell.KeyCtrlSpace, ed.selectText, "start/stop selecting text"}...
// Package tracker tracks status of all jobs, and handles persistence. // // Concurrency properties: // 1. The job map is protected by a Mutex, but lock is only required // to get a copy or set the Status value, so there is minimal // contention. // 2. Status objects are persisted to a Saver by a separate // ...
// Copyright 2015 LinkedIn Corp. 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 data import ( "context" "encoding/json" "errors" "fmt" "os" "path/filepath" "r3/cache" "r3/config" "r3/handler" "r3/schema" "r3/tools" "r3/types" "sort" "strings" "github.com/gofrs/uuid" "github.com/jackc/pgtype" "github.com/jackc/pgx/v4" ) // sets data // uses indexes (unique integers) to i...
// Copyright 2019 The OpenSDS 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 agre...
package main import ( "encoding/json" "fmt" "math/rand" "net/http" "net/url" "os" "strings" "time" "github.com/gin-gonic/gin" "github.com/googollee/go-socket.io" "github.com/moul/bolosseum" "github.com/moul/bolosseum/bots" "github.com/moul/bolosseum/bots/filebot" "github.com/moul/bolosseum/bots/httpbot"...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may // not use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" file acc...
// 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 config defines a struct to hold configurations of chrome.Chrome. package config import ( "crypto/sha256" "encoding/hex" "encoding/json" ...
// Copyright (c) 2018 ContentBox Authors. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package types import ( "bytes" "encoding/hex" "encoding/json" "fmt" "math" "github.com/BOXFoundation/boxd/core" corepb "github.com/BOXFoundation/boxd/core/pb" "git...
// Copyright 2015 <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 writi...
package main import ( "bufio" "fmt" "math" "os" "sort" "strings" ) const TunnelWallCode = int('#'); const TunnelEmptyCode = int('.'); const TunnelStartCode = int('@'); const TunnelDoorStart = int('A'); const TunnelDoorEnd = int('Z'); const TunnelKeyStart = int('a'); const TunnelKeyEnd = int('z'); const TunnelKe...
// +build vartime package curve25519 import ( "crypto/cipher" "crypto/sha512" "errors" "fmt" "math/big" "github.com/dedis/kyber" "github.com/dedis/kyber/group/mod" "github.com/dedis/kyber/util/random" ) var zero = big.NewInt(0) var one = big.NewInt(1) // Extension of Point interface for elliptic curve X,Y ...