repo_id stringclasses 927
values | file_path stringlengths 99 214 | content stringlengths 2 4.15M |
|---|---|---|
case1 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case1/testcase.json | {
"commands": [
["init", "-skip-tools", "-no-examples"],
["ensure", "-update"]
],
"vendor-final": [
"github.com/sdboyer/deptest"
]
}
|
final | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case1/final/Gopkg.toml |
[[constraint]]
name = "github.com/sdboyer/deptest"
version = "1.0.0"
[prune]
go-tests = true
unused-packages = true
|
final | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case1/final/Gopkg.lock | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
digest = "1:ddbbbe7f7a81c86d54e89fa388b532f4c144d666a14e8e483ba04fa58265b135"
name = "github.com/sdboyer/deptest"
packages = ["."]
pruneopts = "UT"
revision = "ff2948a2ac8f538c4ecd55962e919d1e13e74baf"
... |
initial | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case1/initial/main.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 main
import (
_ "github.com/sdboyer/deptest"
)
func main() {
}
|
case3 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case3/README.md | Validate that packages imported in an ignored package are not
included in the manifest or lock. |
case3 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case3/testcase.json | {
"commands": [
["ensure"]
],
"error-expected": "",
"vendor-final": [
"github.com/sdboyer/deptest"
]
}
|
final | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case3/final/Gopkg.toml | ignored = ["github.com/sdboyer/deptestdos"]
[[constraint]]
branch = "master"
name = "github.com/sdboyer/deptest"
|
final | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case3/final/Gopkg.lock | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
branch = "master"
digest = "1:6a4b7ea94689d9d4f231605ecc0248fbcbf16419d8571adb59c00396e37bbfc2"
name = "github.com/sdboyer/deptest"
packages = ["."]
pruneopts = ""
revision = "3f4c3bea144e112a69bbe5d8d0... |
initial | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case3/initial/Gopkg.toml | ignored = ["github.com/sdboyer/deptestdos"]
[[constraint]]
branch = "master"
name = "github.com/sdboyer/deptest"
|
initial | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case3/initial/Gopkg.lock | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
branch = "master"
name = "github.com/sdboyer/deptest"
packages = ["."]
revision = "3f4c3bea144e112a69bbe5d8d01c1b09a544253f"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "8... |
initial | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case3/initial/main.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 main
import (
_ "github.com/sdboyer/deptest"
)
func main() {
}
|
samples | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/cmd/dep/testdata/harness_tests/ensure/empty/case3/initial/samples/samples.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 samples
import _ "github.com/sdboyer/deptestdos"
|
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/uninstalling.md | ---
title: Uninstalling Dep
---
## Uninstalling
To uninstall `dep` itself, follow these instructions, depending on how you installed `dep` originally.
### If you installed `dep` by executing the `install.sh` script via curl
If you installed `dep` using the `install.sh` script, it is safe to simply delete the instal... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/glossary.md | ---
id: glossary
title: Glossary
---
dep uses some specialized terminology. Learn about it here!
* [Atom](#atom)
* [Cache lock](#cache-lock)
* [Constraint](#constraint)
* [Current Project](#current-project)
* [Deducible](#deducible)
* [Deduction](#deduction)
* [Direct Dependency](#direct-dependency)
* [External Impor... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/introduction.md | ---
id: introduction
title: Getting Started
---
**NOTE:** Dep was an official experiment to implement a package manager for Go.
As of 2020, Dep is deprecated and archived in favor of Go modules, which have
had official support since Go 1.11. For more details, see https://golang.org/ref/mod.
Welcome! This is documenta... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/new-project.md | ---
title: Creating a New Project
---
Once you have [dep installed](installation.md), we need to pick a root directory for our project. This is primarily about picking the right root import path, and corresponding directory beneath `$GOPATH/src`, at which to situate your project. There are four basic possibilities:
1... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/installation.md | ---
title: Installation
---
It is strongly recommended that you use a released version of dep. While tip is never purposefully broken, its stability is not guaranteed.
## Binary Installation
Pre-compiled binaries are available on the [releases](https://github.com/golang/dep/releases) page. You can use the `install.s... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/ensure-mechanics.md | ---
title: Models and Mechanisms
---
While dep has many discrete components and moving parts, all of these parts revolve around a central model. This document explains that model, then explores the dep's primary mechanisms in the context of that model.
## States and flows
Dep is centered around the idea of the "four... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/daily-dep.md | ---
title: Daily Dep
---
This guide is an introduction to the day-to-day use of dep. If you haven't set up a Go project at all yet, though, run through [Creating a New Project](new-project.md) first.
Dep is a tool you'll use regularly in the course of normal Go development. Regularly, but briefly - dependency managem... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/the-solver.md | ---
title: The Solver
---
At the heart of dep is a constraint solving engine - a [CDCL](https://en.wikipedia.org/wiki/Conflict-Driven_Clause_Learning)-style solver (albeit light on the "CL" part), tailored specifically to the domain of Go package management. It lives in the `github.com/golang/dep/gps` package, and is ... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/Gopkg.lock.md | ---
title: Gopkg.lock
---
The `Gopkg.lock` file is generated by `dep ensure` and `dep init`. It is the output of [the solving function](ensure-mechanics.md#functional-flow): a transitively complete snapshot of a project's dependency graph, expressed as a series of `[[project]]` stanzas. That means:
* Every package a... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/deduction.md | ---
title: Import Path Deduction
---
Deduction is dep's algorithm for looking at an import path and determining the portion of the path that corresponds to the source root. The algorithm has a static component, by which a small set of known, popular hosts like GitHub and Bitbucket have their roots deduced:
* `github.... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/migrating.md | ---
title: Migrating to Dep
---
Ideally, migrating an existing Go project to dep is straightforward:
```bash
$ cd $GOPATH/src/path/to/project/root
$ dep init
```
For many projects, this will just work. `dep init` will make educated guesses about what versions to use for your dependencies, generate sane `Gopkg.toml`,... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/failure-modes.md | ---
title: Failure Modes
---
Like all complex, network-oriented software, dep has known failure modes. These generally fall into two categories: I/O and logical. I/O errors arise from unexpected responses to system calls that interact with the network or local disk. Logical failures occur when dep encounters issues wi... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/env-vars.md | ---
id: env-vars
title: Environment Variables
---
dep's behavior can be modified by some environment variables:
* [`DEPCACHEAGE`](#depcacheage)
* [`DEPCACHEDIR`](#depcachedir)
* [`DEPPROJECTROOT`](#depprojectroot)
* [`DEPNOLOCK`](#depnolock)
Environment variables are passed through to subcommands, and therefore can ... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/FAQ.md | ---
title: FAQ
---
The FAQ predated the introduction of the rest of the documentation. If something in here conflicts with other guides or reference documents, it's probably here that it's wrong - please file a PR!
## Concepts
* [Does `dep` replace `go get`?](#does-dep-replace-go-get)
* [Why is it `dep ensure` inste... |
docs | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/Gopkg.toml.md | ---
title: Gopkg.toml
---
The `Gopkg.toml` file is initially generated by `dep init`, and is primarily hand-edited. It contains several types of rule declarations that govern dep's behavior:
* _Dependency rules:_ [`constraints`](#constraint) and [`overrides`](#override) allow the user to specify which versions of dep... |
assets | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/assets/DigbyScene2Shadows.svg | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 688.25 700.83"><defs><style>.cls-1{fill:none}.cls-2{fill:#474747}.cls-3{opacity:.2}.cls-4{fill:#edc0e3}.cls-5{fill:#e8e5e3}.cls-6{fill:#aaa39f}.cls-7{fill:#fff}.cls-8{fill:#c4d8ba}.cls-9{fill:#807e6e}.cls-10{fill:#d7b89b}.cl... |
assets | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/assets/DigbyShadows.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720.07 762.53"><defs><style>.cls-1{fill:#ced8d2}.cls-2{fill:#1d1d1b}.cls-3{opacity:.2}.cls-4{fill:#050505}.cls-5{fill:#ccbca8}.cls-6{fill:#b7a38d}.cls-7{fill:#b79765}.cls-8{fill:#fff}.cls-9{fill:#d7b89b}.cls-10{opacity:.27}.cls-11{opacity:.51}.cls-12{fill:#e3fbfc}.cl... |
assets | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/assets/DigbyFlatScene2.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 725.13 841.56"><defs><style>.cls-1{fill:#1c1c1b}.cls-2{fill:#ced8d2}.cls-3{opacity:.2}.cls-4{opacity:.45}.cls-5{fill:#ccbca8}.cls-6{fill:#b79765}.cls-7{fill:#fff}.cls-8{opacity:.38}.cls-9{fill:#f6d2a2}.cls-10{fill:#b7a38d}.cls-11{fill:#1d1d1b}.cls-12{opacity:.19}</st... |
assets | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/assets/DigbyScene2Flat.svg | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 688.25 700.83"><defs><style>.cls-1{fill:none}.cls-2{fill:#474747}.cls-3{opacity:.2}.cls-4{fill:#edc0e3}.cls-5{fill:#e8e5e3}.cls-6{fill:#aaa39f}.cls-7{fill:#fff}.cls-8{fill:#c4d8ba}.cls-9{fill:#807e6e}.cls-10{fill:#d7b89b}.cl... |
assets | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/assets/DigbyFlat.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720.07 762.53"><defs><style>.cls-1{fill:#ced8d2}.cls-2{fill:#1d1d1b}.cls-3{fill:#ccbca8}.cls-4{fill:#b7a38d}.cls-5{fill:#b79765}.cls-6{fill:#fff}.cls-7{fill:#d7b89b}.cls-8{opacity:.27}.cls-9{opacity:.51}.cls-10{fill:#e3fbfc}.cls-11{opacity:.39}.cls-12{fill:none;strok... |
assets | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/docs/assets/DigbyShadowsScene2.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 725.13 841.56"><defs><style>.cls-1{fill:#1c1c1b}.cls-2{fill:#ced8d2}.cls-3{opacity:.2}.cls-4{opacity:.45}.cls-5{fill:#ccbca8}.cls-6{fill:#b79765}.cls-7{fill:#fff}.cls-8{opacity:.38}.cls-9{fill:#f6d2a2}.cls-10{fill:#b7a38d}.cls-11{fill:#1d1d1b}.cls-12{opacity:.19}</st... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/decode.go | // Copyright 2011 The Snappy-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 snappy
import (
"encoding/binary"
"errors"
"io"
)
var (
// ErrCorrupt reports that the input is invalid.
ErrCorrupt = errors.New("snappy: ... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/AUTHORS | # This is the official list of Snappy-Go authors for copyright purposes.
# This file is distinct from the CONTRIBUTORS files.
# See the latter for an explanation.
# Names should be added to this file as
# Name or Organization <email address>
# The email address is not required for organizations.
# Please keep the lis... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/decode_amd64.s | // 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.
// +build !appengine
// +build gc
// +build !noasm
#include "textflag.h"
// The asm code generally follows the pure Go code in decode_other.go, except
// wher... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/snappy.go | // Copyright 2011 The Snappy-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 snappy implements the Snappy compression format. It aims for very
// high speeds and reasonable compression.
//
// There are actually two Snap... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/encode_asm.go | // Copyright 2016 The Snappy-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.
// +build !appengine
// +build gc
// +build !noasm
// +build amd64 arm64
package snappy
// emitLiteral has the same semantics as in encode_other.go.
//... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/go.mod | module github.com/golang/snappy
|
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/decode_arm64.s | // 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.
// +build !appengine
// +build gc
// +build !noasm
#include "textflag.h"
// The asm code generally follows the pure Go code in decode_other.go, except
// wher... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/snappy_test.go | // Copyright 2011 The Snappy-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 snappy
import (
"bytes"
"encoding/binary"
"flag"
"fmt"
"io"
"io/ioutil"
"math/rand"
"net/http"
"os"
"os/exec"
"path/filepath"
"runti... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/decode_asm.go | // Copyright 2016 The Snappy-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.
// +build !appengine
// +build gc
// +build !noasm
// +build amd64 arm64
package snappy
// decode has the same semantics as in decode_other.go.
//
//go... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/README | The Snappy compression format in the Go programming language.
To use as a library:
$ go get github.com/golang/snappy
To use as a binary:
$ go install github.com/golang/snappy/cmd/snappytool@latest
$ cat decoded | ~/go/bin/snappytool -e > encoded
$ cat encoded | ~/go/bin/snappytool -d > decoded
Unless otherwise noted... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/encode_arm64.s | // 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.
// +build !appengine
// +build gc
// +build !noasm
#include "textflag.h"
// The asm code generally follows the pure Go code in encode_other.go, except
// wher... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/decode_other.go | // Copyright 2016 The Snappy-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.
// +build !amd64,!arm64 appengine !gc noasm
package snappy
// decode writes the decoding of src to dst. It assumes that the varint-encoded
// length of... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/encode_other.go | // Copyright 2016 The Snappy-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.
// +build !amd64,!arm64 appengine !gc noasm
package snappy
func load32(b []byte, i int) uint32 {
b = b[i : i+4 : len(b)] // Help the compiler eliminat... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/LICENSE | Copyright (c) 2011 The Snappy-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 foll... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/golden_test.go | // Copyright 2016 The Snappy-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 snappy
// extendMatchGoldenTestCases is the i and j arguments, and the returned value,
// for every extendMatch call issued when encoding the
//... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/CONTRIBUTORS | # This is the official list of people who can contribute
# (and typically have contributed) code to the Snappy-Go repository.
# The AUTHORS file lists the copyright holders; this file
# lists people. For example, Google employees are listed here
# but not in AUTHORS, because Google holds the copyright.
#
# The submiss... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/encode_amd64.s | // 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.
// +build !appengine
// +build gc
// +build !noasm
#include "textflag.h"
// The XXX lines assemble on Go 1.4, 1.5 and 1.7, but not 1.6, due to a
// Go toolcha... |
snappy | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/encode.go | // Copyright 2011 The Snappy-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 snappy
import (
"encoding/binary"
"errors"
"io"
)
// Encode returns the encoded form of src. The returned slice may be a sub-
// slice of ds... |
testdata | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/testdata/Isaac.Newton-Opticks.txt | Produced by Suzanne Lybarger, steve harris, Josephine
Paolucci and the Online Distributed Proofreading Team at
http://www.pgdp.net.
OPTICKS:
OR, A
TREATISE
OF THE
_Reflections_, _Refractions_,
_Inflections_ and _Colours_
OF
LIGHT.
_The_ FOURTH EDITION, _corrected_.
By Sir _ISAAC NEWTON_, Knt.
LONDON:
Pr... |
snappytool | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/cmd/snappytool/main.go | package main
import (
"errors"
"flag"
"io/ioutil"
"os"
"github.com/golang/snappy"
)
var (
decode = flag.Bool("d", false, "decode")
encode = flag.Bool("e", false, "encode")
)
func run() error {
flag.Parse()
if *decode == *encode {
return errors.New("exactly one of -d or -e must be given")
}
in, err := ... |
misc | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/snappy/misc/main.cpp | /*
This is a C version of the cmd/snappytool Go program.
To build the snappytool binary:
g++ main.cpp /usr/lib/libsnappy.a -o snappytool
or, if you have built the C++ snappy library from source:
g++ main.cpp /path/to/your/snappy/.libs/libsnappy.a -o snappytool
after running "make" from your snappy checkout directory.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.