Keykit

1 program Added 2026-02-23T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: KeyKit, KCL
Provenance: commit 5bb4a2cfd9 · authored 2026-02-23T18:33:13+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

4 sources · pl_id: pl/keykit
LLM (this repo) · 1PldbWikipediaWikidata · Q6398316

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Designed byAT&T / Tim Thompson
LicenseFree for non-commercial use
Homepagehttp://nosuch.com/keykit

Related languages

Kernel (0.18)CycL (0.12)Hecl (0.12)Kevo (0.12)Kite (0.12)

LLM-contributed programs

Stochastic Music Generation

Provenance: commit 5bb4a2cfd9 · authored 2026-02-23T18:33:13+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.k · added: 2026-02-23T10:00:00Z
function stochgen(ph,chunksize) {

	ph = onlynotes(ph)

	Gen = []

	# Fill in the starting chunk
	ch = ''
	for ( n=1; n<chunksize; n++ ) {
		ch += strip(ph%n)
	}
	ch = strip(ch)
	limit = sizeof(ph)

	# Take each successive note, add an entry to the Gen
	# array to indicate that that note can follow the current
	# chunk, then remove the first note of the chunk, add the
	# new note to the end of the chunk, and loop.

	for ( ; n <= limit ; n++ ) {
		nextnt = ph%n
		nextnt.time = 0
		nextnt.length = nextnt.dur
		if ( ! ch in Gen )
			Gen[ch] = ''
		Gen[ch] += nextnt
		ch%1 = ''
		if ( sizeof(ch) == 0 )
			ch = ''
		else {
			t1 = ch%(1).time
			ch.time -= t1
			ch.length -= t1
		}
		ch += nextnt
	}
}

function printstoch() {
	for ( nt in Gen ) {
		print("Gen[",nt,"] = ",Gen[nt])
	}
}

function makestoch(cnt) {
	n = 0
	for ( ch in Gen )
		n++
	n = rand(n)
	for ( ch in Gen ) {
		if ( n-- <= 0 )
			break
	}
	ch = phrase(ch)
	result = ch
	while ( cnt-- > 0 ) {
		if ( ! ch in Gen ) {
			print("Terminating condition, ch=",ch)
			break
		}
		choices = Gen[ch]
		if ( sizeof(choices) == 0 ) {
			print("Hey, Gen[",ch,"] is null?")
			break
		}
		choice = choices%(1+rand(sizeof(choices)))
		choice = strip(choice)
		result += choice
		ch%(1)=''
		if ( sizeof(ch) == 0 )
			ch = ''
		else {
			t1 = ch%(1).time
			ch.time -= t1
			ch.length -= t1
		}
		ch += choice
	}
	return(result)
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Keykit (mapped to pl/keykit). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Keykit/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Keyhole Markup Language Zipped Keys →