-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Early preview of this work. I am playing around with factors/etc. Also only works for ChunkMatches at the moment. Some things it makes worse. For the atom boost queries we added, it improves all of those.
- Loading branch information
1 parent
b35d8a2
commit d32a823
Showing
16 changed files
with
221 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
queryString: bufio flush writer | ||
query: (and substr:"bufio" substr:"flush" substr:"writer") | ||
targetRank: 25 | ||
targetRank: 1 | ||
|
||
github.com/golang/go/src/image/gif/writer.go | ||
43:type writer interface { | ||
77:func (b blockWriter) Flush() error { | ||
123:func (e *encoder) flush() { | ||
hidden 28 more line matches | ||
**github.com/golang/go/src/net/http/transfer.go** | ||
1113:type bufioFlushWriter struct{ w io.Writer } | ||
59:type transferWriter struct { | ||
76:func newTransferWriter(r any) (t *transferWriter, err error) { | ||
hidden 36 more line matches | ||
|
||
github.com/golang/go/src/image/jpeg/writer.go | ||
211:type writer interface { | ||
231:func (e *encoder) flush() { | ||
212: Flush() error | ||
hidden 11 more line matches | ||
github.com/golang/go/src/net/http/fcgi/fcgi.go | ||
233: *bufio.Writer | ||
231:type bufWriter struct { | ||
252:type streamWriter struct { | ||
hidden 17 more line matches | ||
|
||
github.com/golang/go/src/compress/lzw/writer.go | ||
15:type writer interface { | ||
36:type Writer struct { | ||
17: Flush() error | ||
hidden 36 more line matches | ||
github.com/golang/go/src/cmd/internal/bio/buf.go | ||
24: *bufio.Writer | ||
22:type Writer struct { | ||
34: return &Writer{f: f, Writer: bufio.NewWriter(f)}, nil | ||
hidden 13 more line matches | ||
|
||
github.com/golang/go/src/net/http/internal/chunked.go | ||
240: *bufio.Writer | ||
239:type FlushAfterChunkWriter struct { | ||
196:type chunkedWriter struct { | ||
hidden 25 more line matches | ||
|
||
github.com/golang/go/src/bufio/bufio.go | ||
579:type Writer struct { | ||
635:func (b *Writer) Flush() error { | ||
579:type Writer struct { | ||
836: *Writer | ||
hidden 72 more line matches | ||
|
||
github.com/golang/go/src/archive/zip/writer.go | ||
24:type Writer struct { | ||
61:func (w *Writer) Flush() error { | ||
607: io.Writer | ||
hidden 55 more line matches | ||
|
||
github.com/golang/go/src/encoding/csv/writer.go | ||
30:type Writer struct { | ||
123:func (w *Writer) Flush() { | ||
37:func NewWriter(w io.Writer) *Writer { | ||
hidden 25 more line matches | ||
github.com/golang/go/src/image/gif/writer.go | ||
77:func (b blockWriter) Flush() error { | ||
43:type writer interface { | ||
123:func (e *encoder) flush() { | ||
hidden 28 more line matches | ||
|
||
hidden 77 more file matches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
queryString: bytes buffer | ||
query: (and substr:"bytes" substr:"buffer") | ||
targetRank: 1 | ||
targetRank: 5 | ||
|
||
**github.com/golang/go/src/bytes/buffer.go** | ||
20:type Buffer struct { | ||
54:func (b *Buffer) Bytes() []byte { return b.buf[b.off:] } | ||
5:package bytes | ||
hidden 126 more line matches | ||
github.com/sourcegraph/sourcegraph/lib/output/block.go | ||
49: buffer bytes.Buffer | ||
41: for _, line := range bytes.Split(bytes.TrimRight(b.writer.buffer.Bytes(), "\n"), []byte("\n")) { | ||
4: "bytes" | ||
hidden 2 more line matches | ||
|
||
github.com/golang/go/src/cmd/internal/edit/edit.go | ||
14:type Buffer struct { | ||
68:func (b *Buffer) Bytes() []byte { | ||
41:func NewBuffer(data []byte) *Buffer { | ||
hidden 13 more line matches | ||
github.com/golang/go/src/compress/flate/huffman_bit_writer.go | ||
82: bytes [bufferSize]byte | ||
166:func (w *huffmanBitWriter) writeBytes(bytes []byte) { | ||
29: bufferFlushSize = 240 | ||
hidden 63 more line matches | ||
|
||
github.com/golang/go/src/hash/crc32/crc32_ppc64le.s | ||
122: SLD $2,R8 // convert index-> bytes | ||
59: MOVWZ 0(R5),R8 // 0-3 bytes of p ?Endian? | ||
60: MOVWZ 4(R5),R9 // 4-7 bytes of p | ||
hidden 35 more line matches | ||
github.com/sourcegraph/sourcegraph/client/browser/src/types/webextension-polyfill/index.d.ts | ||
1708: bytes?: ArrayBuffer | ||
501: bytesReceived: number | ||
502: totalBytes: number | ||
hidden 9 more line matches | ||
|
||
github.com/golang/go/src/fmt/print.go | ||
101:type buffer []byte | ||
509:func (p *pp) fmtBytes(v []byte, verb rune, typeString string) { | ||
17:// Strings for use with buffer.WriteString. | ||
hidden 28 more line matches | ||
github.com/golang/go/src/encoding/json/decode_test.go | ||
1784: Buffer bytes.Buffer | ||
1777: PBuffer *bytes.Buffer // has methods, just not relevant ones | ||
1379: ByteSlice []byte | ||
hidden 17 more line matches | ||
|
||
github.com/golang/go/src/bufio/scan.go | ||
106:func (s *Scanner) Bytes() []byte { | ||
267:func (s *Scanner) Buffer(buf []byte, max int) { | ||
289:func ScanBytes(data []byte, atEOF bool) (advance int, token []byte, err error) { | ||
hidden 26 more line matches | ||
**github.com/golang/go/src/bytes/buffer.go** | ||
54:func (b *Buffer) Bytes() []byte { return b.buf[b.off:] } | ||
20:type Buffer struct { | ||
5:package bytes | ||
hidden 126 more line matches | ||
|
||
github.com/golang/go/src/os/exec/exec.go | ||
1134:func (w *prefixSuffixSaver) Bytes() []byte { | ||
94: "bytes" | ||
396: if i := bytes.Index(stack, []byte("\nos/exec.Command(")); i >= 0 { | ||
hidden 17 more line matches | ||
github.com/golang/go/src/cmd/doc/pkg.go | ||
59: bytes.Buffer | ||
56:type pkgBuffer struct { | ||
233:var newlineBytes = []byte("\n\n") // We never ask for more than 2. | ||
hidden 11 more line matches | ||
|
||
hidden 494 more file matches |
Oops, something went wrong.