repo_id
stringclasses
927 values
file_path
stringlengths
99
214
content
stringlengths
2
4.15M
gotelemetry
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/cmd/gotelemetry/main.go
// Copyright 2023 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:generate go test -run=TestDocHelp -update package main import ( "encoding/json" "flag" "fmt" "log" "os" "path/filepath" "strings" "golang.org/x/...
browser
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/cmd/gotelemetry/internal/browser/browser.go
// 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. // Package browser provides utilities for interacting with users' browsers. // This is a copy of the go project's src/cmd/internal/browser. package browser imp...
view
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/cmd/gotelemetry/internal/view/README.md
# Go Telemetry View Telemetry data it is stored in files on the user machine. Users can run the command `gotelemetry view` to view the data in a browser. The HTML page served by the command will generate graphs based on the local copies of report uploads and active counter files. ## Development The static files are ...
view
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/cmd/gotelemetry/internal/view/view_test.go
// Copyright 2023 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. // The view command is a server intended to be run on a users machine to // display the local counters and time series charts of counters. package view import ...
view
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/cmd/gotelemetry/internal/view/view.go
// Copyright 2023 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. // The view command is a server intended to be run on a user's machine to // display the local counters and time series charts of counters. package view import...
csv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/cmd/gotelemetry/internal/csv/csv.go
// Copyright 2023 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. // csv dumps all the active counters. The output is // a sequence of lines // value,"counter-name",program, version,go-version,goos, garch // sorted by counter ...
crashmonitor
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/crashmonitor/supported.go
// Copyright 2024 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 crashmonitor import ic "golang.org/x/telemetry/internal/crashmonitor" // Supported reports whether the runtime supports [runtime.SetCrashOutput]. // /...
config
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/config/doc.go
// The config package holds the config.json file defining the Go telemetry // upload configuration. // // An upload configuration specifies the set of values that are permitted in // telemetry uploads: GOOS, GOARCH, Go version, and per-program counters. // // This package contains no actual Go code, and exists only so ...
config
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/config/go.mod
module golang.org/x/telemetry/config go 1.21
config
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/config/config.json
{ "GOOS": [ "aix", "android", "darwin", "dragonfly", "freebsd", "hurd", "illumos", "ios", "js", "linux", "nacl", "netbsd", "openbsd", "plan9", "solaris", "wasip1", "windows", "zos" ], "GOARCH": [ "386", "amd64", "amd64p32", "arm", "arm64", "arm64be", "armbe", "loon...
godev
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/go.mod
module golang.org/x/telemetry/godev go 1.21.0 require ( cloud.google.com/go/cloudtasks v1.12.4 cloud.google.com/go/storage v1.30.1 github.com/evanw/esbuild v0.17.19 github.com/google/go-cmp v0.6.0 github.com/yuin/goldmark v1.5.4 golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 golang.org/x/mod v0.19.0 gola...
godev
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/go.sum
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.110.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= cloud.google.com/go/cloudtasks v1.12.4 h1:5xXuFfAjg0Z5Wb81j2GAbB3e0bwroCeSF+...
log
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/log/cloudlog.go
// Copyright 2023 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 log import ( "os" "time" "golang.org/x/exp/slog" ) func NewGCPLogHandler() slog.Handler { return slog.NewJSONHandler(os.Stderr, &slog.HandlerOpti...
middleware
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/middleware/middleware.go
// Copyright 2023 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 middleware implements a simple middleware pattern for http handlers, // along with implementations for some common middlewares. package middleware i...
content
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/content.go
// Copyright 2023 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 content implements a basic web serving framework. // // # Content Server // // A content server is an http.Handler that serves requests from a file s...
content
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/content_test.go
// Copyright 2023 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 content import ( "errors" "io/fs" "net/http" "net/http/httptest" "os" "path" "strings" "testing" "github.com/google/go-cmp/cmp" "golang.org/...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/redirect.html.out
<a href="/index">Moved Permanently</a>.
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/index.html.out
<!DOCTYPE html> <html lang="en"> <head> <title>Page Title</title> </head> <body> <main> <header> <h1>Page Title</h1> </header> </main> </body> </html>
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/teapot.out
I'm a teapot
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/base.tmpl
<!-- Copyright 2023 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. --> {{define "base"}} <!DOCTYPE html> <html lang="en"> <head> <title>{{block "title" .}}{{.Title}}{{end}}</title> </head> <body> <main> {{block "content...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/data.html.out
<!DOCTYPE html> <html lang="en"> <head> <title>Page Title</title> </head> <body> <main> <header> <h1>Data from Handler</h1> </header> </main> </body> </html>
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/style.css
/*! * Copyright 2023 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. */ a { color: transparent; }
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/error.out
Bad Request
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/text.out
Hello, World!
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/base.html
<!-- Copyright 2023 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. --> {{template "base" .}}
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/markdown.md
--- Title: Page Title Layout: base.html --- # This is a heading ## This is a subheading [link](https://go.dev)
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/style.css.out
/*! * Copyright 2023 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. */ a { color: transparent; }
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/index.html
<!-- Copyright 2023 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. --> {{template "base" .}} {{define "title"}}Page Title{{end}} {{define "content"}} <header> <h1>Page Title</h1> </header> {{end}}
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/markdown.md.out
<!DOCTYPE html> <html lang="en"> <head> <title>Page Title</title> </head> <body> <main> <h1 id="this-is-a-heading">This is a heading</h1> <h2 id="this-is-a-subheading">This is a subheading</h2> <p><a href="https://go.dev">link</a></p> </main> </body> </html>
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/data.html
<!-- Copyright 2023 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. --> {{template "base" .}} {{define "title"}}Page Title{{end}} {{define "content"}} <header> <h1>{{.}}</h1> </header> {{end}}
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/redirect.out
<a href="/">Moved Permanently</a>.
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/json.out
{"Data":"Data"}
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/404.html.out
Not Found
noindex
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/noindex/noindex.html.out
<!doctype html> <meta name="viewport" content="width=device-width"> <pre> <a href="noindex.html.out">noindex.html.out</a> </pre>
subdir
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/subdir/index.html.out
<!DOCTYPE html> <html lang="en"> <head> <title>Page Title</title> </head> <body> <main> <header> <h1>Page in subdirectory</h1> </header> </main> </body> </html>
subdir
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/content/testdata/subdir/index.html
<!-- Copyright 2023 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. --> {{template "base" .}} {{define "title"}}Page Title{{end}} {{define "content"}} <header> <h1>Page in subdirectory</h1> </header> {{end}}
config
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/config/config.go
// Copyright 2023 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 config import ( "flag" "log" "os" "strconv" "time" ) type Config struct { // ServerPort is the port for the cmd/telemetrygodev. ServerPort stri...
storage
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/storage/storage_test.go
// Copyright 2023 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 storage import ( "context" "encoding/json" "errors" "testing" "github.com/google/go-cmp/cmp" ) type jsondata struct { Tars string Case string ...
storage
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/storage/storage.go
// Copyright 2023 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 storage provides an interface and types for reading and writing // files to Cloud Storage or a filesystem. package storage import ( "context" "err...
storage
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/internal/storage/api.go
package storage import ( "context" "golang.org/x/telemetry/godev/internal/config" ) type API struct { Upload BucketHandle Merge BucketHandle Chart BucketHandle } func NewAPI(ctx context.Context, cfg *config.Config) (*API, error) { upload, err := newBucket(ctx, cfg, cfg.UploadBucket) if err != nil { retur...
devtools
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/devtools/localstorage.sh
#!/usr/bin/env bash # Copyright 2023 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. set -e # Script for running a Google Cloud Storage API emulator. # # Connect to the emulator by adding an endpoint option when creating a stor...
esbuild
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/devtools/cmd/esbuild/main.go
// Copyright 2023 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 // Command esbuild bundles and minifies stylesheet and typescript files. // // The command will walk the directory it is run in to gather the...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/worker/Dockerfile
# Copyright 2023 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # This Dockerfile expects the build context to be the repo root. # NOTE: don't put anything in /tmp here. It will work locally, # but Cloud Run mounts something e...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/worker/main_test.go
// Copyright 2023 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 main import ( "net/url" "reflect" "testing" "time" "github.com/google/go-cmp/cmp" "golang.org/x/telemetry/internal/config" "golang.org/x/teleme...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/worker/README.md
# worker ## Endpoints ### `/merge/?date=<YYYY-MM-DD>` The merge endpoint reads the set of reports from the upload bucket prefixed with the value of the data param and encodes each report as newline separated JSON in a merged report. It returns the number of reports merged and the location of the merged report. ### ...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/worker/cloudbuild.yaml
# Copyright 2023 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. steps: # Build the container image - name: "gcr.io/cloud-builders/docker" args: - "build" - "-t" - "gcr.io/$PROJECT_ID/worker:$COMMIT_SHA...
worker
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/worker/main.go
// Copyright 2023 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 main import ( "bufio" "context" "encoding/json" "errors" "flag" "fmt" "io/fs" "log" "net/http" "net/url" "os" "sort" "strings" "time" c...
telemetrygodev
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/telemetrygodev/Dockerfile
# Copyright 2023 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # This Dockerfile expects the build context to be the repo root. # NOTE: don't put anything in /tmp here. It will work locally, # but Cloud Run mounts something e...
telemetrygodev
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/telemetrygodev/main_test.go
// Copyright 2023 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 main import ( "bytes" "context" _ "embed" "flag" "io" "net/http" "net/http/httptest" "os" "os/exec" "path/filepath" "runtime" "strings" "t...
telemetrygodev
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/telemetrygodev/deploy-prod.yaml
# Copyright 2023 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. steps: # Build the container image - name: "gcr.io/cloud-builders/docker" args: - "build" - "-t" - "gcr.io/$PROJECT_ID/telemetrygodev:$CO...
telemetrygodev
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/telemetrygodev/README.md
# telemetrygodev ## Local Development For local development, simply build and run. It serves on localhost:8080. go run ./godev/cmd/telemetrygodev By default, the server will use the filesystem for storage object I/O. Use the -gcs flag to use the Cloud Storage API. go run ./godev/cmd/worker --gcs Optionall...
telemetrygodev
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/telemetrygodev/cloudbuild.yaml
# Copyright 2023 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. steps: # Build the container image - name: "gcr.io/cloud-builders/docker" args: - "build" - "-t" - "gcr.io/$PROJECT_ID/telemetrygodev:$CO...
telemetrygodev
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/telemetrygodev/main.go
// Copyright 2023 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. // Telemetrygodev serves the telemetry.go.dev website. package main import ( "context" _ "embed" "encoding/json" "errors" "flag" "fmt" "html/template" ...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/telemetry/godev/cmd/telemetrygodev/testdata/config.json
{ "Version": "v0.0.1-test", "GOOS": [ "linux", "darwin" ], "GOARCH": [ "amd64", "arm64" ], "GoVersion": [ "go1.20", "go1.20.1" ], "Programs": [ { "Name": "golang.org/x/tools/gopls", "Versions": [ "v0.10.1", "v0.11.0" ], "Counters": [ ...
review
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/CONTRIBUTING.md
# Contributing to Go Go is an open source project. It is the work of hundreds of contributors. We appreciate your help! ## Filing issues When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions: 1. What version of Go are you using (`go version`)? 2. What operating system and...
review
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/PATENTS
Additional IP Rights Grant (Patents) "This implementation" means the copyrightable works distributed by Google as part of the Go project. Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, o...
review
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/go.mod
module golang.org/x/review go 1.18
review
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/README.md
# git-codereview The git-codereview tool is a command-line tool for working with Gerrit. ## Download/Install The easiest way to install is to run `go install golang.org/x/review/git-codereview@latest`. You can also manually git clone the repository to `$GOPATH/src/golang.org/x/review`. Run `git codereview hooks` to...
review
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/LICENSE
Copyright 2014 The Go Authors. 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 disclaimer. * Redistrib...
review
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/codereview.cfg
issuerepo: golang/go
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/config.go
// Copyright 2015 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 main import ( "fmt" "net/url" "os" "path/filepath" "strings" ) var ( configPath string cachedConfig map[string]string ) // Config returns t...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/gofmt_test.go
// 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. package main import ( "fmt" "os" "strings" "testing" ) const ( goodGo = "package good\n" badGo = " package bad1 " badGoFixed = "package ba...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/hook_test.go
// 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. package main import ( "bytes" "fmt" "os" "path/filepath" "regexp" "strings" "testing" ) func TestHookCommitMsgGerrit(t *testing.T) { gt := newGitTest...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/pending.go
// 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. package main import ( "bytes" "fmt" "io" "net/http" "sort" "strings" "time" ) var ( pendingLocal bool // -l flag, use only local operations (no...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/pending_test.go
// 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. package main import ( "fmt" "os" "os/exec" "regexp" "strings" "testing" ) func TestPendingNone(t *testing.T) { gt := newGitTest(t) defer gt.done() ...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/branch_test.go
// 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. package main import ( "path/filepath" "reflect" "strings" "testing" ) func TestCurrentBranch(t *testing.T) { gt := newGitTest(t) defer gt.done() t.Lo...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/util_test.go
// 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. package main import ( "bytes" "encoding/json" "fmt" "net" "net/http" "os" "os/exec" "path/filepath" "reflect" "regexp" "runtime/debug" "strings" ...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/api_test.go
// 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. package main import ( "os" "path/filepath" "testing" ) var authTests = []struct { netrc string cookiefile string user string password ...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/submit.go
// 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. package main import ( "bytes" "fmt" "strings" "time" ) func cmdSubmit(args []string) { // NOTE: New flags should be added to the usage message below as ...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/reword.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "bytes" "fmt" "os" "path/filepath" "strings" ) func cmdReword(args []string) { flags.Usage = func() { fmt.Fprintf(stderr(), "Usa...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/submit_test.go
// 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. package main import ( "os" "runtime" "strings" "testing" ) func TestSubmitErrors(t *testing.T) { gt := newGitTest(t) defer gt.done() srv := newGerrit...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/change.go
// 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. package main import ( "fmt" "os" "path/filepath" "regexp" "strconv" "strings" ) var commitMsg string var changeAuto bool var changeQuick bool var chang...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/doc.go
// 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. /* Git-codereview manages the code review process for Git changes using a Gerrit server. The git-codereview tool manages “change branches” in the local git rep...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/mail_test.go
// 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. package main import ( "fmt" "testing" ) func TestMail(t *testing.T) { gt := newGitTest(t) defer gt.done() gt.work(t) h := CurrentBranch().Pending()[0]...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/reword_test.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "os" "strings" "testing" ) func TestReword(t *testing.T) { gt := newGitTest(t) defer gt.done() gt.work(t) gt.work(t) gt.work(t)...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/hook.go
// 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. package main import ( "bytes" "crypto/rand" "fmt" "io" "os" "path/filepath" "regexp" "strings" ) var hookFiles = []string{ "commit-msg", "pre-commi...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/gofmt.go
// 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. package main import ( "bytes" "flag" "fmt" "os" "os/exec" "path/filepath" "sort" "strings" ) var gofmtList bool func cmdGofmt(args []string) { // N...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/sync_test.go
// 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. package main import ( "bytes" "os" "path/filepath" "strings" "testing" ) func TestSync(t *testing.T) { gt := newGitTest(t) defer gt.done() testMain(...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/editor.go
// Copyright 2015 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 main import ( "io" "os" "os/exec" ) // editor invokes an interactive editor on a temporary file containing // initial, blocks until the editor exit...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/branch.go
// 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. package main import ( "bytes" "fmt" "net/url" "os" "os/exec" "path/filepath" "regexp" "runtime" "strings" ) // Branch describes a Git branch. type B...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/change_test.go
// 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. package main import ( "fmt" "strings" "testing" ) func TestChange(t *testing.T) { gt := newGitTest(t) defer gt.done() t.Logf("main -> main") testMain...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/review.go
// 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. // TODO(rsc): Document multi-change branch behavior. // Command git-codereview provides a simple command-line user interface for // working with git repositor...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/config_test.go
// Copyright 2015 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 main import ( "reflect" "testing" ) func TestParseConfig(t *testing.T) { cases := []struct { raw string want map[string]string wanter...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/sync.go
// 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. package main import ( "encoding/json" "flag" "fmt" "os" "strings" ) func cmdSync(args []string) { expectZeroArgs(args, "sync") // Get current branch ...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/mail.go
// 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. package main import ( "fmt" "os" "regexp" "sort" "strings" "unicode" "unicode/utf8" ) func cmdMail(args []string) { // NOTE: New flags should be adde...
git-codereview
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/review/git-codereview/api.go
// 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. package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" "net/url" "os" "os/user" "path/filepath" "runtime" "sort" "strings" "sync" ) ...
dl
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/CONTRIBUTING.md
# Contributing to Go Go is an open source project. It is the work of hundreds of contributors. We appreciate your help! ## Filing issues When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions: 1. What version of Go are you using (`go version`)? 2. What operating system and...
dl
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/PATENTS
Additional IP Rights Grant (Patents) "This implementation" means the copyrightable works distributed by Google as part of the Go project. Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, o...
dl
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go.mod
module golang.org/dl go 1.18
dl
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/README.md
# golang.org/dl This repository holds the Go wrapper programs that run specific versions of Go, such as `go install golang.org/dl/go1.10.3@latest` and `go install golang.org/dl/gotip@latest`. ## Report Issues / Send Patches This repository uses Gerrit for code changes. To learn how to submit changes to this reposito...
dl
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/LICENSE
Copyright 2009 The Go Authors. 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 disclaimer. * Redistrib...
dl
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/codereview.cfg
issuerepo: golang/go
go1.17.13
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.17.13/main.go
// Copyright 2022 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. // The go1.17.13 command runs the go command from Go 1.17.13. // // To install, run: // // $ go install golang.org/dl/go1.17.13@latest // $ go1.17.13 download /...
go1.14rc1
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.14rc1/main.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The go1.14rc1 command runs the go command from Go 1.14rc1. // // To install, run: // // $ go install golang.org/dl/go1.14rc1@latest // $ go1.14rc1 download /...
go1.10.6
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10.6/main.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. // The go1.10.6 command runs the go command from Go 1.10.6. // // To install, run: // // $ go install golang.org/dl/go1.10.6@latest // $ go1.10.6 download // //...
go1.14.2
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.14.2/main.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The go1.14.2 command runs the go command from Go 1.14.2. // // To install, run: // // $ go install golang.org/dl/go1.14.2@latest // $ go1.14.2 download // //...
go1.9.6
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.9.6/main.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. // The go1.9.6 command runs the go command from Go 1.9.6. // // To install, run: // // $ go install golang.org/dl/go1.9.6@latest // $ go1.9.6 download // // And...
go1.15.10
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.10/main.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The go1.15.10 command runs the go command from Go 1.15.10. // // To install, run: // // $ go install golang.org/dl/go1.15.10@latest // $ go1.15.10 download /...
go1.16.6
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16.6/main.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The go1.16.6 command runs the go command from Go 1.16.6. // // To install, run: // // $ go install golang.org/dl/go1.16.6@latest // $ go1.16.6 download // //...
go1.12beta1
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12beta1/main.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. // The go1.12beta1 command runs the go command from Go 1.12beta1. // // To install, run: // // $ go install golang.org/dl/go1.12beta1@latest // $ go1.12beta1 do...