Usage: <read_file> path/to/file start-end
This file contains hidden or 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
class GLM_45_Codec: | |
""" | |
GLM-4.5 codec that implements the ProviderCodec protocol. | |
This codec includes the GLM-4.5 jinja template inlined and handles | |
the specific response format used by GLM models. It includes stateful | |
parsing for streaming to handle tool calls intelligently. | |
""" | |
def __init__(self): |
This file contains hidden or 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
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
This file contains hidden or 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
import asyncio | |
from contextlib import asynccontextmanager | |
import typing | |
import asyncio | |
from httpx._models import Request, Response | |
from httpx._transports.asgi import ASGITransport | |
from httpx._types import AsyncByteStream | |
class ASGIResponseByteStream(AsyncByteStream): |
This file contains hidden or 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
{"_key": "Q50038575", "id": "http://www.wikidata.org/entity/Q50038575", "type": ["Organisation", "Agent"], "sameAs": [], "variantName": ["Atos Medical"], "preferredName": "Atos Medical", "country": {"label": "Germany", "id": "http://www.wikidata.org/entity/Q183"}} | |
{"_key": "Q50038577", "id": "http://www.wikidata.org/entity/Q50038577", "type": ["Organisation", "Agent"], "sameAs": [], "variantName": ["Integrierte Psychiatrie Winterthur"], "preferredName": "Integrierte Psychiatrie Winterthur", "country": {"label": "Switzerland", "id": "http://www.wikidata.org/entity/Q39"}} | |
{"_key": "Q50038578", "id": "http://www.wikidata.org/entity/Q50038578", "type": ["Organisation", "Agent", "Company"], "sameAs": [], "variantName": ["Ingredia (France)"], "preferredName": "Ingredia (France)", "country": {"label": "France", "id": "http://www.wikidata.org/entity/Q142"}} | |
{"_key": "Q50038579", "id": "http://www.wikidata.org/entity/Q50038579", "type": ["Organisation", "Agent", "Company"], "sameAs": [], "variantName": ["L\u00f6wenste |
I hereby claim:
- I am richardhundt on github.
- I am richardhundt (https://keybase.io/richardhundt) on keybase.
- I have a public key ASD51mYRq2hqnjM8AuqqIoocOAJYgQ44VLN6Qq5CLAhCPwo
To claim this, I am signing this object:
This file contains hidden or 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
<html> | |
<style> | |
.loader { | |
font-size: 10px; | |
margin: 50px auto; | |
text-indent: -9999em; | |
width: 11em; | |
height: 11em; |
This file contains hidden or 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
class HTTPRouter | |
self() | |
self.routes = { } | |
end | |
add(verb is String, path is String, func is Function) | |
self.routes[#self.routes + 1] = Route(verb, path, func) | |
end | |
match(verb, path) | |
for i=1, #self.routes do | |
m, q = self.routes[i].match(verb, path) |
This file contains hidden or 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
function conjoin(a, b) | |
meta = { } | |
repr = nil | |
function meta::__tostring() | |
if not repr then | |
repr = "%{a} * %{b}" | |
end | |
return repr | |
end |
This file contains hidden or 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
function fields(schema is Table) | |
module fields | |
local slots = { } | |
-- create slot objects to use as keys so that we can trip __set__ | |
-- every time for a type check (just one way to do it, there are more) | |
for k, v in schema do | |
slot = { } | |
function slot.set(o, v) | |
if v is schema[k] then |
NewerOlder