SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.11443 · EMNLP · 2022

Unsupervised Tokenization Learning

Vignav Ramesh, Anton Kolonin

arXiv · PDF · Open in the Atlas

Code that ran

19 of 23 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 19 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2205.11443.json · badge: /api/ran/2205.11443.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
aigents/pygents canonical (classifier label)
classifier basis not recorded on the link
19 ran · 4 no recorded run
FunctionStatusWhere it lives
build_ngrams Ran
ran on a synthesized input
aigents/pygents/pygents/aigents_api.py
code served (permissive licence) · get_code("912b675b8c7c6a75")
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 2, dtype family int; 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)

# build_ngrams takes a sequence and N (gram size)
# It builds n-grams from the sequence
# seq should be any sequence type (list, tuple, string, etc.)
# N should be an integer

# Create a simple sequence - a list of items
seq = [1, 2, 3, 4, 5]

# N is the n-gram size
N = 2

ARGS = {
    "seq": seq,
    "N": N
}
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 2, dtype family int — 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
df2labeled Ran
ran on a synthesized input
aigents/pygents/pygents/recognition_evaluators.py
code served (permissive licence) · get_code("59926e7aef683e3f")
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. 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 pandas as pd
import numpy as np

# Create a small DataFrame with the expected structure
# The function expects:
# - Column 0: primary text or fallback
# - Column 1: secondary text (optional, checked with pd.notna)
# - Column 2: primary distortion label
# - Column 3: secondary distortion label (optional, checked with pd.notna)

df = pd.DataFrame({
    0: ['text1', 'text2'],
    1: ['primary text 1', pd.NA],
    2: ['Distortion Type A', 'No Distortion'],
    3: ['Secondary Type X', pd.NA]
})

ARGS = {
    'df': df,
    'binary': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is 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
dict_update Ran
ran on a synthesized input
aigents/pygents/pygents/util.py
code served (permissive licence) · get_code("4e172bf386f23e2a")
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

torch.manual_seed(0)

# Construct arguments for dict_update function
# The function takes two dictionaries: target and source
# It updates target by adding numeric values from source (or recursively updating nested dicts)

target = {
    "learning_rate": 0.001,
    "batch_size": 32,
    "nested": {
        "momentum": 0.9,
        "weight_decay": 1e-4
    }
}

source = {
    "learning_rate": 0.002,
    "nested": {
        "momentum": 0.1,
        "weight_decay": 5e-5
    }
}

ARGS = {
    "target": target,
    "source": source
}
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
dictval Ran
ran on a synthesized input
aigents/pygents/pygents/recognition_evaluators.py
code served (permissive licence) · get_code("c7016a4ceaa87df3")
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

torch.manual_seed(0)

# Analyze the function: dictval(dic, key, val)
# The function checks if key is in dic, returns dic[key] if true, else returns val
# Parameters needed:
# - dic: a dictionary
# - key: a key to look up
# - val: a default value to return if key not found

ARGS = {
    'dic': {'name': 'test', 'value': 42, 'data': torch.randn(2, 4)},
    'key': 'name',
    'val': 'default_value'
}
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
get_char_grams Ran
ran on a synthesized input
aigents/pygents/pygents/text_matching.py
code served (permissive licence) · get_code("924351cd992f8c13")
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:
# - items: iterable that supports len() and indexing with [i+j]
# - n: integer, default 2
# - The function iterates through items and concatenates n consecutive items
# - Returns a list of concatenated items

# The function concatenates items, so items should be strings or something
# that supports the + operator for concatenation

# Minimal valid setup:
items = ["a", "b", "c", "d", "e"]
n = 2

ARGS = {
    "items": items,
    "n": n
}
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
language_metrics Ran
ran on a synthesized input
aigents/pygents/pygents/recognition_evaluators.py
code served (permissive licence) · get_code("3a7ff583d1404eeb")
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 = {
    'lang': 'en',
    'metrics_list': ['accuracy', 'f1', 'precision'],
    'path': '/data/results/'
}
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
listofpairs_compress_with_loss Ran
ran on a synthesized input
aigents/pygents/pygents/util.py
code served (permissive licence) · get_code("e98c31b3949ba902")
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 2, 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

# Analyze the function:
# - lst: a list of pairs (tuples/lists with at least 2 elements)
# - threshold: a float, default 0.01
# - The function accesses i[1] on each element, so pairs need numeric second values
# - maxval is compared with i[1], so i[1] must be numeric
# - The function filters pairs where i[1] >= minval

# Create a list of pairs where each pair is (identifier, numeric_value)
lst = [
    ("item_a", 0.5),
    ("item_b", 0.02),
    ("item_c", 0.15),
    ("item_d", 0.001),
]

threshold = 0.01

ARGS = {
    "lst": lst,
    "threshold": threshold,
}
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 list, ndim 2, 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
make_annotations Ran
ran on a synthesized input
aigents/pygents/pygents/plot.py
code served (permissive licence) · get_code("89b3155ee6b61a1e")
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 math

ARGS = {
    'pos': [[10, 20], [30, 40], [50, 60]],
    'text': ['hello', 'world', 'test'],
    'M': 100,
    'font_size': 20,
    'font_color': 'rgb(0,0,250)'
}
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
overlap_dic Ran
ran on a synthesized input
aigents/pygents/pygents/cluster.py
code served (permissive licence) · get_code("cbde932c8e4ed394")
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 math

torch_manual_seed_called = False

# Construct two dictionaries with numeric values
dic1 = {
    'key_a': 5.0,
    'key_b': 3.5,
    'key_c': 2.0
}

dic2 = {
    'key_a': 4.0,
    'key_b': 2.0,
    'key_d': 1.5
}

ARGS = {
    'dic1': dic1,
    'dic2': dic2
}
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 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
overlap_dic2 Ran
ran on a synthesized input
aigents/pygents/pygents/cluster.py
code served (permissive licence) · get_code("d3bfdab19b511faf")
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 math
import torch

torch.manual_seed(0)

# The function overlap_dic2 takes 4 dictionary parameters
# Looking at the body, it calls overlap_dic_parts which:
# - iterates over items in dic1
# - looks up keys in dic2 with .get(key, 0.0)
# - accesses .items() and .values()
# So these need to be dicts with string/numeric keys and numeric values

dica1 = {
    'feature_a': 2.5,
    'feature_b': 1.3,
    'feature_c': 0.8
}

dicb1 = {
    'feature_a': 1.5,
    'feature_b': 2.1,
    'feature_d': 0.9
}

dica2 = {
    'token_x': 3.2,
    'token_y': 1.1
}

dicb2 = {
    'token_x': 2.8,
    'token_y': 1.5,
    'token_z': 0.5
}

ARGS = {
    'dica1': dica1,
    'dicb1': dicb1,
    'dica2': dica2,
    'dicb2': dicb2
}
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
overlap_dic_parts Ran
ran on a synthesized input
aigents/pygents/pygents/cluster.py
code served (permissive licence) · get_code("9e8c248953e7f548")
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 torch
import numpy as np

# Analyze the function: it takes two dictionaries (dic1, dic2)
# It iterates over dic1 items, accessing values and using dic2.get(key, 0.0)
# It computes numerator as sum of min(val1, dic2[key1])
# It computes dena as sum of max(val1, val1) which is just val1
# It computes denb as sum of all values in dic2
# Returns a tuple of (numerator, dena, denb)

# Create two simple dictionaries with numeric values
dic1 = {
    'a': 2.0,
    'b': 3.5,
    'c': 1.5
}

dic2 = {
    'a': 1.0,
    'b': 4.0,
    'd': 2.0
}

ARGS = {
    'dic1': dic1,
    'dic2': dic2
}
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 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
psy_metric_lists Ran
ran on a synthesized input
aigents/pygents/pygents/text_metrics.py
code served (permissive licence) · get_code("cda2aa6e82050ecf")
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. 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

# The function psy_metric_lists takes:
# - metrics: a dict mapping metric keys to values
# - lang: a string ('en' or 'ru')
# - emojis: a boolean

# Looking at the function body:
# - metrics is used with "in" check against m[1] (the metric key like 'positive', 'negative', etc.)
# - The values from metrics dict are appended to vals list
# - lang is used to index into psy_metrics dict
# - emojis is used in a conditional to decide string formatting

# Create a small metrics dict with some of the available metric keys
metrics_dict = {
    'positive': [0.8, 0.9],
    'negative': [0.1, 0.2],
    'catastrophizing': [0.5, 0.6],
    'labeling': [0.3, 0.4],
}

ARGS = {
    'metrics': metrics_dict,
    'lang': 'en',
    'emojis': False,
}
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 tuple — a tuple output has no array shape of its own; none is 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
psy_metric_texts Ran
ran on a synthesized input
aigents/pygents/pygents/text_metrics.py
code served (permissive licence) · get_code("31208a071423c4b0")
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

# Construct valid arguments for psy_metric_texts function

# The function expects:
# - metrics: dict with metric keys and float values (0-1 range for emoji scaling)
# - lang: string, either 'en' or 'ru'
# - emojis: boolean
# - extended: boolean
# - lists: dict or None with metric keys mapping to lists of features
# - markup: boolean

metrics = {
    'positive': 0.8,
    'negative': 0.5,
    'catastrophizing': 0.3,
    'mindreading': 0.9,
    'should-statement': 0.2
}

lists = {
    'positive': [['feeling', 'good'], ['great', 'day']],
    'negative': [['feeling', 'bad']],
    'catastrophizing': [['worst', 'case']]
}

ARGS = {
    'metrics': metrics,
    'lang': 'en',
    'emojis': True,
    'extended': True,
    'lists': lists,
    'markup': True
}
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
token_valid Ran
ran on a synthesized input
aigents/pygents/pygents/aigents_api.py
code served (permissive licence) · get_code("3d87a7b7834c6ee7")
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 bool, 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 re

def token_valid(token):
    if len(token) < 1:
        return False
    if re.match('^\\(?(http|https)://', token) is not None:
        return False
    return True

ARGS = {
    "token": "hello_world"
}
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 bool, 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
tokenize_detaching_head Ran
ran on a synthesized input
aigents/pygents/pygents/token.py
code served (permissive licence) · get_code("a2ee6c7e85681666")
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. 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 = {
    'text': '\'hello',
    'chars': '\'"{[('
}
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 tuple — a tuple output has no array shape of its own; none is 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
tokenize_detaching_tail Ran
ran on a synthesized input
aigents/pygents/pygents/token.py
code served (permissive licence) · get_code("0cacbc8c662d91c4")
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. 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.

# Analyzing the function tokenize_detaching_tail
# Parameters: text (str), chars (str with default value)
# The function processes a text string and detaches trailing characters found in the chars string
# It returns a tuple of (tokens list, remaining text or None)

ARGS = {
    'text': 'hello world!',
    'chars': '\'":,;.!?}])'
}
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 — a tuple output has no array shape of its own; none is 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
tokenize_split_with_delimiters_and_quotes Ran
ran on a synthesized input
aigents/pygents/pygents/token.py
code served (permissive licence) · get_code("1f256c8b6febc983")
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.

# Analyzing the function signature
# tokenize_split_with_delimiters_and_quotes(text) takes only one parameter: text
# The function expects text to be a string and processes it by splitting on spaces,
# then detaching head and tail delimiters.

# Create test data
text = "\"Hello, world!\""

# Define ARGS dict with the single parameter
ARGS = {
    "text": text
}
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
url_text Ran
ran on a synthesized input
aigents/pygents/pygents/text.py
code served (permissive licence) · get_code("f1455e9f0f77bdbd")
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 urllib.request
from unittest.mock import Mock, patch
import io

# Create a mock response that simulates urlopen behavior
mock_response_data = [
    b"line one\n",
    b"line two\r\n",
    b"line three"
]

def mock_urlopen(url):
    """Mock urlopen to return our test data"""
    return iter(mock_response_data)

# Prepare arguments for url_text function
ARGS = {
    "url": "http://example.com/test.txt",
    "debug": False,
    "linefeeds": False
}

# Patch urllib.request.urlopen at module level for the function to use
urllib.request.urlopen = mock_urlopen
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
vector_proximity Ran
ran on a synthesized input
aigents/pygents/pygents/util.py
code served (permissive licence) · get_code("bcc2770705085eb4")
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 bool, 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
import math

torch.manual_seed(0)

# The function iterates over pairs of elements from avector and bvector
# It performs element-wise operations: multiplication, comparison, and division
# Both vectors should be iterable and have the same length

avector = [1.0, 2.0, 3.0, 4.0]
bvector = [1.5, 2.5, 3.5, 4.5]
threshold = 0.5

ARGS = {
    "avector": avector,
    "bvector": bvector,
    "threshold": threshold
}
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 bool, 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
plot_profile_freedoms Not yet run
unverified (harvested, no recorded run)
aigents/pygents/pygents/plot.py
code served (permissive licence) · get_code("b6e9d3a1691a13dc")
How it ran

no invocation recorded.

plot_profile_probabilities Not yet run
unverified (harvested, no recorded run)
aigents/pygents/pygents/plot.py
code served (permissive licence) · get_code("da81ffd6065a7b97")
How it ran

no invocation recorded.

url_lines Not yet run
unverified (harvested, no recorded run)
aigents/pygents/pygents/text.py
code served (permissive licence) · get_code("243576c5e6ff430f")
How it ran

no invocation recorded.

url_text_lines Not yet run
unverified (harvested, no recorded run)
aigents/pygents/pygents/text.py
code served (permissive licence) · get_code("3af09d918889fc4f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 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 23 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

In the presented study, we discover that the socalled "transition freedom" metric appears superior for unsupervised tokenization purposes in comparison to statistical metrics such as mutual information and conditional probability, providing F-measure scores in range from 0.71 to 1.0 across explored multilingual corpora. We find that different languages require different offshoots of that metric (such as derivative, variance, and "peak values") for successful tokenization. Larger training corpora do not necessarily result in better tokenization quality, while compressing the models by eliminating statistically weak evidence tends to improve performance. The proposed unsupervised tokenization technique provides quality better than or comparable to lexicon-based ones, depending on the language.

For agents

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

get_harvested_code_for_paper("2205.11443")
get_code_for_paper("2205.11443")
have("2205.11443")

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

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

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

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

Connect an agent — have() is free.