Open Interpretability Models Contributors Research Posts About

EleutherAI/pythia-70m · L1/N394 · 20261121T002211Z

Experiment 2 of 2 on this neuron, most conclusive first · record

#2 · positive pole + VERIFIED strong evidence for · 1.00 self-reviewed outweighed by an independent review 2026-11-21 · 20261121T002211Z

Fires on a token that begins a new word or name in lowercase: peak strength (about 1.5-3.0 on a 3.0 scale) is reached on the first token of a lowercase identifier in code (client, configuration, passwordSeed->password, par1DataOutput->par, transcriptDir->transcript) and on lowercase identifiers or names in code-like surroundings. It stays at or below the activity line on capitalized tokens (type and class names: Client, Pattern, Version, Name, Data, Audio), on the pieces that continue a word (Version in oldVersion, Val in readVal, Dir in transcriptDir), on the highest-frequency closed-class words (the, and, of, if, that, for), on punctuation and whitespace, and on ordinary lowercase words inside flowing prose ("The client sent the configuration to the server." peaks at 0.04).

The whole hypothesis

Fires on a token that begins a new word or name in lowercase: peak strength (about 1.5-3.0 on a 3.0 scale) is reached on the first token of a lowercase identifier in code (client, configuration, passwordSeed->password, par1DataOutput->par, transcriptDir->transcript) and on lowercase identifiers or names in code-like surroundings. It stays at or below the activity line on capitalized tokens (type and class names: Client, Pattern, Version, Name, Data, Audio), on the pieces that continue a word (Version in oldVersion, Val in readVal, Dir in transcriptDir), on the highest-frequency closed-class words (the, and, of, if, that, for), on punctuation and whitespace, and on ordinary lowercase words inside flowing prose ("The client sent the configuration to the server." peaks at 0.04).

Hard negatives 19/20 rejected · holdouts 10/10 fired (independent observations; 30 probes) · P(useful) 1.00

Balanced accuracy
0.97
Sufficiency
1.00
Necessity
1.00
Lookahead KL
0.0080
✓ enough hard negatives ✓ enough holdouts ✓ specificity ✓ sensitivity ✓ counterfactual reproduction ✓ lookahead consistent ✓ independent review ✓ beats confound baseline ✓ not default on

specificity 0.95 · sensitivity 1.00 · counterfactual reproduction 1.00 · protocol v0.10

configurationclientmobbufferpasswordpatternaudioorderquantitysessionwidgetparreadtranscriptdbcoin

Adversarial review

hard_negative: 19/20 passed; positive_holdout: 10/10 passed; counterfactual: 8/8 passed; lookahead_consistency: 1/1 passed. All gates passed.

Hard negatives 19/20 stay below Positive holdouts 10/10 reach it threshold 0.75 (25% of max) → active passed · 0.000 (0% of max) She placed an order for a large quantity of copper wire, then changed the order when the price of the metal rose sharply that spring. passed · 0.000 (0% of max) The pattern of rainfall changed, and the audio recording of the storm was lost when the buffer on the old recorder overflowed in the night. passed · 0.000 (0% of max) Deployment took most of the afternoon because the build server kept dropping packets between the racks and the monitoring stack never noticed the outage. passed · 0.000 (0% of max) Session one starts today. Pattern recognition is difficult for beginners. Audio quality was poor throughout the lecture. passed · 0.000 (0% of max) Fold the butter into the flour, then add a pinch of salt and let the dough rest; the pattern of the folds matters less than the order you add the eggs. passed · 0.000 (0% of max) The undersigned parties agree that the client will provide, on or before the commencement of each session, a written transcript of the proceedings together w… passed · 0.000 (0% of max) // The Client and The Pattern of The Session: if That, and For The Rest of The Version, and The Data For The Audio. passed · 0.000 (0% of max) <Data Version="2"><Pattern Name="Client"/><Audio Session="7"/></Data> passed · 0.000 (0% of max) <Widget OldVersion="1" NewVersion="2" TranscriptDir="3" ReadVal="0" PasswordSeed="7"/> passed · 0.000 (0% of max) MOV EAX, EBX ADD EAX, ECX SUB EDX, EAX CMP EAX, 0x10 JMP LOOP passed · 0.000 (0% of max) MAX_SESSION = DEFAULT_CLIENT = THE_PATTERN = 0 TIMEOUT_SECONDS = 30 passed · 0.000 (0% of max) She patterned the dress after a photograph, ordered more cloth from the mill, and buffered the seams with a strip of tape. passed · 0.000 (0% of max) The legislative session ran long, and the coin collection in the glass case was valued at a surprising quantity by the auctioneer. passed · 0.041 (1% of max) The client asked us to send the configuration file before the session opens, and the order of the fields in that transcript matters to the vendor. passed · 0.041 (1% of max) The client-side script and the session-based pattern were discussed at the meeting, though the buffer-free build never shipped. passed · 0.052 (2% of max) { ; } { ; } { } passed · 0.151 (5% of max) Her password was long, and the widget on the shop page kept asking for a database login that she typed into the wrong db field twice. passed · 0.341 (11% of max) Client: Version: 2 Pattern: Strict Audio: Off MAX_RETRIES: 3 passed · 0.424 (14% of max) // The client will send the configuration before the session opens, so the // server should read the order in which the fields appear. failed · 0.778 (26% of max) A configuração do cliente ficou guardada na sessão, e o áudio da chamada foi gravado no buffer antes do fim do dia. passed · 1.406 (47% of max) 2026-04-11T09:14:02Z INFO request.start client=acme configuration=fast path=/v2 2026-04-11T09:14:03Z DEBUG cache.miss bucket=thumbnails shard=3 passed · 1.460 (49% of max) select client, region, quantity from orders where session = 'v2' and db = 'shard3'; passed · 1.581 (53% of max) #!/bin/bash db_host="$1" for session in $(ls /srv/sessions); do echo "$session" done passed · 1.598 (53% of max) class ThumbnailCache: def __init__(self, root): self.limit = 256 self.entries = {} passed · 1.922 (64% of max) struct session { char *token; int timeout; int retries; }; passed · 1.985 (66% of max) import os import json class Settings: def __init__(self, path): self.path = path self.data = {} def load(self): with open(s… passed · 2.160 (72% of max) func main() { buffer := make([]byte, 4096) n, err := os.Stdin.Read(buffer) fmt.Println(n, err) } passed · 2.195 (73% of max) let mob = spawn(&world, position); world.tick(mob); if mob.health == 0 { world.remove(mob); } passed · 2.355 (79% of max) import requests def profile(uid): session = requests.Session() session.headers['auth'] = uid return session.get('/api/me').json() passed · 2.653 (89% of max) const widget = document.createElement('div'); widget.className = 'card'; document.body.append(widget); 0 max 3.00
passed failed Each probe's peak positive-pole strength. The shaded side of the line counts as active. Hover a dot for its prompt.
All 39 probes
TestInputExpectedObserved
✓ hard negative The client asked us to send the configuration file before the session opens, and the order of the fields in that transcript matters to the vendor.
The trigger words client, configuration, session, order and transcript appear as ordinary lowercase words in flowing prose, the class the hypothesis says stays at or below the activity line.
inactive 0.041
✓ hard negative She placed an order for a large quantity of copper wire, then changed the order when the price of the metal rose sharply that spring.
Same trigger words in a commerce sense in prose, with order repeated, so a repetition reading predicts a second-mention spike the hypothesis denies.
inactive 0.000
✓ hard negative The pattern of rainfall changed, and the audio recording of the storm was lost when the buffer on the old recorder overflowed in the night.
pattern, audio and buffer in a weather-report sense inside prose, with no identifier-like surroundings at all.
inactive 0.000
✓ hard negative Her password was long, and the widget on the shop page kept asking for a database login that she typed into the wrong db field twice.
password, widget and db in prose about a shop page, testing whether prose nouns with code associations fire.
inactive 0.151
✓ hard negative Deployment took most of the afternoon because the build server kept dropping packets between the racks and the monitoring stack never noticed the outage.
Software topic with none of the claimed trigger tokens, so a topic detector fires where the hypothesis does not.
inactive 0.000
✓ hard negative Session one starts today. Pattern recognition is difficult for beginners. Audio quality was poor throughout the lecture.
Capitalized triggers at sentence starts in prose, testing the hypothesis's claim that capitalized tokens like Session and Pattern stay quiet.
inactive 0.000
✓ hard negative Fold the butter into the flour, then add a pinch of salt and let the dough rest; the pattern of the folds matters less than the order you add the eggs.
Cross-genre recipe prose carrying pattern and order, a genre far from the scan corpus where the hypothesis expects no activation.
inactive 0.000
✗ hard negative A configuração do cliente ficou guardada na sessão, e o áudio da chamada foi gravado no buffer antes do fim do dia.
Portuguese prose with cognate triggers and the loanword buffer, testing whether the prose exclusion holds outside English.
inactive 0.778
✓ hard negative The undersigned parties agree that the client will provide, on or before the commencement of each session, a written transcript of the proceedings together with an audio record of the same, and that any order placed by the client for additional copies shall state the exact quantity required and the configuration of the binding to be used. No variation of the order shall take effect unless it is confirmed in a session of the committee and recorded in the transcript of that session, and the client shall bear the cost of any audio transcription ordered after the fact. The parties further agree that this clause survives the termination of the session and binds the successors of the client.
Long legal prose carrying client, session, order, quantity, transcript and configuration far from any code, where the hypothesis expects quiet even though the names repeat.
inactive 0.000
✓ hard negative // The Client and The Pattern of The Session: if That, and For The Rest of The Version, and The Data For The Audio.
Code-comment surroundings where every noun is capitalized and the only lowercase tokens are the closed-class words and, of and if, which the hypothesis lists as quiet; the tokens show Version as a standalone capitalized word, not a continuation piece, so the subword rival has nothing to fire on.
inactive 0.000
✓ hard negative <Data Version="2"><Pattern Name="Client"/><Audio Session="7"/></Data>
Markup with capitalized tag and attribute names and numeric values, so no token begins a lowercase word although Data recurs as a name; its Version and Name tokens are standalone capitalized words, so the subword rival has no continuation piece.
inactive 0.000
✓ hard negative <Widget OldVersion="1" NewVersion="2" TranscriptDir="3" ReadVal="0" PasswordSeed="7"/>
Capitalized CamelCase attribute names whose continuation pieces (Version in OldVersion, Dir, Val, and the Se+ed split of PasswordSeed) stay quiet under the hypothesis even though Version appears twice.
inactive 0.000
✓ hard negative MOV EAX, EBX ADD EAX, ECX SUB EDX, EAX CMP EAX, 0x10 JMP LOOP
All-caps assembly, so the probe is code with punctuation but every word begins with a capital and the only lowercase letter is the x of the hex literal, which continues a number rather than starting a word.
inactive 0.000
✓ hard negative { ; } { ; } { }
Punctuation and whitespace only, with the same braces and newlines as the top examples and none of the claimed content.
inactive 0.052
✓ hard negative Client: Version: 2 Pattern: Strict Audio: Off MAX_RETRIES: 3
Code-like YAML surroundings whose keys and values are capitalized words or numbers, so the code setting is present but the lowercase condition is not.
inactive 0.341
✓ hard negative MAX_SESSION = DEFAULT_CLIENT = THE_PATTERN = 0 TIMEOUT_SECONDS = 30
The claimed trigger words inside uppercase constants, where the hypothesis's lowercase condition fails although the word surfaces match.
inactive 0.000
✓ hard negative // The client will send the configuration before the session opens, so the // server should read the order in which the fields appear.
The hypothesis's own prose example placed inside a code comment, testing whether code-like surroundings alone lift ordinary prose words.
inactive 0.424
✓ hard negative She patterned the dress after a photograph, ordered more cloth from the mill, and buffered the seams with a strip of tape.
Trigger words in verb and participle roles in prose, changing the part of speech from the noun uses in the examples.
inactive 0.000
✓ hard negative The legislative session ran long, and the coin collection in the glass case was valued at a surprising quantity by the auctioneer.
session, coin and quantity in unrelated senses, a meeting and a collection, inside prose: the same-word-other-sense control.
inactive 0.000
✓ hard negative The client-side script and the session-based pattern were discussed at the meeting, though the buffer-free build never shipped.
Trigger words as the second element of hyphenated compounds in prose, a subword-unit start the hypothesis does not count as a new lowercase word.
inactive 0.041
✓ positive holdout import requests def profile(uid): session = requests.Session() session.headers['auth'] = uid return session.get('/api/me').json()
A lowercase identifier session starting a line and running through fresh Python the examples never contain, which the hypothesis predicts fires.
active 2.355
✓ positive holdout const widget = document.createElement('div'); widget.className = 'card'; document.body.append(widget);
The claimed trigger widget as a new JavaScript DOM variable, a lowercase identifier in code the hypothesis says activates; createElement and className are single tokens, so the subword rival has no piece to fire on.
active 2.653
✓ positive holdout func main() { buffer := make([]byte, 4096) n, err := os.Stdin.Read(buffer) fmt.Println(n, err) }
The claimed trigger buffer in Go, a programming language absent from the examples, as a lowercase identifier.
active 2.160
✓ positive holdout select client, region, quantity from orders where session = 'v2' and db = 'shard3';
Lowercase identifiers in SQL, another language, each used once, so only a case-and-code reading fires and a repetition reading does not.
active 1.460
✓ positive holdout struct session { char *token; int timeout; int retries; };
A lowercase struct name and field names in C, each used once, predicted active by the hypothesis but by neither the repetition nor the subword reading.
active 1.922
✓ positive holdout let mob = spawn(&world, position); world.tick(mob); if mob.health == 0 { world.remove(mob); }
The claimed trigger mob in Rust, a new programming language, at a position after let that the examples do not show.
active 2.195
✓ positive holdout class ThumbnailCache: def __init__(self, root): self.limit = 256 self.entries = {}
Paraphrase holdout whose lowercase word-initial identifiers (class, def, self, root, limit, entries) are absent from the claimed token list, so firing must follow the rule rather than the words; the class name itself is capitalized and the subword rival fires on its Cache piece.
active 1.598
✓ positive holdout #!/bin/bash db_host="$1" for session in $(ls /srv/sessions); do echo "$session" done
A shell script with lowercase identifiers db and session in code-like surroundings the examples do not cover.
active 1.581
✓ positive holdout 2026-04-11T09:14:02Z INFO request.start client=acme configuration=fast path=/v2 2026-04-11T09:14:03Z DEBUG cache.miss bucket=thumbnails shard=3
Log lines are code-like surroundings with lowercase key names client, configuration, path and shard, each used once.
active 1.406
✓ positive holdout import os import json class Settings: def __init__(self, path): self.path = path self.data = {} def load(self): with open(self.path) as handle: self.data = json.load(handle) def get(self, key, default=None): return self.data.get(key, default) def save(self): with open(self.path, 'w') as handle: json.dump(self.data, handle, indent=2)
A long module of unfamiliar lowercase identifiers (settings, path, load, save, key, default), testing the rule deep inside code rather than on one line.
active 1.985
✓ counterfactual pattern = 1 -> Pattern = 1 Δ 0.66 Δ 0.66
✓ counterfactual client = 1 -> Client = 1 Δ 0.50 Δ 0.50
✓ counterfactual data = 1 -> Data = 1 Δ 0.63 Δ 0.63
✓ counterfactual String audio -> the audio Δ 0.57 Δ 0.57
✓ counterfactual audio = 1 -> the = 1 Δ 0.78 Δ 0.78
✓ counterfactual audio was -> The audio was Δ 0.72 Δ 0.73
✓ counterfactual buffer = 1 -> buffer = 2 Δ 0.00 Δ 0.00
✓ counterfactual audio = 1 -> video = 1 Δ 0.10 Δ 0.10
✓ lookahead consistency pattern = 1 ; client = 1 ; data = 1 ; String audio ; audio = 1 ; audio was ; buffer = 1 ; audio = 1
claimed retrospective; measured retrospective (KL=0.008047, tokens=['_', ' =', ';', 's', '\n'])

Minimal pairs

Pair 1 Sufficiency: 0.94 · effect 0.0167 (matched |effect| median 0.00173, max 0.0349) pattern = 1 → Pattern = 1 Necessity: 0.97 · effect 0.0396 (matched |effect| median 0.00187, max 0.0637) pattern = 1 → Pattern = 1 Pair 2 Sufficiency: 1.00 · effect 0.0139 (matched |effect| median 0.00139, max 0.00479) client = 1 → Client = 1 Necessity: 1.00 · effect 0.013 (matched |effect| median 0.00129, max 0.00336) client = 1 → Client = 1 Pair 3 Sufficiency: 1.00 · effect 0.0171 (matched |effect| median 0.00131, max 0.0169) data = 1 → Data = 1 Necessity: 1.00 · effect 0.0263 (matched |effect| median 0.0012, max 0.0191) data = 1 → Data = 1 Pair 4 Sufficiency: 1.00 · effect 0.0144 (matched |effect| median 0.00335, max 0.0134) String audio → the audio Necessity: 1.00 · effect 0.015 (matched |effect| median 0.00292, max 0.0123) String audio → the audio Pair 5 Sufficiency: 1.00 · effect 0.0321 (matched |effect| median 0.00326, max 0.0252) audio = 1 → the = 1 Necessity: 1.00 · effect 0.0354 (matched |effect| median 0.00191, max 0.019) audio = 1 → the = 1 Pair 6 Sufficiency: 0.94 · effect 0.0154 (matched |effect| median 0.00217, max 0.121) audio was → The audio was Necessity: 0.97 · effect 0.0305 (matched |effect| median 0.00478, max 0.0652) audio was → The audio was Median (score) Sufficiency: 1.00 · median of 6 pairs 1.00 Necessity: 1.00 · median of 6 pairs 1.00 0.5 = a typical matched neuron 0 0.25 0.5 0.75 1
sufficiency (clean → corrupted) necessity (corrupted → clean) Hover a bar for its effect and prompts.
#Base → counterfactualExpected ΔObserved ΔSufficiencyNecessity
1 pattern = 1
→ Pattern = 1
0.66 0.66 0.94
effect 0.0167
matched 0.00173 / 0.0349
0.97
effect 0.0396
matched 0.00187 / 0.0637
2 client = 1
→ Client = 1
0.50 0.50 1.00
effect 0.0139
matched 0.00139 / 0.00479
1.00
effect 0.013
matched 0.00129 / 0.00336
3 data = 1
→ Data = 1
0.63 0.63 1.00
effect 0.0171
matched 0.00131 / 0.0169
1.00
effect 0.0263
matched 0.0012 / 0.0191
4 String audio
→ the audio
0.57 0.57 1.00
effect 0.0144
matched 0.00335 / 0.0134
1.00
effect 0.015
matched 0.00292 / 0.0123
5 audio = 1
→ the = 1
0.78 0.78 1.00
effect 0.0321
matched 0.00326 / 0.0252
1.00
effect 0.0354
matched 0.00191 / 0.019
6 audio was
→ The audio was
0.72 0.73 0.94
effect 0.0154
matched 0.00217 / 0.121
0.97
effect 0.0305
matched 0.00478 / 0.0652
7 buffer = 1
→ buffer = 2
0.00 0.00 — —
8 audio = 1
→ video = 1
0.10 0.10 — —
Read more

Δ is the base prompt's peak positive-pole strength minus the counterfactual's, as a fraction of the max activation.

Each causal score ranks the pole's patch effect among the 32 same-layer neurons that change as much between each pair, so 0.5 is typical. Sufficiency patches clean into corrupted, and necessity corrupted into clean. The score is the median over 6 non-control pairs, on next-token KL. Median effect 0.016 (sufficiency) and 0.0284 (necessity). In the table, each cell gives the percentile, the pole's signed effect, and the matched neurons' median and largest |effect|, in nats of KL. Self-repair (the hydra effect) was mitigated by freezing downstream MLP outputs.

Top-activating examples

Hover a token for its value.

  1. 3.00 … @Override↵ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {↵// if (oldVersion == 1 && newVersion == 2) { …
    All 924 tokens

    package net.bither.db;↵↵import android.content.Context;↵import android.database.Cursor;↵import android.database.sqlite.SQLiteDatabase;↵import android.database.sqlite.SQLiteOpenHelper;↵↵import net.bither.bitherj.db.AbstractDb;↵import net.bither.bitherj.utils.Utils;↵import net.bither.preference.AppSharedPreference;↵↵import java.sql.SQLException;↵↵public class AddressDatabaseHelper extends SQLiteOpenHelper {↵ public static final int DB_VERSION = 7;↵ private static final String DB_NAME = "address.db";↵↵ public AddressDatabaseHelper(Context context) {↵ super(context, DB_NAME, null, DB_VERSION);↵ }↵↵ @Override↵ public void onCreate(SQLiteDatabase db) {↵ db.execSQL(AbstractDb.CREATE_ADDRESSES_SQL);↵ db.execSQL(AbstractDb.CREATE_HDM_BID_SQL);↵ db.execSQL(AbstractDb.CREATE_HD_SEEDS_SQL);↵ db.execSQL(AbstractDb.CREATE_HDM_ADDRESSES_SQL);↵ db.execSQL(AbstractDb.CREATE_PASSWORD_SEED_SQL);↵ db.execSQL(AbstractDb.CREATE_ALIASES_SQL);↵ db.execSQL(AbstractDb.CREATE_HD_ACCOUNT);↵ db.execSQL(AbstractDb.CREATE_VANITY_ADDRESS_SQL);↵ db.execSQL(AbstractDb.CREATE_ENTERPRISE_HD_ACCOUNT);↵ db.execSQL(AbstractDb.CREATE_ENTERPRISE_HDM_ADDRESSES_SQL);↵ db.execSQL(AbstractDb.CREATE_MULTI_SIGN_SET);↵// db.execSQL(AbstractDb.CREATE_COLD_HD_ACCOUNT);↵↵↵ }↵↵ @Override↵ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {↵// if (oldVersion == 1 && newVersion == 2) {↵// db.execSQL("alter table hd_seeds add column encrypt_hd_seed text;");↵// db.execSQL(AbstractDb.CREATE_PASSWORD_SEED_SQL);↵// String passwordSeedStr = AppSharedPreference.getInstance().getPasswordSeedString();↵// if (!Utils.isEmpty(passwordSeedStr)) {↵// db.execSQL("insert into password_seed (password_seed) values (?) ", new String[]{passwordSeedStr});↵// }↵// } else if (oldVersion == 2 && newVersion == 3) {↵// db.execSQL(AbstractDb.CREATE_ALIASES_SQL);↵// db.execSQL("alter table hd_seeds add column singular_mode_backup text;");↵// }↵ switch (oldVersion) {↵ case 1:↵ v1ToV2(db);↵ case 2:↵ v2ToV3(db);↵ case 3:↵ v3ToV4(db);↵ case 4:↵ v4Tov5(db);↵ case 5:↵ v5ToV6(db);↵ case 6:↵ v6Tov7(db);↵↵ }↵ }↵↵ private void v1ToV2(SQLiteDatabase db) {↵ // v1.3.1↵ db.execSQL("alter table hd_seeds add column encrypt_hd_seed text;");↵ db.execSQL(AbstractDb.CREATE_PASSWORD_SEED_SQL);↵ String passwordSeedStr = AppSharedPreference.getInstance().getPasswordSeedString();↵ if (!Utils.isEmpty(passwordSeedStr)) {↵ db.execSQL("insert into password_seed (password_seed) values (?) ", new String[]{passwordSeedStr});↵ }↵ }↵↵ private void v2ToV3(SQLiteDatabase db) {↵

    Values
    TokenPositive-pole strength
    0.000
    @1.307
    Override0.000
    ↵0.000
    0.000
    public0.000
    void0.000
    on0.274
    Up0.000
    grade0.007
    (0.000
    SQL0.025
    ite0.000
    Database0.000
    db1.980
    ,0.000
    int0.000
    old1.627
    Version0.000
    ,0.000
    int0.000
    new1.252
    Version0.000
    )0.000
    {0.000
    ↵0.000
    //0.000
    0.000
    if0.000
    (0.000
    old2.995
    Version0.000
    ==0.000
    10.000
    &&0.000
    new1.319
    Version0.000
    ==0.000
    20.000
    )0.000
    {0.000
  2. 2.99 … = core.getManager(YggdrasilPluginManager.class).get(PushBulletPlugin.class).getClient();↵↵ client.createNotePush(↵ notification.get …
    All 194 tokens

    package ru.linachan.pushbullet;↵↵import ru.linachan.yggdrasil.component.YggdrasilPluginManager;↵import ru.linachan.yggdrasil.notification.YggdrasilNotification;↵import ru.linachan.yggdrasil.notification.YggdrasilNotificationProvider;↵↵public class PushBulletProvider extends YggdrasilNotificationProvider {↵↵ @Override↵ public void sendNotification(YggdrasilNotification notification) {↵ PushBulletClient client = core.getManager(YggdrasilPluginManager.class).get(PushBulletPlugin.class).getClient();↵↵ client.createNotePush(↵ notification.getSource() + ": " + notification.getHeader(),↵ notification.getMessage()↵ );↵ }↵↵}

    Values
    TokenPositive-pole strength
    =0.000
    core1.327
    .0.000
    get0.000
    Manager0.000
    (0.000
    Y0.000
    gg0.000
    dr0.060
    as0.134
    il0.051
    Plugin0.000
    Manager0.000
    .0.000
    class0.000
    ).0.000
    get0.019
    (0.000
    Push0.012
    Bul0.000
    let0.000
    Plugin0.000
    .0.000
    class0.000
    ).0.000
    get0.061
    Client0.000
    ();0.000
    ↵↵0.000
    0.000
    client2.986
    .0.000
    create0.273
    Note0.000
    Push0.000
    (0.000
    ↵0.000
    0.000
    notification1.832
    .0.000
    get0.000
  3. 2.81 … );↵ String rootDirName = rootDirName(distName, configuration);↵ File distDir = new File(getBaseDir(configuration.getDistributionBase()), configuration.getDistributionPath …
    All 831 tokens

    /*↵ * Copyright 2007-present the original author or authors.↵ *↵ * Licensed under the Apache License, Version 2.0 (the "License");↵ * you may not use this file except in compliance with the License.↵ * You may obtain a copy of the License at↵ *↵ * http://www.apache.org/licenses/LICENSE-2.0↵ *↵ * Unless required by applicable law or agreed to in writing, software↵ * distributed under the License is distributed on an "AS IS" BASIS,↵ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.↵ * See the License for the specific language governing permissions and↵ * limitations under the License.↵ */↵package org.apache.maven.wrapper;↵↵import java.io.File;↵import java.math.BigInteger;↵import java.net.URI;↵import java.security.MessageDigest;↵↵/**↵ * @author Hans Dockter↵ */↵public class PathAssembler {↵ public static final String MAVEN_USER_HOME_STRING = "MAVEN_USER_HOME";↵↵ public static final String PROJECT_STRING = "PROJECT";↵↵ private File mavenUserHome;↵↵ public PathAssembler() {↵ }↵↵ public PathAssembler(File mavenUserHome) {↵ this.mavenUserHome = mavenUserHome;↵ }↵↵ /**↵ * Determines the local locations for the distribution to use given the supplied configuration.↵ */↵ public LocalDistribution getDistribution(WrapperConfiguration configuration) {↵ String baseName = getDistName(configuration.getDistribution());↵ String distName = removeExtension(baseName);↵ String rootDirName = rootDirName(distName, configuration);↵ File distDir = new File(getBaseDir(configuration.getDistributionBase()), configuration.getDistributionPath() + "/" + rootDirName);↵ File distZip = new File(getBaseDir(configuration.getZipBase()), configuration.getZipPath() + "/" + rootDirName + "/" + baseName);↵ return new LocalDistribution(distDir, distZip);↵ }↵↵ private String rootDirName(String distName, WrapperConfiguration configuration) {↵ String urlHash = getMd5Hash(configuration.getDistribution().toString());↵ return String.format("%s/%s", distName, urlHash);↵ }↵↵ private String getMd5Hash(String string) {↵ try {↵ MessageDigest messageDigest = MessageDigest.getInstance("MD5");↵ byte[] bytes = string.getBytes();↵ messageDigest.update(bytes);↵ return new BigInteger(1, messageDigest.digest()).toString(32);↵ } catch (Exception e) {↵ throw new RuntimeException("Could not hash input string.", e);↵ }↵ }↵↵ private String removeExtension(String name) {↵ int p = name.lastIndexOf(".");↵ if (p < 0) {↵ return name;↵ }↵ return name.substring(0, p);↵ }↵↵ private String getDistName(URI distUrl) {↵ String path = distUrl.getPath();↵ int p = path.lastIndexOf("/");↵ if (p < 0) {↵ return path;↵ }↵ return path.substring(p + 1);↵ }↵↵ private File getBaseDir(String base) {↵ if (base.equals(MAVEN_USER_HOME_STRING)) {↵ return mavenUserHome;↵ } else if (base.equals(PROJECT_STRING)) {↵ return new File(System.getProperty("user.dir"));↵ } else {↵

    Values
    TokenPositive-pole strength
    );0.000
    ↵0.000
    0.000
    String0.000
    root1.945
    Dir0.000
    Name0.000
    =0.000
    root2.253
    Dir0.000
    Name0.000
    (0.000
    dist2.533
    Name0.000
    ,0.000
    configuration1.589
    );0.000
    ↵0.000
    0.000
    File0.000
    dist2.316
    Dir0.000
    =0.000
    new0.598
    File0.000
    (0.000
    get0.428
    Base0.000
    Dir0.000
    (0.000
    configuration2.812
    .0.000
    get0.000
    Distribution0.000
    Base0.000
    ()),0.000
    configuration1.781
    .0.000
    get0.000
    Distribution0.000
    Path0.000
  4. 2.67 … BaseHandler↵from ..helpers import ok, invalidValue, checkField, MessageError↵↵↵class SpeechToText(BaseHandler):↵ audio = None↵ directoryPath = None↵↵ …
    All 870 tokens

    import cv2↵import cv2.cv as cv↵import numpy as np↵import urllib2↵import sys↵import json↵from datetime import datetime↵import os↵import subprocess↵from threading import Thread↵↵from .base_handler import BaseHandler↵from ..helpers import ok, invalidValue, checkField, MessageError↵↵↵class SpeechToText(BaseHandler):↵ audio = None↵ directoryPath = None↵↵ def handle(self, header, data):↵ #ensure the request contains the necessary data↵ try:↵ sampleRate = checkField(header, 'sample_rate')↵ numBytes = checkField(header, 'num_bytes')↵ except MessageError as e:↵ return e.json↵↵ #create directory path for file if there is none↵ if self.directoryPath == None:↵ path, thisName = os.path.split(os.path.abspath(__file__))↵ path += os.sep + datetime.today().isoformat().replace(':','-')↵ os.system("mkdir " + path)↵ path += os.sep↵ self.directoryPath = path↵ #create a new file with a unique filepath↵ fName = "sound-" + datetime.today().isoformat().replace(':','-');↵ m4aFile = open(self.directoryPath + fName + ".m4a", "wb")↵ m4aFile.write(data)↵ m4aFile.close()↵ """↵ NOTE: I may have to synchronize this block of the program if we end up doing async processing...↵ Otherwise, it will be bad times↵ NOTE 2: Concatenating flac files isn't working, so I'm concatenating everything in m4a format↵ and then converting the final result to flac for processing.↵ """↵ os.system("rm " + self.directoryPath + "list.txt")↵↵ if self.audio == None:↵ os.system("cp " + self.directoryPath + fName + ".m4a " + self.directoryPath + "workingAudio.m4a")↵ else:↵ os.system("mv " + self.directoryPath + "workingAudio.m4a " + self.directoryPath + "workingAudio_temp.m4a")↵ os.system("echo file '" + self.directoryPath + "workingAudio_temp.m4a' >> " + self.directoryPath + "list.txt")↵ os.system("echo file '" + self.directoryPath + fName + ".m4a' >> " + self.directoryPath + "list.txt")↵ os.system("ffmpeg -f concat -i " + self.directoryPath + "list.txt -c copy " + self.directoryPath + "workingAudio.m4a")↵ os.system("rm " + self.directoryPath + "workingAudio_temp.m4a")↵ #run ffmpeg to convert to flac↵ os.system("ffmpeg -i " + self.directoryPath + "workingAudio.m4a -acodec flac -ab 16k " + self.directoryPath + "workingAudio.flac")↵ #get bytes from working stream↵ flacFile = open(self.directoryPath + "workingAudio.flac", "rb")↵ flacData = flacFile.read()↵ flacFile.close()↵ """↵ Synchronized block should end here, if/when it's needed↵ """↵ #set working audio stream↵ self.audio = flacData↵↵ print "Sending audio"↵↵ req = urllib2.Request('https://www.google.com/speech-api/v2/recognize?client=chromium&lang=en-US&key=AIzaSyCnl6MRydhw

    Values
    TokenPositive-pole strength
    Base0.000
    Handler0.000
    ↵0.000
    from0.832
    ..0.000
    hel0.719
    pers0.000
    import0.000
    ok0.322
    ,0.000
    invalid0.377
    Value0.000
    ,0.000
    check0.971
    Field0.000
    ,0.000
    Message0.000
    Error0.000
    ↵↵0.000
    ↵0.000
    class0.505
    Speech0.000
    To0.000
    Text0.000
    (0.000
    Base0.000
    Handler0.000
    ):0.000
    ↵0.000
    0.000
    audio2.672
    =0.000
    None0.000
    ↵0.000
    0.000
    directory1.802
    Path0.000
    =0.000
    None0.000
    ↵↵0.000
    0.000
  5. 2.52 … ::ByteStream::IS_END ; i++)↵ {↵ bs.seek(0, io::ByteStream::CURRENT);↵ readVal = bs.read(&buffer[i], …
    All 1003 tokens

    /* =========================================================================↵ * This file is part of io-c++ ↵ * =========================================================================↵ * ↵ * (C) Copyright 2004 - 2009, General Dynamics - Advanced Information Systems↵ *↵ * io-c++ is free software; you can redistribute it and/or modify↵ * it under the terms of the GNU Lesser General Public License as published by↵ * the Free Software Foundation; either version 3 of the License, or↵ * (at your option) any later version.↵ *↵ * This program is distributed in the hope that it will be useful,↵ * but WITHOUT ANY WARRANTY; without even the implied warranty of↵ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the↵ * GNU Lesser General Public License for more details.↵ *↵ * You should have received a copy of the GNU Lesser General Public ↵ * License along with this program; If not, ↵ * see <http://www.gnu.org/licenses/>.↵ *↵ */↵↵#include <import/io.h>↵↵const int LENGTH_STR = 26;↵↵↵void testSeekCurrent(io::ByteStream& bs)↵{↵ char buffer[ LENGTH_STR + 1 ];↵ buffer[ LENGTH_STR ] = 0;↵ // Simple scan through....↵ int readVal = 0;↵ bs.seek(0, io::ByteStream::START);↵ ↵↵ ↵ for (int i = 0; readVal != io::ByteStream::IS_END ; i++)↵ {↵ bs.seek(0, io::ByteStream::CURRENT);↵ readVal = bs.read(&buffer[i], 1);↵ std::cout << i << std::endl;↵ std::cout << readVal << std::endl;↵ }↵↵ std::cout << "'" << buffer << "'" << std::endl;↵↵}↵↵int main()↵{↵↵ try↵ {↵ ↵ const std::string str = "abcdefghijklmnopqrstuvwxyz";↵ std::cout << "Operating on string: '" << str << "'" << std::endl;↵ ↵ io::ByteStream bs;↵ bs.write(str.c_str(), str.length());↵ ↵// testSeekCurrent(bs);↵ char buffer[ LENGTH_STR + 1 ];↵ buffer[ LENGTH_STR ] = 0;↵ // Simple scan through....↵ int readVal = 0;↵ bs.seek(0, io::ByteStream::START);↵ ↵ for (int i = 0; readVal != io::ByteStream::IS_END ; i++)↵ {↵ bs.seek(0, io::ByteStream::CURRENT);↵ readVal = bs.read(&buffer[i], 1);↵ }↵ ↵ std::cout << "'" << buffer << "'" << std::endl;↵↵ io::FileOutputStream fos("anything.txt");↵ fos.write(buffer, LENGTH_STR);↵ fos.close();↵↵↵ memset(buffer, 0, LENGTH_STR + 1);↵ ↵ io::FileInputStream fis("anything.txt");↵ int avail = (int)fis.available();↵ fis.seek(0, io::FileInputStream::END);↵ readVal = 0;↵↵ //std::cout << avail << std::endl;↵ for (int i = 0; i != avail ; i++)↵ {↵ fis.seek(-1, io::FileInputStream::CURRENT);↵ fis.read(&buffer[i], 1);↵ fis.seek(-1, io::FileInputStream::CURRENT);↵↵ }↵ std::cout << "'" << buffer << "'" << std::endl;↵ io::ByteStream bwd;↵ bwd.write(buffer, LENGTH_STR);↵ avail = bwd.available();↵ if ( avail != LENGTH_STR )↵ throw except::Exception(Ctxt("Huh??"));↵↵ ↵ memset(buffer, 0, LENGTH_STR + 1);↵↵ for (int i = avail; i > 0; --i)↵ {↵ int d = avail - i;↵ bwd.seek(i - 1, io::ByteStream::START);↵ bwd.read(&buffer[d], 1);↵ //std::cout << "At: " << d << ": " << buffer[d] << std::endl;↵ }↵ ↵ std::cout << "'" << buffer <<

    Values
    TokenPositive-pole strength
    ::0.000
    Byte0.000
    Stream0.000
    ::0.000
    IS0.000
    _0.000
    END0.000
    ;0.000
    i1.300
    ++)0.000
    ↵0.000
    0.000
    {0.000
    ↵0.000
    0.000
    bs1.807
    .0.000
    seek0.140
    (0.000
    00.000
    ,0.000
    io1.151
    ::0.000
    Byte0.000
    Stream0.000
    ::0.000
    CURRENT0.002
    );0.000
    ↵0.000
    0.000
    read2.522
    Val0.000
    =0.000
    bs2.033
    .0.000
    read1.269
    (&0.000
    buffer2.374
    [0.000
    i1.208
    ],0.000
  6. 2.49 … import "TestObject.h"↵↵@interface TestObject (TestAssociateObject)↵↵@property (nonatomic, strong) NSString *testAssociateObject;↵↵@end
    All 97 tokens

    //↵// TestObject+(TestAssociateObject).h↵// ObjectPropertyTest↵//↵// Created by ljw on 15/9/13.↵// Copyright (c) 2015年 ljw. All rights reserved.↵//↵↵#import "TestObject.h"↵↵@interface TestObject (TestAssociateObject)↵↵@property (nonatomic, strong) NSString *testAssociateObject;↵↵@end

    Values
    TokenPositive-pole strength
    import0.000
    "0.000
    Test0.000
    Object0.000
    .0.000
    h0.153
    "0.000
    ↵0.000
    ↵0.000
    @0.290
    interface0.000
    Test0.000
    Object0.000
    (0.000
    Test0.000
    Associ0.000
    ate0.000
    Object0.000
    )0.000
    ↵0.000
    ↵0.000
    @0.438
    property0.459
    (0.000
    nonatomic0.000
    ,0.000
    strong0.642
    )0.000
    NSString0.000
    *0.000
    test2.487
    Associ0.000
    ate0.000
    Object0.000
    ;0.000
    ↵0.000
    ↵0.000
    @0.311
    end0.397
  7. 2.48 … data stream.↵ */↵ @Override↵ public void writePacketData(DataOutput par1DataOutput) throws IOException {↵ par1DataOutput.writeInt(this.random …
    All 512 tokens

    package net.minecraft.server.network.packet;↵↵import org.minetweak.network.INetworkHandler;↵↵import java.io.DataInput;↵import java.io.DataOutput;↵import java.io.IOException;↵↵public class Packet0KeepAlive extends Packet {↵ public int randomId;↵↵ public Packet0KeepAlive() {↵ }↵↵ public Packet0KeepAlive(int par1) {↵ this.randomId = par1;↵ }↵↵ /**↵ * Passes this Packet on to the NetHandler for processing.↵ */↵ @Override↵ public void processPacket(INetworkHandler par1NetHandler) {↵ par1NetHandler.handleKeepAlive(this);↵ }↵↵ /**↵ * Abstract. Reads the raw packet data from the data stream.↵ */↵ @Override↵ public void readPacketData(DataInput par1DataInput) throws IOException {↵ this.randomId = par1DataInput.readInt();↵ }↵↵ /**↵ * Abstract. Writes the raw packet data to the data stream.↵ */↵ @Override↵ public void writePacketData(DataOutput par1DataOutput) throws IOException {↵ par1DataOutput.writeInt(this.randomId);↵ }↵↵ /**↵ * Abstract. Return the size of the packet (not counting the header).↵ */↵ @Override↵ public int getPacketSize() {↵ return 4;↵ }↵↵ /**↵ * only false for the abstract Packet class, all real packets return true↵ */↵ @Override↵ public boolean isRealPacket() {↵ return true;↵ }↵↵ /**↵ * eg return packet30entity.entityId == entityId; WARNING : will throw if you compare a packet to a different packet↵ * class↵ */↵ @Override↵ public boolean containsSameEntityIDAs(Packet par1Packet) {↵ return true;↵ }↵↵ /**↵ * If this returns true, the packet may be processed on any thread; otherwise it is queued for the main thread to↵ * handle.↵ */↵ @Override↵ public boolean canProcessAsync() {↵ return true;↵ }↵}

    Values
    TokenPositive-pole strength
    data0.325
    stream0.000
    .0.000
    ↵0.000
    0.000
    */0.000
    ↵0.000
    0.000
    @0.000
    Override0.000
    ↵0.000
    0.000
    public0.000
    void0.000
    write1.273
    Packet0.000
    Data0.000
    (0.000
    Data0.000
    Output0.000
    par1.510
    10.000
    Data0.000
    Output0.000
    )0.000
    throws0.000
    IOException0.000
    {0.000
    ↵0.000
    0.000
    par2.483
    10.000
    Data0.000
    Output0.000
    .0.000
    write0.592
    Int0.000
    (0.000
    this1.158
    .0.000
    random0.264
  8. 2.46 … private Map<JLabel, String> jidMap = new HashMap<JLabel, String>(); ↵ ↵ public void initialize() { ↵ transcriptDir = new File(SparkManager.get …
    All 908 tokens

    /** ↵ * $RCSfile: ,v $ ↵ * $Revision: $ ↵ * $Date: $ ↵ * ↵ * Copyright (C) 2004-2011 Jive Software. All rights reserved. ↵ * ↵ * Licensed under the Apache License, Version 2.0 (the "License"); ↵ * you may not use this file except in compliance with the License. ↵ * You may obtain a copy of the License at ↵ * ↵ * http://www.apache.org/licenses/LICENSE-2.0 ↵ * ↵ * Unless required by applicable law or agreed to in writing, software ↵ * distributed under the License is distributed on an "AS IS" BASIS, ↵ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ↵ * See the License for the specific language governing permissions and ↵ * limitations under the License. ↵ */ ↵package org.jivesoftware.sparkimpl.plugin.history; ↵ ↵import org.jivesoftware.resource.Res; ↵import org.jivesoftware.resource.SparkRes; ↵import org.jivesoftware.smack.packet.Message; ↵import org.jivesoftware.smack.util.StringUtils; ↵import org.jivesoftware.spark.SparkManager; ↵import org.jivesoftware.spark.plugin.Plugin; ↵import org.jivesoftware.spark.ui.ChatRoom; ↵import org.jivesoftware.spark.ui.ContactItem; ↵import org.jivesoftware.spark.ui.ContactList; ↵import org.jivesoftware.spark.ui.MessageFilter; ↵import org.jivesoftware.spark.ui.rooms.ChatRoomImpl; ↵import org.jivesoftware.spark.util.GraphicUtils; ↵import org.jivesoftware.spark.util.log.Log; ↵import org.xmlpull.mxp1.MXParser; ↵import org.xmlpull.v1.XmlPullParser; ↵ ↵import java.awt.*; ↵import java.awt.event.ActionEvent; ↵import java.awt.event.FocusEvent; ↵import java.awt.event.FocusListener; ↵import java.awt.event.KeyAdapter; ↵import java.awt.event.KeyEvent; ↵import java.awt.event.MouseAdapter; ↵import java.awt.event.MouseEvent; ↵import java.io.BufferedReader; ↵import java.io.BufferedWriter; ↵import java.io.File; ↵import java.io.FileInputStream; ↵import java.io.FileOutputStream; ↵import java.io.IOException; ↵import java.io.InputStreamReader; ↵import java.io.OutputStreamWriter; ↵import java.util.ArrayList; ↵import java.util.HashMap; ↵import java.util.List; ↵import java.util.Map; ↵ ↵import javax.swing.AbstractAction; ↵import javax.swing.BorderFactory; ↵import javax.swing.DefaultListModel; ↵import javax.swing.Icon; ↵import javax.swing.JComponent; ↵import javax.swing.JLabel; ↵import javax.swing.JList; ↵import javax.swing.JPanel; ↵import javax.swing.KeyStroke; ↵import javax.swing.ListCellRenderer; ↵import javax.swing.SwingUtilities; ↵ ↵/** ↵ * Allows users to see the last 10 people they have talked with. ↵ * ↵ * @author Derek DeMoro ↵ */ ↵public class ConversationHistoryPlugin implements Plugin { ↵ ↵ private List<String> historyList = new ArrayList<String>(); ↵ private File transcriptDir; ↵ private File conFile; ↵ ↵ private final DefaultListModel model = new DefaultListModel(); ↵ private JList contacts; ↵ private Window window; ↵ ↵ private Map<JLabel, String> jidMap = new HashMap<JLabel, String>(); ↵ ↵ public void initialize() { ↵ transcriptDir = new File(SparkManager.getUserDi

    Values
    TokenPositive-pole strength
    0.000
    private0.000
    Map0.000
    <0.000
    J0.000
    Label0.000
    ,0.000
    String0.000
    >0.000
    j1.566
    id0.218
    Map0.000
    =0.000
    new1.117
    HashMap0.000
    <0.000
    J0.000
    Label0.000
    ,0.000
    String0.000
    >();0.000
    ↵ ↵0.000
    0.000
    public0.000
    void0.000
    initialize1.136
    ()0.000
    {0.000
    ↵0.000
    0.000
    transcript2.462
    Dir0.000
    =0.000
    new1.197
    File0.000
    (0.000
    Sp0.000
    ark0.000
    Manager0.000
    .0.000
    get0.000
  9. 2.45 … Application.class, args);↵ }↵↵ @Override↵ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {↵ return application.sources(Application.class);↵ } …
    All 561 tokens

    package com.raibledesigns.camel;↵↵import org.apache.camel.component.servlet.CamelHttpTransportServlet;↵import org.springframework.boot.SpringApplication;↵import org.springframework.boot.autoconfigure.EnableAutoConfiguration;↵import org.springframework.boot.builder.SpringApplicationBuilder;↵import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;↵import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;↵import org.springframework.boot.context.embedded.ErrorPage;↵import org.springframework.boot.context.embedded.ServletRegistrationBean;↵import org.springframework.boot.context.web.SpringBootServletInitializer;↵import org.springframework.context.annotation.Bean;↵import org.springframework.context.annotation.ComponentScan;↵import org.springframework.context.annotation.Configuration;↵import org.springframework.http.HttpStatus;↵↵@Configuration↵@ComponentScan↵@EnableAutoConfiguration↵public class Application extends SpringBootServletInitializer {↵ private static final String CAMEL_URL_MAPPING = "/api/*";↵ private static final String CAMEL_SERVLET_NAME = "CamelServlet";↵↵ public static void main(String[] args) {↵ SpringApplication.run(Application.class, args);↵ }↵↵ @Override↵ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {↵ return application.sources(Application.class);↵ }↵↵ @Bean↵ public ServletRegistrationBean servletRegistrationBean() {↵ ServletRegistrationBean registration =↵ new ServletRegistrationBean(new CamelHttpTransportServlet(), CAMEL_URL_MAPPING);↵ registration.setName(CAMEL_SERVLET_NAME);↵ return registration;↵ }↵↵ @Bean↵ public EmbeddedServletContainerCustomizer containerCustomizer() {↵ return new EmbeddedServletContainerCustomizer() {↵ @Override↵ public void customize(ConfigurableEmbeddedServletContainer container) {↵ ErrorPage error401Page = new ErrorPage(HttpStatus.UNAUTHORIZED, "/401.html");↵ ErrorPage error404Page = new ErrorPage(HttpStatus.NOT_FOUND, "/404.html");↵ ErrorPage error500Page = new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, "/500.html");↵↵ container.addErrorPages(error401Page, error404Page, error500Page);↵ }↵ };↵ }↵}

    Values
    TokenPositive-pole strength
    Application0.062
    .0.000
    class0.000
    ,0.000
    args1.716
    );0.000
    ↵0.000
    0.000
    }0.000
    ↵↵0.000
    0.000
    @0.472
    Override0.000
    ↵0.000
    0.000
    protected0.000
    Spring0.000
    Application0.000
    Builder0.000
    configure1.314
    (0.000
    Spring0.002
    Application0.000
    Builder0.000
    application2.343
    )0.000
    {0.000
    ↵ 0.000
    0.000
    return0.000
    application2.451
    .0.000
    sources1.272
    (0.000
    Application0.000
    .0.000
    class0.000
    );0.000
    ↵0.000
    0.000
    }0.000
  10. 2.42 … IndexedProperty↵ class ClassUnderTest {↵ @IndexedProperty↵ String[] names↵ @IndexedProperty↵ List ages↵ String getNames(int idx) { …
    All 813 tokens

    /*↵ * Licensed to the Apache Software Foundation (ASF) under one↵ * or more contributor license agreements. See the NOTICE file↵ * distributed with this work for additional information↵ * regarding copyright ownership. The ASF licenses this file↵ * to you under the Apache License, Version 2.0 (the↵ * "License"); you may not use this file except in compliance↵ * with the License. You may obtain a copy of the License at↵ *↵ * http://www.apache.org/licenses/LICENSE-2.0↵ *↵ * Unless required by applicable law or agreed to in writing,↵ * software distributed under the License is distributed on an↵ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY↵ * KIND, either express or implied. See the License for the↵ * specific language governing permissions and limitations↵ * under the License.↵ */↵package groovy.generated↵↵import groovy.transform.CompileStatic↵import org.junit.Test↵↵@CompileStatic↵class IndexedPropertyGeneratedTest extends AbstractGeneratedAstTestCase {↵ final Class<?> implicitIndex = parseClass('''import groovy.transform.IndexedProperty↵ class ClassUnderTest {↵ @IndexedProperty↵ String[] names↵ @IndexedProperty↵ List ages↵ }''')↵↵ final Class<?> explicitIndex = parseClass('''import groovy.transform.IndexedProperty↵ class ClassUnderTest {↵ @IndexedProperty↵ String[] names↵ @IndexedProperty↵ List ages↵ String getNames(int idx) { null }↵ Object getAges(int idx) { null }↵ void setNames(int idx, String n) { }↵ void setAges(int idx, Object o) { }↵ }''')↵↵ @Test↵ void test_implicit_getNames_is_annotated() {↵ assertExactMethodIsAnnotated(implicitIndex, 'getNames', String, int.class)↵ }↵↵ @Test↵ void test_implicit_getAges_is_annotated() {↵ assertExactMethodIsAnnotated(implicitIndex, 'getAges', Object, int.class)↵ }↵↵ @Test↵ void test_implicit_setNames_is_annotated() {↵ assertMethodIsAnnotated(implicitIndex, 'setNames', int.class, String)↵ }↵↵ @Test↵ void test_implicit_setAges_is_annotated() {↵ assertMethodIsAnnotated(implicitIndex, 'setAges', int.class, Object)↵ }↵↵ @Test↵ void test_explicit_getNames_is_not_annotated() {↵ assertExactMethodIsNotAnnotated(explicitIndex, 'getNames', String, int.class)↵ }↵↵ @Test↵ void test_explicit_getAges_is_not_annotated() {↵ assertExactMethodIsNotAnnotated(explicitIndex, 'getAges', Object, int.class)↵ }↵↵ @Test↵ void test_explicit_setNames_is_not_annotated() {↵ assertMethodIsNotAnnotated(explicitIndex, 'setNames', int.class, String)↵ }↵↵ @Test↵ void test_explicit_setAges_is_not_annotated() {↵ assertMethodIsNotAnnotated(explicitIndex, 'setAges', int.class, Object)↵ }↵}

    Values
    TokenPositive-pole strength
    Index0.000
    ed0.088
    Property0.000
    ↵0.000
    0.000
    class0.863
    Class0.000
    Under0.000
    Test0.000
    {0.000
    ↵0.000
    0.000
    @0.459
    Index0.000
    ed0.040
    Property0.000
    ↵0.000
    0.000
    String0.000
    []0.000
    names1.977
    ↵0.000
    0.000
    @0.483
    Index0.000
    ed0.085
    Property0.000
    ↵0.000
    0.000
    List0.000
    ages2.420
    ↵0.000
    0.000
    String0.000
    get0.724
    Names0.000
    (0.000
    int0.279
    idx2.043
    )0.000
    {0.000
  11. 2.40 … (Mob mob) { ↵ mob.getMana().get(_manaType).addMaximum(manaBonus); ↵ mob.getMana().get(_manaType …
    All 474 tokens

    /* ↵ * Copyright 2016. Ivan Stuart ↵ * ↵ * Licensed under the Apache License, Version 2.0 (the "License"); ↵ * you may not use this file except in compliance with the License. ↵ * You may obtain a copy of the License at ↵ * ↵ * http://www.apache.org/licenses/LICENSE-2.0 ↵ * ↵ * Unless required by applicable law or agreed to in writing, software ↵ * distributed under the License is distributed on an "AS IS" BASIS, ↵ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ↵ * See the License for the specific language governing permissions and ↵ * limitations under the License. ↵ */ ↵ ↵package com.ivstuart.tmud.state; ↵ ↵import com.ivstuart.tmud.common.Equipable; ↵import com.ivstuart.tmud.constants.ManaType; ↵ ↵public class Gem extends Item implements Equipable { ↵ ↵ private static final long serialVersionUID = -5149906568548224750L; ↵ ↵ protected int manaBonus; ↵ protected int castBonus; ↵ ↵ protected ManaType _manaType; ↵ ↵ public Gem() { ↵ } ↵ ↵ @Override ↵ public void equip(Mob mob) { ↵ mob.getMana().get(_manaType).addMaximum(manaBonus); ↵ mob.getMana().get(_manaType).addCastLevel(castBonus); ↵ } ↵ ↵ public void setLevel(String level_) { ↵ castBonus = Integer.parseInt(level_); ↵ manaBonus = 5 * castBonus; ↵ } ↵ ↵ public void setMana(String mana_) { ↵ _manaType = ManaType.valueOf(mana_); ↵ } ↵ ↵ @Override ↵ public void unequip(Mob mob) { ↵ mob.getMana().get(_manaType).removeMaximum(manaBonus); ↵ mob.getMana().get(_manaType).removeCastLevel(castBonus); ↵ } ↵ ↵}

    Values
    TokenPositive-pole strength
    (0.000
    M0.000
    ob0.000
    mob1.254
    )0.000
    {0.000
    ↵ 0.000
    0.000
    mob2.278
    .0.000
    get0.000
    M0.000
    ana0.000
    ().0.000
    get0.000
    (_0.000
    man0.801
    a0.054
    Type0.000
    ).0.000
    add0.198
    Maximum0.000
    (0.000
    man1.241
    a0.000
    Bon0.000
    us0.000
    );0.000
    ↵ 0.000
    0.000
    mob2.398
    .0.000
    get0.000
    M0.000
    ana0.000
    ().0.000
    get0.000
    (_0.000
    man0.862
    a0.142
    Type0.000
  12. 2.39 … ↵ // }↵ // }↵↵ for(int i = 1; i <= amount; i++) {↵ for(int coin : coins) {↵ if(i >= …
    All 917 tokens

    Q:↵↵Number of ways to form an amount with certain coins↵↵I am trying to solve this problem. http://www.lintcode.com/en/problem/coin-change-ii/#↵This is the standard coin change problem solvable with dynamic programming. The goal is to find the number of ways to create an amount using an infinite set of coins, where each has a certain value. I have created the following solution :↵public int change(int amount, int[] coins) {↵ // write your code here↵ int[] dp = new int[amount + 1];↵ dp[0] = 1;↵↵ // for(int coin : coins) {↵ // for(int i = 1; i <= amount; i++) {↵ // if(i >= coin) dp[i] += dp[i-coin];↵ // }↵ // }↵↵ for(int i = 1; i <= amount; i++) {↵ for(int coin : coins) {↵ if(i >= coin) dp[i] += dp[i-coin];↵ }↵ }↵↵ return dp[amount];↵}↵↵Why does the first for loop give the correct answer, but the second one does not? What am I missing here? Shouldn't the answer be the same? Could you provide a visual to help me "see" why the second for loop is incorrect? ↵When the amount = 8 and coins = [2,3,8] the output is 5 when it should be 3 when using the 2nd for loop's technique which is not correct.↵Thank you. ↵↵A:↵↵Let's consider the loop that works first:↵for(int coin : coins) {↵ for(int i = 1; i <= amount; i++) {↵ if(i >= coin) dp[i] += dp[i-coin];↵ }↵}↵↵Each iteration of the outer loop takes a coin of one value and finds out the number of ways to reach any value between the coin value and amount, adding that coin to the result of the previous iterations.↵Considering your amount = 8 and coins = [2,3,8] example:↵The array is initialized to↵index 0 1 2 3 4 5 6 7 8↵value 1 0 0 0 0 0 0 0 0↵↵which means that without any of the coins, the only amount we can reach is 0, and we have a single way to reach that amount (0 2s, 0 3s, 0 8s).↵Now we find the amounts we can reach with just the coin of value 2:↵index 0 1 2 3 4 5 6 7 8↵value 1 0 1 0 1 0 1 0 1↵↵It's not surprising that we can reach any even amount. For each such amount we have a single way to reach that amount (1 2s to reach 2, 2 2s to reach 4, etc...).↵Now we find the amounts we can reach with coins of value 2 or 3. We can reach an amount k using a single coin of 3 if we already found ways to reach the amount k-3. ↵Below I show the number of ways to reach each value between 0 and 8, and specify how many coins of each type are used in each combination.↵index 0 1 2 3 4 5 6 7 8↵value 1 0 1 1 1 1 2 1 2↵↵ 0x2 - 1x2 0x2 2x2 1x2 3x2 2x2 4x2↵ 0x3 - 0x3 1x3 0x3 1x3 0x3 1x3 0x3↵↵ or or↵↵ 0x2 1x2↵ 2x3 3x3↵↵Finally, in the last iteration we consider the coin of 8. It can only be used to reach the amount 8, so we get the final result:↵index 0 1 2 3 4 5 6 7 8↵value 1 0 1 1 1 1 2 1 3↵↵When you swap the loops:↵for(int i

    Values
    TokenPositive-pole strength
    ↵0.000
    0.000
    //0.000
    0.000
    }0.000
    ↵0.000
    0.000
    //0.000
    }0.000
    ↵↵0.000
    0.000
    for0.047
    (0.000
    int0.000
    i0.935
    =0.000
    10.000
    ;0.000
    i0.714
    <=0.000
    amount1.331
    ;0.000
    i0.675
    ++)0.000
    {0.000
    ↵0.000
    0.000
    for0.000
    (0.000
    int0.000
    coin2.393
    :0.000
    coins1.745
    )0.000
    {0.000
    ↵0.000
    0.000
    if0.000
    (0.000
    i1.315
    >=0.000
Read more

Each token is shaded by positive-pole strength, as a fraction of the neuron's max activation. Each window shows up to 30 tokens before the peak and 10 after it.

Explanation scores on held-out text

How well a judge with only the hypothesis predicts the unit on new text. 0.5 is chance.

Read more

The judge reads 32-token windows of corpus text that the proposer never saw. Detection: it picks the windows that activate the unit. Fuzzing: it checks whether the marked tokens are the active ones. Recorded, not gated.

Detection
0.70
Fuzzing
0.83
Embedding AUROC
0.60

Detection recall by activation strength

0.00
0.67
0.29
0.60
0.60
weakeststrongest

False alarms on inactive windows: 0%.

Judge
deepseek-flash
Held-out windows
306 active of 4,000
Judged
50 detection · 37 fuzzing
Detection outcomes
15 missed · 0 false alarm · 10 hit · 25 correct rejection
Seed
3767286383 · mixed-v8 (11 presets, 500 docs, seed [removed])
Detection windows (50), the explanation's mistakes first
  1. missed 2.20 · sim 0.04 |>assistant↵Devices that are compatible with USB 3.0 include computers, laptops, external hard drives, flash drives, cameras, and some smartphones and
  2. missed 1.89 · sim 0.00 este Foro↵Como me conviene Viajar de Venecia a Grecia?...↵agostina↵Pasaporte VM de
  3. missed 1.69 · sim 0.17 practices related to reading or studying the Bible?<|im_end|>↵<|im_start|>assistant↵Congregationalists do not have
  4. missed 1.53 · sim 0.06 ↵“I--I--return--good for evil, sir--“ he stammered at last. “I bless them that despitefully use me--God
  5. missed 1.25 · sim 0.29 .<|im_end|>↵<|im_start|>user↵Can you provide some examples of how LLAP has been used in real-world scenarios
  6. missed 1.24 · sim 0.14 |im_end|>↵<|im_start|>user↵Yeah, I really appreciated how The Corner portrayed the role of music in inner city life.
  7. missed 1.14 · sim 0.02 are rational?↵↵Keywords: integral distance; rational distance↵↵## Magic square of squares ���★↵↵Author(s): LaBar
  8. missed 1.12 · sim 0.19 <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵Write a research paper
  9. missed 1.12 · sim 0.24 <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵Over 375 heartfelt
  10. missed 1.03 · sim 0.02 -line rope! Please↵let them know you appreciate their support of this podcast by↵buying their stuff - or at least telling them they're cute!
  11. missed 0.91 · sim 0.18 scope of a call to the client's EnumAuxFiles function. When the asset is declared,↵ at that point the enumerating code may choose
  12. missed 0.87 · sim 0.05 time↵|religious authority other than the Qu'ran|↵ijma' (consensus) of the Muslim community↵|concealing faith for self
  13. missed 0.87 · sim 0.11 f(k)$? If not can you provide example? If yes what is $f(k)$↵↵• Do you really mean the number of minimum
  14. missed 0.86 · sim -0.07 until the end of the 1980s. Chile under Pinochet became "infamous for [...] human rights abuses and torture techniques", and in Argentina the 1970s
  15. missed 0.80 · sim -0.01 op draw hordes of hummers. Colors range from shades of orange to apricot, pink and purple - sometimes all on the same plant.
  16. hit 3.33 · sim 0.10 using System.Reflection;↵using System.Runtime.CompilerServices;↵using System.Runtime.InteropServices;↵↵[assembly: AssemblyTitle("
  17. hit 2.02 · sim -0.00 ↵ }↵ else {↵ allClassesLink.style.display = "none";↵ }↵ //-->↵</script>↵
  18. hit 1.85 · sim 0.01 .IWindowService,↵ private documentBase: string) {↵ 'ngInject';↵ }↵↵ $onInit(): void {
  19. hit 1.75 · sim 0.04 if ((flags&FILE_ENUM_CHECK_AWORK1)&&TestAFlag(A_WORK1)) return; // LAM - 4
  20. hit 1.56 · sim 0.02 _web.jpg↵thumbnail: materialtracker_web.jpg↵alt: materialtracker_web↵project-date: April 2014↵client
  21. hit 1.42 · sim 0.13 /* void setInt (in AUTF8String key, in long value); */↵ NS_SCRIPTABLE NS_IMETHOD SetInt(
  22. hit 1.35 · sim 0.16 (non-Javadoc) ↵ * @see patterns.proxy.SubjectInterface#request() ↵ */ ↵ @Override ↵ public abstract
  23. hit 1.30 · sim -0.08 init.d' >> git-auto-pull.spec↵echo 'mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
  24. hit 1.03 · sim 0.15 License.↵ */↵package org.apache.wiki;↵↵import java.util.Collection;↵import java.util.Iterator;↵import java
  25. hit 0.99 · sim 0.04 -auto-pull.spec↵echo "Packager: Senorsen <███████>" >> git-auto-pull.spec
  26. correct rejection 0.33 · sim 0.05 bisho, vipimo, na kujitathmini kulingana na mahitaji yako, kuongeza utumiaji mz
  27. correct rejection 0.19 · sim 0.03 in su seviyeleri beslenmeye bağlı olarak değişir. Bazı göller fazla suların
  28. correct rejection 0.12 · sim -0.00 20, 1985↵Dr Bliss’s pamphlet discusses in detail the Restoration settlement as both an expedient solution to the problems facing Charles II and the
  29. correct rejection 0.05 · sim -0.04 . DiCaprio's subsequent films include, The Man in the Iron Mask (1998), the biographical crime drama Catch Me If You Can (2002),
  30. correct rejection 0.04 · sim 0.07 Tactics and Militia The military’s soldiers were to be trained with the tactics; Khan ensured that they were properly trained in it to excel...
  31. correct rejection 0.00 · sim 0.16 ��ו (וי�� ��י��ל) ול��י (מי��ל ��ו��רי����
  32. correct rejection 0.00 · sim 0.12 이���↵ XML↵↵��이 ���기 ↵ ����������� �����
  33. correct rejection 0.00 · sim 0.08 does things differently. The community, recorded training, live ongoing weekly training sessions, live chat and support options, and business-like approach for beginners to pros
  34. correct rejection 0.00 · sim 0.03 in space. Its no joke.↵↵The Chinese have test it too.↵↵I must lough very loud over it, on the hole world big
  35. correct rejection 0.00 · sim 0.03 now borne by his nephew who dwells in La Puebla. This volcano did not throw out flames for a good many years afterwards, but it flamed
  36. correct rejection 0.00 · sim 0.04 果,这种����工��一��能水����10年�����不会生��
  37. correct rejection 0.00 · sim 0.17 ������다.↵↵다�� �����는 ������� UTF-8 ���
  38. correct rejection 0.00 · sim -0.04 or simply spending an evening at home, I cherish every moment I get to spend with the people who mean the most to me.↵↵There's something
  39. correct rejection 0.00 · sim -0.02 ものである。メン��ーは、バン��名を��けるにあたってまずわかりやすくて
  40. correct rejection 0.00 · sim -0.02 not uncommonly found in British burial-places, are supposed to represent this gem. So also, possibly, are the much larger rings of roughly-baked
  41. correct rejection 0.00 · sim 0.02 new economies and create the largest contiguous land empire in history. By having a democracy similarly present within the Roman Empire and adopting a structure comparable to the satraps
  42. correct rejection 0.00 · sim 0.08 Server 2008 R2, which is due out in May -- to bring home the bacon for the time being.↵Can you provide a summary of Microsoft's approach
  43. correct rejection 0.00 · sim 0.02 ��������은 ����� ������을 �� ���������
  44. correct rejection 0.00 · sim 0.12 ς↵ Charlotte Rutherford - φωτογραφία↵ Sam Coldy - σχέδιο↵↵��έσεις σ
  45. correct rejection 0.00 · sim 0.08 ετέλεσε διευθυντής του ��ραφείου Πολιτικού Σχεδιασ
  46. correct rejection 0.00 · sim 0.01 �이 ��������지��, �����������������
  47. correct rejection 0.00 · sim 0.05 was also observed during short (15-min) exposures, but not in exposures over one hour in length. Our data are consistent with the theory that responses to
  48. correct rejection 0.00 · sim 0.05 ��क सैद्��ांतिक ����प से ��ो��िम मुक्
  49. correct rejection 0.00 · sim 0.06 and produced by the Storch and Beyincé. Musician Aaron Fishbein added the iconic guitar riff and wah wah licks
  50. correct rejection 0.00 · sim -0.04 the healthy cognitive, social and emotional development of young children merits the highest priority of every responsible government, organisation, community, family and individual.
Fuzzing windows (37), dashed tokens were marked for the judge
  1. marks right · judged wrong callback. ↵ * ↵ * @param nameOrTableType - The name of the component to register, or a [[TableType]] object. ↵
  2. marks right · judged wrong avoid↵ // polluting another test case↵ CacheManager.getInstance().removeAllCaches();↵ }↵↵ public void testNonExistant
  3. marks wrong · judged right bs-docs-nav .navbar-toggle:hover {↵ background-color: #463265;↵ border-color: #4632
  4. marks right · judged wrong After running C1-PEPL2, CUST_ID field is not populated on the Payment Event - Tenders tab.↵1- Payment Event U
  5. marks right · judged wrong plot elements of Agatha Christie's novel of the same name. An additional ending is presented in the game which differs from the conclusion of Christie's novel. As
  6. marks wrong · judged wrong key); */↵ NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & key, nsACString & _retval NS_
  7. marks right · judged right ↵ public void testNestedWorkspaceContainsCorrectFileRefs() throws Exception {↵ generator.addFilePath(Paths.get("./grandparent
  8. marks right · judged right ') == -1) {↵ parent.document.title="Uses of Class org.json.HTTP";↵ }↵ }↵
  9. marks wrong · judged wrong public void testNonExistant2()↵ {↵ Collection c = mgr.findReferrers("TestBug");↵↵ assertNull(
  10. marks right · judged right .wrongPassword = true;↵ });↵ }↵ }↵↵ export const loginComponent: angular.IComponentOptions = {↵
  11. marks wrong · judged wrong , value convenience and efficiency, and are open to new technology and innovation.↵↵Competitive Analysis:↵Our startup faces a highly competitive market, with large
  12. marks wrong · judged wrong /systemd/system/git-auto-pull.service' >> git-auto-pull.spec↵echo 'install -m 755 git-
  13. marks right · judged right referrers expected", c );↵ assertTrue( c.size() == 1 && c.contains("Foobar") );↵ }↵↵
  14. marks wrong · judged wrong = 0;↵↵ /* boolean handlerRequiresTerminal (in AUTF8String scheme); */↵ NS_SCRIPTABLE NS_IMETHOD
  15. marks right · judged right nsISupports.h"↵#endif↵↵#ifndef __gen_nsIArray_h__↵#include "nsIArray.h
  16. marks wrong · judged wrong total Muslims|↵most Muslim countries↵Iran, Iraq, Yemen↵none, but four major schools of Muslim law are recognized↵Ithna 'Ashari
  17. marks wrong · judged wrong ↵echo "Requires: git" >> git-auto-pull.spec↵echo "BuildRoot: %{_builddir}/%{name
  18. marks right · judged right span class="keyword">protected</span> <a class="code" href="../../db/d5b/cla
  19. marks right · judged right <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵Write a comprehensive essay
  20. marks wrong · judged wrong <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵Given the text:
  21. marks right · judged right E(k, n_b)$ ...↵238 views↵↵### Solving Vignere Encryption↵↵I'm currently trying to crack a cy
  22. marks wrong · judged wrong and $z^1$ represent the three switches in an off position.Construct a switching circuit representing the polynomial $(x^1+y^1)(x
  23. marks right · judged right icon2.ico" rel="shortcut icon" type="image/x-icon" />↵ <link href="../../../css/narrative-
  24. marks wrong · judged wrong >L&apos;intitulé du lien est explicite hors contexte</li> ↵ <li>Un mécanisme
  25. marks wrong · judged wrong ↵#### Following knowledge from mathematics are needed to solve this word math problem:↵↵Looking for help with calculating roots of a quadratic equation? Do you have a
  26. marks wrong · judged wrong ���������常見,上��地��都是��������期的地�
  27. marks wrong · judged wrong x 9 in | 50 illus.| February 2009↵About MIT Press Ebooks↵The Prism of Grammar↵Every sentence we hear is instantly analyzed by an
  28. marks wrong · judged wrong ago, and the West Indies. It rages "murderously" in Peru, causing a mortality in some epidemics of 60 to 80 per cent.,
  29. marks wrong · judged wrong +\frac{x^2}{1-\frac{x^2}{2}}↵$$↵and $y=\frac{x^2}{1-\
  30. marks wrong · judged wrong unknown" aetiology was significantly different from the combined control group (1.6%) (p < 0.05). Four out of 11 patients remembered a
  31. marks wrong · judged wrong ��� �����↵ �����/���� ����� �����↵ ���
  32. marks wrong · judged wrong the sugar was tedious, painful and often dangerous. Slavery was introduced, providing the labour source to supply Europe’s greed for sugar, but it also
  33. marks wrong · judged wrong some people have shied away from aluminum cookware, just in case. The amount of soda the average American drinks per year is staggering and people should understand that
  34. marks wrong · judged wrong shoes! I don't usually wear heels, but I made a decision a while ago to try and dress less frumpy and to become used to wearing shoes with
  35. marks wrong · judged wrong that and more, plus a chance to meet and mingle with NYC’s public media community!
  36. marks wrong · judged wrong Not a moment was lost, and throughout the night most vigorous and incessant preparation was made. Buonaparte was as much himself in the streets of
  37. marks wrong · judged wrong க்������் ��க�� ������������ ������

Rival readings

Other readings that fit the same examples, each scored on the same probes.

Read more

The proposer wrote the rivals, and the reviewer labelled what each one predicts on each probe. The score is balanced accuracy on the measured probes. Recorded, not gated: the verdict is about the hypothesis alone.

ReadingBalanced accuracyProbesDisagrees with the hypothesis
Hypothesis: Fires on a token that begins a new word or name in lowercase: peak strength (about 1.5-3.0 on a 3.0 scale) is reached on the first token of a lowercase identifier in code (client, configuration, passwordSeed->password, par1DataOutput->par, transcriptDir->transcript) and on lowercase identifiers or names in code-like surroundings. It stays at or below the activity line on capitalized tokens (type and class names: Client, Pattern, Version, Name, Data, Audio), on the pieces that continue a word (Version in oldVersion, Val in readVal, Dir in transcriptDir), on the highest-frequency closed-class words (the, and, of, if, that, for), on punctuation and whitespace, and on ordinary lowercase words inside flowing prose ("The client sent the configuration to the server." peaks at 0.04). best 0.95 30 —
Rival 1: A context-blind lowercase-token detector: it fires on any token whose surface form begins with a lowercase letter, so the same words in flowing prose (the client, the configuration) fire as strongly as they do in code, contrary to this hypothesis's code/prose split. 0.66 30 14
Rival 2: An induction or repetition detector like L1/N460+: it fires on the second and later uses of a name already read in the preceding tens of tokens, so a first mention stays quiet and only the repeat is strong, whatever the case. 0.69 30 8
Rival 3: A subword-position detector: it responds to any piece that starts a new subword unit rather than to case or code, so a CamelCase continuation such as Version in oldVersion or Name in distName should fire while a single-token word such as widget should not. 0.53 30 11

Activation and mechanism

Activation distribution

[0, 0.0998): 195549 [0.0998, 0.2): 836 [0.2, 0.3): 620 [0.3, 0.399): 545 [0.399, 0.499): 368 [0.499, 0.599): 269 [0.599, 0.699): 238 [0.699, 0.799): 220 [0.799, 0.899): 171 [0.899, 0.998): 146 [0.998, 1.1): 138 [1.1, 1.2): 124 [1.2, 1.3): 112 [1.3, 1.4): 94 [1.4, 1.5): 86 [1.5, 1.6): 75 [1.6, 1.7): 94 [1.7, 1.8): 63 [1.8, 1.9): 40 [1.9, 2): 66 [2, 2.1): 38 [2.1, 2.2): 39 [2.2, 2.3): 23 [2.3, 2.4): 25 [2.4, 2.5): 12 [2.5, 2.6): 4 [2.6, 2.7): 1 [2.7, 2.8): 3 [2.8, 2.9): 1 [2.9, 3): 2 0.00 3.00

Positive-pole strength per token; bar height is log(1 + count).

Mechanism

Claimed retrospective: responds to tokens already in context.

Input attribution

0 back
14%
1 back
37%
2–4 back
14%
5–16 back
14%
17–64 back
12%
65+ back
8%
  • #1 at old: (-1 0.48old0 0.21if-2 0.08 -5 0.03 new-9 0.02
  • #2 at client: -1 0.35 -2 0.18client0 0.18Client-4 0.11Plugin-9 0.07
  • #3 at configuration: (-1 0.52configuration0 0.23Dir-2 0.10Base-3 0.04configuration-46 -0.03
  • #4 at audio: -1 0.58audio0 0.18 -2 0.10Handler-4 0.06 Speech-9 0.03
  • #5 at read: -1 0.48 -2 0.15read0 0.14Stream-6 0.10::-5 0.04

Shares of the gap to <|padding|> at every position but the first · converged on 5 of 5 · mean 19.6 tokens back · agreement with replacing one token at a time ρ = 0.96 · reported, not gated

Vocabulary projection

The tokens that this unit's output raises and lowers most.

Jacobian lens

camera · z = +2.56 · #1 promoted camera visibility · z = +2.50 · #2 promoted visibility annotation · z = +2.45 · #3 promoted annotation annotations · z = +2.43 · #4 promoted annotations )</ · z = +2.32 · #5 promoted )</ documentation · z = +2.31 · #6 promoted documentation detection · z = +2.31 · #7 promoted detection transcript · z = +2.31 · #8 promoted transcript )]; · z = +2.29 · #9 promoted )]; observ · z = +2.28 · #10 promoted observ � · z = -8.42 · #10 suppressed � � · z = -8.42 · #9 suppressed � � · z = -8.42 · #8 suppressed � � · z = -8.54 · #7 suppressed � � · z = -8.56 · #6 suppressed � �� · z = -8.61 · #5 suppressed �� � · z = -8.80 · #4 suppressed � � · z = -8.84 · #3 suppressed � � · z = -8.85 · #2 suppressed � � · z = -8.87 · #1 suppressed � -10 -5 0 +5 +10

Logit lens

�� · z = +6.76 · #1 promoted �� ␣killer · z = +4.64 · #2 promoted ␣killer istes · z = +4.55 · #3 promoted istes |\ · z = +4.48 · #4 promoted |\ ycin · z = +4.42 · #5 promoted ycin aeda · z = +4.35 · #6 promoted aeda chos · z = +4.34 · #7 promoted chos � · z = +4.31 · #8 promoted � � · z = +4.27 · #9 promoted � � · z = +4.20 · #10 promoted � ␣2017 · z = -3.76 · #10 suppressed ␣2017 ␣squares · z = -3.79 · #9 suppressed ␣squares ␣2018 · z = -3.79 · #8 suppressed ␣2018 ␣Exchange · z = -3.83 · #7 suppressed ␣Exchange algebra · z = -3.84 · #6 suppressed algebra tw · z = -3.86 · #5 suppressed tw ␣monol · z = -4.07 · #4 suppressed ␣monol ␣2016 · z = -4.10 · #3 suppressed ␣2016 enso · z = -4.18 · #2 suppressed enso vist · z = -4.21 · #1 suppressed vist -10 -5 0 +5 +10
promotes suppresses Hover a bar for its value.
Values
#Jacobian lens promotessuppressesLogit lens promotessuppresses
1 camera +2.56 � -8.87 �� +6.76 vist -4.21
2 visibility +2.50 � -8.85 killer +4.64 enso -4.18
3 annotation +2.45 � -8.84 istes +4.55 2016 -4.10
4 annotations +2.43 � -8.80 |\ +4.48 monol -4.07
5 )</ +2.32 �� -8.61 ycin +4.42 tw -3.86
6 documentation +2.31 � -8.56 aeda +4.35 algebra -3.84
7 detection +2.31 � -8.54 chos +4.34 Exchange -3.83
8 transcript +2.31 � -8.42 � +4.31 2018 -3.79
9 )]; +2.29 � -8.42 � +4.27 squares -3.79
10 observ +2.28 � -8.42 � +4.20 2017 -3.76

Top-10 overlap 0% · cos(w, J·w) 0.09 · kurtosis 31.0 (Jacobian) / 3.7 (logit) · 100 prompts

Read more

The output direction is read through the final norm and the unembedding. The Jacobian lens first carries it to the last layer. Bar length is the token's z-score over the vocabulary, and ␣ marks a space. A kurtosis near 3 means no specific set of tokens.

Patchscope

The model's own description of this unit's output, with no examples.

Read more

The unit's direction replaces the residual stream after the named layer, at the ? of each prompt. It is scaled to each multiple of the norm it replaces, and the model continues greedily. The control injects a random direction, so text that both rows share comes from the prompt. Read after the proposer answered, and shown to neither agent. Reported, not gated.

PromptLayer ×1×2×4
category 1 unit politicsnomusic
control politicsyesyes
meaning 1 unit not a word that is used in the context of the wordnot a word that is used in the context of the wordnot a word that is used in the context of the word
control not a word that is not a word that is not anot a word that is not a word that is not anot a word that is not a word that is not a

Hover a prompt's name for its text.

Steering

What the model writes with this pole ablated, untouched, and clamped. Text that matches the baseline is faded.

Read more

The prompts are neutral. The clamp is a multiple of the top activation in the scan (3.00), at every token, and decoding is greedy. Drift at ×1 or ×2 shows what the pole makes the model write. Drift only at ×4 is off-distribution. At most 24 new tokens. Taken after the proposer answered, and shown to neither agent. Reported, not gated.

The weather today is …
Ablated

a good place to start. The weather today is a good place to start. The weather today is

Baseline

a good place to start. The weather today is a good place to start. The weather today is

Clamped ×1

the most important day of the week, and the most important day of the week. The weather today is the

Clamped ×2

the most important day of the day of the day of the day of the day of the day of the day of the

Clamped ×4

not in the mouth, and the weather and the the the the

I went to the shop and bought …
Ablated

a new one. I had to go to the shop and bought a new one. I had to go to the shop

Baseline

a new one. I had to go to the shop and bought a new one. I had to go to the shop

Clamped ×1

a new one. "I'm not sure what you mean," he said. "I'm not

Clamped ×2

a new one. "I'm not sure if it's a new one, but I'm not sure if

Clamped ×4

the a. and the the the the the

The best way to learn is …
Ablated

to learn the best of the best. The best way to learn is to learn the best of the best of

Baseline

to learn the best of the best. The best way to learn is to learn the best of the best of

Clamped ×1

to learn the best of the best. The best way to learn is to learn the best of the best of

Clamped ×2

to learn the best I'm not sure if I'm right, but I'm not sure if I'm right

Clamped ×4

to the most.

Once upon a time, …
Ablated

the "The only thing that I can do is to get the "The only thing that I can

Baseline

the "The only thing that I can do is to get the "The only thing that I can

Clamped ×1

the first time you have a question, "How do I get the answer?" "I'm not sure."

Clamped ×2

the user is not able to access the user's computer. The user is not able to access the computer,

Clamped ×4

the user is not in the user in the user in in in in

The report concluded that …
Ablated

the plaintiffs had been in the custody of the Department of Human Services for several years, and that

Baseline

the plaintiffs had been in the custody of the Department of Human Services for several years, and that

Clamped ×1

the plaintiff was not a party to the report, and that the plaintiff was not a party to the

Clamped ×2

the report was not a "significant" of the report, and the report was not a "significant" of the report

Clamped ×4

the report was not in the report and the report and the report and the the

WordNet specificity

AUROC 0.55 for act.n.02 against its sibling categories. Active on 0% of category words and 0% of sibling words.

Read more

The category is act, the largest category of the peak words. Each word is measured in 3 neutral sentences, and peak words are left out. AUROC is the chance that a category word is stronger than a sibling word, so 0.5 is no difference. Strengths are fractions of the top activation in the scan. Measured after the proposer answered, and shown to neither agent. Reported, not gated.

act

attempt 0.00means 0.00use 0.00battle 0.00procedure 0.00occupation 0.09survey 0.00work 0.02war 0.05question 0.00training 0.02election 0.01course 0.04experiment 0.00function 0.00aid 0.00job 0.00development 0.00thing 0.02test 0.04accomplishment 0.03research 0.01analysis 0.00murder 0.06practice 0.00shooting 0.00duty 0.00fight 0.00activity 0.02selling 0.00undertaking 0.02education 0.00measure 0.00way 0.00game 0.03glance 0.00employment 0.03mistake 0.00production 0.00behavior 0.00

Siblings

time 0.02Fall 0.00sale 0.03miracle 0.00movie 0.02makeup 0.02might-have-been 0.00migration 0.00nonevent 0.00zap 0.01case 0.00treatment 0.00Ascension 0.00performance 0.00change 0.00requirement 0.00Assumption 0.00contest 0.00victory 0.03lawsuit 0.00Resurrection 0.00political campaign 0.01death 0.07payment 0.01Transfiguration 0.00act 0.02fire 0.00management 0.00affair 0.00noise 0.00commercial enterprise 0.00play 0.01onset 0.02integration 0.02ceremony 0.00result 0.02punishment 0.04funeral 0.01wave 0.00conflict 0.00

Wiring

The units that write most directly into this pole (upstream) and read most directly from it (downstream). See its circuit.

Read more

"Directly" means along the residual stream, through no other unit. Linked units have pages in the registry. Reported, not gated.

From the weights. Virtual weights, with each norm's gain folded in. They rank units but have no absolute scale. Each number is how much one unit reads of the other's write. It is signed when one vector reads another (+ means a positive activation raises the read), and a norm otherwise. Heads count through their OV circuit upstream, and through their Q, K and V reads downstream. Channels are on hover.

From activations. Averaged over this pole's peak on 18 of the review's prompts where it fired. Upstream: the first-order change in its strength when a unit's direct write is removed (+ excites). Downstream: the change in a later unit when this pole's write is removed from that unit's input alone (one of Q, K or V for a head).

From the weights

Upstream neurons
L0/N787 -0.23
L0/N420 -0.162
L0/N2007 -0.151
L0/N392 -0.141
L0/N1438 -0.135
L0/N1277 -0.132
L0/N1006 -0.11
L0/N1267 -0.0996
L0/N1218 -0.0976
L0/N1359 -0.0862
Upstream heads
L0/H0 +0.184
L0/H7 +0.175
L0/H6 +0.165
L0/H2 +0.139
L0/H1 +0.138
L0/H4 +0.106
L0/H5 +0.0834
L0/H3 +0.0497
Downstream neurons
L2/N181 -0.229
L3/N633 -0.188
L5/N213 -0.179
L5/N297 -0.179
L5/N348 -0.173
L2/N214 -0.154
L2/N1101 -0.153
L3/N689 +0.148
L4/N2002 -0.14
L3/N706 -0.134
Downstream heads
L5/H3 q +16.4
L5/H6 q +15.5
L5/H4 q +12.9
L4/H1 q +11.6
L5/H2 q +9.93
L4/H2 q +7.17
L4/H3 q +6.8
L5/H0 q +6.3
L5/H1 q +6.26
L4/H4 q +3.87

From activations

Upstream neurons
L0/N1195 -0.136
L0/N1218 -0.0875
L0/N787 +0.0832
L0/N2007 +0.0604
L0/N420 +0.057
L0/N392 +0.052
L0/N1277 +0.0511
L0/N1438 +0.0467
L0/N154 +0.0432
L0/N660 -0.0318
Upstream heads
L0/H1 +0.479
L0/H7 +0.43
L0/H0 +0.31
L0/H2 +0.31
L0/H3 -0.0758
L0/H4 +0.0755
L0/H5 +0.0706
L0/H6 -0.0424
Downstream neurons
L5/N297 -0.649
L5/N348 -0.629
L2/N633 +0.446
L5/N407 -0.346
L2/N1746 +0.334
L2/N367 +0.319
L3/N345 +0.295
L5/N1163 +0.267
L5/N472 +0.259
L3/N632 +0.258
Downstream heads
L2/H7 v +0.375
L2/H2 v +0.247
L3/H3 k +0.178
L2/H5 v +0.123
L2/H6 v +0.118
L5/H2 v +0.107
L5/H7 v +0.105
L3/H4 v +0.103
L4/H6 q +0.0956
L2/H3 v +0.0942

Covariance and confounds

Confounds

Token identity R²
0.59
Position R²
0.01
Frequency r
0.11
Language R² · MI
0.00 · 0.007 bits
Source R² · MI
0.06 · 0.034 bits
Programming language R² · MI
0.02 · 0.043 bits
Syntax node R² · MI
0.08 · 0.117 bits
Bracket depth R² · MI
0.02 · 0.022 bits
Round depth R² · MI
0.01 · 0.009 bits
Indent depth R² · MI
0.02 · 0.027 bits
Syntax construct R² · MI
0.02 · 0.027 bits
Personal data R² · MI
0.00 · 0.000 bits
Toxicity R² · MI
0.00 · 0.000 bits
Hate speech R² · MI
0.00 · 0.000 bits
Names R² · MI
0.00 · 0.000 bits
Part of speech R² · MI
0.02 · 0.021 bits
Postal addresses R² · MI
0.00 · 0.000 bits
Best trivial baseline
probe length ≥ 30 tokens · 0.78
Hypothesis
0.97 ✓

configurationmobbufferpasswordpattern db bs idxcast avail buffercoc

Co-activating neuron poles

Pole Lift ≥ Both ρ r
N1801+ 32.6 513 +0.31 +0.31
N286+ 28.2 446 +0.34 +0.32
N520+ 26.1 415 +0.31 +0.31
N471+ 25.2 402 +0.16 +0.24
N586+ 20.6 332 +0.25 +0.26
N1216+ 18.5 300 +0.24 +0.28
N460+ 17.5 285 +0.26 +0.28
N1373+ 17.0 277 +0.18 +0.20
N1594+ 16.0 262 +0.15 +0.19
N233+ 15.6 256 +0.20 +0.19
Read more

Ranked by the 95% lower bound of co-activation lift: how much more often a pole fires when this one does, with chance coincidences discounted. ρ ranks the values, so heavy tails don't sway it.

Joint ablation

Partners
N1801, N286, N520
KL pole alone
3.10e-03
KL partners
7.05e-03
KL together
9.11e-03
Redundancy ratio
0.66

The partners don't change the pole's effect much.

Run details

Submitted by
deepseek-flash
Reviewed by
deepseek-flash (same model as the proposer: not an independent review)
Reviewed at
2026-11-21 00:22 UTC
Max activation
2.9953
Selection
random (seed 825063467)
Corpus
mixed-v8 (11 presets, 500 docs, seed [removed]) · 200,002 tokens · seeded sample of 332/500 docs (≤ 200,000 tokens, seed 0) · 1024-token windows every 512 tokens · licence HuggingFaceFW/fineweb-edu: odc-by; allenai/c4: odc-by; monology/pile-uncopyrighted: other; Salesforce/wikitext: cc-by-sa-3.0, gfdl; codeparrot/github-code-clean: apache-2.0; wikimedia/wikipedia: cc-by-sa-3.0, gfdl; open-web-math/open-web-math: odc-by; HuggingFaceH4/ultrachat_200k: mit; HuggingFaceFW/fineweb-2: odc-by; allenai/peS2o: odc-by; emozilla/pg19: apache-2.0
Languages
en 59% · ko 7% · zh 5% · hi 4% · el 4% · ta 3% · bn 3% · ar 2% · other 14%
Model revision
a39f36b100fe · float32
Ran on
scan mps:0 · review mps:0
Run cost
28.3 min (slowest: proposer, 8.5 min) · peak 5.4 GB RAM · 4 LLM calls · 3,816,548 + 237,591 tokens · $0.17