text
stringlengths
5.51k
28.1k
package msgpb import ( "strings" "github.com/pkg/errors" ) func Categories(group Group) []Category { cats, ok := groups[group] if !ok { return nil } ret := make([]Category, len(cats)) copy(ret, cats) return ret } var groups = map[Group][]Category{ GROUP_ADULT: { ABORTION_4, PROCHOICE_4, PROLIFE_4,...
// Copyright 2010 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 shell import ( "fmt" "strings" "unicode" "unicode/utf8" ) // SQL lexer based on template/parse/lex.go. // itemType identifies the type of lex item...
package core import ( "bytes" "encoding/hex" "encoding/json" "fmt" "io/ioutil" "math/big" "os" "testing" "time" "github.com/nspcc-dev/neo-go/pkg/compiler" "github.com/nspcc-dev/neo-go/pkg/config" "github.com/nspcc-dev/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/fee" "github.com/nspcc-de...
package main // #cgo LDFLAGS: -lxdo // #include <xdo.h> // #include <stdio.h> // #include <stdlib.h> // #include <string.h> /* //Stores the xdo type xdo_t* disp ; //Connect to the given display void init(const char* d) { disp = xdo_new(d) ; } //Tell the X server that the given keys are down void keysDown(cons...
// // Copyright 2021-present Sonatype 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/customer_extension_setting.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googlea...
package cmd import ( "fmt" "io/ioutil" "log" "os" "sort" "strings" "text/tabwriter" "text/template" "github.com/docker/libcompose/config" "github.com/spf13/cobra" ) const ( //special envVarNameCustomer = "CUSTOMER" envVarNameProduct = "PRODUCT" envVarNameProject = "PROJECT" envVarNameProperty = "PR...
/* Copyright (c) 2019 Snowflake 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...
//go:build libvirt // +build libvirt package libvirt import ( "context" "encoding/xml" "fmt" "log" "net" "os" "os/exec" "strconv" "time" libvirt "libvirt.org/go/libvirt" libvirtxml "libvirt.org/go/libvirtxml" ) type libvirtClient struct { connection *libvirt.Connect // storage pool that holds all volum...
package ora import ( "bytes" "database/sql" "errors" "fmt" "runtime" "strings" "sync" ) // checkNumericColumn returns nil when the column type is numeric; otherwise, an error. func checkNumericColumn(gct GoColumnType, columnName string) error { switch gct { case I64, I32, I16, I8, U64, U32, U16, U8, F64, F32...
package slog import ( "flag" "fmt" "os" "runtime" "strings" "sync" "sync/atomic" "time" ) // logExitFunc provides a simple mechanism to override the default behavior // of exiting on error. Used in testing and to guarantee we reach a required exit // for fatal logs. Instead, exit could be a function rather th...
package pathfileops import ( "errors" "fmt" "os" "strconv" "strings" ) var mOsPermissionCodeToString = map[os.FileMode]string{ os.FileMode(0): "ModeNone", os.ModeDir: "ModeDir", os.ModeAppend: "ModeAppend", os.ModeExclusive: "ModeExclusive", os.ModeTemporary: "ModeTemporary", os....
package ob import ( "bytes" "crypto/ed25519" "crypto/rand" "crypto/sha256" "crypto/sha512" "encoding/binary" "errors" "fmt" "math/bits" "strconv" "strings" "unsafe" "github.com/spaolacci/murmur3" "lukechampine.com/urbit/atom" ) type AzimuthPoint uint32 func (p AzimuthPoint) IsGalaxy() bool { return p ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: product.proto // 指定等会文件生成出来的package package api import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protor...
/* Apache v2 license * Copyright (C) <2019> Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ package goplumber import ( "bytes" "context" "encoding/json" "github.com/pkg/errors" "github.com/sirupsen/logrus" "io" "io/ioutil" "strings" "sync" "time" ) // Pipe implementers handle the work requi...
package main import ( "fmt" "image" "image/color" "log" "unsafe" "gioui.org/app" "gioui.org/f32" "gioui.org/io/key" "gioui.org/io/system" "gioui.org/layout" "gioui.org/op" "gioui.org/unit" "gioui.org/widget" "gioui.org/widget/material" "gioui.org/x/eventx" "git.sr.ht/~jackmordaunt/kanban" "git.sr.ht/...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: intjson.proto package intjson import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ...
package maps import ( "game/config" "game/global" "game/lib" "github.com/liangmanlin/gootp/astar" "github.com/liangmanlin/gootp/kernel" "sync" "unsafe" ) const ( BTYPE_FIGHT int32 = iota + 1 BTYPE_COND // 条件 BTYPE_FUNC // 直接执行 BTYPE_LIST ) const MONSTER_WORK_TICK int64 = 200 // ms var _enem...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: yandex/cloud/organizationmanager/v1/organization.proto package organizationmanager import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobu...
package helm import ( "bytes" "context" "encoding/json" "errors" "fmt" "io/ioutil" "os" "github.com/sirupsen/logrus" yaml "gopkg.in/yaml.v2" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachine...
package main import ( "bytes" "crypto/tls" "crypto/x509" "encoding/json" "flag" "fmt" "io" "io/ioutil" "log" "net/http" "os" "sync" "time" "github.com/lucas-clemente/quic-go" "github.com/lucas-clemente/quic-go/http3" "github.com/lucas-clemente/quic-go/rquic" "github.com/lucas-clemente/quic-go/rquic/r...
// Copyright 2018 - 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 wr...
package tokenviewapi /** 稳定币 todo */ import ( "fmt" "strings" ) var ( pathETHBalance = "/addr/b/%s/%s" pathETHAddressInfo = "/%s/address/%s" pathETHTxlist = "/address/%s/%s/%d/%d" pathETHTokens = "/%s/tokens/%d/%d" pathETHTokenInfo = "/%s/...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/keyword_plan_keyword.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ad...
// Package codec provides a codec for encrypting and decrypting secure cookies. // The secret keying material used for creating the codec hash and encryption keys // is randomly generated, persisted to storage, and rotated regularly. // // The codec storage and rotation mechanism is designed to be shared across multipl...
package main import ( "encoding/json" "errors" "fmt" "io/ioutil" "math/rand" "os" "strings" "sync" "time" "github.com/cyfdecyf/bufio" "github.com/jackwakefield/gopac" ) func init() { rand.Seed(time.Now().Unix()) } // VisitCnt and SiteStat are used to track how many times a site is visited. // With this ...
/* Copyright 2013 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
/* 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 use this fi...
package appdash import ( "crypto/tls" "errors" "fmt" "io" "log" "net" "os" "sync" "time" pio "github.com/gogo/protobuf/io" "sourcegraph.com/sourcegraph/appdash/internal/wire" ) // maxMessageSize is the maximum buffer size for delimited protobuf messages. // Effectively, the client may request the server t...
// Copyright 2020 ICON Foundation, 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 ag...
package logic import ( "encoding/json" "goskeleton/app/global/variable" "goskeleton/app/model" modelApi "goskeleton/app/model/api" "goskeleton/app/model/tool" "log" ) // CombineAppConfig 应用配置信息组合配置 func CombineAppConfig(apps []*modelApi.AppBaseInfo) []*modelApi.AppBaseInfo { appKeys := make([]string, len(apps)...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2016-2021 Authors of Cilium package policymap import ( "fmt" "strconv" "strings" "unsafe" "github.com/cilium/cilium/pkg/bpf" "github.com/cilium/cilium/pkg/byteorder" "github.com/cilium/cilium/pkg/policy/trafficdirection" "github.com/cilium/cilium/pkg/u8prot...
// Code generated by smithy-go-codegen DO NOT EDIT. package types type AddonIssueCode string // Enum values for AddonIssueCode const ( AddonIssueCodeAccessDenied AddonIssueCode = "AccessDenied" AddonIssueCodeInternalFailure AddonIssueCode = "InternalFailure" AddonIssueCodeClusterUnrea...
package ethereum_watcher import ( "container/list" "context" "errors" "fmt" "sync" "time" "github.com/diveinto/ethereum-watcher/blockchain" "github.com/diveinto/ethereum-watcher/plugin" "github.com/diveinto/ethereum-watcher/rpc" "github.com/diveinto/ethereum-watcher/structs" "github.com/sirupsen/logrus" ) ...
// Copyright 2009 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 time_test import ( "errors" "fmt" "runtime" "strings" "sync" "sync/atomic" "testing" . "time" ) // Go runtime uses different Windows timers fo...
package types import ( "bytes" "encoding/binary" "encoding/hex" "errors" "fmt" "github.com/dashevo/dashd-go/btcjson" "github.com/rs/zerolog" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/bls12381" "github.com/tendermint/tendermint/internal/libs/protoio" tmbytes "github...
// Copyright (C) MongoDB, Inc. 2014-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 mongorestore import ( "fmt" "strconv" ...
package freetype2 // #include <ft2build.h> // #include FT_FREETYPE_H // #include FT_TRUETYPE_TABLES_H import ( "C" ) import "math" // Encoding is an enumeration to specify character sets supported by charmaps. // Used in the SelectCharMap API function. // // Despite the name, this enumeration lists specific characte...
/* * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * This source code is licensed under the Apache License Version 2.0. */ package app import ( "bufio" "fmt" "github.com/ghodss/yaml" "github.com/pkg/errors" "io/ioutil" k8serrors "k8s.io/apimachinery/pkg/api/errors" "nocalhost/in...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.10.1 // source: envoy/extensions/tracers/datadog/v4alpha/datadog.proto package envoy_extensions_tracers_datadog_v4alpha import ( _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-g...
// Code generated by go-swagger; DO NOT EDIT. package security // 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 docker import ( "archive/tar" "bytes" "errors" "fmt" "strconv" "time" dc "github.com/fsouza/go-dockerclient" "github.com/hashicorp/terraform/helper/schema" ) var ( creationTime time.Time ) func resourceDockerContainerCreate(d *schema.ResourceData, meta interface{}) error { var err error client :=...
package commit_msg import ( "bytes" "fmt" "regexp" "sort" "strings" "text/template" "time" "go.skia.org/infra/autoroll/go/config" "go.skia.org/infra/autoroll/go/config_vars" "go.skia.org/infra/autoroll/go/revision" "go.skia.org/infra/go/skerr" "go.skia.org/infra/go/util" ) const ( invalidRevisionLogURLT...
// 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 providers import ( "bytes" "encoding/base64" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "os" "strings" "time" "github.com/buzzfeed/sso/internal/auth/circuit" "github.com/buzzfeed/sso/internal/pkg/groups" log "github.com/buzzfeed/sso/internal/pkg/logging" "github.com/b...
package ip import ( "bytes" "encoding/binary" "fmt" psBinary "github.com/42milez/ProtocolStack/src/binary" psErr "github.com/42milez/ProtocolStack/src/error" psLog "github.com/42milez/ProtocolStack/src/log" "github.com/42milez/ProtocolStack/src/monitor" "github.com/42milez/ProtocolStack/src/mw" "github.com/42...
package search import ( "encoding/base64" "encoding/json" "fmt" "strconv" "strings" "unicode" "unicode/utf8" "github.com/NyaaPantsu/nyaa/models/users" elastic "gopkg.in/olivere/elastic.v5" "github.com/NyaaPantsu/nyaa/config" "github.com/NyaaPantsu/nyaa/models" "github.com/NyaaPantsu/nyaa/models/torrents...
package eventservice import ( "bytes" "context" "crypto/tls" "encoding/json" "fmt" "net/http" "os" "path" "sync" "time" eh "github.com/looplab/eventhorizon" eventpublisher "github.com/looplab/eventhorizon/publisher/local" "github.com/spf13/viper" "github.com/superchalupa/sailfish/src/log" "github.com/...
package bots import ( "context" "encoding/json" "errors" "fmt" "sort" "sync" "time" "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/client/go/encrypteddb" "golang.org/x/sync/errgroup" "github.com/keybase/client/go/chat/globals" "github.com/keybase/client/go/chat/storage" "github.co...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.14.0 // source: mesh/v1alpha1/traffic_log.proto package v1alpha1 import ( _ "github.com/kumahq/kuma/api/mesh" _ "github.com/kumahq/protoc-gen-kumadoc/proto" protoreflect "google.golang.org/protobuf/reflect/...
package leaves import ( "fmt" "io" "sort" "unicode/utf8" "github.com/gogo/protobuf/proto" "github.com/sergi/go-diff/diffmatchpatch" "gopkg.in/bblfsh/client-go.v3/tools" "gopkg.in/bblfsh/sdk.v2/uast" uast_nodes "gopkg.in/bblfsh/sdk.v2/uast/nodes" "gopkg.in/bblfsh/sdk.v2/uast/query" "gopkg.in/src-d/go-git.v4...
package log import ( "encoding/json" "fmt" "os" "path/filepath" "runtime" "strings" "time" gt "github.com/buger/goterm" "github.com/davecgh/go-spew/spew" ) //func r(start, end int) (out []int) { // for i := start; i < end; i++ { // out = append(out, i) // } // return //} // //func init() { // for x := 0; x...
// Copyright (c) 2013 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 or at // https://developers.google.com/open-source/licenses/bsd. // Package lint provides the foundation for tools like gosimple. package lint // import "...
package main import ( "bytes" "encoding/hex" "fmt" "github.com/btcsuite/btcd/btcec" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcutil/hdkeychain" "github.com/guggero/chantools/btc" "github.com/guggero/chantools/lnd" ...
package bls12377 type pair struct { g1 *PointG1 g2 *PointG2 } func newPair(g1 *PointG1, g2 *PointG2) pair { return pair{g1, g2} } // Engine is BLS12-381 elliptic curve pairing engine type Engine struct { G1 *G1 G2 *G2 fp12 *fp12 fp2 *fp2 pairingEngineTemp pairs []pair } // NewEngine creates new pairin...
/* * Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package util import ( "bytes" "crypto" "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/sha256" "crypto/x509" "encoding/base64" "encoding/binary" "encoding/json" "fmt" "regexp" "strconv" "strings" commLog "github.co...
// 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. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: infra/cros/karte/api/obser...
// 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 ( "fmt" "strings" options "google.golang.org/genproto/googleapis/api/annotations" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/proto" ) var ( libPackage = protogen.GoImportPath("github.com/ii64/protoc-gen-gohttpclient/lib") ioPackage = protogen.GoImportP...
/****************************************************************************** n* * Copyright 2019 SAP SE * * 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/l...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/services/display_keyword_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/v3/resources" ...
// Copyright (c) 2017 ECS Team, Inc. - All Rights Reserved // https://github.com/ECSTeam/cloudfoundry-top-plugin // // 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: db/record.proto package db import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/pro...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/probes/ping/config.proto /* Package ping is a generated protocol buffer package. It is generated from these files: github.com/google/cloudprober/probes/ping/config.proto It has these top-level messages: ProbeConf */ package p...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc (unknown) // source: private/conf/conf.proto package conf import ( blob "github.com/goxiaoy/go-saas-kit/pkg/blob" conf "github.com/goxiaoy/go-saas-kit/pkg/conf" protoreflect "google.golang.org/protobuf/reflect...
package database import ( "bytes" "fmt" "strings" "text/template" "time" "github.com/Suburbia-io/dashboard/pkg/database/tables" "github.com/Suburbia-io/dashboard/pkg/errors" "github.com/Suburbia-io/dashboard/pkg/helpers/qb" ) var fpTagSelectViewTmpl = template.Must(template.New("").Parse(` DROP VIEW IF EXIST...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow_serving/config/model_server_config.proto package tensorflow_serving import ( fmt "fmt" "github.com/RedisAI/aibench/cmd/aibench_run_inference_tensorflow_serving/tensorflow_serving/sources/storage_path" proto "github.com/golang/protobuf/proto" a...
package noaa import ( "bufio" "bytes" "crypto/tls" "errors" "fmt" "io/ioutil" "mime/multipart" "net" "net/http" "net/url" "regexp" "strings" "sync" "time" noaa_errors "github.com/cloudfoundry/noaa/errors" "github.com/cloudfoundry/sonde-go/events" "github.com/gogo/protobuf/proto" "github.com/gorilla/...
// Copyright 2015 <NAME>. All rights reserved. // Use of this source code is governed by The MIT License // found in the accompanying LICENSE file. package ora /* #include <oci.h> #include <stdlib.h> #cgo pkg-config: oci8 */ import "C" import ( "container/list" "database/sql" "fmt" "sync" "sync/atomic" "time" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: v2ray.com/core/proxy/shadowsocks/config.proto package shadowsocks import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" net "v2ray.com/core/common/net" protocol "v2ray.com/core/common/protocol" ) // Reference imports to suppress error...
package main import ( "bufio" "bytes" "context" "encoding/base64" "encoding/json" "errors" "flag" "fmt" "io" "io/ioutil" "log" "os" "os/exec" "strconv" "strings" "time" "github.com/BurntSushi/toml" "github.com/alessio/shellescape" "github.com/andrewchambers/rrdsrv/querysign" "github.com/andrewcham...
package main import ( "fmt" "io/ioutil" "math" "os" "path" "path/filepath" "regexp" "sort" "strconv" "strings" "time" "github.com/acarl005/textcol" colorable "github.com/mattn/go-colorable" "github.com/willf/pad" kingpin "gopkg.in/alecthomas/kingpin.v2" ) type DisplayItem struct { display string in...
/** * LiveDetect * Copyright (c) 2018 Jolibrain * Author: <NAME> <<EMAIL>> * * This file is part of livedetect. * * 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 livedetect without restriction, i...
package mahjong import ( "math/rand" "strings" "sync" "time" ) const roundAmount = 1 // Game State const ( BeforeStart = iota DealTile BuHua IdxTurn ) // GameResult represents the result of mahjong type GameResult struct { Hand []string Door [][]string Score int ScoreLog ScoreRecord } // Run...
package metamorphic import ( "fmt" "sort" "testing" "github.com/cockroachdb/pebble/internal/base" "github.com/cockroachdb/pebble/internal/testkeys" "github.com/stretchr/testify/require" ) // objKey is a tuple of (objID, key). This struct is used primarily as a map // key for keyManager. Only writer objTags can...
// Copyright 2020-2021 <NAME> // SPDX-License-Identifier: Apache-2.0 package webserver import ( "context" "crypto/tls" "encoding/json" "fmt" "github.com/clastix/capsule-proxy/internal/modules/additional" "net/http" "net/http/httputil" "net/textproto" "strings" "time" capsulev1beta1 "github.com/clastix/cap...
// 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, ...
/* Note: I did this project in Go to learn it some, it could use a lot of * cleanup and optimizations. I also wanted it to be fairly "clear" code to * read, in case anyone needed to debug it, make their own challenge off of it, etc. * -dyn */ package main import ( "bufio" "bytes" "strings" "fmt" "io" "io/iou...
package main import ( "bytes" "encoding/json" "fmt" "math" "net/http" "net/url" "os" "path/filepath" "rais/src/fakehttp" "rais/src/iiif" "rais/src/img" "strings" "testing" "github.com/google/go-cmp/cmp" "github.com/uoregon-libraries/gopkg/assert" "github.com/uoregon-libraries/gopkg/logger" ) func nc(...
package stdlib import ( "bufio" "bytes" "fmt" "strings" "time" "github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty/function" ) var FormatDateFunc = function.New(&function.Spec{ Params: []function.Parameter{ { Name: "format", Type: cty.String, }, { Name: "time", Type: cty.String, ...
// // Copyright (c) 2016-2020 The Aurora Authors. All rights reserved. // This program is free software. It comes without any warranty, // to the extent permitted by applicable law. You can redistribute // it and/or modify it under the terms of the Unlicense. See LICENSE // file for more details or see below. // // //...
/* * Copyright 2019-2020, Offchain Labs, 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...
package api import ( "database/sql" "database/sql/driver" "encoding/json" "errors" "fmt" "time" "github.com/danikarik/okpock/pkg/secure" uuid "github.com/satori/go.uuid" ) const ( // PKDataDetectorTypePhoneNumber refers to phone number. PKDataDetectorTypePhoneNumber string = "PKDataDetectorTypePhoneNumber"...
/* Copyright (c) 2021 AT&T Intellectual Property. Copyright (c) 2018-2021 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 copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ...
package frr import ( "fmt" "io" "net" "os" "strings" "github.com/rahveiz/topomate/config" "github.com/rahveiz/topomate/project" "github.com/rahveiz/topomate/utils" ) var nextRouteTarget = 1 var nextRouteDescriptor = 1 func GenerateConfig(p *project.Project) [][]*FRRConfig { configs := make([][]*FRRConfig, ...
package web import ( "bytes" "compress/gzip" "crypto/sha1" "encoding/base64" "encoding/hex" "errors" "fmt" "html/template" "io/ioutil" "math/rand" "mime" "net/http" "os" "path/filepath" "regexp" "strings" "sync" "time" "github.com/tdewolff/minify" "github.com/tdewolff/minify/css" "github.com/tdew...
// Copyright 2022 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 ...
// Package excelutil is a command line program that converts an excel workbook with potentially multiple spread sheets // of a given format to another format while doing the appropriate maths. It can create graphs and sort the // columns of the primary output according to the maximum value per output. // author: Daniel...
package matching import ( "github.com/nbutton23/zxcvbn-go/adjacency" "github.com/nbutton23/zxcvbn-go/frequency" "github.com/nbutton23/zxcvbn-go/match" "regexp" "sort" "strconv" "strings" "github.com/nbutton23/zxcvbn-go/entropy" ) var ( DICTIONARY_MATCHERS []func(password string) []match.Match MATCHE...
package cmd import ( "bufio" "encoding/json" "fmt" "os" "strings" "sync" "text/tabwriter" "time" "github.com/choria-io/go-client/discovery/broadcast" "github.com/choria-io/go-protocol/filter" "github.com/choria-io/go-protocol/protocol" rpc "github.com/choria-io/mcorpc-agent-provider/mcorpc/client" agentd...
package main import ( "sourcemod" "sdktools" "sdkhooks" "tf2_stocks" "vsh2" "cfgmap" ) const ( TemplateModel = "models/templatefolder/templateboss.mdl" /// Voicelines TemplateIntro = [...]string{ "template_snd/start1.mp3", "template_snd/start2.mp3", } TemplateJump = [...]string{ "template_snd/jump1...
/* Copyright AppsCode Inc. and Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain 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 consensus implements the Cosi PBFT consensus package consensus // consensus import ( "math/big" "sync" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/params" "github.com/harmony-one/bls/...
package main /** A flexible wrapper around the twitch.tv HTTP API. The basic kraken() single-call functionality is mostly right out of https://github.com/Fugiman/kaet/blob/master/kraken.go. */ import ( "encoding/json" //"fmt" //"log" "net/http" //"net/url" "strings" //"sync" "fmt" "net/url" "strconv" "tim...
package execute import ( "bytes" "sort" "github.com/apache/arrow/go/arrow" "github.com/wolffcm/flux" ) // GroupLookup is a container that maps group keys to a value. // // The GroupLookup container is optimized for appending values in // order and iterating over them in the same order. The GroupLookup // will al...
package services import ( "github.com/bloXroute-Labs/gateway" "github.com/bloXroute-Labs/gateway/types" "github.com/bloXroute-Labs/gateway/utils" "github.com/stretchr/testify/assert" "strconv" "testing" "time" ) const testNetworkNum types.NetworkNum = 5 const testChainID int64 = 1 func newTestBxTxStore() BxTx...
package server import ( "bytes" "context" "encoding/json" "fmt" "reflect" "sync" "time" "github.com/elotl/kip/pkg/api" v1beta1 "github.com/elotl/kip/pkg/apis/kip/v1beta1" kv1b1 "github.com/elotl/kip/pkg/k8sclient/clientset/versioned/typed/kip/v1beta1" "github.com/elotl/kip/pkg/server/events" "github.com/e...
package sorter import ( "bytes" "crypto/sha256" "encoding/binary" "fmt" "io/ioutil" "os" "runtime" "sort" "sync" "github.com/biogo/store/llrb" "github.com/grailbio/base/errors" "github.com/grailbio/base/file" "github.com/grailbio/base/vcontext" gbam "github.com/grailbio/bio/encoding/bam" "github.com/gr...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.20.1 // protoc v3.11.2 // source: s3_artifact_provider.proto package client import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protob...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/targets/targets.proto /* Package targets is a generated protocol buffer package. It is generated from these files: github.com/google/cloudprober/targets/targets.proto It has these top-level messages: TargetsDef DummyTargets ...