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
$bash run.sh | |
go install -v github.com/symflower/eval-codegen-testing/... | |
github.com/symflower/eval-codegen-testing/model/llm | |
github.com/symflower/eval-codegen-testing/provider/openrouter | |
github.com/symflower/eval-codegen-testing/cmd/eval-codegen-testing/cmd | |
github.com/symflower/eval-codegen-testing/cmd/eval-codegen-testing | |
2024/04/03 22:49:51 Checking that models and languages can be used for evaluation | |
2024/04/03 22:49:51 Evaluating model "openrouter/01-ai/yi-34b" using language "golang" and repository "/home/zimmski/symflower/src/github.com/symflower/eval-symflower-codegen-testing/testdata/golang/plain" | |
2024/04/03 22:51:30 Model "openrouter/01-ai/yi-34b" responded to query Given the following Go code file "plain.go" with package "plain", provide a test file for this code. | |
The tests should produce 100 percent code coverage and must compile. |
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
// ==UserScript== | |
// @name Google Chat Always Allow Animated Emojis | |
// @match https://chat.google.com/* | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function main() { | |
const pictureSources = document.querySelectorAll('picture > source'); |
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
public class MyClass { | |
public static void main(String args[]) { | |
float x = 0.3f; | |
float y = 0.2f; | |
float z = x - y; | |
System.out.println(z); | |
float expectedZ = 0.1f; | |
float delta = 0.00000001f; |
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
#!/usr/bin/perl | |
use 5.008; | |
use warnings FATAL => 'all'; | |
use strict; | |
# Highlight by reversing foreground and background. You could do | |
# other things like bold or underline if you prefer. | |
my @OLD_HIGHLIGHT = ( | |
color_config('color.diff-highlight.oldnormal'), |
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
package argh | |
import ( | |
"testing" | |
"github.com/stretchr/testify/assert" | |
) | |
// $ go test -run=XXX -bench=. | |
// BenchmarkConcatAppendConcatOnce-4 5000000 262 ns/op |