repo_id
stringclasses
927 values
file_path
stringlengths
99
214
content
stringlengths
2
4.15M
bolt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/boltdb/bolt/LICENSE
The MIT License (MIT) Copyright (c) 2013 Ben Johnson 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, merge, publ...
bolt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/boltdb/bolt/db.go
package bolt import ( "errors" "fmt" "hash/fnv" "log" "os" "runtime" "runtime/debug" "strings" "sync" "time" "unsafe" ) // The largest step that can be taken when remapping the mmap. const maxMmapStep = 1 << 30 // 1GB // The data file format version. const version = 2 // Represents a marker value to indi...
lockfile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/nightlyone/lockfile/lockfile.go
// Package lockfile handles pid file based locking. // While a sync.Mutex helps against concurrency issues within a single process, // this package is designed to help against concurrency issues between cooperating processes // or serializing multiple invocations of the same process. You can also combine sync.Mutex // ...
lockfile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/nightlyone/lockfile/lockfile_windows.go
package lockfile import ( "syscall" ) //For some reason these consts don't exist in syscall. const ( error_invalid_parameter = 87 code_still_active = 259 ) func isRunning(pid int) (bool, error) { procHnd, err := syscall.OpenProcess(syscall.PROCESS_QUERY_INFORMATION, true, uint32(pid)) if err != nil { if...
lockfile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/nightlyone/lockfile/lockfile_unix.go
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris package lockfile import ( "os" "syscall" ) func isRunning(pid int) (bool, error) { proc, err := os.FindProcess(pid) if err != nil { return false, err } if err := proc.Signal(syscall.Signal(0)); err != nil { return false, nil } return t...
lockfile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/nightlyone/lockfile/LICENSE
Copyright (c) 2012 Ingo Oeser 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, merge, publish, distribute, sublice...
constext
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/sdboyer/constext/constext.go
// Package constext provides facilities for pairing contexts together so that // they behave as one. package constext import ( "context" "sync" "time" ) type constext struct { car, cdr context.Context done chan struct{} // chan closed on cancelFunc() call, or parent done once sync.Once // protects ...
constext
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/sdboyer/constext/LICENSE
The MIT License (MIT) Copyright (c) 2017 Sam Boyer 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, merge, publis...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/LICENSE.txt
The Masterminds Copyright (C) 2014-2015, Matt Butcher and Matt Farina 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, mod...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/repo.go
// Package vcs provides the ability to work with varying version control systems // (VCS), also known as source control systems (SCM) though the same interface. // // This package includes a function that attempts to detect the repo type from // the remote URL and return the proper type. For example, // // remote ...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/vcs_local_lookup.go
package vcs import ( "os" "runtime" "strings" ) // DetectVcsFromFS detects the type from the local path. // Is there a better way to do this? func DetectVcsFromFS(vcsPath string) (Type, error) { // There are cases under windows that a path could start with a / and it needs // to be stripped. For example, a path...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/bzr.go
package vcs import ( "fmt" "net/url" "os" "os/exec" "path/filepath" "regexp" "strings" "time" ) var bzrDetectURL = regexp.MustCompile("parent branch: (?P<foo>.+)\n") // NewBzrRepo creates a new instance of BzrRepo. The remote and local directories // need to be passed in. func NewBzrRepo(remote, local string...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/svn.go
package vcs import ( "encoding/xml" "fmt" "os" "os/exec" "path/filepath" "runtime" "strings" "time" ) // NewSvnRepo creates a new instance of SvnRepo. The remote and local directories // need to be passed in. The remote location should include the branch for SVN. // For example, if the package is https://gith...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/hg.go
package vcs import ( "encoding/xml" "os" "os/exec" "regexp" "strings" "time" ) var hgDetectURL = regexp.MustCompile("default = (?P<foo>.+)\n") // NewHgRepo creates a new instance of HgRepo. The remote and local directories // need to be passed in. func NewHgRepo(remote, local string) (*HgRepo, error) { ins :=...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/errors.go
package vcs import "errors" // The vcs package provides ways to work with errors that hide the underlying // implementation details but make them accessible if needed. For basic errors // that do not have underlying implementation specific details or the underlying // details are not necessary there are errors for co...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/vcs_remote_lookup.go
package vcs import ( "encoding/json" "encoding/xml" "fmt" "io" "io/ioutil" "net/http" "net/url" "regexp" "strings" ) type vcsInfo struct { host string pattern string vcs Type addCheck func(m map[string]string, u *url.URL) (Type, error) regex *regexp.Regexp } // scpSyntaxRe matches the SCP-...
vcs
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/vcs/git.go
package vcs import ( "bytes" "encoding/xml" "io/ioutil" "os" "os/exec" "path/filepath" "runtime" "strings" "time" ) // NewGitRepo creates a new instance of GitRepo. The remote and local directories // need to be passed in. func NewGitRepo(remote, local string) (*GitRepo, error) { ins := depInstalled("git") ...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/LICENSE.txt
The Masterminds Copyright (C) 2014-2015, Matt Butcher and Matt Farina 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, mod...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/parse.go
package semver import ( "errors" "fmt" "strings" ) func rewriteRange(i string) string { m := constraintRangeRegex.FindAllStringSubmatch(i, -1) if m == nil { return i } o := i for _, v := range m { t := fmt.Sprintf(">= %s, <= %s", v[1], v[11]) o = strings.Replace(o, v[0], t, 1) } return o } func pars...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/version.go
package semver import ( "bytes" "errors" "fmt" "regexp" "strconv" "strings" "sync" ) // The compiled version of the regex created at init() is cached here so it // only needs to be created once. var versionRegex *regexp.Regexp var ( // ErrInvalidSemVer is returned a version is found to be invalid when // be...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/range.go
package semver import ( "fmt" "sort" "strings" ) type rangeConstraint struct { min, max Version includeMin, includeMax bool excl []Version } func (rc rangeConstraint) Matches(v Version) error { var fail bool ispre := v.Prerelease() != "" rce := RangeMatchFailure{ v: v, ...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/doc.go
/* Package semver provides the ability to work with Semantic Versions (http://semver.org) in Go. Specifically it provides the ability to: * Parse semantic versions * Sort semantic versions * Check if a semantic version fits within a set of constraints * Optionally work with a `v` prefix Parsing Seman...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/union.go
package semver import "strings" type unionConstraint []realConstraint func (uc unionConstraint) Matches(v Version) error { var uce MultiMatchFailure for _, c := range uc { err := c.Matches(v) if err == nil { return nil } uce = append(uce, err.(MatchFailure)) } return uce } func (uc unionConstraint)...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/constraints.go
package semver import ( "fmt" "regexp" "sort" "strings" "sync" ) var constraintRegex *regexp.Regexp var constraintRangeRegex *regexp.Regexp const cvRegex string = `v?([0-9|x|X|\*]+)(\.[0-9|x|X|\*]+)?(\.[0-9|x|X|\*]+)?` + `(-([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?` + `(\+([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?` f...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/magic.go
package semver import "errors" var errNone = errors.New("The 'None' constraint admits no versions.") // Any is a constraint that is satisfied by any valid semantic version. type any struct{} // Any creates a constraint that will match any version. func Any() Constraint { return any{} } func (any) String() string ...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/collection.go
package semver // Collection is a collection of Version instances and implements the sort // interface. See the sort package for more details. // https://golang.org/pkg/sort/ type Collection []Version // Len returns the length of a collection. The number of Version instances // on the slice. func (c Collection) Len()...
semver
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/vendor/github.com/Masterminds/semver/error.go
package semver import ( "bytes" "fmt" ) var rangeErrs = [...]string{ "%s is less than the minimum of %s", "%s is less than or equal to the minimum of %s", "%s is greater than the maximum of %s", "%s is greater than or equal to the maximum of %s", "%s is specifically disallowed in %s", "%s has prerelease data,...
txn_writer
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/txn_writer/expected_diff_output.txt
Add: [[projects]] name = "github.com/sdboyer/deptest" packages = ["."] revision = "ff2948a2ac8f538c4ecd55962e919d1e13e74baf" version = "v1.0.0" [[projects]] name = "github.com/stuff/realthing" packages = ["."] revision = "1f02e52d6bac308da54ab84a234c58a98ca82347" version = "2.0.0" Remove: [[projects]]...
txn_writer
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/txn_writer/expected_lock.toml
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. [[projects]] digest = "1:c4844614e2b12233bb037afec536831b92a4f58f7b712432b978d34df291e43a" name = "github.com/sdboyer/dep-test" packages = ["."] pruneopts = "" revision = "2a3a211e171803acb82d1d5d42ceb53228f51751" v...
txn_writer
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/txn_writer/expected_manifest.toml
# Gopkg.toml example # # Refer to https://golang.github.io/dep/docs/Gopkg.toml.html # for detailed Gopkg.toml documentation. # # required = ["github.com/user/thing/cmd/thing"] # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] # # [[constraint]] # name = "github.com/user/project" # ...
manifest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/manifest/error1.toml
ignored = ["github.com/foo/bar"] [[constraint]] name = "github.com/golang/dep" branch = "master" revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" version = "^v0.12.0" source = "https://github.com/golang/dep" [[override]] name = "github.com/golang/dep" branch = "master" revision = "d05d5aca9f895d1...
manifest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/manifest/golden.toml
ignored = ["github.com/foo/bar"] [[constraint]] name = "github.com/babble/brook" revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" [[constraint]] name = "github.com/golang/dep" version = "0.12.0" [[override]] branch = "master" name = "github.com/golang/dep" source = "https://github.com/golang/dep" ...
manifest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/manifest/error2.toml
ignored = ["github.com/foo/bar"] [[constraint]] name = "github.com/golang/dep" branch = "master" [[constraint]] name = "github.com/golang/dep" branch = "master"
manifest
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/manifest/error3.toml
ignored = ["github.com/foo/bar"] [[override]] name = "github.com/golang/dep" branch = "master" [[override]] name = "github.com/golang/dep" branch = "master"
analyzer
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/analyzer/Gopkg.toml
[[constraint]] name = "github.com/golang/dep" version = ">=0.12.0, <1.0.0" [[constraint]] name = "github.com/pkg/errors" version = ">=0.8.0, <1.0.0"
lock
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/lock/golden0.toml
[[projects]] branch = "master" digest = "1:666f6f" name = "github.com/golang/dep" packages = ["."] pruneopts = "" revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" [solve-meta] analyzer-name = "" analyzer-version = 0 input-imports = [] solver-name = "" solver-version = 0
lock
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/lock/error1.toml
[[projects]] name = "github.com/golang/dep" branch = "master" revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" packages = ["."] digest = "1:000aaa2a285ab27944a4d7adcba8dbd03980f59ba652f12db39fa93b927c345593e"
lock
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/lock/error0.toml
[[projects]] name = "github.com/golang/dep" branch = "master" version = "v0.12.0" revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" packages = ["."]
lock
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/lock/error2.toml
[[projects]] name = "github.com/golang/dep" packages = ["."]
lock
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/testdata/lock/golden1.toml
[[projects]] digest = "1:666f6f" name = "github.com/golang/dep" packages = ["."] pruneopts = "NUT" revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" version = "0.12.2" [solve-meta] analyzer-name = "" analyzer-version = 0 input-imports = [] solver-name = "" solver-version = 0
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source.go
// Copyright 2017 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 gps import ( "bytes" "context" "fmt" "log" "sync" "github.com/golang/dep/gps/pkgtree" "github.com/pkg/errors" ) // sourceState represent the s...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_manager_test.go
// Copyright 2017 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 gps import ( "log" "reflect" "testing" "github.com/golang/dep/internal/test" ) func TestSourceManager_InferConstraint(t *testing.T) { if testing...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/manifest_test.go
// Copyright 2017 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 gps import "testing" // Test that prep manifest sanitizes manifests appropriately func TestPrepManifest(t *testing.T) { m := SimpleManifest{ Deps: ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_cache_bolt_encode.go
// Copyright 2017 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 gps import ( "encoding/binary" "strings" "time" "github.com/boltdb/bolt" "github.com/golang/dep/gps/internal/pb" "github.com/golang/dep/gps/pkgt...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/vcs_source_test.go
// Copyright 2017 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 gps import ( "context" "io/ioutil" "log" "net/url" "os" "os/exec" "path/filepath" "reflect" "runtime" "strings" "sync" "testing" "github....
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_cache_test.go
// Copyright 2017 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 gps import ( "io/ioutil" "log" "path" "reflect" "sort" "testing" "time" "github.com/golang/dep/gps/pkgtree" "github.com/golang/dep/internal/t...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/cmd.go
// Copyright 2017 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 gps import ( "os" ) func (c cmd) Args() []string { return c.Cmd.Args } func (c cmd) SetDir(dir string) { c.Cmd.Dir = dir } func (c cmd) SetEnv(en...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/selection.go
// Copyright 2017 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 gps type selection struct { // projects is a stack of the atoms that have currently been selected by the // solver. It can also be thought of as the ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/constraint.go
// Copyright 2017 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 gps import ( "fmt" "sort" "github.com/Masterminds/semver" "github.com/golang/dep/gps/internal/pb" ) var ( none = noneConstraint{} any = anyCon...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/manager_test.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 gps import ( "bytes" "context" "fmt" "io/ioutil" "log" "os" "path" "path/filepath" "runtime" "sort" "sync" "sync/atomic" "testing" "text/...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/selection_test.go
// Copyright 2017 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 gps import ( "reflect" "testing" ) // Regression test for https://github.com/sdboyer/gps/issues/174 func TestUnselectedRemoval(t *testing.T) { // W...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/rootdata_test.go
// Copyright 2017 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 gps import ( "reflect" "testing" "github.com/golang/dep/gps/pkgtree" ) func TestRootdataExternalImports(t *testing.T) { fix := basicFixtures["sha...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/bridge.go
// Copyright 2017 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 gps import ( "fmt" "os" "path/filepath" "sync/atomic" "github.com/golang/dep/gps/pkgtree" ) // sourceBridge is an adapter to SourceManagers that...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/solve_test.go
// Copyright 2017 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 gps import ( "bytes" "context" "fmt" "log" "reflect" "sort" "testing" "github.com/golang/dep/internal/test" ) // overrideMkBridge overrides t...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/cmd_unix.go
// Copyright 2017 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 !windows package gps import ( "bytes" "context" "os" "os/exec" "syscall" "time" "github.com/pkg/errors" "golang.org/x/sys/unix" ) type cmd...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/lock_test.go
// Copyright 2017 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 gps import ( "reflect" "sort" "testing" ) func TestLockedProjectSorting(t *testing.T) { // version doesn't matter here lps := []LockedProject{ ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_manager.go
// Copyright 2017 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 gps import ( "context" "fmt" "io/ioutil" "log" "net/url" "os" "os/signal" "path/filepath" "runtime" "strings" "sync" "sync/atomic" "time" ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_cache_multi.go
// Copyright 2017 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 gps import ( "github.com/golang/dep/gps/pkgtree" ) // multiCache creates singleSourceMultiCaches, and coordinates their async updates. type multiCach...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/discovery.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. package gps // This code is taken from cmd/go/discovery.go; it is the logic go get itself // uses to interpret meta imports information. import ( "encoding/...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/filesystem_test.go
// Copyright 2017 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 gps import ( "fmt" "os" "path/filepath" "reflect" "testing" "github.com/golang/dep/internal/test" ) // This file contains utilities for running...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/version.go
// Copyright 2017 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 gps import ( "fmt" "sort" "github.com/Masterminds/semver" "github.com/golang/dep/gps/internal/pb" ) // VersionType indicates a type for a Version...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/manifest.go
// Copyright 2017 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 gps import "github.com/golang/dep/gps/pkgtree" // Manifest represents manifest-type data for a project at a particular version. // The constraints exp...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_cache.go
// Copyright 2017 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 gps import ( "fmt" "path" "sort" "strings" "sync" "github.com/golang/dep/gps/pkgtree" ) // sourceCache is an interface for creating singleSourc...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/metrics.go
// Copyright 2017 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 gps import ( "bytes" "fmt" "log" "sort" "text/tabwriter" "time" ) type metrics struct { stack []string times map[string]time.Duration last t...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/rootdata.go
// Copyright 2017 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 gps import ( "sort" "github.com/armon/go-radix" "github.com/golang/dep/gps/pkgtree" ) // rootdata holds static data and constraining rules from th...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_cache_bolt_encode_test.go
// Copyright 2017 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 gps import ( "bytes" "testing" "time" "github.com/golang/protobuf/proto" ) func TestPropertiesFromCache(t *testing.T) { for _, test := range []s...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/satisfy.go
// Copyright 2017 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 gps // check performs constraint checks on the provided atom. The set of checks // differ slightly depending on whether the atom is pkgonly, or if it's...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/solution.go
// Copyright 2017 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 gps import ( "context" "fmt" "os" "path/filepath" "sync" "github.com/pkg/errors" "golang.org/x/sync/errgroup" ) // A Solution is returned by a...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/filesystem.go
// Copyright 2017 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 gps import ( "os" "path/filepath" "strings" "github.com/pkg/errors" ) // fsLink represents a symbolic link. type fsLink struct { path string to...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/doc.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 gps is a Go packaging solver library. package gps
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/solution_test.go
// Copyright 2017 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 gps import ( "io/ioutil" "log" "os" "path" "path/filepath" "runtime" "testing" "github.com/golang/dep/internal/test" ) var basicResult soluti...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/typed_radix_test.go
// Copyright 2017 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 gps import "testing" // basically a regression test func TestPathPrefixOrEqual(t *testing.T) { if !isPathPrefixOrEqual("foo", "foo") { t.Error("Sam...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/vcs_source.go
// Copyright 2017 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 gps import ( "bytes" "context" "fmt" "os" "path/filepath" "regexp" "strings" "github.com/Masterminds/semver" "github.com/golang/dep/gps/pkgtr...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/maybe_source.go
// Copyright 2017 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 gps import ( "context" "fmt" "net/url" "os" "path/filepath" "github.com/Masterminds/vcs" ) // A maybeSource represents a set of information tha...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/deduce.go
// Copyright 2017 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 gps import ( "context" "fmt" "io" "io/ioutil" "net/http" "net/url" "os" "path" "path/filepath" "regexp" "runtime" "strconv" "strings" "sy...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/version_queue_test.go
// Copyright 2017 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 gps import ( "testing" "github.com/pkg/errors" ) // just need a listVersions method type fakeBridge struct { *bridge vl []Version } var fakevl =...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_errors.go
// Copyright 2017 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 gps import ( "github.com/Masterminds/vcs" "github.com/pkg/errors" ) // unwrapVcsErr recognizes *vcs.LocalError and *vsc.RemoteError, and returns a f...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/trace.go
// Copyright 2017 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 gps import ( "fmt" "strconv" "strings" "github.com/golang/dep/gps/pkgtree" ) const ( successChar = "✓" successCharSp = successChar + " " fai...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/vcs_version.go
// Copyright 2017 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 gps import ( "strings" "github.com/Masterminds/vcs" "github.com/pkg/errors" ) // VCSVersion returns the current project version for an absolute pa...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/strings.go
// Copyright 2017 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 gps import ( "bytes" "unicode" "unicode/utf8" ) // toFold returns a string with the property that strings.EqualFold(s, t) iff // ToFold(s) == ToFol...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/lock.go
// Copyright 2017 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 gps import ( "fmt" "sort" ) // Lock represents data from a lock file (or however the implementing tool // chooses to store it) at a particular versi...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/prune.go
// Copyright 2017 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 gps import ( "bytes" "fmt" "os" "path/filepath" "sort" "strings" "github.com/golang/dep/internal/fs" "github.com/pkg/errors" ) // PruneOption...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_cache_bolt.go
// Copyright 2017 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 gps import ( "fmt" "log" "os" "path" "path/filepath" "strings" "time" "github.com/boltdb/bolt" "github.com/golang/dep/gps/internal/pb" "gith...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/maybe_source_test.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 gps import ( "archive/tar" "compress/gzip" "context" "io" "io/ioutil" "net/url" "os" "path/filepath" "testing" "github.com/Masterminds/vcs" ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/deduce_test.go
// Copyright 2017 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 gps import ( "bytes" "context" "errors" "fmt" "net/url" "reflect" "testing" ) type pathDeductionFixture struct { in string root string ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/solve_failures.go
// Copyright 2017 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 gps import ( "bytes" "fmt" "sort" "strings" ) func a2vs(a atom) string { if a.v == rootRev || a.v == nil { return "(root)" } return fmt.Spri...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/vcs_version_test.go
// Copyright 2017 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 gps import ( "path/filepath" "testing" "github.com/golang/dep/internal/test" ) func TestVCSVersion(t *testing.T) { if testing.Short() { t.Skip(...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_errors_test.go
// Copyright 2017 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 gps import ( "testing" "github.com/Masterminds/vcs" ) func TestUnwrapVcsErrNonNil(t *testing.T) { for _, err := range []error{ vcs.NewRemoteErro...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/prune_test.go
// Copyright 2017 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 gps import ( "io/ioutil" "os" "testing" "github.com/golang/dep/internal/test" ) func TestCascadingPruneOptions(t *testing.T) { cases := []struct...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/typed_radix.go
// Copyright 2017 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 gps import ( "strings" "sync" "github.com/armon/go-radix" ) // Typed implementations of radix trees. These are just simple wrappers that let // us...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/constraint_test.go
// Copyright 2017 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 gps import ( "fmt" "testing" "github.com/golang/dep/gps/internal/pb" "github.com/golang/protobuf/proto" "github.com/pkg/errors" ) // gu - helper...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/solver_inputs_test.go
// Copyright 2017 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 gps import ( "io/ioutil" "log" "math/rand" "strconv" "strings" "testing" "github.com/golang/dep/gps/pkgtree" "github.com/golang/dep/internal/t...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/solver.go
// Copyright 2017 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 gps import ( "container/heap" "context" "fmt" "log" "sort" "strings" "sync" "sync/atomic" "github.com/armon/go-radix" "github.com/golang/dep...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/identifier.go
// Copyright 2017 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 gps import ( "fmt" "math/rand" "strconv" ) // ProjectRoot is the topmost import path in a tree of other import paths - the // root of the tree. In ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/version_queue.go
// Copyright 2017 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 gps import ( "fmt" "strings" ) type failedVersion struct { v Version f error } type versionQueue struct { id ProjectIdentifier pi ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/vcs_repo.go
// Copyright 2017 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 gps import ( "bytes" "context" "encoding/xml" "os" "path/filepath" "runtime" "strings" "time" "github.com/Masterminds/vcs" "github.com/pkg/e...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/version_test.go
// Copyright 2017 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 gps import "testing" func TestVersionSorts(t *testing.T) { rev := Revision("flooboofoobooo") v1 := NewBranch("master").Pair(rev) v2 := NewBranch("t...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/solve_basic_test.go
// Copyright 2017 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 gps import ( "context" "fmt" "net/url" "regexp" "strings" "github.com/Masterminds/semver" "github.com/golang/dep/gps/pkgtree" ) var regfrom = ...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_test.go
// Copyright 2017 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 gps import ( "context" "fmt" "io/ioutil" "log" "os" "path/filepath" "testing" "github.com/golang/dep/gps/pkgtree" "github.com/golang/dep/inte...
gps
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dep/gps/source_cache_bolt_test.go
// Copyright 2017 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 gps import ( "io/ioutil" "log" "path" "testing" "time" "github.com/golang/dep/gps/pkgtree" "github.com/golang/dep/internal/test" ) func TestBo...