repo_id
stringclasses
927 values
file_path
stringlengths
99
214
content
stringlengths
2
4.15M
vector
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vector/acc_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 vector import ( "bytes" "fmt" "math" "math/rand" "runtime" "testing" ) // TestDivideByFFFF tests that dividing by 0xffff is equivalent to multip...
vector
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vector/vector_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 vector // TODO: add tests for NaN and Inf coordinates. import ( "fmt" "image" "image/color" "image/draw" "image/png" "math" "math/rand" "os" ...
vector
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vector/gen.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. //go:build ignore package main import ( "bytes" "io/ioutil" "log" "strings" "text/template" ) const ( copyright = "" + "// Copyright 2016 The Go Auth...
webp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/webp/decode.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package webp import ( "bytes" "errors" "image" "image/color" "io" "golang.org/x/image/riff" "golang.org/x/image/vp8" "golang.org/x/image/vp8l" ) var ...
webp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/webp/doc.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 webp implements a decoder for WEBP images. // // WEBP is defined at: // https://developers.google.com/speed/webp/docs/riff_container package webp // ...
webp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/webp/decode_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 webp import ( "bytes" "fmt" "image" "image/png" "io/ioutil" "os" "strings" "testing" ) // hex is like fmt.Sprintf("% x", x) but also inserts d...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/math/f32/f32.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 f32 implements float32 vector and matrix types. package f32 // import "golang.org/x/image/math/f32" // Vec2 is a 2-element vector. type Vec2 [2]floa...
fixed
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/math/fixed/fixed_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 fixed import ( "math" "math/rand" "testing" ) var testCases = []struct { x float64 s26_6 string s52_12 string floor int round int cei...
fixed
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/math/fixed/fixed.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 fixed implements fixed-point integer types. package fixed // import "golang.org/x/image/math/fixed" import ( "fmt" ) // TODO: implement fmt.Format...
f64
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/math/f64/f64.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 f64 implements float64 vector and matrix types. package f64 // import "golang.org/x/image/math/f64" // Vec2 is a 2-element vector. type Vec2 [2]floa...
colornames
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/colornames/colornames.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. //go:generate go run gen.go // Package colornames provides named colors as defined in the SVG 1.1 spec. // // See http://www.w3.org/TR/SVG/types.html#ColorKeyw...
colornames
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/colornames/colornames_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 colornames import ( "image/color" "testing" ) func TestColornames(t *testing.T) { if len(Map) != len(Names) { t.Fatalf("Map and Names have differ...
colornames
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/colornames/table.go
// generated by go generate; DO NOT EDIT. package colornames import "image/color" // Map contains named colors defined in the SVG 1.1 spec. var Map = map[string]color.RGBA{ "aliceblue": color.RGBA{0xf0, 0xf8, 0xff, 0xff}, // rgb(240, 248, 255) "antiquewhite": color.RGBA{0xfa, 0xeb, 0xd7, 0xff}, ...
colornames
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/colornames/gen.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. //go:build ignore // This program generates table.go from // https://www.w3.org/TR/SVG11/types.html#ColorKeywords package main import ( "bytes" "fmt" "go/f...
ccitt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/ccitt/writer.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ccitt import ( "encoding/binary" "io" ) type bitWriter struct { w io.Writer // order is whether to process w's bytes LSB first or MSB first. ord...
ccitt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/ccitt/reader_test.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ccitt import ( "bytes" "fmt" "image" "image/png" "io" "io/ioutil" "math/rand" "os" "path/filepath" "reflect" "strings" "testing" "unsafe" ...
ccitt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/ccitt/writer_test.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ccitt import ( "bytes" "reflect" "testing" ) func testEncode(t *testing.T, o Order) { t.Helper() values := []uint32{0, 1, 256, 7, 128, 3, 2560, 2...
ccitt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/ccitt/table.go
// generated by "go run gen.go". DO NOT EDIT. package ccitt // Each decodeTable is represented by an array of [2]int16's: a binary tree. // Each array element (other than element 0, which means invalid) is a branch // node in that tree. The root node is always element 1 (the second element). // // To walk the tree, l...
ccitt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/ccitt/reader.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:generate go run gen.go // Package ccitt implements a CCITT (fax) image decoder. package ccitt import ( "encoding/binary" "errors" "image" "io" "math...
ccitt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/ccitt/table_test.go
// generated by "go run gen.go". DO NOT EDIT. package ccitt // COPY PASTE table_test.go BEGIN type code struct { val uint32 str string } var modeCodes = []code{ {modePass, "0001"}, {modeH, "001"}, {modeV0, "1"}, {modeVR1, "011"}, {modeVR2, "000011"}, {modeVR3, "0000011"}, {modeVL1, "010"}, {modeVL2, "0000...
ccitt
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/ccitt/gen.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore package main import ( "bytes" "flag" "fmt" "go/format" "io/ioutil" "log" "os" ) var debug = flag.Bool("debug", false, "") func main...
vp8l
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8l/transform.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 vp8l // This file deals with image transforms, specified in section 3. // nTiles returns the number of tiles needed to cover size pixels, where each /...
vp8l
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8l/decode.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 vp8l implements a decoder for the VP8L lossless image format. // // The VP8L specification is at: // https://developers.google.com/speed/webp/docs/ri...
vp8l
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8l/huffman.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 vp8l import ( "io" ) // reverseBits reverses the bits in a byte. var reverseBits = [256]uint8{ 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10,...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/filter.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 vp8 // filter2 modifies a 2-pixel wide or 2-pixel high band along an edge. func filter2(pix []byte, level, index, iStep, jStep int) { for n := 16; n >...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/pred.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vp8 // This file implements parsing the predictor modes, as specified in chapter // 11. func (d *Decoder) parsePredModeY16(mbx int) { var p uint8 if...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/decode.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package vp8 implements a decoder for the VP8 lossy image format. // // The VP8 specification is RFC 6386. package vp8 // import "golang.org/x/image/vp8" // ...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/partition.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vp8 // Each VP8 frame consists of between 2 and 9 bitstream partitions. // Each partition is byte-aligned and is independently arithmetic-encoded. // /...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/predfunc.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vp8 // This file implements the predicition functions, as specified in chapter 12. // // For each macroblock (of 1x16x16 luma and 2x8x8 chroma coeffici...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/reconstruct.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vp8 // This file implements decoding DCT/WHT residual coefficients and // reconstructing YCbCr data equal to predicted values plus residuals. // // The...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/token.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vp8 // This file contains token probabilities for decoding DCT/WHT coefficients, as // specified in chapter 13. func (d *Decoder) parseTokenProb() { ...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/quant.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vp8 // This file implements parsing the quantization factors. // quant are DC/AC quantization factors. type quant struct { y1 [2]uint16 y2 [2]uint16...
vp8
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/vp8/idct.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vp8 // This file implements the inverse Discrete Cosine Transform and the inverse // Walsh Hadamard Transform (WHT), as specified in sections 14.3 and ...
draw
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/draw/scale.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. //go:generate go run gen.go package draw import ( "image" "image/color" "math" "sync" "golang.org/x/image/math/f64" ) // Copy copies the part of the so...
draw
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/draw/impl.go
// generated by "go run gen.go". DO NOT EDIT. package draw import ( "image" "image/color" "math" "golang.org/x/image/math/f64" ) func (z nnInterpolator) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) { // Try to simplify a Scale to a Copy when DstMask is not spe...
draw
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/draw/scale_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 draw import ( "bytes" "flag" "fmt" "image" "image/color" "image/png" "math/rand" "os" "reflect" "testing" "golang.org/x/image/math/f64" _...
draw
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/draw/draw.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 draw provides image composition functions. // // See "The Go image/draw package" for an introduction to this package: // http://golang.org/doc/articl...
draw
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/draw/stdlib_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 draw import ( "bytes" "image" "image/color" "testing" ) // TestFastPaths tests that the fast path implementations produce identical // results to ...
draw
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/draw/example_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 draw_test import ( "fmt" "image" "image/color" "image/png" "log" "math" "os" "golang.org/x/image/draw" "golang.org/x/image/math/f64" ) func ...
draw
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/draw/gen.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. //go:build ignore package main import ( "bytes" "flag" "fmt" "go/format" "log" "os" "strings" ) var debug = flag.Bool("debug", false, "") func main()...
bmp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/bmp/writer.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bmp import ( "encoding/binary" "errors" "image" "io" ) type header struct { sigBM [2]byte fileSize uint32 resverved [2]u...
bmp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/bmp/reader_test.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 bmp import ( "bytes" "fmt" "image" "io" "os" "testing" _ "image/png" ) const testdataDir = "../testdata/" func compare(img0, img1 image.Image...
bmp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/bmp/writer_test.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bmp import ( "bytes" "fmt" "image" "image/draw" "io/ioutil" "os" "testing" "time" ) func openImage(filename string) (image.Image, error) { f,...
bmp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/bmp/reader.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package bmp implements a BMP image decoder and encoder. // // The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html. package bmp // import "gol...
webp-manual-test
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/cmd/webp-manual-test/main.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. //go:build ignore // +build ignore // This build tag means that "go install golang.org/x/image/..." doesn't // install this manual test. Use "go run main.go" t...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/writer.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 tiff import ( "bytes" "compress/zlib" "encoding/binary" "errors" "image" "io" "sort" ) // The TIFF format allows to choose the order of the dif...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/reader_test.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tiff import ( "bytes" "compress/zlib" "encoding/binary" "encoding/hex" "errors" "fmt" "image" "io" "io/ioutil" "os" "sort" "strings" "test...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/consts.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tiff // A tiff image file contains one or more images. The metadata // of each image is contained in an Image File Directory (IFD), // which contains e...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/writer_test.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 tiff import ( "bytes" "image" "io/ioutil" "os" "testing" ) var roundtripTests = []struct { filename string opts *Options }{ {"video-001.ti...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/fuzz.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build gofuzz package tiff import "bytes" func Fuzz(data []byte) int { cfg, err := DecodeConfig(bytes.NewReader(data)) if err != nil { return 0 } i...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/buffer_test.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tiff import ( "io" "strings" "testing" ) var readAtTests = []struct { n int off int64 s string err error }{ {2, 0, "ab", nil}, {6, 0, "ab...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/compress.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tiff import ( "bufio" "io" ) type byteReader interface { io.Reader io.ByteReader } // unpackBits decodes the PackBits-compressed data in src and ...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/buffer.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tiff import "io" // buffer buffers an io.Reader to satisfy io.ReaderAt. type buffer struct { r io.Reader buf []byte } // fill reads data from b.r...
tiff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/reader.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package tiff implements a TIFF image decoder and encoder. // // The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf pac...
lzw
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/tiff/lzw/reader.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package lzw implements the Lempel-Ziv-Welch compressed data format, // described in T. A. Welch, “A Technique for High-Performance Data // Compression”, Comp...
font
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/example/font/main.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. //go:build example // +build example // This build tag means that "go install golang.org/x/image/..." doesn't // install this example program. Use "go run main...
riff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/riff/riff.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 riff implements the Resource Interchange File Format, used by media // formats such as AVI, WAVE and WEBP. // // A RIFF stream contains a sequence of...
riff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/riff/example_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 riff_test import ( "fmt" "io" "io/ioutil" "log" "strings" "golang.org/x/image/riff" ) func ExampleReader() { formType, r, err := riff.NewReade...
riff
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/image/riff/riff_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 riff import ( "bytes" "testing" ) func encodeU32(u uint32) []byte { return []byte{ byte(u >> 0), byte(u >> 8), byte(u >> 16), byte(u >> 24)...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/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 ...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/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...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/update.bash
#!/usr/bin/env bash set -e rm -rf ./vendor/cmd/go cp -a $(go env GOROOT)/src/cmd/go vendor/cmd/go rm -f vendor/cmd/go/alldocs.go vendor/cmd/go/mkalldocs.sh # docs are in wrong place and describe wrong command cd vendor/cmd/go patch -p0 < ../../../patch.txt vers=$(go version | sed 's/^go version //; s/ [A-Z][a-z][a-z]....
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/go.mod
go 1.18 module golang.org/x/vgo // This dependency is vulnerable to GO-2020-0006. // The point of this commit is to serve as a test case for // automated vulnerability scanning of the Go repos. // // Using the tour repo because it contains nothing // important and is not imported by any of our other repos, // which m...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/README.md
# Versioned Go Command (vgo) This repository holds a standalone implementation of a version-aware `go` command, allowing users with a Go 1.10 toolchain to use the new Go 1.11 module support. The code in this repo is auto-generated from and should behave exactly like the Go 1.11 `go` command, with two changes: - It...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/go.sum
github.com/miekg/dns v1.0.0 h1:DZ3fdvcFXfWew8XOY+33+MqAcCnqDrGsnt3kK8yf4Hg= github.com/miekg/dns v1.0.0/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= golang.org/x/crypto v0.1.0 h1:MDRAIl0xIo9Io2xV565hzXHw3zVseKrJKodhohM5CjU= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= gola...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/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. // Vgo is a prototype of what the go command // might look like with integrated support for package versioning. // // Download and install with: // // go get -u...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/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...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/codereview.cfg
issuerepo: golang/go
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/patch.txt
diff -u -r ./go11.go /Users/rsc/src/golang.org/x/vgo/vendor/cmd/go/go11.go --- ./go11.go 2018-05-30 20:46:08.000000000 -0400 +++ /Users/rsc/src/golang.org/x/vgo/vendor/cmd/go/go11.go 2018-02-20 12:11:43.000000000 -0500 @@ -4,7 +4,7 @@ // +build go1.1 -package main +package Main // Test that go1.1 tag above is incl...
vgo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vulnerable.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. // This file exists to keep the github.com/miekg/dns entry in go.mod. //go:build never package never import _ "github.com/miekg/dns"
race
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/internal/race/race.go
package race const Enabled = false
singleflight
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/internal/singleflight/singleflight_test.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package singleflight import ( "errors" "fmt" "sync" "sync/atomic" "testing" "time" ) func TestDo(t *testing.T) { var g Group v, err, _ := g.Do("key", ...
singleflight
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/internal/singleflight/singleflight.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package singleflight provides a duplicate function call suppression // mechanism. package singleflight import "sync" // call is an in-flight or completed s...
testenv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/internal/testenv/testenv_notwin.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. // +build !windows package testenv import ( "runtime" ) func hasSymlink() (ok bool, reason string) { switch runtime.GOOS { case "android", "nacl", "plan9"...
testenv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/internal/testenv/testenv.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 testenv provides information about what functionality // is available in different testing environments run by the Go team. // // It is an internal p...
testenv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/internal/testenv/testenv_windows.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 testenv import ( "io/ioutil" "os" "path/filepath" "sync" "syscall" ) var symlinkOnce sync.Once var winSymlinkErr error func initWinHasSymlink() ...
testenv
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/internal/testenv/testenv_cgo.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 cgo package testenv func init() { haveCGO = true }
browser
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/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. package browser import ( "os" "os/exec" "runtime" "time" ) // Commands returns...
test2json
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/test2json_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 test2json import ( "bytes" "encoding/json" "flag" "fmt" "io" "io/ioutil" "path/filepath" "reflect" "strings" "testing" "unicode/utf8" ) var...
test2json
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/test2json.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 test2json implements conversion of test binary output to JSON. // It is used by cmd/test2json and cmd/go. // // See the cmd/test2json documentation f...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/benchshort.test
# This file ends in an early EOF to trigger the Benchmark prefix test, # which only happens when a benchmark prefix is seen ahead of the \n. # Normally that's due to the benchmark running and the \n coming later, # but to avoid questions of timing, we just use a file with no \n at all. BenchmarkFoo 10000 early EOF
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/vet.json
{"Action":"run","Test":"TestVet"} {"Action":"output","Test":"TestVet","Output":"=== RUN TestVet\n"} {"Action":"output","Test":"TestVet","Output":"=== PAUSE TestVet\n"} {"Action":"pause","Test":"TestVet"} {"Action":"run","Test":"TestVetAsm"} {"Action":"output","Test":"TestVetAsm","Output":"=== RUN TestVetAsm\n"} {"A...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/ascii.json
{"Action":"run","Test":"TestAscii"} {"Action":"output","Test":"TestAscii","Output":"=== RUN TestAscii\n"} {"Action":"output","Test":"TestAscii","Output":"I can eat glass, and it doesn't hurt me. I can eat glass, and it doesn't hurt me.\n"} {"Action":"output","Test":"TestAscii","Output":"I CAN EAT GLASS, AND IT DOESN'...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/bench.json
{"Action":"output","Output":"goos: darwin\n"} {"Action":"output","Output":"goarch: 386\n"} {"Action":"output","Output":"BenchmarkFoo-8 \t2000000000\t 0.00 ns/op\n"} {"Action":"output","Test":"BenchmarkFoo-8","Output":"--- BENCH: BenchmarkFoo-8\n"} {"Action":"output","Test":"BenchmarkFoo-8","Output":"\tx_test....
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/unicode.test
=== RUN TestUnicode Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα. Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα. 私はガラスを食べられます。それは私を傷つけません。私はガラスを食べられます。それは私を傷つけません。 --- PASS: TestUnicode ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ אני יכול לאכול זכוכית וזה לא מזיק לי. אני...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/unicode.json
{"Action":"run","Test":"TestUnicode"} {"Action":"output","Test":"TestUnicode","Output":"=== RUN TestUnicode\n"} {"Action":"output","Test":"TestUnicode","Output":"Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα. Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα.\n"} {"Action":"output","Test":"TestUnicode","Output":"...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/benchfail.test
--- FAIL: BenchmarkFoo x_test.go:8: My benchmark FAIL FAIL command-line-arguments 0.008s
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/benchfail.json
{"Action":"output","Test":"BenchmarkFoo","Output":"--- FAIL: BenchmarkFoo\n"} {"Action":"output","Test":"BenchmarkFoo","Output":"\tx_test.go:8: My benchmark\n"} {"Action":"fail","Test":"BenchmarkFoo"} {"Action":"output","Output":"FAIL\n"} {"Action":"output","Output":"FAIL\tcommand-line-arguments\t0.008s\n"} {"Action":"...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/issue23036.test
=== RUN TestActualCase --- FAIL: TestActualCase (0.00s) foo_test.go:14: Differed. Expected: MyTest: --- FAIL: Test output from other tool Actual: not expected FAIL exit status 1 FAIL github.com/org/project/badtest 0.049s
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/smiley.test
=== RUN Test☺☹ === PAUSE Test☺☹ === RUN Test☺☹Asm === PAUSE Test☺☹Asm === RUN Test☺☹Dirs === PAUSE Test☺☹Dirs === RUN TestTags === PAUSE TestTags === RUN Test☺☹Verbose === PAUSE Test☺☹Verbose === CONT Test☺☹ === CONT TestTags === CONT Test☺☹Verbose === RUN TestTags/testtag === PAUSE TestTags/testtag === ...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/benchshort.json
{"Action":"output","Output":"# This file ends in an early EOF to trigger the Benchmark prefix test,\n"} {"Action":"output","Output":"# which only happens when a benchmark prefix is seen ahead of the \\n.\n"} {"Action":"output","Output":"# Normally that's due to the benchmark running and the \\n coming later,\n"} {"Acti...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/bench.test
goos: darwin goarch: 386 BenchmarkFoo-8 2000000000 0.00 ns/op --- BENCH: BenchmarkFoo-8 x_test.go:8: My benchmark x_test.go:8: My benchmark x_test.go:8: My benchmark x_test.go:8: My benchmark x_test.go:8: My benchmark x_test.go:8: My benchmark PASS ok command-line-arguments 0.009s
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/issue23036.json
{"Action":"run","Test":"TestActualCase"} {"Action":"output","Test":"TestActualCase","Output":"=== RUN TestActualCase\n"} {"Action":"output","Test":"TestActualCase","Output":"--- FAIL: TestActualCase (0.00s)\n"} {"Action":"output","Test":"TestActualCase","Output":" foo_test.go:14: Differed.\n"} {"Action":"outpu...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/ascii.test
=== RUN TestAscii I can eat glass, and it doesn't hurt me. I can eat glass, and it doesn't hurt me. I CAN EAT GLASS, AND IT DOESN'T HURT ME. I CAN EAT GLASS, AND IT DOESN'T HURT ME. --- PASS: TestAscii i can eat glass, and it doesn't hurt me. i can eat glass, and it doesn't hurt me. V PNA RNG TYNFF, NAQ VG QB...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/vet.test
=== RUN TestVet === PAUSE TestVet === RUN TestVetAsm === PAUSE TestVetAsm === RUN TestVetDirs === PAUSE TestVetDirs === RUN TestTags === PAUSE TestTags === RUN TestVetVerbose === PAUSE TestVetVerbose === CONT TestVet === CONT TestTags === CONT TestVetVerbose === RUN TestTags/testtag === PAUSE TestTags/te...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/test2json/testdata/smiley.json
{"Action":"run","Test":"Test☺☹"} {"Action":"output","Test":"Test☺☹","Output":"=== RUN Test☺☹\n"} {"Action":"output","Test":"Test☺☹","Output":"=== PAUSE Test☺☹\n"} {"Action":"pause","Test":"Test☺☹"} {"Action":"run","Test":"Test☺☹Asm"} {"Action":"output","Test":"Test☺☹Asm","Output":"=== RUN Test☺☹Asm\n"} {"Action":"o...
buildid
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/buildid/buildid.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 buildid import ( "bytes" "debug/elf" "fmt" "io" "os" "strconv" "strings" ) var ( errBuildIDToolchain = fmt.Errorf("build ID only supported in ...
buildid
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/buildid/rewrite.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 buildid import ( "bytes" "crypto/sha256" "fmt" "io" ) // FindAndHash reads all of r and returns the offsets of occurrences of id. // While reading...
buildid
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/buildid/buildid_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 buildid import ( "bytes" "crypto/sha256" "io/ioutil" "os" "reflect" "testing" ) const ( expectedID = "abcdefghijklmnopqrstuvwxyz.12345678901234...
buildid
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vgo/vendor/cmd/internal/buildid/note.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 buildid import ( "bytes" "debug/elf" "debug/macho" "encoding/binary" "fmt" "io" "os" ) func readAligned4(r io.Reader, sz int32) ([]byte, error)...