Skip to content

Instantly share code, notes, and snippets.

View teamdandelion's full-sized avatar
💭
they/them

Dandelion Mané teamdandelion

💭
they/them
View GitHub Profile
@teamdandelion
teamdandelion / extraction_comparison.py
Last active February 18, 2025 13:22
Mirascope model extraction comparisons
import argparse
import asyncio
import inspect
import json
import logging
import time
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Literal
@teamdandelion
teamdandelion / example.py
Last active February 14, 2025 19:38
Mirascope: Directly using response models, vs generating text then extracting
class PuzzleSolution(BaseModel):
weekly: int
monthly_min: int
monthly_max: int
puzzle = inspect.cleandoc("""A factory produces 5 widgets every
weekday, and 3 widgets per day on weekends, and one extra widget on Mondays.
How many widgets are produced in a week?
Each month has four weeks, and one holiday (which may be any day of the week).
@teamdandelion
teamdandelion / algobots.json
Created April 12, 2021 00:08
Algobot data
[
{
"tokenID": "40000000",
"traits": [
"All Algobots",
"Colour: Orange",
"Headphones: Supra-aural",
"Bodywork: Block",
"Component: X",
"State: Idle"
export type Tag = string;
export type UUID = string;
type EditorNode = {|
+uuid: UUID,
+tags: $ReadOnlyArray<Tag>,
+title: string,
+description: string,
+connections: $ReadOnlyArray<EditorConnection>,
+timestamp: TimestampMs | null,
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"intervalEndpoints":[1569110400000,1569715200000,1570320000000,1570924800000,1571529600000,1572134400000,1572739200000,1573344000000,1573948800000,1574553600000,1575158400000,1575763200000,1576368000000,1576972800000,1577577600000,1578182400000,1578787200000,1579392000000,1579996800000,1580601600000,1581206400000,1581811200000,1582416000000,1583020800000,1583625600000,1584230400000,1584835200000,1585440000000,1586044800000,1586649600000,1587254400000,1587859200000,1588464000000,1589068800000,1589673600000,1590278400000,1590883200000],"orderedEdges":[{"address":["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629411178837442601","680919780412227624"],"credOverTime":null,"dstIndex":5402,"rawWeight":{"backwards":0.0625,"forwards":1},"srcIndex":2,"timestamp":1582414326528,"totalCred":{"backwardFlow":0.039404054025777374,"forwardFlow":0.03337624043255971}},{"address":["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"edgeData":{"address":[["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629411178837442601","680919780412227624"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629411717704712192","686598242741387264"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629412800346849302","680997300511965211"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629412800346849302","684949419778375797"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","646826789544394755","682840015826321438"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","646826789544394755","683748121339363346"],["sourcecred","discord","ADDS_REACTION","bot","324631108731928587","👍","656207220148797497","691457333154414642"],["sourcecred","discord","ADDS_REACTION","bot","324631108731928587","👍","656207220148797497","691457469699981334"],["sourcecred","discord","ADDS_R
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"edgeData":{"address":[["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOjMwNDA4NGE2NjhlYzUwZGZlMzI1YzM3N2I3ZmY5MjY1MDc5MTkxOTc="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmFlYzg5N2UxMDBjZjAyOGJhZTQ3OWNhYTE4ODBmMWY1OGRiODZlY2Q="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmFmZDNiNmVhNmY0NWQ0YjRiNTNmNzg3OTA1ZWM1M2RiZjQ2ZmJiZWY="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmI2YWU5OTc4YTFlNTMwY2Q2NDU1NWI3NTAzZmU3MTRjNDU4ODFiYWI="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","M
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"edgeData":{"address":[["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOjMwNDA4NGE2NjhlYzUwZGZlMzI1YzM3N2I3ZmY5MjY1MDc5MTkxOTc="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmFlYzg5N2UxMDBjZjAyOGJhZTQ3OWNhYTE4ODBmMWY1OGRiODZlY2Q="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmFmZDNiNmVhNmY0NWQ0YjRiNTNmNzg3OTA1ZWM1M2RiZjQ2ZmJiZWY="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmI2YWU5OTc4YTFlNTMwY2Q2NDU1NWI3NTAzZmU3MTRjNDU4ODFiYWI="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","M
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"edgeData":{"address":[["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629411178837442601","680919780412227624"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629411717704712192","686598242741387264"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629412800346849302","680997300511965211"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","629412800346849302","684949419778375797"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","646826789544394755","682840015826321438"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","👍","646826789544394755","683748121339363346"],["sourcecred","discord","ADDS_REACTION","bot","324631108731928587","👍","656207220148797497","691457333154414642"],["sourcecred","discord","ADDS_REACTION","bot","324631108731928587","👍","656207220148797497","691457469699981334"],["sourcecred","discord","ADDS_R
@teamdandelion
teamdandelion / review.md
Created January 11, 2020 07:01
On Review Culture

If you want to go fast, go alone. If you want to go far, go together.

As a community, we value going far over going fast., To go far, we need to stay aligned in our values, goals, and practices. One of the ways that we do this is through our culture and practice of reviews

On Review Culture

Review culture came to us from the practices of software engineers.