← back to leifericf__noumenon

Function bodies 9 total

All specs Real LLM only Function bodies
main function · cpp · L3-L7 (5 LOC)
test-fixtures/cpp/src/main.cpp
int main() {
    log_message("Hello from C++");
    return 0;
}
log_message function · cpp · L3-L6 (4 LOC)
test-fixtures/cpp/src/util.cpp
void log_message(const std::string& msg) {
    std::cout << "[LOG] " << msg << std::endl;
}
main function · c · L3-L7 (5 LOC)
test-fixtures/c/src/main.c
int main(void) {
    log_message("Hello from C");
    return 0;
}
log_message function · c · L3-L6 (4 LOC)
test-fixtures/c/src/util.c
void log_message(const char *msg) {
    printf("[LOG] %s\n", msg);
}
main function · go · L8-L11 (4 LOC)
test-fixtures/go/main.go
func main() {
	conn := pkg.Connect()
	fmt.Println("Connected:", conn)
}
Connect function · go · L4-L6 (3 LOC)
test-fixtures/go/pkg/db.go
func Connect() string {
	return "localhost:5432"
}
start function · typescript · L4-L7 (4 LOC)
test-fixtures/typescript/src/app.ts
export function start(): void {
  const conn = connect();
  log('App started');
}
Citation: Repobility (2026). State of AI-Generated Code. https://repobility.com/research/
connect function · typescript · L1-L3 (3 LOC)
test-fixtures/typescript/src/db.ts
export function connect(): object {
  return { host: 'localhost', port: 5432 };
}
log function · typescript · L1-L3 (3 LOC)
test-fixtures/typescript/src/util.ts
export function log(msg: string): void {
  console.log(`[${new Date().toISOString()}] ${msg}`);
}