text
stringlengths
5.51k
28.1k
// Copyright (c) 2020 10X Genomics, Inc. All rights reserved. package core import ( "bytes" "context" "math" "os" "os/exec" "path" "runtime/trace" "sort" "strconv" "strings" "sync" "time" "github.com/martian-lang/martian/martian/util" ) type RemoteJobManager struct { jobMode string jobRe...
// 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 url parses URLs and implements query escaping. // See RFC 3986. package bytesurl import ( "bytes" "errors" "strconv" ) // Errors - expressed as...
// Code generated by go-bindata. DO NOT EDIT. // sources: // ebpf/bin/probe.o package main import ( "bytes" "compress/gzip" "fmt" "io" "io/ioutil" "os" "path/filepath" "strings" "time" ) func bindataRead(data []byte, name string) ([]byte, error) { gz, err := gzip.NewReader(bytes.NewBuffer(data)) if err !...
// 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. // Source: https://gist.github.com/josharian/78760cea426d7f104c7c55f0b3c037d1 package apply import ( "fmt" "go/ast" "reflect" ) // An ApplyFunc is invoked...
/* 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 splitticket import ( "encoding/binary" "fmt" "math/rand" "testing" "github.com/decred/dcrd/blockchain/stake" "github.com/decred/dcrd/chaincfg" "github.com/decred/dcrd/chaincfg/chainec" "github.com/decred/dcrd/chaincfg/chainhash" "github.com/decred/dcrd/dcrec" "github.com/decred/dcrd/dcrutil" "githu...
/* 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, software distributed ...
package webp /* #cgo LDFLAGS: -lwebp #include "webp.h" typedef enum OneSetpShopCall { OneSetpShopCallLossless = 1 << 0, OneSetpShopCallRGB = 1 << 1, OneSetpShopCallBGR = 1 << 2, OneSetpShopCallRGBA = 1 << 3, OneSetpShopCallBGRA = 1 << 4, } OneSetpShopCall; static size_t OneStepShopEncode(OneSet...
// MIT License // // Copyright (c) 2016 GenesisKernel // // 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, modif...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. package model import ( "encoding/json" "errors" "io" "net/http" "regexp" "sort" "strings" "sync" "unicode/utf8" "github.com/vnforks/kid/v5/utils/markdown" ) const ( POST_SYSTEM_MESSAGE_PREFIX ...
// Copyright 2020 The LevelDB-Go and Pebble 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 vfs import ( "io" "os" "sync" "sync/atomic" "time" ) const ( // defaultTickInterval is the default interval between two ticks...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: proto/transport/transport.proto package transport import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" proto...
package main import ( "fmt" "io/ioutil" "net/http" "testing" "time" ) // Custom HTTP client, that defines the redirect behavior. // Don't follow 301s, return them so the tests can correctly identify and validate responses func testHttpClient() *http.Client { return &http.Client{ CheckRedirect: func(req *http....
package main import ( "errors" "fmt" . "github.com/iotaledger/iota.go/address" . "github.com/iotaledger/iota.go/api" . "github.com/iotaledger/iota.go/bundle" . "github.com/iotaledger/iota.go/consts" . "github.com/iotaledger/iota.go/guards/validators" . "github.com/iotaledger/iota.go/transaction" . "github.com...
// Copyright 2009 The Go Authors. All rights reserved. // Copyright 2013 The Gorilla 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 // Unicode table generator. Based on unicode/maketables.go. // Data read from the ...
package tipWifi import ( "fmt" ) // The Devices object contains a list of the GW's Device object. type Devices struct { Entry []*Device `json:"devices"` } // The FirmwareDevices object contains a list of the FMS' FirmwareDevice object. type FirmwareDevices struct { Entry []*FirmwareDevice `json:"devi...
/* * Copyright (c) 2020 Baidu, 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 pluck import ( "bufio" "bytes" "encoding/json" "fmt" "html" "io" // "io/ioutil" "net/http" "os" "strconv" "strings" "sync" "github.com/jinzhu/configor" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "github.com/lucmichalski/go-prestashop/internal/pluck/striphtml" ) // Config specif...
package main import ( "fmt" "html/template" "io" "log" "net/http" "os" "path" "reflect" "time" "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" "github.com/go-playground/validator" ) type Person struct { Name string `form:"name"` Address string `form:"address"` Birthday time.Ti...
package main import ( "archive/zip" "errors" "fmt" "io" "io/ioutil" "net/http" "os" "path" "path/filepath" "strings" "time" ) type ApiType int func (a ApiType) Label() string { return API_LABELS[a] } const ( TICKER ApiType = iota ORDERBOOK TRADES API_COUNT ) var API_LABELS = [API_COUNT]string{ "ti...
package pongo import ( "errors" "fmt" "reflect" "regexp" "strconv" "strings" ) var exprIdentChecker = regexp.MustCompile("^[A-Za-z0-9_]+[A-Za-z0-9_.]*$") type exprIdent string type exprFilterFunc struct { name string fn FilterFunc args []interface{} } // An expression represents an expression used in {{...
// goxc is a build tool with a focus on cross-compilation, plus packaging and deployment features. package main /* 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 ...
package zapflag import ( "github.com/takumakei/go-urfave-cli/clix" "github.com/urfave/cli/v2" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) // Flags represents flags to build a zap.Logger. type Flags struct { Name string FlagDevelopment *cli.BoolFlag FlagLevel *cli.GenericFlag FlagWithCaller *cli.B...
// Read a set of language orthographies and build Go declarations for // charsets which can then be used to identify which languages are // supported by a given font. package main import ( "flag" "fmt" "io/ioutil" "log" "os" "os/exec" "path/filepath" "sort" "strconv" "strings" ) // port from fontconfig/fc-l...
// Package dgroup provides tools for managing groups of goroutines. // // The main part of this is Group, but the naming utilities may be // useful outside of that. // // dgroup should be the goroutine-group-management abstraction used by // all new code at Ambassador Labs. The principle remaining // limitation (at le...
// Copyright (C) 2017 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 t...
// Licensed to LinDB under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. LinDB licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compli...
// 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 1999-2020 Alibaba Group Holding Ltd. * * 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 applicab...
package commands import ( "fmt" "os" "strconv" "strings" "time" "github.com/github/hub/git" "github.com/github/hub/github" "github.com/github/hub/ui" "github.com/github/hub/utils" ) var ( cmdIssue = &Command{ Run: listIssues, Usage: ` issue [-a <ASSIGNEE>] [-c <CREATOR>] [-@ <USER>] [-s <STATE>] [-f <F...
// Copyright 2013 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...
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( "fmt" "os" "reflect" "runtime" "runtime/debug" "sync/atomic" "testing" "time" "unsafe" ) func TestGcSys(t *testing.T) {...
// Copyright 2014 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package consensus import ( "errors" "math/rand" "sort" "time" "github.com/nspcc-dev/dbft" "github.com/nspcc-dev/dbft/block" "github.com/nspcc-dev/dbft/crypto" "github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/neo-go/pkg/core" coreb "github.com/nspcc-dev/neo-go/pkg/core/block" "github.com/nspcc-dev/...
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Ppc64spec reads the ``Power ISA V2.07'' Manual // to collect instruction encoding details and writes those details to standard output // in CSV format. // /...
// Copyright © 2019 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
package ndctl //#cgo pkg-config: libndctl //#include <string.h> //#include <stdlib.h> //#include <ndctl/libndctl.h> //#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) //#include <ndctl/ndctl.h> import "C" import ( "fmt" /* needed for nullify "os" "syscall"*/ "unsafe" "github.com/google/uuid" ) const ( //Pm...
// 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 integration import ( "bytes" "reflect" ...
package web import ( "bytes" "context" "crypto/tls" "fmt" "github.com/gin-gonic/gin" "github.com/gomarkdown/markdown" log "github.com/sirupsen/logrus" "github.com/spf13/viper" "html/template" "net/http" "os" "path" "path/filepath" "strings" "time" ) // Arg map for templates type M map[string]interface{...
package reader import ( "fmt" "io" "path/filepath" "strings" "github.com/sourcegraph/sourcegraph/lib/codeintel/lsif/protocol" "github.com/sourcegraph/sourcegraph/lib/codeintel/lsif/protocol/writer" "github.com/sourcegraph/sourcegraph/lib/codeintel/lsiftyped" "github.com/sourcegraph/sourcegraph/lib/errors" ) ...
/* (c) 2015 Novostrim, OOO. http://www.eonza.org License: MIT */ package main import ( "encoding/json" "flag" "fmt" "github.com/vharitonsky/iniflags" "io" "io/ioutil" "log" "net/http" "net/http/cookiejar" "net/url" "os" "os/exec" "path/filepath" "runtime" // "reflect" "strconv" "strings" ) con...
/* Copyright 2020 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 The xfsgo Authors // This file is part of the xfsgo library. // // The xfsgo library is free software: you can redistribute it and/or modify // it under the terms of the MIT Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your o...
/* * Copyright 2012-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 ...
package updater import ( "context" "encoding/json" "fmt" "net/http" "sort" "strings" "time" "github.com/qdm12/gluetun/internal/models" ) func (u *updater) updateSurfshark(ctx context.Context) (err error) { servers, warnings, err := findSurfsharkServersFromZip(ctx, u.client, u.lookupIP) if u.options.CLI { ...
package thorchain import ( "errors" "fmt" sdk "github.com/cosmos/cosmos-sdk/types" tmtypes "github.com/tendermint/tendermint/types" "gitlab.com/thorchain/thornode/common" "gitlab.com/thorchain/thornode/constants" "gitlab.com/thorchain/thornode/x/thorchain/keep" ) // TxOutStorageV1 is going to manage all the ...
package owl import ( "fmt" "net/http" "time" ) type PlayerResponse struct { Data struct { Player struct { ID int `json:"id"` AvailableLanguages []string `json:"availableLanguages"` Handle string `json:"handle"` Name string `json:...
/* Copyright 2020 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 core import ( "errors" "fmt" "github.com/livepeer/go-livepeer/drivers" "github.com/livepeer/go-livepeer/net" "github.com/livepeer/lpms/ffmpeg" "sync" ) type Capability int type CapabilityString []uint64 type Constraints struct{} type Capabilities struct { bitstring CapabilityString mandatories Capa...
package cmd import ( "io/ioutil" "os" "path" "strings" "github.com/Masterminds/cookoo" "github.com/Masterminds/glide/cfg" "github.com/Masterminds/glide/util" "github.com/Masterminds/semver" ) // Flatten recurses through all dependent packages and flattens to a top level. // // Flattening involves determining...
package main import ( "context" "errors" "flag" "fmt" "github.com/0leksandr/my.go" "io" "io/fs" "os" "os/signal" "os/user" "path/filepath" "strings" "sync" "syscall" "time" ) // TODO: upload directories on initial sync // TODO: timeout sync operations // TODO: re-sync with timeout on error // TODO: ign...
package ipmi import ( "fmt" ) type SdrParser struct { IpmiLayer IpmiAL } type ComponentHealth struct { Type string Severity string SensorInfos []SensorInfo } type SensorInfo struct { Name string ErrorCode uint16 ErrorDescription string Severity string } type DeviceId struct{ IsDeviceSdr bool } ...
/* * Minio Cloud Storage, (C) 2017, 2018 Minio, 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 applica...
// 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. package refactor import ( "errors" "fmt" "go/ast" "go/token" "go/types" "log" "reflect" "regexp" "strconv" "strings" "unicode/utf8" ) type Item str...
package sdl // #include <SDL.h> import "C" type Scancode C.SDL_Scancode func (s Scancode) c() C.SDL_Scancode { return C.SDL_Scancode(s) } const ( SCANCODE_UNKNOWN Scancode = C.SDL_SCANCODE_UNKNOWN SCANCODE_A Scancode = C.SDL_SCANCODE_A SCANCODE_B Scancode = C.SDL_SCANCODE_B SCANCODE_C Scancode = C.SDL_SCANCOD...
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/errors/function_error.proto package errors 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...
// Copyright 2016-2017 Authors of Cilium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package models import ( "github.com/AntoineAugusti/moduluschecking/helpers" ) // Represents a UK bank account type BankAccount struct { SortCode string AccountNumber string } // The sort code has an integers slice func (b BankAccount) SortCodeSlice() []int { return helpers.StringToIntSlice(b.SortCode) } //...
package datareader import ( "bufio" . "eaciit/wfdemo-git/library/models" "encoding/csv" "errors" "fmt" _ "github.com/eaciit/orm" . "github.com/eaciit/sshclient" tk "github.com/eaciit/toolkit" "io" "io/ioutil" "os" "path/filepath" "reflect" "strings" "sync" "time" ) type DataReader...
// Copyright 2013 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...
package transform import ( "math/big" "tinygo.org/x/go-llvm" ) // MakeGCStackSlots converts all calls to runtime.trackPointer to explicit // stores to stack slots that are scannable by the GC. func MakeGCStackSlots(mod llvm.Module) bool { // Check whether there are allocations at all. alloc := mod.NamedFunction(...
// Copyright 2020 Insolar Network Ltd. // // 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 bp128 implements SIMD-BP128 integer encoding and decoding. // It requires an x86_64/AMD64 CPU that supports SSE2 instructions. // // For more details on SIMD-BP128 algorithm see "Decoding billions of // integers per second through vectorization" by <NAME>, Leonid // Boytsov, and <NAME> at http://arxiv.org/pd...
package isutrain import ( "errors" "github.com/chibiegg/isucon9-final/bench/internal/bencherror" "go.uber.org/zap" ) // ListStationsResponse は /api/stations のレスポンス形式です type ListStationsResponse []*Station type Station struct { ID int `json:"id"` Name string `json:"name"` Dista...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.proto package envoy_extensions_filters_http_aws_lambda_v3 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/gola...
package acl import "encoding/json" import "github.com/fatih/structs" import "regexp" import "strings" import "errors" import "github.com/gijsbers/go-pcre" import "strconv" //Mapping regexp lookup table to acl names format func MapRegexpTable(RegexpMap map[string]interface{}) string{ type ruleElement struct{ Sub...
package main import ( "os" "path/filepath" "reflect" "regexp" "strconv" "strings" "time" "github.com/docker/go-units" specs "github.com/opencontainers/runtime-spec/specs-go" "github.com/sirupsen/logrus" "k8s.io/apimachinery/pkg/fields" "github.com/pkg/errors" "github.com/projectatomic/libpod/cmd/kpod/f...
// +build ignore package hrx import ( "math/big" "sort" "strconv" "github.com/melias122/engine/csv" "github.com/melias122/engine/engine" ) // hlavicka suboru HrxHHrx var HeaderHrxHHrx = []string{ "Hrx", "ΔHrx", "Xcisla", "ƩR OD-DO", "ƩSTL OD-DO (min)", "ƩSTL OD-DO (max)", "ƩKombinacie (min)", "ƩKombinac...
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package main import ( "fmt" "log" "os" "runtime" "strings" gh "github.com/keybase/release/github" "github.com/keybase/release/update" "github.com/keybase/release/version" "github.com/keyb...
// Copyright 2013 <NAME>. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package timeago import ( "testing" "time" ) // Base time for testing var tBase = time.Date(2013, 8, 30, 12, 0, 0, 0, time.UTC) // Test data for TestFormatReference...
// Copyright (C) 2017 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 t...
/* 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...
/* * Copyright 2020 VMware, Inc. * * SPDX-License-Identifier: Apache-2.0 */ package webhook import ( "context" "crypto/sha256" "encoding/json" "fmt" "io/ioutil" "net/http" "strconv" "strings" "github.com/ghodss/yaml" "github.com/golang/glog" "k8s.io/api/admission/v1beta1" admissionregistrationv1beta1...
/* Copyright IBM Corp. 2016 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 wri...
package encrypt import ( "encoding/base64" "strings" ) var ( Ip_table = []int{ 58,50,42,34,26,18,10,2, 60,52,44,36,28,20,12,4, 62,54,46,38,30,22,14,6, 64,56,48,40,32,24,16,8, 57,49,41,33,25,17,9,1, 59,51,43,35,27,19,11,3, 61,53,45,37,29,21,13,5, 63,55,47,39,31,23,15,7, } Ip_table_1 = []int{ 40,...
// The MIT License // // Copyright (c) 2017-2018 by the author(s) // // 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 sts import ( "context" "expvar" "fmt" "net/http" "net/http/httptest" "os" "strings" "testing" "time" "blitiri.com.ar/go/chasquid/internal/testlib" ) // Override the lookup function to control its results. var txtResults = map[string][]string{ "dom1": nil, "dom2": {}, "dom3": {"abc", "def"}, "do...
package lexer import ( "log" "regexp" "strings" "unicode" "github.com/adamstimb/rmbasicx64/internal/app/rmbasicx64/token" ) // Lexer describes a type with methods for lexing a line of source code and generating // tokens. To tokenize a line of source code all we do is this: // s := &Scanner{} // tokens := s...
/** * Go Video Downloader * * Copyright 2018 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.org/licenses/LICENSE-2.0 * * Unless required by...
package open_im_sdk import ( "database/sql" "encoding/json" "strings" ) type ChatLog struct { MsgId string SendID string IsRead int32 Seq int64 Status int32 SessionType int32 RecvID string ContentType int32 MsgFrom int32 C...
/* 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...
/* Copyright 2014 CoreOS, 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 wr...
/* 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, ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.12.3 // source: annotations.proto package options import ( descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.g...
package irmaclient import ( "crypto/rand" "encoding/base64" "encoding/json" "fmt" "testing" "time" "math/big" "github.com/go-errors/errors" "github.com/privacybydesign/irmago" "github.com/privacybydesign/irmago/internal/test" "github.com/stretchr/testify/require" ) type TestHandler struct { t *test...
// 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 ...
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: challenge_message.proto package pb 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" ) // Reference impo...
// Copyright (c) 2017-2018 The qitmeer developers // Copyright (c) 2013-2016 The btcsuite developers // Copyright (c) 2015-2018 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package blockchain import ( "fmt" "github.com/Qitmeer/qitmeer-lib/c...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: censor.proto package proto import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = f...
// ORIGINAL: java/DomUtil.java // Copyright (c) 2020 <NAME> // // 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...
/* Author: <NAME> Date: 2021-10-21 Email: <EMAIL> */ package main import ( "context" "encoding/json" "flag" "fmt" "log" "math" "path/filepath" "strconv" "strings" "sync" "time" "github.com/Shopify/sarama" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s....
package policy import ( "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "math/rand" "net" "regexp" "strings" "sync" "github.com/weppos/publicsuffix-go/publicsuffix" "golang.org/x/net/idna" "golang.org/x/text/unicode/norm" "github.com/letsencrypt/boulder/core" berrors "github.com/letsencrypt/boulde...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/securitycenter/v1/organization_settings.proto package securitycenter // import "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.g...
// Copyright 2020 The Matrix.org Foundation C.I.C. // // 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 service import ( "context" "math" "time" "go-common/app/job/main/figure-timer/conf" "go-common/app/job/main/figure-timer/model" "go-common/library/log" ) const ( bizTypePosLawful = iota bizTypeNegLawful // bizTypePosWide // bizTypeNegWide bizTypePosFriendly bizTypeNegFriendly bizTypePosCreativit...
package blockchain import ( "fmt" "reflect" "sync/atomic" "time" cs "github.com/lianxiangcloud/linkchain/consensus" cmn "github.com/lianxiangcloud/linkchain/libs/common" "github.com/lianxiangcloud/linkchain/libs/log" "github.com/lianxiangcloud/linkchain/libs/p2p" "github.com/lianxiangcloud/linkchain/libs/ser...
package main import ( "feelings/src/golang/bytes" "feelings/src/golang/encoding/binary" "feelings/src/golang/io" "feelings/src/golang/path/filepath" "feelings/src/golang/strings" "feelings/src/golang/unicode/utf16" "feelings/src/lib/trust" ) // in linux // dd if=/dev/zero of=foo bs=1M count=128 // fdisk foo --...
package router import ( "context" "errors" "io" "net/http" "reflect" "strings" "sync" "time" "github.com/volts-dev/template" "github.com/volts-dev/volts/codec" "github.com/volts-dev/volts/registry" "github.com/volts-dev/volts/registry/cacher" "github.com/volts-dev/volts/transport" ) type ( // Router ha...