SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1512.00727 · 2015

TinyLFU: A Highly Efficient Cache Admission Policy

arXiv · PDF · Open in the Atlas

Code that ran

21 of 22 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 21 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1512.00727.json · badge: /api/ran/1512.00727.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ben-manes/caffeine canonical (classifier label)
classifier basis: census
21 ran · 1 no recorded run
FunctionStatusWhere it lives
analyze Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/climber-gate/blindlock.py
code served (permissive licence) · get_code("7c4d4500251649a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.txt")

# Write sample data that matches the expected format
with open(temp_file, 'w') as f:
    f.write("climb mode=hold stable=100 auditWait=50 wh=10 mh=5 hr=0.5\n")
    f.write("climb mode=ARM stable=200 auditWait=100 wh=20 mh=10 hr=1.0\n")
    f.write("climb mode=AUDIT stable=150 auditWait=75 wh=15 mh=8 hr=0.8\n")
    f.write("climb mode=AUDITCONFIRM stable=120 auditWait=60 wh=12 mh=6 hr=0.6\n")
    f.write("climb mode=ARMSTART stable=180 auditWait=90 wh=18 mh=9 hr=0.9\n")
    f.write("skip this line\n")
    f.write("climb mode=hold stable=110 auditWait=55 wh=11 mh=5 hr=0.55\n")

ARGS = {
    'path': temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
audits_root Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-temporal-walk/audit_paths.py
code served (permissive licence) · get_code("4ad1fad110a7cc9f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
from pathlib import Path

# Set up environment variable that the function reads
os.environ['AUDIT_MODEL'] = 'test-model'

# Create a temporary Path object to serve as repo_root
repo_root = Path('/tmp/test_repo')

# Construct the ARGS dictionary with all parameters
ARGS = {
    'repo_root': repo_root,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
derive_module Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-temporal-walk/audit_paths.py
code served (permissive licence) · get_code("f33224ec3e7a8a92")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

def derive_module(scope: str) -> str:
    """Returns the reports-dir suffix for a scope.

    The first path segment (caffeine, jcache, ...) keeps different modules disjoint, and a
    '-test' discriminator keeps a test-history walk (caffeine/src/test/...) from clobbering the
    main-source walk (caffeine/src/main/...), since both share the leading 'caffeine' segment.
    All three CLIs derive it here so a verify run reads the tree its walk wrote.
    """
    base = scope.split('/', 1)[0] if '/' in scope else 'default'
    return f'{base}-test' if '/src/test/' in scope else base


ARGS = {
    'scope': 'caffeine/src/test/java'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
done_labels Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/search.py
code served (permissive licence) · get_code("2f83aa18c92dc5f8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import copy
import csv
import glob
import hashlib
import itertools
import json
import os
import statistics
import sys
import tempfile

# Create a temporary CSV file with sample data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "test_results.csv")

with open(csv_path, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['label', 'variant', 'size', 'seeds'])
    writer.writeheader()
    writer.writerow({'label': 'test_label', 'variant': 'v1', 'size': '100', 'seeds': '42'})
    writer.writerow({'label': 'test_label2', 'variant': 'v2', 'size': '200', 'seeds': '123'})

ARGS = {
    'path': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_balanced_json Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-temporal-walk/verify.py
code served (permissive licence) · get_code("fa26dc3d873edc59")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json

# The function extract_balanced_json takes:
# - text: str - a string that may contain JSON
# - required_keys: tuple[str, ...] - a tuple of key names that must be present in the JSON

# Create test cases that exercise the function's behavior

# Test case 1: Valid JSON with required keys
text_1 = '{"verdict": "pass", "score": 95}'
required_keys_1 = ("verdict",)

# Test case 2: Valid JSON embedded in text with required keys
text_2 = 'Some prefix text {"result": "success", "data": [1, 2, 3]} and suffix'
required_keys_2 = ("result",)

# Test case 3: Malformed JSON that needs repair
text_3 = 'Here is incomplete JSON: {"name": "test", "values": [1, 2'
required_keys_3 = ("name",)

# We'll use the simplest valid case
text = '{"verdict": "pass", "score": 95, "details": "test"}'
required_keys = ("verdict", "score")

ARGS = {
    "text": text,
    "required_keys": required_keys,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_balanced_json Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-temporal-walk/walker.py
code served (permissive licence) · get_code("b81bcec56cd6f3df")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json

def extract_balanced_json(text: str, required_keys: tuple[str, ...]) -> dict:
    """Find a balanced top-level JSON object in `text`, tolerant to prose
    preambles or markdown code fences.

    Iterates each `{`, walks brace depth honoring quoted strings, and returns
    the first balanced object that parses and contains at least one of
    `required_keys`. Raises ValueError if none found.
    """
    candidates: list[tuple[int, int]] = []
    n = len(text)
    i = 0
    while i < n:
        if text[i] != '{':
            i += 1
            continue
        depth = 0
        in_str = False
        escape = False
        for j in range(i, n):
            ch = text[j]
            if in_str:
                if escape:
                    escape = False
                elif ch == '\\':
                    escape = True
                elif ch == '"':
                    in_str = False
                continue
            if ch == '"':
                in_str = True
            elif ch == '{':
                depth += 1
            elif ch == '}':
                depth -= 1
                if depth == 0:
                    candidates.append((i, j + 1))
                    break
        i += 1
    for start, end in candidates:
        try:
            obj = json.loads(text[start:end])
        except json.JSONDecodeError:
            continue
        if isinstance(obj, dict) and any((k in obj for k in required_keys)):
            return obj
    start = text.find('{')
    if start != -1:
        stack: list[str] = []
        in_str = False
        escape = False
        last_complete = start
        for j in range(start, n):
            ch = text[j]
            if in_str:
                if escape:
                    escape = False
                elif ch == '\\':
                    escape = True
                elif ch == '"':
                    in_str = False
                continue
            if ch == '"':
                in_str = True
            elif ch in '{[':
                stack.append(ch)
            elif ch in '}]':
                if stack:
                    stack.pop()
                if not stack:
                    last_complete = j + 1
        if stack:
            tail = text[start:].rstrip().rstrip(',')
            repair = ''.join(('}' if c == '{' else ']' for c in reversed(stack)))
            try:
                obj = json.loads(tail + repair)
                if isinstance(obj, dict) and any((k in obj for k in required_keys)):
                    return obj
            except json.JSONDecodeError:
                pass
    raise ValueError(f'No parseable response JSON found in: {text[:600]}')


# Test case 1: Simple valid JSON with required keys
text_1 = '{"name": "test", "value": 42}'
required_keys_1 = ("name",)

# Test case 2: JSON embedded in prose with markdown fence
text_2 = 'Here is my response:\n```json\n{"result": "success", "code": 200}\n```\nEnd of response'
required_keys_2 = ("result", "code")

# Test case 3: JSON with escaped quotes
text_3 = 'Some text before {"data": "value with \\"quotes\\"", "status": "ok"} and after'
required_keys_3 = ("status",)

# Test case 4: Incomplete JSON that needs repair
text_4 = 'Response: {"items": [1, 2, 3], "count": 3'
required_keys_4 = ("count",)

ARGS = {
    "text": text_1,
    "required_keys": required_keys_1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_row Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/search.py
code served (permissive licence) · get_code("cffb0c14272c2d6e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import csv
import os

# Create a temporary CSV file with test data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "test.csv")

# Write a CSV file with some test rows
with open(csv_path, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['label', 'variant', 'size', 'seeds'])
    writer.writeheader()
    writer.writerow({
        'label': 'test_label',
        'variant': 'variant_a',
        'size': '100',
        'seeds': 'seed_123'
    })
    writer.writerow({
        'label': 'other_label',
        'variant': 'variant_b',
        'size': '200',
        'seeds': 'seed_456'
    })

ARGS = {
    'path': csv_path,
    'label': 'test_label',
    'variant': 'variant_a',
    'size': 100,
    'seeds': 'seed_123'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/workload.py
code served (permissive licence) · get_code("b0678b7de73fbaf2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create a temporary JSON file with valid spec
spec_data = {
    'max': 100,
    'members': ['member1', 'member2', 'member3'],
    'segments': [
        {'start': 0, 'end': 50},
        {'start': 50, 'end': 100}
    ],
    'seed': 42,
    'repeat': 2
}

# Write to a temporary file
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False)
json.dump(spec_data, temp_file)
temp_file.close()

ARGS = {
    'path': temp_file.name,
    'max_': None,
    'seed': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/climber-gate/admission_harness.py
code served (permissive licence) · get_code("c6a1c105af2cd93b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sys
import os
import tempfile

# Create a temporary directory structure that mimics the expected path
temp_dir = tempfile.mkdtemp()
simulator_path = os.path.join(temp_dir, 'simulator', 'src', 'main', 'java', 'com', 'github', 'benmanes', 'caffeine', 'cache', 'simulator', 'policy', 'sketch')
os.makedirs(simulator_path, exist_ok=True)

# Create the Java file with some dummy content
java_file_path = os.path.join(simulator_path, 'WindowTinyLfuPolicy.java')
with open(java_file_path, 'w') as f:
    f.write('public class WindowTinyLfuPolicy {\n    // dummy content\n}\n')

# The wt parameter should be the root directory where the path is relative to
ARGS = {
    'wt': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/regret.py
code served (permissive licence) · get_code("46a1008335dcf47f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - parse(lines) takes a parameter 'lines'
# - It iterates over lines with: for ln in lines
# - For each line, it calls ln.split() and processes key=value pairs
# - Returns a list of dictionaries

# Construct valid test data
lines = [
    "prefix key1=value1 key2=value2",
    "prefix key3=value3 key4=value4 key5=value5",
    "prefix single=item"
]

ARGS = {
    "lines": lines
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/climber-gate/blindlock.py
code served (permissive licence) · get_code("f807c6a993793262")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with test data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("climb mode=training stable=yes param1=value1\n")
temp_file.write("climb mode=inference stable=no param2=value2\n")
temp_file.write("other_line mode=training stable=yes\n")
temp_file.write("climb mode=test stable=true\n")
temp_file.close()

path = temp_file.name

ARGS = {
    'path': path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_tenants Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/tenants.py
code served (permissive licence) · get_code("815c7da87a917791")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    "stderr": """TENANT policy_1 t0=5:3 t1=10:2
TENANT another_policy t0=15:8 t1=20:5 t2=3:1
some other line
TENANT third_policy t0=100:50"""
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
placed Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/climber-gate/admission_harness.py
code served (permissive licence) · get_code("73f5108fed334b33")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function `placed` takes three parameters:
# - anchor: a string (based on concatenation operations in the function body)
# - snippet: a string (based on concatenation operations in the function body)
# - where: a string that is compared to 'before'

ARGS = {
    'anchor': 'int main() {',
    'snippet': 'node.hitsMain++;',
    'where': 'before'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prop Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/tenants.py
code served (permissive licence) · get_code("5a8502e169ce39e6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    "splits": [1, 2, 3, 4]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rate Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/tenants.py
code served (permissive licence) · get_code("aa8f9437a0b5e533")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function rate(hm) takes a single parameter hm that is unpacked into h and m
# It then performs arithmetic operations on h and m
# We need to provide a tuple or list-like object that can be unpacked into two values

# Create two numeric values
h = 50.0
m = 30.0

# Pack them into a tuple for unpacking
hm = (h, m)

ARGS = {
    "hm": hm
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_file_bounded Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-temporal-walk/verify.py
code served (permissive licence) · get_code("94e6683aa98e5a1a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path
import tempfile

# Create a temporary directory and file for testing
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name)

# Create a test file with some content
test_file = temp_path / "test.txt"
test_file.write_text("Hello, this is a test file with some content.")

# Define ARGS with the path parameter
ARGS = {
    "path": test_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sample_period Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/workload.py
code served (permissive licence) · get_code("60c8d70f87055f6a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function sample_period takes a spec dict and accesses spec['max']
# It converts that value to int and multiplies by 4
# So we need a dict with a 'max' key that can be converted to int

spec = {
    'max': 5
}

ARGS = {
    'spec': spec
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
samples Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/workload.py
code served (permissive licence) · get_code("e4efc8ed9bc39e33")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'spec': {
        'repeat': '3',
        'segments': [
            {'samples': '5'},
            {'samples': '7'},
            {'samples': '2'}
        ]
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
seeds_tag Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-regret/search.py
code served (permissive licence) · get_code("d7ee5be7bce50e62")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

class Args:
    def __init__(self, seeds=None, runs=None):
        self.seeds = seeds
        self.runs = runs

ARGS = {
    'args': Args(seeds='1,2,3', runs=5)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
select_open Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/audit-temporal-walk/verify.py
code served (permissive licence) · get_code("b57cf2938ee55d1b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from datetime import datetime, timedelta

ARGS = {
    'state': {
        'issues': {
            'issue_1': {
                'status': 'open',
                'confidence': 'high',
                'times_touched': 5,
                'first_seen_date': '2024-01-01'
            },
            'issue_2': {
                'status': 'open',
                'confidence': 'med',
                'times_touched': 3,
                'first_seen_date': '2024-01-02'
            },
            'issue_3': {
                'status': 'open',
                'confidence': 'low',
                'times_touched': 1,
                'first_seen_date': '2024-01-03'
            },
            'issue_4': {
                'status': 'closed',
                'confidence': 'high',
                'times_touched': 10,
                'first_seen_date': '2024-01-04'
            },
            'issue_5': {
                'status': 'open',
                'times_touched': 2,
                'first_seen_date': '2024-01-05'
            }
        }
    },
    'min_conf': 'med'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
zipf_cum Ran
ran on a synthesized input
ben-manes/caffeine/.claude/skills/climber-gate/a1_tenant.py
code served (permissive licence) · get_code("ca7d6cfeb801628f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - n: integer parameter (number of elements)
# - alpha: float parameter (exponent for Zipf distribution)
# The function computes a cumulative distribution based on Zipf's law

ARGS = {
    "n": 10,
    "alpha": 1.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reports_dir Not yet run
unverified (harvested, no recorded run)
ben-manes/caffeine/.claude/skills/audit-temporal-walk/audit_paths.py
code served (permissive licence) · get_code("588b4ba031b5622c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 22 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper proposes to use a frequency based cache admission policy in order to boost the effectiveness of caches subject to skewed access distributions. Given a newly accessed item and an eviction candidate from the cache, our scheme decides, based on the recent access history, whether it is worth admitting the new item into the cache at the expense of the eviction candidate. Realizing this concept is enabled through a novel approximate LFU structure called TinyLFU, which maintains an approximate representation of the access frequency of a large sample of recently accessed items. TinyLFU is very compact and light-weight as it builds upon Bloom filter theory. We study the properties of TinyLFU through simulations of both synthetic workloads as well as multiple real traces from several sources. These simulations demonstrate the performance boost obtained by enhancing various replacement policies with the TinyLFU eviction policy. Also, a new combined replacement and eviction policy scheme nicknamed W-TinyLFU is presented. W-TinyLFU is demonstrated to obtain equal or better hit-ratios than other state of the art replacement policies on these traces. It is the only scheme to obtain such good results on all traces.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1512.00727")
get_code_for_paper("1512.00727")
have("1512.00727")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1512.00727.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1512.00727.svg)](https://syntology.ai/paper/1512.00727)

Connect an agent — have() is free.