This file is generated for E2E parsing.
Document ID: fhnsrnrujbi-mlrb78vo
This document contains a variety of concise, self-contained code examples across multiple programming languages, demonstrating common patterns, data structures, I/O, and control flow to exercise parsing in a realistic yet compact way.
Each example includes a short description followed by a fenced code block.
Where helpful, examples may include brief variations in syntax or structure so the parser encounters a wider range of constructs across different ecosystems.
A minimal Haskell example filtering odd numbers and squaring them.
main :: IO ()
main = print $ map (^2) $ filter odd [1..10]Outputs a JSON response in PHP for a simple API endpoint. Illustrates header setting and encoding.
<?php
header('Content-Type: application/json');
echo json_encode(['status' => 'ok', 'time' => time()]);A minimal HTTP server in Go that responds with a greeting. It demonstrates net/http usage.
package main
import (
"fmt"
"net/http"
)
func main(){
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request){
fmt.Fprintln(w, "Hello from Go!")
})
http.ListenAndServe(":8080", nil)
}