Skip to content

upstash/context7test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,737 Commits
 
 
 
 

Repository files navigation

Auto-generated Test Document

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.

Haskell: Filter and Map

A minimal Haskell example filtering odd numbers and squaring them.

main :: IO ()
main = print $ map (^2) $ filter odd [1..10]

PHP: JSON Response

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()]);

Go: HTTP Server

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)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5