EleutherAI/pythia-70m · L1/N394 · 20261124T030456Z
Experiment 1 of 2 on this neuron, most conclusive first · record
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
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.
All 39 probes
| Test | Input | Expected | Observed | |
|---|---|---|---|---|
| ✓ | 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
| # | Base → counterfactual | Expected Δ | Observed Δ | Sufficiency | Necessity |
|---|---|---|---|---|---|
| 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.
-
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
Token Positive-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.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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 -
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
Token Positive-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 recall by activation strength
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
- 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,
- missed 1.80 · sim 0.16 ?<|im_end|>↵<|im_start|>assistant↵Search engines prioritize trust and relevancy when ranking medical organizations. They
- 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
- 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
- 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
- missed 1.31 · sim 0.18 ↵### Can curve25519 keys be used with ed25519 keys?↵↵Can curve25519 keys be used with ed25519? I'd prefer
- 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
- 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
- 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
- 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
- missed 1.12 · sim 0.20 <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵1. User registration
- missed 1.04 · sim 0.13 terms of the E divergence by Yang, Schaefer, and Poor [arXiv:1706.03866 [cs.IT]]. In the latter,
- missed 1.00 · sim 0.19 Calc — Enterprise-ready LibreOffice.↵ EtherCalc (successor to SocialCalc, which is based on wikiCalc)↵
- missed 0.93 · sim 0.12 /DaysUntilBirthday/DaysUntilBirthday.xcodeproj↵ตัวจัดกา��แ���
- 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
- missed 0.85 · sim -0.00 を開���。同年6月にはテレビ��日系列『musicる TV』のコー��ー��のレ
- 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
- false alarm 0.12 · sim 0.12 package org.jgolek;↵↵import java.io.File;↵↵import org.jgolek.YamlToMaven
- hit 2.41 · sim -0.06 GetInt(const nsACString & key, PRInt32 *_retval NS_OUTPARAM) = 0;↵↵ /* float getFloat (in A
- hit 2.01 · sim 0.06 ↵HAL_Pwm_Enable_8195a(↵ HAL_PWM_ADAPTER *pPwmAdapt↵);↵↵
- hit 1.94 · sim 0.08 ↵ HAL_PWM_ADAPTER *pPwmAdapt↵);↵↵extern _LONG_CALL_ void ↵HAL_Pwm
- hit 1.53 · sim 0.24 )↵↵@property (nonatomic, readonly) CGFloat majorSwipeDisplacement;↵↵@end
- hit 1.52 · sim -0.01 /systemd/system/git-auto-pull.service' >> git-auto-pull.spec↵echo 'install -m 755 git-
- hit 0.98 · sim 0.05 bs-docs-nav .navbar-toggle:hover {↵ background-color: #463265;↵ border-color: #4632
- hit 0.95 · sim 0.17 for the specific language governing permissions and limitations↵ * under the License.↵ */↵↵package com.facebook.buck.apple.project_generator;↵
- hit 0.79 · sim 0.18 ero General Public License as</span>↵<a name="l00008"></a>00008 <span class="comment"> * published by the Free
- 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
- correct rejection 0.11 · sim 0.06 ��部、����非�������地��、以及中国新��等地,多�
- correct rejection 0.08 · sim 0.02 Navy. Il fut construit par Vickers-Armstrongs et lancé le .↵↵Le sous-marin a été équipé
- 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
- 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
- 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
- correct rejection 0.00 · sim 0.03 而��現有的��法成����方��名。後��,原有的��者��使用
- 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
- correct rejection 0.00 · sim 0.09 ��ு ������்��ு��் ��த��்.↵2014-15 ����ி
- correct rejection 0.00 · sim 0.10 this topic.↵↵#### Sabine62↵↵• Fractal Frankfurter↵• Posts: 645↵↵#### Re: Fractal
- 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
- correct rejection 0.00 · sim 0.03 ����交配����生的����利����現有���重的����
- 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
- 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
- correct rejection 0.00 · sim -0.03 が不可��の��者さんについては、��存��の���������機関�
- 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,
- 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
- 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
- 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
- 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--
- 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
- 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
- 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↵↵
- 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
- marks right · judged wrong controller: LoginController,↵ templateUrl: 'app/src/login/login-template.html'↵ };↵}
- marks right · judged wrong 1,numel(wave)),wave ,linspace(0,1,numel(wave)*2-1));↵sound(double_wave
- marks right · judged wrong tolemy XIII Theos Philopator entry in historical sourcebook by Mahlon H. Smith↵↵���������
- marks right · judged wrong ationalists view the Bible, and what role does it play in their worship?<|im_end|>↵<|im_start|>assistant↵
- 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;
- marks right · judged wrong title="cliquez ici">cliquez ici</a> </h1> ↵ <p class="test-explanation"> Failed : The
- marks right · judged wrong are rational?↵↵Keywords: integral distance; rational distance↵↵## Magic square of squares ���★↵↵Author(s): LaBar
- 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?"
- marks right · judged wrong around more quickly and efficiently.<|im_end|>↵<|im_start|>user↵That sounds great. Are there any downsides to using USB
- 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
- 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
- marks right · judged wrong ↵~ $40/User↵↵Yearly contract↵↵Set up fees↵↵$0↵↵~ $3000↵↵Maintenance fees↵↵
- marks right · judged right Trademark("")]↵[assembly: AssemblyCulture("")]↵↵[assembly: ComVisible(false)]↵↵[assembly: Guid("fdd
- marks wrong · judged wrong ↵ }↵ else {↵ allClassesLink.style.display = "none";↵ }↵ //-->↵</script>↵
- marks wrong · judged wrong ↵ }↵↵ @Test↵ public void testFlatWorkspaceContainsCorrectFileRefs() throws Exception {↵ generator.addFilePath(
- 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
- marks wrong · judged wrong (); ↵ /** ↵ * Get a table type by its identifier. ↵ * ↵ * @param id - The identifier of the table type.
- marks wrong · judged wrong file,0,fname,iv);↵ return fname;↵}↵↵↵void PointCacheAssetAccessor::SetPath(const TSTR&
- marks wrong · judged wrong ��่อเ��้า����้��น Swift ส��า��รับ iOS และ mac
- marks wrong · judged wrong margin-top: 20px;↵ margin-bottom: 20px;↵ text-align: center;↵}↵.bs-social-
- marks wrong · judged wrong <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵What types of devices
- 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
- 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
- marks wrong · judged wrong the License for the specific language governing permissions and↵ * limitations under the License.↵ */↵↵package com.evolveum.midpoint.repo.
- 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
- marks wrong · judged wrong ↵↵Ingredients for the paste:↵- 2 teaspoons coriander seeds↵- 1 teaspoon cumin seeds↵- 4 garlic cloves↵- 1
- marks wrong · judged wrong ��ター��当。↵ ����型はO型。↵MINA(ミナ、 - )↵ ���
- marks wrong · judged wrong PK8, and OsPK10 genes increased the amylose content. Meanwhile, the grains of all CRISPR mutants and RNAi lines, except ospk6,
- marks wrong · judged wrong teh other.↵↵Observe that $\Omega_1\times\Omega_2$ is equipped with the product $\sigma$-algebra which means exactly
- 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
- 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
- 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
- marks wrong · judged wrong ता��्दी के ��ैन ��गोलवि��्��ानी ��े�
- marks wrong · judged wrong αύρας ↵↵��ατά μία ��ποψη η κήρυξη της Επανάστασης
- marks wrong · judged wrong ��் ��ிக��்������ி�� ������்க���� ���
- marks wrong · judged wrong seed setting rate, respectively. Further, the disruption of OsPK4, OsPK6, OsPK8, and OsPK10 through the CRISPR/Cas
- 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.
| Reading | Balanced accuracy | Probes | Disagrees 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
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.03new-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.06Speech-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
Logit lens
Values
| # | Jacobian lens promotes | suppresses | Logit lens promotes | suppresses | ||||
|---|---|---|---|---|---|---|---|---|
| 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.
| Prompt | Layer | ×1 | ×2 | ×4 | |
|---|---|---|---|---|---|
| category | 1 | unit | politics | no | music |
| control | politics | yes | yes | ||
| meaning | 1 | unit | not a word that is used in the context of the word | not a word that is used in the context of the word | not a word that is used in the context of the word |
| control | not a word that is not a word that is not a | not a word that is not a word that is not a | not 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.
a good place to start. The weather today is a good place to start. The weather today is
a good place to start. The weather today is a good place to start. The weather today is
the most important day of the week, and the most important day of the week. The weather today is the
the most important day of the day of the day of the day of the day of the day of the day of the
not in the mouth, and the weather and the the the the
a new one. I had to go to the shop and bought a new one. I had to go to the shop
a new one. I had to go to the shop and bought a new one. I had to go to the shop
a new one. "I'm not sure what you mean," he said. "I'm not
a new one. "I'm not sure if it's a new one, but I'm not sure if
the a. and the the the the the
to learn the best of the best. The best way to learn is to learn the best of the best of
to learn the best of the best. The best way to learn is to learn the best of the best of
to learn the best of the best. The best way to learn is to learn the best of the best of
to learn the best I'm not sure if I'm right, but I'm not sure if I'm right
to the most.
the "The only thing that I can do is to get the "The only thing that I can
the "The only thing that I can do is to get the "The only thing that I can
the first time you have a question, "How do I get the answer?" "I'm not sure."
the user is not able to access the user's computer. The user is not able to access the computer,
the user is not in the user in the user in in in in
the plaintiffs had been in the custody of the Department of Human Services for several years, and that
the plaintiffs had been in the custody of the Department of Human Services for several years, and that
the plaintiff was not a party to the report, and that the plaintiff was not a party to the
the report was not a "significant" of the report, and the report was not a "significant" of the report
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.
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
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 |
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 |
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