Open Interpretability Models Contributors Research Posts About

EleutherAI/pythia-70m · L1/N394 · 20261124T030456Z

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

#1 · positive pole + VERIFIED strong evidence for · 1.00 counts toward status 2026-11-24 · 20261124T030456Z

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) Her audio buffer filled during the long session, so the widget showed each order quantity beside every coin. passed · 0.000 (0% of max) and of if that for the and of if that for the and of if that for the and of that passed · 0.000 (0% of max) Please order dinner early tonight so the kitchen can plan each course without rushing dessert. passed · 0.000 (0% of max) Critics called the novel a slow read for rainy weekends, dull in parts yet oddly tender. passed · 0.000 (0% of max) Client Pattern Version Name Data Audio Manager Server Builder Handler Plugin Stream passed · 0.000 (0% of max) OldVersion DistName ReadVal TranscriptDir PasswordSeed DataOutput ByteStream passed · 0.000 (0% of max) CREATE_COLD_HD_ACCOUNT INDEXED_PROPERTY BYTE_STREAM DATA_OUTPUT NEW_VERSION OLD_VALUE passed · 0.000 (0% of max) She whispered the word "return" before leaving the stage, then bowed twice to loud applause. passed · 0.000 (0% of max) She tried to buffer the shock by breathing slowly, counting tiles across the cold floor. passed · 0.020 (1% of max) // return early if done; return late if busy; return never if unsure today passed · 0.041 (1% of max) The client sent the configuration to the server after lunch, and the manager thanked the courier politely. passed · 0.108 (4% of max) The purchase order arrived Tuesday with every invoice stamped, counted, sealed, and filed away. passed · 0.108 (4% of max) The Client and the Pattern met the Manager near the Server after the Handel concert. passed · 0.191 (6% of max) if (Version == Pattern && Data == Name || Audio == Client) { Version = Pattern; } passed · 0.218 (7% of max) The client called again because the client felt the first client had misplaced every client record yesterday. passed · 0.517 (17% of max) { ( ) } ; , : [ ] = == + - * / % & | ! ? . < > passed · 0.582 (19% of max) return 0; return 1; return 2; return 3; return 4; return 5; return 6; return 7; passed · 0.702 (23% of max) El cliente envio la configuracion al servidor despues del almuerzo con el gerente. passed · 0.728 (24% of max) He wrote the word "configuration" on the whiteboard and underlined each quiet syllable twice today. failed · 1.208 (40% of max) // client configuration updated yesterday morning after every backup finished without error passed · 1.603 (54% of max) handlePacket sock buf = do { packetSize <- recv sock buf; storeBuf buf packetSize; } passed · 1.611 (54% of max) SELECT quantity, discount FROM cartItems WHERE sessionId = 42 AND coinFlag = 1; passed · 1.820 (61% of max) export backupDir=/var/data; mkdir -p $backupDir/archive; cp ledgerFile $backupDir/ledgerFile; passed · 1.962 (66% of max) const invoiceTotal = cartSubtotal + shippingFee - couponValue; ledgerDb.save(invoiceTotal); passed · 2.033 (68% of max) orderQueue := make(chan packet, retryLimit); go dispatchWorker(orderQueue, ledgerFile); passed · 2.057 (69% of max) widgetFactory = Gadget.new(canvas); widgetFactory.render(previewPane); widgetFactory.sync(ledgerDb); passed · 2.124 (71% of max) let widget = mkWidget(canvas); widget.draw(panel); widget.sync(ledgerDb); widget.show(); passed · 2.223 (74% of max) function refreshSession(store) { const sessionToken = store.loadCookie(); return store.fetch(sessionToken); } passed · 2.235 (75% of max) fn openLog(logPath: &str) { let checkpointFile = File::open(logPath).unwrap(); } passed · 2.349 (78% of max) val downloadManager = ctx.getService(managerName); downloadManager.enqueue(parcelRequest); 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 sent the configuration to the server after lunch, and the manager thanked the courier politely.
Canonical prose sentence with trigger words client/configuration but no code context; hypothesis predicts quiet while rival 1 and rival 3 predict fire.
inactive 0.041
✓ hard negative Her audio buffer filled during the long session, so the widget showed each order quantity beside every coin.
Flowing prose containing six claimed triggers (audio, buffer, session, widget, order, quantity, coin) with no code surroundings; hypothesis predicts inactive.
inactive 0.000
✓ hard negative The client called again because the client felt the first client had misplaced every client record yesterday.
Repeated trigger client in prose; hypothesis predicts quiet on all mentions while the induction rival predicts the repeats fire.
inactive 0.218
✓ hard negative if (Version == Pattern && Data == Name || Audio == Client) { Version = Pattern; }
Code line with only capitalized identifiers plus closed-class if; hypothesis predicts inactive while rivals 1 and 3 predict fire.
inactive 0.191
✓ hard negative He wrote the word "configuration" on the whiteboard and underlined each quiet syllable twice today.
Trigger configuration mentioned inside quotes in prose rather than used as a code identifier; hypothesis predicts inactive.
inactive 0.728
✗ hard negative // client configuration updated yesterday morning after every backup finished without error
Trigger words appear only inside a code comment, not as identifiers; hypothesis predicts inactive while lowercase-detector rival predicts fire.
inactive 1.208
✓ hard negative and of if that for the and of if that for the and of if that for the and of that
Probe of only highest-frequency closed-class words the hypothesis names as inactive; context-blind lowercase rival predicts fire.
inactive 0.000
✓ hard negative { ( ) } ; , : [ ] = == + - * / % & | ! ? . < >
Pure punctuation and delimiter probe with none of the claimed content; all readings predict inactive.
inactive 0.517
✓ hard negative Please order dinner early tonight so the kitchen can plan each course without rushing dessert.
Trigger order used as a verb in prose, testing part-of-speech change; hypothesis predicts inactive in prose either way.
inactive 0.000
✓ hard negative The purchase order arrived Tuesday with every invoice stamped, counted, sealed, and filed away.
Trigger order used as a noun in prose, paired with the verb sense above; hypothesis predicts inactive.
inactive 0.108
✓ hard negative Critics called the novel a slow read for rainy weekends, dull in parts yet oddly tender.
Trigger read used as a noun in prose rather than a code identifier; hypothesis predicts inactive.
inactive 0.000
✓ hard negative Client Pattern Version Name Data Audio Manager Server Builder Handler Plugin Stream
Capitalized type-like tokens only, no lowercase identifiers; hypothesis and all rivals predict inactive since each is a single token.
inactive 0.000
✓ hard negative OldVersion DistName ReadVal TranscriptDir PasswordSeed DataOutput ByteStream
PascalCase compounds whose continuations (Version, Name, Val, Dir) start new subword units; hypothesis predicts inactive while subword rival predicts fire.
inactive 0.000
✓ hard negative CREATE_COLD_HD_ACCOUNT INDEXED_PROPERTY BYTE_STREAM DATA_OUTPUT NEW_VERSION OLD_VALUE
All-caps code constants with no lowercase identifier start; hypothesis predicts inactive while subword-piece rival predicts fire.
inactive 0.000
✓ hard negative The Client and the Pattern met the Manager near the Server after the Handel concert.
Capitalized triggers mixed with lowercase closed-class prose words; hypothesis predicts inactive while rival 1 fires on the lowercase words.
inactive 0.108
✓ hard negative El cliente envio la configuracion al servidor despues del almuerzo con el gerente.
Spanish prose translation keeping the topic and cognate triggers; hypothesis claims prose is quiet whatever the language.
inactive 0.702
✓ hard negative return 0; return 1; return 2; return 3; return 4; return 5; return 6; return 7;
Return used as a keyword with repetition and no identifier use; hypothesis predicts inactive while induction rival predicts the repeats fire.
inactive 0.582
✓ hard negative She whispered the word "return" before leaving the stage, then bowed twice to loud applause.
Return mentioned inside a quoted string in prose rather than as a keyword or identifier; hypothesis predicts inactive.
inactive 0.000
✓ hard negative // return early if done; return late if busy; return never if unsure today
Return inside a comment with repetition; hypothesis predicts inactive while repetition rival predicts fire.
inactive 0.020
✓ hard negative She tried to buffer the shock by breathing slowly, counting tiles across the cold floor.
Trigger buffer used as a verb in prose; hypothesis predicts inactive outside code identifiers.
inactive 0.000
✓ positive holdout function refreshSession(store) { const sessionToken = store.loadCookie(); return store.fetch(sessionToken); }
JavaScript holdout with a novel lowercase identifier sessionToken in code; hypothesis predicts fire on its first token.
active 2.223
✓ positive holdout fn openLog(logPath: &str) { let checkpointFile = File::open(logPath).unwrap(); }
Rust holdout with first-mention lowercase identifier checkpointFile; hypothesis predicts fire while induction rival predicts quiet.
active 2.235
✓ positive holdout orderQueue := make(chan packet, retryLimit); go dispatchWorker(orderQueue, ledgerFile);
Go holdout with novel lowercase identifiers orderQueue and ledgerFile; hypothesis predicts fire on first mention.
active 2.033
✓ positive holdout const invoiceTotal = cartSubtotal + shippingFee - couponValue; ledgerDb.save(invoiceTotal);
TypeScript holdout paraphrasing the quantity/order theme with new identifier invoiceTotal; hypothesis predicts fire.
active 1.962
✓ positive holdout SELECT quantity, discount FROM cartItems WHERE sessionId = 42 AND coinFlag = 1;
SQL holdout in another programming language with lowercase identifiers quantity and sessionId; hypothesis predicts fire.
active 1.611
✓ positive holdout export backupDir=/var/data; mkdir -p $backupDir/archive; cp ledgerFile $backupDir/ledgerFile;
Shell holdout with lowercase variable backupDir used as an identifier; hypothesis predicts fire on first mention.
active 1.820
✓ positive holdout widgetFactory = Gadget.new(canvas); widgetFactory.render(previewPane); widgetFactory.sync(ledgerDb);
Ruby-style holdout with novel identifier widgetFactory in code surroundings; hypothesis predicts fire.
active 2.057
✓ positive holdout val downloadManager = ctx.getService(managerName); downloadManager.enqueue(parcelRequest);
Kotlin holdout with novel identifier downloadManager; hypothesis predicts fire on its first token.
active 2.349
✓ positive holdout let widget = mkWidget(canvas); widget.draw(panel); widget.sync(ledgerDb); widget.show();
Single-token identifier widget in fresh code; hypothesis predicts fire while the subword rival predicts quiet for single-token words.
active 2.124
✓ positive holdout handlePacket sock buf = do { packetSize <- recv sock buf; storeBuf buf packetSize; }
Haskell-style holdout with novel lowercase identifiers packetSize and storeBuf; hypothesis predicts fire on first mention.
active 1.603
✓ 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.64
Fuzzing
0.54
Embedding AUROC
0.70

Detection recall by activation strength

0.20
0.40
0.00
0.40
0.60
weakeststrongest

False alarms on inactive windows: 4%.

Judge
muse-spark-1.3
Held-out windows
277 active of 4,000
Judged
50 detection · 37 fuzzing
Detection outcomes
17 missed · 1 false alarm · 8 hit · 24 correct rejection
Seed
2893487233 · mixed-v8 (11 presets, 500 docs, seed [removed])
Detection windows (50), the explanation's mistakes first
  1. missed 2.06 · sim 0.12 start|>assistant↵In a world overrun with gargantuan beasts, survival had become an instinct rather than a choice. For one young boy,
  2. missed 1.80 · sim 0.16 ?<|im_end|>↵<|im_start|>assistant↵Search engines prioritize trust and relevancy when ranking medical organizations. They
  3. missed 1.66 · sim 0.13 for Erlang nodes. Erlang nodes can↵ * ask this server for the listening port of other Erlang nodes on the↵ * machine EPMD
  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.51 · sim 0.19 high-level information about the assets, and one mutator method - SetPath, ↵ is used at the time of declaration to retarget an asset
  6. missed 1.31 · sim 0.18 ↵### Can curve25519 keys be used with ed25519 keys?↵↵Can curve25519 keys be used with ed25519? I'd prefer
  7. missed 1.30 · sim 0.06 ycombinator.com/item?id=1834671)↵↵Comments there are closed, of course, so if you have anything to add it
  8. missed 1.23 · sim 0.01 & formulas to aid in your journey to health!↵As a Lyme sufferer I have tried tons of supplements, and am sick of taking pills all
  9. missed 1.17 · sim -0.01 plane ���★★↵↵Author(s): Ulam↵↵Problem   Does there exist a dense set so that all pairwise distances between points in
  10. missed 1.15 · sim 0.01 ors. Friedrich Wilhelm Nikolaus Karl, known informally as "Fritz", was the only son of Emperor Wilhelm I and was raised in his family's
  11. missed 1.12 · sim 0.20 <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵1. User registration
  12. missed 1.04 · sim 0.13 terms of the E divergence by Yang, Schaefer, and Poor [arXiv:1706.03866 [cs.IT]]. In the latter,
  13. missed 1.00 · sim 0.19 Calc — Enterprise-ready LibreOffice.↵ EtherCalc (successor to SocialCalc, which is based on wikiCalc)↵
  14. missed 0.93 · sim 0.12 /DaysUntilBirthday/DaysUntilBirthday.xcodeproj↵ตัวจัดกา��แ���
  15. missed 0.91 · sim 0.02 werkende stof van het medicijn. Het medicijn haal je op bij de apotheek. Aan de hand van het recept, z
  16. missed 0.85 · sim -0.00 を開���。同年6月にはテレビ��日系列『musicる TV』のコー��ー��のレ
  17. missed 0.78 · sim 0.13 essay. Students learn library (book and database) research skills. Students increase their reading comprehension and analytical skills, and use correct academic style (MLA, APA
  18. false alarm 0.12 · sim 0.12 package org.jgolek;↵↵import java.io.File;↵↵import org.jgolek.YamlToMaven
  19. hit 2.41 · sim -0.06 GetInt(const nsACString & key, PRInt32 *_retval NS_OUTPARAM) = 0;↵↵ /* float getFloat (in A
  20. hit 2.01 · sim 0.06 ↵HAL_Pwm_Enable_8195a(↵ HAL_PWM_ADAPTER *pPwmAdapt↵);↵↵
  21. hit 1.94 · sim 0.08 ↵ HAL_PWM_ADAPTER *pPwmAdapt↵);↵↵extern _LONG_CALL_ void ↵HAL_Pwm
  22. hit 1.53 · sim 0.24 )↵↵@property (nonatomic, readonly) CGFloat majorSwipeDisplacement;↵↵@end
  23. hit 1.52 · sim -0.01 /systemd/system/git-auto-pull.service' >> git-auto-pull.spec↵echo 'install -m 755 git-
  24. hit 0.98 · sim 0.05 bs-docs-nav .navbar-toggle:hover {↵ background-color: #463265;↵ border-color: #4632
  25. hit 0.95 · sim 0.17 for the specific language governing permissions and limitations↵ * under the License.↵ */↵↵package com.facebook.buck.apple.project_generator;↵
  26. hit 0.79 · sim 0.18 ero General Public License as</span>↵<a name="l00008"></a>00008 <span class="comment"> * published by the Free
  27. correct rejection 0.17 · sim -0.05 . Epoxy flooring in san diego, ca is one of the most durable flooring solutions available for concrete floors and commercial settings epoxy can easily last a
  28. correct rejection 0.11 · sim 0.06 ��部、����非�������地��、以及中国新��等地,多�
  29. correct rejection 0.08 · sim 0.02 Navy. Il fut construit par Vickers-Armstrongs et lancé le .↵↵Le sous-marin a été équipé
  30. correct rejection 0.05 · sim -0.08 built irrigation works and developed several projects aimed at increasing the economic welfare of his people.↵Nawab Muhammad Yusuf 'Ali Khan, son and successor
  31. correct rejection 0.05 · sim -0.04 History of the Galveston Bay Area↵↵For a period of over 7000 years, humans have inhabited the Galveston Bay Area in what is now
  32. correct rejection 0.01 · sim 0.16 urps that pervade today’s cutting-edge narrative audio. Also, audience members will play a game Ragusea is calling “Auto-T
  33. correct rejection 0.00 · sim 0.03 而��現有的��法成����方��名。後��,原有的��者��使用
  34. correct rejection 0.00 · sim 0.06 With bits of dice allocation (a la Claustrophobia) and paragraph reading (Tales of the Arabian Nights) in the mix and some decent variety
  35. correct rejection 0.00 · sim 0.09 ��ு ������்��ு��் ��த��்.↵2014-15 ����ி
  36. correct rejection 0.00 · sim 0.10 this topic.↵↵#### Sabine62↵↵• Fractal Frankfurter↵• Posts: 645↵↵#### Re: Fractal
  37. correct rejection 0.00 · sim -0.01 as a Superfund site. The canal's history has paralleled the decline of domestic shipping via water. The canal is still used for waterborne transportation of goods
  38. correct rejection 0.00 · sim 0.03 ����交配����生的����利����現有���重的����
  39. correct rejection 0.00 · sim -0.04 show at QPAC in Brisbane on Friday December 02, before visiting Tweed Heads, Hobart, Melbourne, Canberra, Sydney, Adelaide and
  40. correct rejection 0.00 · sim 0.13 history. Make ready for such an enterprise slowly. Patiently collect your anecdotes and facts. Accept the opinions of other writers with reserve." As if to soften
  41. correct rejection 0.00 · sim -0.03 が不可��の��者さんについては、��存��の���������機関�
  42. correct rejection 0.00 · sim 0.07 reader can tell, is a long ankle length skirt. He/she do not yet know how it is made, whether as a skirt or as a wrap,
  43. correct rejection 0.00 · sim 0.02 of changes in the tumor that key techniques such as Positron Emission Tomography (PET), Magnetic Resonance Imaging (MRI), and Computed Tomography
  44. correct rejection 0.00 · sim 0.04 past. I had hoped to have space in which to do this, and it is with real regret I am compelled to omit the section I had written on this
  45. correct rejection 0.00 · sim -0.02 , because she is the only one who knows and she has been there since the beginning, when I first found out."↵"I haven't told my parents
  46. correct rejection 0.00 · sim 0.13 ; upon which he will hurriedly point to his nose with his forefinger, by way of returning the salute, while at the same time you say--
  47. correct rejection 0.00 · sim 0.04 , a decrease in the supply of goods and services, or an increase in demand. Inflation reduces the purchasing power of money, and as a result, people
  48. correct rejection 0.00 · sim -0.06 . The resulting hyperspectral data cube is shown to spatially locate target emitting nanoparticle volumes and provide spectral information for in-depth 3D imaging.↵↵The
  49. correct rejection 0.00 · sim 0.12 This discrepancy suggests the presence of an abnormal interstellar extinction law toward the cluster.↵↵*Keywords*: open clusters and associations: individual: Berkeley 53↵↵
  50. correct rejection 0.00 · sim 0.04 " on the face of it, for there is not a Scottish schoolboy but knows that one ship does not make a navy, any more than one swallow does
Fuzzing windows (37), dashed tokens were marked for the judge
  1. marks right · judged wrong controller: LoginController,↵ templateUrl: 'app/src/login/login-template.html'↵ };↵}
  2. marks right · judged wrong 1,numel(wave)),wave ,linspace(0,1,numel(wave)*2-1));↵sound(double_wave
  3. marks right · judged wrong tolemy XIII Theos Philopator entry in historical sourcebook by Mahlon H. Smith↵↵���������
  4. marks right · judged wrong ationalists view the Bible, and what role does it play in their worship?<|im_end|>↵<|im_start|>assistant↵
  5. marks right · judged wrong Zhu↵↵Problem   Does every triangle-free planar graph of maximum degree three have circular chromatic number at most ?↵↵Keywords: circular coloring;
  6. marks right · judged wrong title="cliquez ici">cliquez ici</a> </h1> ↵ <p class="test-explanation"> Failed : The
  7. marks right · judged wrong are rational?↵↵Keywords: integral distance; rational distance↵↵## Magic square of squares ���★↵↵Author(s): LaBar
  8. marks right · judged wrong ubien's spoken truth or nonsense? If you believe our report, then accept and apply it. Now who's to go to Avon with Carmen?"
  9. marks right · judged wrong around more quickly and efficiently.<|im_end|>↵<|im_start|>user↵That sounds great. Are there any downsides to using USB
  10. marks right · judged wrong arrangement of a set of objects in an ordered way. Example 1: Find the number of permutations and combinations: n =6; r = 4. Possible three
  11. marks right · judged wrong scope of a call to the client's EnumAuxFiles function. When the asset is declared,↵ at that point the enumerating code may choose
  12. marks right · judged wrong ↵~ $40/User↵↵Yearly contract↵↵Set up fees↵↵$0↵↵~ $3000↵↵Maintenance fees↵↵
  13. marks right · judged right Trademark("")]↵[assembly: AssemblyCulture("")]↵↵[assembly: ComVisible(false)]↵↵[assembly: Guid("fdd
  14. marks wrong · judged wrong ↵ }↵ else {↵ allClassesLink.style.display = "none";↵ }↵ //-->↵</script>↵
  15. marks wrong · judged wrong ↵ }↵↵ @Test↵ public void testFlatWorkspaceContainsCorrectFileRefs() throws Exception {↵ generator.addFilePath(
  16. marks wrong · judged wrong _start|>user↵Wow, it's amazing how much of an impact The Beatles had on the music industry. I can't imagine what music would be like
  17. marks wrong · judged wrong (); ↵ /** ↵ * Get a table type by its identifier. ↵ * ↵ * @param id - The identifier of the table type.
  18. marks wrong · judged wrong file,0,fname,iv);↵ return fname;↵}↵↵↵void PointCacheAssetAccessor::SetPath(const TSTR&
  19. marks wrong · judged wrong ��่อเ��้า����้��น Swift ส��า��รับ iOS และ mac
  20. marks wrong · judged wrong margin-top: 20px;↵ margin-bottom: 20px;↵ text-align: center;↵}↵.bs-social-
  21. marks wrong · judged wrong <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵What types of devices
  22. marks wrong · judged wrong Act (Ill.Rev.Stat. 1989, ch. 110, par. 2-615). Defendant argued that the amended complaint was insufficient because it failed to
  23. marks wrong · judged wrong inate people around the world.<|im_end|>↵<|im_start|>user↵It's incredible to think about how many different musical genres and
  24. marks wrong · judged wrong the License for the specific language governing permissions and↵ * limitations under the License.↵ */↵↵package com.evolveum.midpoint.repo.
  25. marks wrong · judged wrong TEL Cloud PBX subscription before your six month anniversary, then you have the option of returning the $0 phones or purchasing them for $100.00 CDN
  26. marks wrong · judged wrong ↵↵Ingredients for the paste:↵- 2 teaspoons coriander seeds↵- 1 teaspoon cumin seeds↵- 4 garlic cloves↵- 1
  27. marks wrong · judged wrong ��ター��当。↵ ����型はO型。↵MINA(ミナ、 - )↵ ���
  28. marks wrong · judged wrong PK8, and OsPK10 genes increased the amylose content. Meanwhile, the grains of all CRISPR mutants and RNAi lines, except ospk6,
  29. marks wrong · judged wrong teh other.↵↵Observe that $\Omega_1\times\Omega_2$ is equipped with the product $\sigma$-algebra which means exactly
  30. marks wrong · judged wrong and i told him how i'd worked successfully for 15 minutes while he was in the shower. we then spent the next 8 minutes trying to play a jim
  31. marks wrong · judged wrong the Turkish government remained sufficiently concerned, and continued to keep troops in northern Iraq.↵↵The Iraq War↵↵By 2003, many Turks had come to see
  32. marks wrong · judged wrong leading the Big Ten Conference in three point shooting percentage from the beginning of conference play in December until early February. In both of Michigan's wins in the 2016 Big
  33. marks wrong · judged wrong ता��्दी के ��ैन ��गोलवि��्��ानी ��े�
  34. marks wrong · judged wrong αύρας ↵↵��ατά μία ��ποψη η κήρυξη της Επανάστασης
  35. marks wrong · judged wrong ��் ��ிக��்������ி�� ������்க���� ���
  36. marks wrong · judged wrong seed setting rate, respectively. Further, the disruption of OsPK4, OsPK6, OsPK8, and OsPK10 through the CRISPR/Cas
  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.61 30 16
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.62 30 9
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.51 30 19

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.124
L0/N1218 -0.0764
L0/N787 +0.0739
L0/N420 +0.0603
L0/N2007 +0.0529
L0/N1277 +0.0512
L0/N392 +0.0476
L0/N1438 +0.0462
L0/N154 +0.0384
L0/N162 +0.0289
Upstream heads
L0/H1 +0.392
L0/H7 +0.379
L0/H2 +0.371
L0/H0 +0.303
L0/H5 +0.102
L0/H6 -0.0784
L0/H3 -0.0586
L0/H4 +0.00962
Downstream neurons
L5/N297 -0.648
L5/N348 -0.638
L2/N633 +0.451
L5/N407 -0.351
L2/N367 +0.332
L2/N1746 +0.329
L3/N345 +0.301
L4/N1167 -0.273
L5/N472 +0.271
L5/N4 +0.255
Downstream heads
L2/H7 v +0.439
L2/H2 v +0.28
L3/H3 q +0.202
L2/H6 v +0.14
L2/H5 v +0.119
L5/H2 v +0.119
L4/H6 q +0.0947
L3/H4 v +0.0925
L2/H3 v +0.0916
L3/H0 q +0.086

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 ≥ 22 tokens · 0.82
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
5.73e-03
KL partners
5.74e-03
KL together
1.04e-02
Redundancy ratio
0.81

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

Run details

Submitted by
deepseek-flash
Reviewed by
muse-spark-1.3
Reviewed at
2026-11-24 03:04 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
3.5 min (slowest: judge, 2.0 min) · peak 1.0 GB RAM · 3 LLM calls · 76,557 + 27,857 tokens · $0.01