repo_id stringlengths 21 96 | file_path stringlengths 31 155 | content stringlengths 1 92.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
rapidsai_public_repos/roc/vendor/github.com/fsnotify | rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/AUTHORS | # Names should be added to this file as
# Name or Organization <email address>
# The email address is not required for organizations.
# You can update this list using the following command:
#
# $ (head -n10 AUTHORS && git shortlog -se | sed -E 's/^\s+[0-9]+\t//') | tee AUTHORS
# Please keep the list sorted.
Aaron ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/fsnotify | rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go | // Copyright 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.
//go:build freebsd || openbsd || netbsd || dragonfly
// +build freebsd openbsd netbsd dragonfly
package fsnotify
import "golang.org/x/sys/unix"
const openMod... | 0 |
rapidsai_public_repos/roc/vendor/github.com/fsnotify | rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/open_mode_darwin.go | // Copyright 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.
//go:build darwin
// +build darwin
package fsnotify
import "golang.org/x/sys/unix"
// note: this constant is not defined on BSD
const openMode = unix.O_EVTON... | 0 |
rapidsai_public_repos/roc/vendor/github.com/fsnotify | rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/fen.go | // 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.
//go:build solaris
// +build solaris
package fsnotify
import (
"errors"
)
// Watcher watches a set of files, delivering events to a channel.
type Watcher st... | 0 |
rapidsai_public_repos/roc/vendor/github.com/fsnotify | rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md | # Contributing
## Issues
* Request features and report bugs using the [GitHub Issue Tracker](https://github.com/fsnotify/fsnotify/issues).
* Please indicate the platform you are using fsnotify on.
* A code example to reproduce the problem is appreciated.
## Pull Requests
### Contributor License Agreement
fsnotify ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/fsnotify | rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/LICENSE | Copyright (c) 2012 The Go Authors. All rights reserved.
Copyright (c) 2012-2019 fsnotify Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the abov... | 0 |
rapidsai_public_repos/roc/vendor/github.com/fsnotify | rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/fsnotify.go | // 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.
//go:build !plan9
// +build !plan9
// Package fsnotify provides a platform-independent interface for file system notifications.
package fsnotify
import (
"by... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/Readme.md |

Package log implements a simple structured logging API inspired by Logrus, designed with centralization in mind. Read more on [Medium](https://medium.com/@tjholowaychuk/apex-log-e8d9627f4a9a#.rav8yhkud).
## Handlers
- __apexlogs__ – handler for [Apex Logs](https://... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/default.go | package log
import (
"bytes"
"fmt"
"log"
"sort"
)
// field used for sorting.
type field struct {
Name string
Value interface{}
}
// by sorts fields by name.
type byName []field
func (a byName) Len() int { return len(a) }
func (a byName) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a byName... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/pkg.go | package log
import "time"
// singletons ftw?
var Log Interface = &Logger{
Handler: HandlerFunc(handleStdLog),
Level: InfoLevel,
}
// SetHandler sets the handler. This is not thread-safe.
// The default handler outputs to the stdlib log.
func SetHandler(h Handler) {
if logger, ok := Log.(*Logger); ok {
logger.... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/logger.go | package log
import (
stdlog "log"
"sort"
"time"
)
// assert interface compliance.
var _ Interface = (*Logger)(nil)
// Fielder is an interface for providing fields to custom types.
type Fielder interface {
Fields() Fields
}
// Fields represents a map of entry level data used for structured logging.
type Fields m... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/levels.go | package log
import (
"bytes"
"errors"
"strings"
)
// ErrInvalidLevel is returned if the severity level is invalid.
var ErrInvalidLevel = errors.New("invalid level")
// Level of severity.
type Level int
// Log levels.
const (
InvalidLevel Level = iota - 1
DebugLevel
InfoLevel
WarnLevel
ErrorLevel
FatalLevel... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/context.go | package log
import "context"
// logKey is a private context key.
type logKey struct{}
// NewContext returns a new context with logger.
func NewContext(ctx context.Context, v Interface) context.Context {
return context.WithValue(ctx, logKey{}, v)
}
// FromContext returns the logger from context, or log.Log.
func Fr... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/entry.go | package log
import (
"fmt"
"os"
"strings"
"time"
)
// assert interface compliance.
var _ Interface = (*Entry)(nil)
// Now returns the current time.
var Now = time.Now
// Entry represents a single log entry.
type Entry struct {
Logger *Logger `json:"-"`
Fields Fields `json:"fields"`
Level Level... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/stack.go | package log
import "github.com/pkg/errors"
// stackTracer interface.
type stackTracer interface {
StackTrace() errors.StackTrace
}
| 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/Makefile |
include github.com/tj/make/golang
| 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/History.md |
v1.9.0 / 2020-08-18
===================
* add `WithDuration()` method to record a duration as milliseconds
* add: ignore nil errors in `WithError()`
* change trace duration to milliseconds (arguably a breaking change)
v1.8.0 / 2020-08-05
===================
* refactor apexlogs handler to not make the AddEve... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/doc.go | /*
Package log implements a simple structured logging API designed with few assumptions. Designed for
centralized logging solutions such as Kinesis which require encoding and decoding before fanning-out
to handlers.
You may use this package with inline handlers, much like Logrus, however a centralized solution
is reco... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/interface.go | package log
import "time"
// Interface represents the API of both Logger and Entry.
type Interface interface {
WithFields(Fielder) *Entry
WithField(string, interface{}) *Entry
WithDuration(time.Duration) *Entry
WithError(error) *Entry
Debug(string)
Info(string)
Warn(string)
Error(string)
Fatal(string)
Debug... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex | rapidsai_public_repos/roc/vendor/github.com/apex/log/LICENSE | (The MIT License)
Copyright (c) 2015 TJ Holowaychuk tj@tjholowaychuk.com
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,... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex/log/handlers | rapidsai_public_repos/roc/vendor/github.com/apex/log/handlers/cli/cli.go | // Package cli implements a colored text handler suitable for command-line interfaces.
package cli
import (
"fmt"
"io"
"os"
"sync"
"time"
"github.com/apex/log"
"github.com/fatih/color"
colorable "github.com/mattn/go-colorable"
)
// Default handler outputting to stderr.
var Default = New(os.Stderr)
// start ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/apex/log/handlers | rapidsai_public_repos/roc/vendor/github.com/apex/log/handlers/text/text.go | // Package text implements a development-friendly textual handler.
package text
import (
"fmt"
"io"
"os"
"sync"
"time"
"github.com/apex/log"
)
// Default handler outputting to stderr.
var Default = New(os.Stderr)
// start time.
var start = time.Now()
// colors.
const (
none = 0
red = 31
green = 32
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/AUTHORS | # This source code refers to The Go Authors for copyright purposes.
# The master list of authors is in the main Go distribution,
# visible at http://tip.golang.org/AUTHORS.
| 0 |
rapidsai_public_repos/roc/vendor/github.com/golang | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/LICENSE | Copyright 2010 The Go Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following dis... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/CONTRIBUTORS | # This source code was written by the Go contributors.
# The master list of contributors is in the main Go distribution,
# visible at http://tip.golang.org/CONTRIBUTORS.
| 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/text_encode.go | // 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 proto
import (
"bytes"
"encoding"
"fmt"
"io"
"math"
"sort"
"strings"
"google.golang.org/protobuf/encoding/prototext"
"google.golang.org/proto... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/proto.go | // Copyright 2019 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 proto provides functionality for handling protocol buffer messages.
// In particular, it provides marshaling and unmarshaling between a protobuf
// m... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/text_decode.go | // 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 proto
import (
"encoding"
"errors"
"fmt"
"reflect"
"strconv"
"strings"
"unicode/utf8"
"google.golang.org/protobuf/encoding/prototext"
protoV2... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/extensions.go | // 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 proto
import (
"errors"
"fmt"
"reflect"
"google.golang.org/protobuf/encoding/protowire"
"google.golang.org/protobuf/proto"
"google.golang.org/pr... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/registry.go | // Copyright 2019 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 proto
import (
"bytes"
"compress/gzip"
"fmt"
"io/ioutil"
"reflect"
"strings"
"sync"
"google.golang.org/protobuf/reflect/protodesc"
"google.go... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/wrappers.go | // Copyright 2019 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 proto
// Bool stores v in a new bool value and returns a pointer to it.
func Bool(v bool) *bool { return &v }
// Int stores v in a new int32 value and... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/discard.go | // Copyright 2019 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 proto
import (
"google.golang.org/protobuf/reflect/protoreflect"
)
// DiscardUnknown recursively discards all unknown fields from this message
// and... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/properties.go | // 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 proto
import (
"fmt"
"reflect"
"strconv"
"strings"
"sync"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/runtime... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/buffer.go | // Copyright 2019 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 proto
import (
"errors"
"fmt"
"google.golang.org/protobuf/encoding/prototext"
"google.golang.org/protobuf/encoding/protowire"
"google.golang.org/... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/wire.go | // Copyright 2019 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 proto
import (
protoV2 "google.golang.org/protobuf/proto"
"google.golang.org/protobuf/runtime/protoiface"
)
// Size returns the size in bytes of the... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/defaults.go | // Copyright 2019 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 proto
import (
"google.golang.org/protobuf/reflect/protoreflect"
)
// SetDefaults sets unpopulated scalar fields to their default values.
// Fields w... | 0 |
rapidsai_public_repos/roc/vendor/github.com/golang/protobuf | rapidsai_public_repos/roc/vendor/github.com/golang/protobuf/proto/deprecated.go | // Copyright 2018 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 proto
import (
"encoding/json"
"errors"
"fmt"
"strconv"
protoV2 "google.golang.org/protobuf/proto"
)
var (
// Deprecated: No longer returned.
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pmezard | rapidsai_public_repos/roc/vendor/github.com/pmezard/go-difflib/LICENSE | Copyright (c) 2013, Patrick Mezard
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following di... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pmezard/go-difflib | rapidsai_public_repos/roc/vendor/github.com/pmezard/go-difflib/difflib/difflib.go | // Package difflib is a partial port of Python difflib module.
//
// It provides tools to compare sequences of strings and generate textual diffs.
//
// The following class and functions have been ported:
//
// - SequenceMatcher
//
// - unified_diff
//
// - context_diff
//
// Getting unified diffs was the main goal of ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/azure-pipelines.yml | trigger:
- master
stages:
- stage: run_checks
displayName: "Check"
dependsOn: []
jobs:
- job: fmt
displayName: "fmt"
pool:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
displayName: "Install Go 1.16"
inputs:
version: "1.16"
- task: Go@0
displayName: "go fmt ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/keysparsing.go | // Parsing keys handling both bare and quoted keys.
package toml
import (
"errors"
"fmt"
)
// Convert the bare key group string to an array.
// The input supports double quotation and single quotation,
// but escape sequences are not supported. Lexers must unescape them beforehand.
func parseKey(key string) ([]str... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/fuzz.go | // +build gofuzz
package toml
func Fuzz(data []byte) int {
tree, err := LoadBytes(data)
if err != nil {
if tree != nil {
panic("tree must be nil if there is an error")
}
return 0
}
str, err := tree.ToTomlString()
if err != nil {
if str != "" {
panic(`str must be "" if there is an error`)
}
pan... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/lexer.go | // TOML lexer.
//
// Written using the principles developed by Rob Pike in
// http://www.youtube.com/watch?v=HxaD_trXwRE
package toml
import (
"bytes"
"errors"
"fmt"
"strconv"
"strings"
)
// Define state functions
type tomlLexStateFn func() tomlLexStateFn
// Define lexer
type tomlLexer struct {
inputIdx ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/tomlpub.go | package toml
// PubTOMLValue wrapping tomlValue in order to access all properties from outside.
type PubTOMLValue = tomlValue
func (ptv *PubTOMLValue) Value() interface{} {
return ptv.value
}
func (ptv *PubTOMLValue) Comment() string {
return ptv.comment
}
func (ptv *PubTOMLValue) Commented() bool {
return ptv.com... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/toml.go | package toml
import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"runtime"
"strings"
)
type tomlValue struct {
value interface{} // string, int64, uint64, float64, bool, time.Time, [] of any of this list
comment string
commented bool
multiline bool
literal bool
position Position
}
// Tree is the resu... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/localtime.go | // Implementation of TOML's local date/time.
//
// Copied over from Google's civil to avoid pulling all the Google dependencies.
// Originals:
// https://raw.githubusercontent.com/googleapis/google-cloud-go/ed46f5086358513cf8c25f8e3f022cb838a49d66/civil/civil.go
// Changes:
// * Renamed files from civil* to localti... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/PULL_REQUEST_TEMPLATE.md | **Issue:** add link to pelletier/go-toml issue here
Explanation of what this pull request does.
More detailed description of the decisions being made and the reasons why (if the patch is non-trivial).
| 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/tomltree_write.go | package toml
import (
"bytes"
"fmt"
"io"
"math"
"math/big"
"reflect"
"sort"
"strconv"
"strings"
"time"
)
type valueComplexity int
const (
valueSimple valueComplexity = iota + 1
valueComplex
)
type sortNode struct {
key string
complexity valueComplexity
}
// Encodes a string to a TOML-compliant... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/marshal_test.toml | title = "TOML Marshal Testing"
[basic]
bool = true
date = 1979-05-27T07:32:00Z
float = 123.4
float64 = 123.456782132399
int = 5000
string = "Bite me"
uint = 5001
[basic_lists]
bools = [true,false,true]
dates = [1979-05-27T07:32:00Z,1980-05-27T07:32:00Z]
floats = [12.3,45.6,78.9]
ints = [8001,800... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/README.md | # go-toml
Go library for the [TOML](https://toml.io/) format.
This library supports TOML version
[v1.0.0-rc.3](https://toml.io/en/v1.0.0-rc.3)
[](https://pkg.go.dev/github.com/pelletier/go-toml)
[
)
const (
tokenError tokenType = iota
tokenEOF
tokenComment
tokenKey
tokenString
tokenInteger
tokenTrue
tokenFalse
tokenFloat
tokenInf
tokenNan
tokenEqual
tokenLeftBracket
tokenRightBracket
tokenLeftCurlyBrace
t... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/fuzz.sh | #! /bin/sh
set -eu
go get github.com/dvyukov/go-fuzz/go-fuzz
go get github.com/dvyukov/go-fuzz/go-fuzz-build
if [ ! -e toml-fuzz.zip ]; then
go-fuzz-build github.com/pelletier/go-toml
fi
rm -fr fuzz
mkdir -p fuzz/corpus
cp *.toml fuzz/corpus
go-fuzz -bin=toml-fuzz.zip -workdir=fuzz
| 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/tomltree_writepub.go | package toml
// ValueStringRepresentation transforms an interface{} value into its toml string representation.
func ValueStringRepresentation(v interface{}, commented string, indent string, ord MarshalOrder, arraysOneElementPerLine bool) (string, error) {
return tomlValueStringRepresentation(v, commented, indent, ord... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/parser.go | // TOML Parser.
package toml
import (
"errors"
"fmt"
"math"
"reflect"
"strconv"
"strings"
"time"
)
type tomlParser struct {
flowIdx int
flow []token
tree *Tree
currentTable []string
seenTableKeys []string
}
type tomlParserStateFn func() tomlParserStateFn
// Formats and panics a... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/benchmark.sh | #!/bin/bash
set -ex
reference_ref=${1:-master}
reference_git=${2:-.}
if ! `hash benchstat 2>/dev/null`; then
echo "Installing benchstat"
go get golang.org/x/perf/cmd/benchstat
fi
tempdir=`mktemp -d /tmp/go-toml-benchmark-XXXXXX`
ref_tempdir="${tempdir}/ref"
ref_benchmark="${ref_tempdir}/benchmark-`echo -n $... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/.dockerignore | cmd/tomll/tomll
cmd/tomljson/tomljson
| 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/Makefile | export CGO_ENABLED=0
go := go
go.goos ?= $(shell echo `go version`|cut -f4 -d ' '|cut -d '/' -f1)
go.goarch ?= $(shell echo `go version`|cut -f4 -d ' '|cut -d '/' -f2)
out.tools := tomll tomljson jsontoml
out.dist := $(out.tools:=_$(go.goos)_$(go.goarch).tar.xz)
sources := $(wildcard **/*.go)
.PHONY:
tools: $(out.to... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/doc.go | // Package toml is a TOML parser and manipulation library.
//
// This version supports the specification as described in
// https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.5.0.md
//
// Marshaling
//
// Go-toml can marshal and unmarshal TOML documents from and to data
// structures.
//
// TOML document... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/position.go | // Position support for go-toml
package toml
import (
"fmt"
)
// Position of a document element within a TOML document.
//
// Line and Col are both 1-indexed positions for the element's line number and
// column number, respectively. Values of zero or less will cause Invalid(),
// to return true.
type Position str... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/example-crlf.toml | # This is a TOML document. Boom.
title = "TOML Example"
[owner]
name = "Tom Preston-Werner"
organization = "GitHub"
bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
dob = 1979-05-27T07:32:00Z # First class dates? Why not?
[database]
server = "192.168.1.1"
ports = [ 8001, 8001, 8002 ]
connection_max = 5000
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/example.toml | # This is a TOML document. Boom.
title = "TOML Example"
[owner]
name = "Tom Preston-Werner"
organization = "GitHub"
bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
dob = 1979-05-27T07:32:00Z # First class dates? Why not?
[database]
server = "192.168.1.1"
ports = [ 8001, 8001, 8002 ]
connection_max = 5000
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/Dockerfile | FROM golang:1.12-alpine3.9 as builder
WORKDIR /go/src/github.com/pelletier/go-toml
COPY . .
ENV CGO_ENABLED=0
ENV GOOS=linux
RUN go install ./...
FROM scratch
COPY --from=builder /go/bin/tomll /usr/bin/tomll
COPY --from=builder /go/bin/tomljson /usr/bin/tomljson
COPY --from=builder /go/bin/jsontoml /usr/bin/jsontoml
| 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/marshal_OrderPreserve_test.toml | title = "TOML Marshal Testing"
[basic_lists]
floats = [12.3,45.6,78.9]
bools = [true,false,true]
dates = [1979-05-27T07:32:00Z,1980-05-27T07:32:00Z]
ints = [8001,8001,8002]
uints = [5002,5003]
strings = ["One","Two","Three"]
[[subdocptrs]]
name = "Second"
[basic_map]
one = "one"
two = "two"
[subdo... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/CONTRIBUTING.md | ## Contributing
Thank you for your interest in go-toml! We appreciate you considering
contributing to go-toml!
The main goal is the project is to provide an easy-to-use TOML
implementation for Go that gets the job done and gets out of your way –
dealing with TOML is probably not the central piece of your project.
As... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/marshal.go | package toml
import (
"bytes"
"encoding"
"errors"
"fmt"
"io"
"reflect"
"sort"
"strconv"
"strings"
"time"
)
const (
tagFieldName = "toml"
tagFieldComment = "comment"
tagCommented = "commented"
tagMultiline = "multiline"
tagLiteral = "literal"
tagDefault = "default"
)
type tomlOpts s... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/LICENSE | The bulk of github.com/pelletier/go-toml is distributed under the MIT license
(see below), with the exception of localtime.go and localtime.test.go.
Those two files have been copied over from Google's civil library at revision
ed46f5086358513cf8c25f8e3f022cb838a49d66, and are distributed under the Apache
2.0 license (s... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pelletier | rapidsai_public_repos/roc/vendor/github.com/pelletier/go-toml/tomltree_create.go | package toml
import (
"fmt"
"reflect"
"time"
)
var kindToType = [reflect.String + 1]reflect.Type{
reflect.Bool: reflect.TypeOf(true),
reflect.String: reflect.TypeOf(""),
reflect.Float32: reflect.TypeOf(float64(1)),
reflect.Float64: reflect.TypeOf(float64(1)),
reflect.Int: reflect.TypeOf(int64(1)),
re... | 0 |
rapidsai_public_repos/roc/vendor/github.com/inconshreveable | rapidsai_public_repos/roc/vendor/github.com/inconshreveable/mousetrap/trap_others.go | // +build !windows
package mousetrap
// StartedByExplorer returns true if the program was invoked by the user
// double-clicking on the executable from explorer.exe
//
// It is conservative and returns false if any of the internal calls fail.
// It does not guarantee that the program was run from a terminal. It only ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/inconshreveable | rapidsai_public_repos/roc/vendor/github.com/inconshreveable/mousetrap/trap_windows.go | // +build windows
// +build !go1.4
package mousetrap
import (
"fmt"
"os"
"syscall"
"unsafe"
)
const (
// defined by the Win32 API
th32cs_snapprocess uintptr = 0x2
)
var (
kernel = syscall.MustLoadDLL("kernel32.dll")
CreateToolhelp32Snapshot = kernel.MustFindProc("CreateToolhelp32Snapshot")... | 0 |
rapidsai_public_repos/roc/vendor/github.com/inconshreveable | rapidsai_public_repos/roc/vendor/github.com/inconshreveable/mousetrap/README.md | # mousetrap
mousetrap is a tiny library that answers a single question.
On a Windows machine, was the process invoked by someone double clicking on
the executable file while browsing in explorer?
### Motivation
Windows developers unfamiliar with command line tools will often "double-click"
the executable for a tool... | 0 |
rapidsai_public_repos/roc/vendor/github.com/inconshreveable | rapidsai_public_repos/roc/vendor/github.com/inconshreveable/mousetrap/LICENSE | Copyright 2014 Alan Shreve
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
distrib... | 0 |
rapidsai_public_repos/roc/vendor/github.com/inconshreveable | rapidsai_public_repos/roc/vendor/github.com/inconshreveable/mousetrap/trap_windows_1.4.go | // +build windows
// +build go1.4
package mousetrap
import (
"os"
"syscall"
"unsafe"
)
func getProcessEntry(pid int) (*syscall.ProcessEntry32, error) {
snapshot, err := syscall.CreateToolhelp32Snapshot(syscall.TH32CS_SNAPPROCESS, 0)
if err != nil {
return nil, err
}
defer syscall.CloseHandle(snapshot)
var ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pkg | rapidsai_public_repos/roc/vendor/github.com/pkg/errors/errors.go | // Package errors provides simple error handling primitives.
//
// The traditional error handling idiom in Go is roughly akin to
//
// if err != nil {
// return err
// }
//
// which when applied recursively up the call stack results in error reports
// without context or debugging information. The e... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pkg | rapidsai_public_repos/roc/vendor/github.com/pkg/errors/go113.go | // +build go1.13
package errors
import (
stderrors "errors"
)
// Is reports whether any error in err's chain matches target.
//
// The chain consists of err itself followed by the sequence of errors obtained by
// repeatedly calling Unwrap.
//
// An error is considered to match a target if it is equal to that targe... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pkg | rapidsai_public_repos/roc/vendor/github.com/pkg/errors/README.md | # errors [](https://travis-ci.org/pkg/errors) [](https://ci.appveyor.com/project/davecheney/errors/branch/master) [
// Frame represents a program counter inside a stack frame.
// For historical reasons if Frame is interpreted as a uintptr
// its value represents the program counter + 1.
type Frame uintptr
// pc returns the program counter for this fra... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pkg | rapidsai_public_repos/roc/vendor/github.com/pkg/errors/Makefile | PKGS := github.com/pkg/errors
SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))
GO := go
check: test vet gofmt misspell unconvert staticcheck ineffassign unparam
test:
$(GO) test $(PKGS)
vet: | test
$(GO) vet $(PKGS)
staticcheck:
$(GO) get honnef.co/go/tools/cmd/staticcheck
staticcheck -checks all $(PKGS)
mis... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pkg | rapidsai_public_repos/roc/vendor/github.com/pkg/errors/.travis.yml | language: go
go_import_path: github.com/pkg/errors
go:
- 1.11.x
- 1.12.x
- 1.13.x
- tip
script:
- make check
| 0 |
rapidsai_public_repos/roc/vendor/github.com/pkg | rapidsai_public_repos/roc/vendor/github.com/pkg/errors/appveyor.yml | version: build-{build}.{branch}
clone_folder: C:\gopath\src\github.com\pkg\errors
shallow_clone: true # for startup speed
environment:
GOPATH: C:\gopath
platform:
- x64
# http://www.appveyor.com/docs/installed-software
install:
# some helpful output for debugging builds
- go version
- go env
# pre-insta... | 0 |
rapidsai_public_repos/roc/vendor/github.com/pkg | rapidsai_public_repos/roc/vendor/github.com/pkg/errors/LICENSE | Copyright (c) 2015, Dave Cheney <dave@cheney.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and t... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/LICENSE | ISC License
Copyright (c) 2012-2016 Dave Collins <dave@davec.name>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go | // Copyright (c) 2015-2016 Dave Collins <dave@davec.name>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/spew/config.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/spew/format.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/spew/spew.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/spew/doc.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/spew/dump.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/spew/bypass.go | // Copyright (c) 2015-2016 Dave Collins <dave@davec.name>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew | rapidsai_public_repos/roc/vendor/github.com/davecgh/go-spew/spew/common.go | /*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-colorable/noncolorable.go | package colorable
import (
"bytes"
"io"
)
// NonColorable holds writer but removes escape sequence.
type NonColorable struct {
out io.Writer
}
// NewNonColorable returns new instance of Writer which removes escape sequence from Writer.
func NewNonColorable(w io.Writer) io.Writer {
return &NonColorable{out: w}
}
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-colorable/colorable_others.go | //go:build !windows && !appengine
// +build !windows,!appengine
package colorable
import (
"io"
"os"
_ "github.com/mattn/go-isatty"
)
// NewColorable returns new instance of Writer which handles escape sequence.
func NewColorable(file *os.File) io.Writer {
if file == nil {
panic("nil passed instead of *os.Fil... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-colorable/README.md | # go-colorable
[](https://github.com/mattn/go-colorable/actions?query=workflow%3Atest)
[](https://codecov.io/gh/mattn/go-colorable)
[
const (
foregroundBlue = 0x1
foregroundGreen = 0x2
foregroundRed = 0x4
foregroundIntensity = 0x8... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-colorable/colorable_appengine.go | //go:build appengine
// +build appengine
package colorable
import (
"io"
"os"
_ "github.com/mattn/go-isatty"
)
// NewColorable returns new instance of Writer which handles escape sequence.
func NewColorable(file *os.File) io.Writer {
if file == nil {
panic("nil passed instead of *os.File to NewColorable()")
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-colorable/LICENSE | The MIT License (MIT)
Copyright (c) 2016 Yasuhiro Matsumoto
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-colorable/go.test.sh | #!/usr/bin/env bash
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
| 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-isatty/isatty_tcgets.go | //go:build (linux || aix || zos) && !appengine
// +build linux aix zos
// +build !appengine
package isatty
import "golang.org/x/sys/unix"
// IsTerminal return true if the file descriptor is terminal.
func IsTerminal(fd uintptr) bool {
_, err := unix.IoctlGetTermios(int(fd), unix.TCGETS)
return err == nil
}
// IsC... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-isatty/isatty_solaris.go | //go:build solaris && !appengine
// +build solaris,!appengine
package isatty
import (
"golang.org/x/sys/unix"
)
// IsTerminal returns true if the given file descriptor is a terminal.
// see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c
func IsTerminal(fd uintptr) bool {
_, er... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-isatty/isatty_bsd.go | //go:build (darwin || freebsd || openbsd || netbsd || dragonfly) && !appengine
// +build darwin freebsd openbsd netbsd dragonfly
// +build !appengine
package isatty
import "golang.org/x/sys/unix"
// IsTerminal return true if the file descriptor is terminal.
func IsTerminal(fd uintptr) bool {
_, err := unix.IoctlGet... | 0 |
rapidsai_public_repos/roc/vendor/github.com/mattn | rapidsai_public_repos/roc/vendor/github.com/mattn/go-isatty/isatty_windows.go | //go:build windows && !appengine
// +build windows,!appengine
package isatty
import (
"errors"
"strings"
"syscall"
"unicode/utf16"
"unsafe"
)
const (
objectNameInfo uintptr = 1
fileNameInfo = 2
fileTypePipe = 3
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll"... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.