Open Interpretability Models Contributors Research Posts About

Qwen/Qwen2.5-0.5B · L23/N1769 · 20261031T223259Z

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

#2 · positive pole + VERIFIED strong evidence for · 0.99 self-reviewed counts toward status 2026-10-31 · 20261031T223259Z

L23/N1769+ is a retrospective 'Java-family member declaration' unit: in Java, Kotlin, Swift, Dart, Scala and Java-style C# source it peaks on the token that opens a declared member - a field modifier (private, public, static, final), a method or constructor name just before its '(', a ':' or '->' introducing a type, a ',' or '<' inside a capitalised parameter or generic list, or the indentation that begins the next member or statement line - and its write suppresses the built-in type tokens it expects ('String', 'Math'). Activation is primed by the members already written in the window, so the first field of a class body scores 3-6, the second and later members 8-10, and full Java/Kotlin/Swift class bodies reach 8-17; sparse Java-shaped code still fires at 3-6 (a Rust struct/impl, a C# class written with lowercase 'string', a Java method body containing a for loop and println calls, a JavaScript function of arithmetic assignments, the same class written with lowercase types), while Go, C, C++, PHP, Ruby, Python, TypeScript classes and interfaces, plain JavaScript without a Math call, SQL, shell, HTML, JSON, YAML and prose stay at or below about 2.5.

The whole hypothesis

L23/N1769+ is a retrospective 'Java-family member declaration' unit: in Java, Kotlin, Swift, Dart, Scala and Java-style C# source it peaks on the token that opens a declared member - a field modifier (private, public, static, final), a method or constructor name just before its '(', a ':' or '->' introducing a type, a ',' or '<' inside a capitalised parameter or generic list, or the indentation that begins the next member or statement line - and its write suppresses the built-in type tokens it expects ('String', 'Math'). Activation is primed by the members already written in the window, so the first field of a class body scores 3-6, the second and later members 8-10, and full Java/Kotlin/Swift class bodies reach 8-17; sparse Java-shaped code still fires at 3-6 (a Rust struct/impl, a C# class written with lowercase 'string', a Java method body containing a for loop and println calls, a JavaScript function of arithmetic assignments, the same class written with lowercase types), while Go, C, C++, PHP, Ruby, Python, TypeScript classes and interfaces, plain JavaScript without a Math call, SQL, shell, HTML, JSON, YAML and prose stay at or below about 2.5.

Hard negatives 9/10 rejected · holdouts 6/6 fired (independent observations; 16 probes) · P(useful) 1.00 · re-measures the probes of 20261026T011607Z; not independent evidence

Revises 20261023T054859Z (NEEDS_REVISION)

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

specificity 0.90 · sensitivity 1.00 · counterfactual reproduction 1.00 · protocol v0.8

private public static finalCacheCallbacks: ->,<String =

Adversarial review

hard_negative: 9/10 passed; positive_holdout: 6/6 passed; counterfactual: 9/9 passed; lookahead_consistency: 1/1 passed. All gates passed.

Hard negatives 9/10 stay below Positive holdouts 6/6 reach it threshold 3.25 (25% of max) → active passed · 0.088 (1% of max) class Invoice { private string $number; public static int $count = 0; } passed · 0.240 (2% of max) Cache: Enabled: true Callbacks: OnSuccess: notify passed · 0.460 (4% of max) The final whistle stirred the public gallery; fans stayed static. passed · 0.472 (4% of max) class Repository: name: str stars: int = 0 def rename(self, new_name: str) -> Repository: passed · 0.672 (5% of max) class WeatherModel def initialize(city:, temp:) end end passed · 0.807 (6% of max) type Handler struct { Cache *Cache } func (h *Handler) ServeHTTP(w http.ResponseWriter) { passed · 1.116 (9% of max) SELECT AccountId, OwnerName FROM Accounts WHERE IsPublic = TRUE; passed · 2.524 (19% of max) class CacheStore<T> { private entries: Map<string, T>; public get(key: string): T } passed · 2.659 (20% of max) class AccountManager { public: void Deposit(const Transaction& tx); private: std::vector<Transaction> history_; }; failed · 5.791 (45% of max) /** private helpers; public entry points; Map<String, Result> */ passed · 3.636 (28% of max) pub struct Account { pub id: String, balance: i64, } impl Account { pub fn new(id: String) -> Self passed · 4.450 (34% of max) public class InvoiceCalculator { private const Decimal TaxRate = 0.2m; public static String Currency { get; set; } } passed · 6.114 (47% of max) case class Order(id: String, items: List[Item]) class OrderService { private val pending = Map.empty[String, Order] } passed · 9.064 (70% of max) final class WeatherStore { private(set) var temperature: Double = 0 private var readings: [String: Double] = [:] } passed · 9.768 (75% of max) class UserProfile { final String name; const UserProfile({required this.name}); } passed · 9.943 (76% of max) class AccountService(private val repo: Repo) { private val cache: MutableMap<String, Account> = mutableMapOf() } 0 max 13.01
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 26 probes
TestInputExpectedObserved
✓ hard negative class Repository: name: str stars: int = 0 def rename(self, new_name: str) -> Repository:
Python ':' and '->' types; hypothesis predicts <= 2.5.
inactive 0.472
✓ hard negative class CacheStore<T> { private entries: Map<string, T>; public get(key: string): T }
TS class with private/public modifiers; predicted <= 2.5.
inactive 2.524
✓ hard negative class AccountManager { public: void Deposit(const Transaction& tx); private: std::vector<Transaction> history_; };
C++ public:/private: sections; predicted <= 2.5.
inactive 2.659
✓ hard negative type Handler struct { Cache *Cache } func (h *Handler) ServeHTTP(w http.ResponseWriter) {
Go struct with literal Cache; predicted <= 2.5.
inactive 0.807
✓ hard negative class WeatherModel def initialize(city:, temp:) end end
Ruby def-before-paren and ':' symbols; predicted <= 2.5.
inactive 0.672
✓ hard negative class Invoice { private string $number; public static int $count = 0; }
PHP private/public members; predicted <= 2.5.
inactive 0.088
✓ hard negative Cache: Enabled: true Callbacks: OnSuccess: notify
YAML carries Cache/Callbacks triggers; predicted <= 2.5.
inactive 0.240
✓ hard negative SELECT AccountId, OwnerName FROM Accounts WHERE IsPublic = TRUE;
SQL caps, commas and ' ='; predicted <= 2.5.
inactive 1.116
✗ hard negative /** private helpers; public entry points; Map<String, Result> */
Claimed tokens only in a comment with no declared member; predicted <= 2.5.
inactive 5.791
✓ hard negative The final whistle stirred the public gallery; fans stayed static.
Modifier words in ordinary prose; predicted <= 2.5.
inactive 0.460
✓ positive holdout class AccountService(private val repo: Repo) { private val cache: MutableMap<String, Account> = mutableMapOf() }
Kotlin class body with private val and generics; predicted 8-17.
active 9.943
✓ positive holdout final class WeatherStore { private(set) var temperature: Double = 0 private var readings: [String: Double] = [:] }
Swift class body with private modifiers and typed members; predicted 8-17.
active 9.064
✓ positive holdout class UserProfile { final String name; const UserProfile({required this.name}); }
Dart class body with final fields; predicted 8-17.
active 9.768
✓ positive holdout case class Order(id: String, items: List[Item]) class OrderService { private val pending = Map.empty[String, Order] }
Scala case class and private val members; predicted 8-17.
active 6.114
✓ positive holdout pub struct Account { pub id: String, balance: i64, } impl Account { pub fn new(id: String) -> Self
Rust struct/impl with pub fn and '-> Self'; hypothesis predicts 3-6.
active 3.636
✓ positive holdout public class InvoiceCalculator { private const Decimal TaxRate = 0.2m; public static String Currency { get; set; } }
Java-style C# with public String members; hypothesis predicts firing.
active 4.450
✓ counterfactual public class Counter { private String title; private String author; } -> type Counter struct { title string author string } Δ 0.71 Δ 0.71
✓ counterfactual public class Counter { private String title; private String author; } -> public class Counter { private string title; private string author; } Δ 0.31 Δ 0.31
✓ counterfactual public class Counter { private String title; private String author; } -> public class Counter { private String title; } Δ 0.31 Δ 0.31
✓ counterfactual public class Counter { private String title; } -> public class Counter { // private String title; } Δ 0.30 Δ 0.30
✓ counterfactual function f() { var max = Math.max(a, b); var min = Math.min(a, b); } -> function f() { var max = math.max(a, b); var min = Math.min(a, b); } Δ 0.44 Δ 0.44
✓ counterfactual private static WeatherTodayModel getFromCache(String id) { return CACHE.get(id); } -> private static WeatherTodayModel getFromCacheValue(String id) { return CACHE.get(id); } Δ -0.06 Δ -0.06
✓ counterfactual They rented a private villa outside Florence. -> They rented a private house outside Florence. Δ 0.00 Δ 0.00
✓ counterfactual struct Item { let name: String let carbs: Int } -> struct Item { let name: Int let carbs: Int } Δ 0.00 Δ 0.00
✓ counterfactual public String getTitle(String prefix, Object extra) { return title; } -> public Object getTitle(String prefix, Object extra) { return title; } Δ -0.06 Δ -0.06
✓ lookahead consistency public class Counter { private String title; private String author; }; public class Counter { private String title; private String author; }; public class Counter { private String title; private String author; }; public class Counter { private String title; }; function f() { var max = Math.max(a, b); var min = Math.min(a, b); }; private static WeatherTodayModel getFromCache(String id) { return CACHE.get(id); }; They rented a private villa outside Florence.; struct Item { let name: String let carbs: Int }; public String getTitle(String prefix, Object extra) { return title; }
claimed retrospective; measured retrospective (KL=0.03486, tokens=[' int', ' if', '()', 'if', '(Context'])

Minimal pairs

Pair 2 Sufficiency: 1.00 · effect 0.241 (matched |effect| median 0.000134, max 0.0795) public class Counter { private String title; private String author; } → public class Counter { private string title; private string author; } Necessity: 1.00 · effect 0.695 (matched |effect| median 0.000208, max 0.086) public class Counter { private String title; private String author; } → public class Counter { private string title; private string author; } Pair 5 Sufficiency: 1.00 · effect 0.0905 (matched |effect| median 3.17e-06, max 0.00105) function f() { var max = Math.max(a, b); var min = Math.min(a, b); } → function f() { var max = math.max(a, b); var min = Math.min(a, b); } Necessity: 1.00 · effect 0.0112 (matched |effect| median 7.92e-07, max 0.000324) function f() { var max = Math.max(a, b); var min = Math.min(a, b); } → function f() { var max = math.max(a, b); var min = Math.min(a, b); } Pair 8 Sufficiency: 0.81 · effect 0.000233 (matched |effect| median 2.18e-05, max 0.00305) struct Item { let name: String let carbs: Int } → struct Item { let name: Int let carbs: Int } Necessity: 0.69 · effect 8.17e-05 (matched |effect| median 2.42e-05, max 0.00579) struct Item { let name: String let carbs: Int } → struct Item { let name: Int let carbs: Int } Median (score) Sufficiency: 1.00 · median of 3 pairs 1.00 Necessity: 1.00 · median of 3 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 public class Counter { private String title; private String author; }
→ type Counter struct { title string author string }
0.71 0.71 — —
2 public class Counter { private String title; private String author; }
→ public class Counter { private string title; private string author; }
0.31 0.31 1.00
effect 0.241
matched 0.000134 / 0.0795
1.00
effect 0.695
matched 0.000208 / 0.086
3 public class Counter { private String title; private String author; }
→ public class Counter { private String title; }
0.31 0.31 — —
4 public class Counter { private String title; }
→ public class Counter { // private String title; }
0.30 0.30 — —
5 function f() { var max = Math.max(a, b); var min = Math.min(a, b); }
→ function f() { var max = math.max(a, b); var min = Math.min(a, b); }
0.44 0.44 1.00
effect 0.0905
matched 3.17e-06 / 0.00105
1.00
effect 0.0112
matched 7.92e-07 / 0.000324
6 private static WeatherTodayModel getFromCache(String id) { return CACHE.get(id); }
→ private static WeatherTodayModel getFromCacheValue(String id) { return CACHE.get(id); }
-0.06 -0.06 — —
7 They rented a private villa outside Florence.
→ They rented a private house outside Florence.
0.00 0.00 — —
8 struct Item { let name: String let carbs: Int }
→ struct Item { let name: Int let carbs: Int }
0.00 0.00 0.81
effect 0.000233
matched 2.18e-05 / 0.00305
0.69
effect 8.17e-05
matched 2.42e-05 / 0.00579
9 public String getTitle(String prefix, Object extra) { return title; }
→ public Object getTitle(String prefix, Object extra) { return title; }
-0.06 -0.06 — —
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 3 non-control pairs, on next-token KL. Median effect 0.0905 (sufficiency) and 0.0112 (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. 13.01 … TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};↵function getDecimals(n) {↵ n = n + '';↵ var i = n.indexOf('.');↵ …
    All 512 tokens

    'use strict';↵angular.module("ngLocale", [], ["$provide", function($provide) {↵var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};↵function getDecimals(n) {↵ n = n + '';↵ var i = n.indexOf('.');↵ return (i == -1) ? 0 : n.length - i - 1;↵}↵↵function getVF(n, opt_precision) {↵ var v = opt_precision;↵↵ if (undefined === v) {↵ v = Math.min(getDecimals(n), 3);↵ }↵↵ var base = Math.pow(10, v);↵ var f = ((n * base) | 0) % base;↵ return {v: v, f: f};↵}↵↵$provide.value("$locale", {↵ "DATETIME_FORMATS": {↵ "AMPMS": [↵ "Dinda",↵ "Dilolo"↵ ],↵ "DAY": [↵ "Lumingu",↵ "Nkodya",↵ "Nd\u00e0ay\u00e0",↵ "Ndang\u00f9",↵ "Nj\u00f2wa",↵ "Ng\u00f2vya",↵ "Lubingu"↵ ],↵ "MONTH": [↵ "Ciongo",↵ "L\u00f9ishi",↵ "Lus\u00f2lo",↵ "M\u00f9uy\u00e0",↵ "Lum\u00f9ng\u00f9l\u00f9",↵ "Lufuimi",↵ "Kab\u00e0l\u00e0sh\u00ecp\u00f9",↵ "L\u00f9sh\u00eck\u00e0",↵ "Lutongolo",↵ "Lung\u00f9di",↵ "Kasw\u00e8k\u00e8s\u00e8",↵ "Cisw\u00e0"↵ ],↵ "SHORTDAY": [↵ "Lum",↵ "Nko",↵ "Ndy",↵ "Ndg",↵ "Njw",↵ "Ngv",↵ "Lub"↵ ],↵ "SHORTMONTH": [↵ "

    Values
    TokenPositive-pole strength
    TWO0.079
    :0.000
    "0.532
    two0.000
    ",0.370
    FE0.032
    W0.113
    :0.000
    "0.668
    few0.000
    ",0.343
    MANY0.000
    :0.000
    "0.190
    many0.000
    ",0.245
    OTHER0.000
    :0.000
    "0.136
    other0.000
    "};↵0.000
    function0.009
    get0.108
    Dec0.000
    imals0.000
    (n0.000
    )0.000
    {↵0.000
    0.000
    n0.253
    =13.011
    n0.000
    +1.132
    '';↵0.000
    0.000
    var0.000
    i0.000
    =0.757
    n0.000
    .indexOf0.000
    ('.');↵0.000
  2. 11.87 … private static void addToCache(WeatherTodayModel model) {↵ CACHE.put(model.id, model);↵ }↵↵ private static WeatherTodayModel getFromCache(String id) {↵ return CACHE.get(id);↵ …
    All 417 tokens

    package tk.woppo.sunday.model;↵↵import android.database.Cursor;↵↵import com.google.gson.Gson;↵import com.google.gson.annotations.SerializedName;↵↵import java.util.HashMap;↵↵import tk.woppo.sunday.dao.WeatherDataHelper;↵import tk.woppo.sunday.dao.WeatherTodayDataHelper;↵↵/**↵ * Created by Ho on 2014/7/4.↵ */↵public class WeatherTodayModel extends BaseModel {↵↵ private static final HashMap<String, WeatherTodayModel> CACHE = new HashMap<String, WeatherTodayModel>();↵↵ /** ���市ID */↵ @SerializedName("cityid")↵ public String id;↵↵ /** ���市名称 */↵ @SerializedName("city")↵ public String cityName;↵↵ /** ��度 */↵ public String temp;↵↵ /** ��气 */↵ public String weather;↵↵ /** ���向 */↵ @SerializedName("WD")↵ public String wind;↵↵ /** ���力 */↵ @SerializedName("WS")↵ public String ws;↵↵ /** ���度 */↵ @SerializedName("SD")↵ public String sd;↵↵ /** 发布时间 */↵ public String time;↵↵ private static void addToCache(WeatherTodayModel model) {↵ CACHE.put(model.id, model);↵ }↵↵ private static WeatherTodayModel getFromCache(String id) {↵ return CACHE.get(id);↵ }↵↵ public static WeatherTodayModel fromJson(String json) {↵ return new Gson().fromJson(json, WeatherTodayModel.class);↵ }↵↵ public static WeatherTodayModel fromCursor(Cursor cursor) {↵ String id = cursor.getString(cursor.getColumnIndex(WeatherDataHelper.WeatherDBInfo.ID));↵ WeatherTodayModel model = getFromCache(id);↵ if (model != null) {↵ return model;↵ }↵ model = new Gson().fromJson(cursor.getString(cursor.getColumnIndex(WeatherTodayDataHelper.WeatherTodayDBInfo.JSON)), WeatherTodayModel.class);↵ addToCache(model);↵ return model;↵ }↵↵ public static class WeatherTodayRequestData {↵ public WeatherTodayModel weatherinfo;↵ }↵}↵

    Values
    TokenPositive-pole strength
    private5.428
    static4.068
    void0.000
    addTo2.882
    Cache8.621
    (3.096
    Weather0.000
    Today0.202
    Model0.000
    model1.431
    )0.000
    {↵0.000
    3.520
    CACHE1.620
    .put0.810
    (model0.000
    .id0.708
    ,0.000
    model0.000
    );↵0.000
    0.000
    }↵↵0.000
    0.000
    private3.835
    static3.884
    Weather0.000
    Today0.313
    Model0.000
    get1.715
    From1.728
    Cache11.868
    (String0.000
    id2.729
    )0.000
    {↵0.000
    4.893
    return0.000
    CACHE0.000
    .get1.423
    (id0.767
    );↵0.000
  3. 11.10 … client.listNames();↵ File folder = new File("c:\\test\\RTR_ZIP\\");↵ String[] filename = folder.list();↵↵ for (;i<names.length;i++) {↵ name …
    All 512 tokens

    Q:↵↵How to check if file exist when downloading from FTP↵↵I'm downloading from FTP server and I don't know exactly how to check if file already exist. What I want to do is that I retrieve filname from FTP server and then compare it with all files in folder. If file already exists then it compares next FTP filename with all files in folder and so on. ↵I already did comparison and it's working if all files from folder have same name as files on FTP server but if I add some older file then it downloads all files once again and I don't want that. ↵Here is my scratch code:↵String[] names = client.listNames();↵ File folder = new File("c:\\test\\RTR_ZIP\\");↵ String[] filename = folder.list();↵↵ for (;i<names.length;i++) {↵ name = names[i];↵↵ exists=false;↵↵ if (name.contains(".zip")) {↵↵ if (filename.length == 0) {↵ new_file = new FileOutputStream("C:\\test\\RTR_ZIP\\" + name);↵ client.retrieveFile(name, new_file);↵ j++;↵ exists=true;↵ } else {↵ for (;k<filename.length;k++) {↵ name = names[i];↵ i++;↵ name1=filename[k];↵ // CHECK IF FILE EXISTS↵ if (!name.equals(name1)) {↵ new_file = new FileOutputStream("C:\\test\\RTR_ZIP\\" + name);↵ client.retrieveFile(name, new_file);↵ j++;↵ exists=true;↵ } ↵ }↵ }//else↵ }//if contains .zip↵ }//for↵↵Thanks in advance. ↵↵A:↵↵If your ftp server supports XCRC command it could be possible to compare checksum (CRC32) of local and remote file.↵You could iterate all files in the folder and compare its crc with local one.↵import java.io.File;↵import java.io.IOException;↵import java.net.SocketException;↵import java.util.Scanner;↵↵import org.apache.commons.io.FileUtils;↵import org.apache.commons.net.ftp.FTPClient;↵↵public class DownloadFile {↵↵ private FTPClient client = new FTPClient();↵↵ public void connect() throws SocketException, IOException {↵ client.connect("127.0.0.1");↵ client.login("user", "password");↵ }↵↵ public boolean hasXCRCSupport() throws IOException {↵ client.sendCommand("feat");↵ String response = client.getReplyString();↵ Scanner scanner = new Scanner(response);↵ while(scanner.hasNextLine

    Values
    TokenPositive-pole strength
    client1.607
    .list1.480
    Names1.464
    ();↵8.092
    9.621
    File0.000
    folder0.932
    =0.000
    new3.324
    File1.020
    ("0.000
    c0.000
    :\\0.000
    test0.000
    \\0.000
    R0.000
    TR0.000
    _Z0.000
    IP0.000
    \\0.000
    ");↵5.421
    7.989
    String0.000
    []0.000
    filename0.228
    =0.000
    folder0.166
    .list1.545
    ();↵↵2.863
    7.753
    for11.096
    (;0.000
    i0.000
    <0.000
    names0.486
    .length0.000
    ;i0.000
    ++)0.000
    {↵2.010
    9.137
    name2.103
  4. 10.21 … range of numbers with a known min and max value which details:↵Array.prototype.scaleBetween = function(scaledMin, scaledMax) {↵ var max = Math.max.apply(Math, this);↵ var min …
    All 379 tokens

    Q:↵↵Scale down numbers with known max min to new max min in PHP↵↵Let's say I have this array of numbers:↵$arr = [100, 60, 30, 22, 1]↵and it's based off a 1 - 100 range. And I want it based of a 1 - 5 range.↵I have found this answer here: How to scale down a range of numbers with a known min and max value which details:↵Array.prototype.scaleBetween = function(scaledMin, scaledMax) {↵ var max = Math.max.apply(Math, this);↵ var min = Math.min.apply(Math, this);↵ return this.map(num => (scaledMax-scaledMin)*(num-min)/(max-min)+scaledMin);↵}↵↵But I am not sure how I would translate that to PHP/Laravel.↵↵A:↵↵Not sure if this are the correct results, but it does what you described:↵$arr = [100, 60, 30, 22, 1];↵↵function scale(array $array, float $min, float $max): array↵{↵ $lowest = min($array);↵ $highest = max($array);↵↵ return array_map(function ($elem) use ($lowest, $highest, $min, $max) {↵ return ($max - $min) * ($elem - $lowest) / ($highest - $lowest) + $min;↵ }, $array);↵}↵↵echo json_encode(scale($arr, 1, 10));↵// [10,6.363636363636363,3.6363636363636362,2.909090909090909,1]↵↵

    Values
    TokenPositive-pole strength
    range0.002
    of0.000
    numbers0.074
    with0.000
    a0.086
    known0.027
    min0.000
    and0.375
    max0.000
    value0.000
    which0.157
    details0.142
    :↵0.000
    Array0.449
    .prototype0.000
    .scale0.281
    Between0.028
    =0.000
    function0.000
    (s0.000
    caled0.000
    Min0.563
    ,0.000
    scaled0.000
    Max0.000
    )0.000
    {↵0.000
    0.000
    var0.000
    max0.198
    =10.209
    Math0.013
    .max2.496
    .apply2.085
    (Math1.183
    ,3.518
    this0.000
    );↵0.000
    0.000
    var0.000
    min0.379
  5. 10.14 … ://mypage.example.com/test.php?name="+data;↵aq.ajax(url, String.class, new AjaxCallback<String>() {↵↵ @Override↵ public void callback(String url, String html, AjaxStatus …
    All 369 tokens

    Q:↵↵AndroidQuery ajax doesn't call php page when page contains IFRAME↵↵I tried the following code to access my PHP page:↵String url = "http://mypage.example.com/test.php?name="+data;↵aq.ajax(url, String.class, new AjaxCallback<String>() {↵↵ @Override↵ public void callback(String url, String html, AjaxStatus status) {↵ Log.w(Tags.DEBUG,String.valueOf(status.getCode()));↵ }↵↵});↵↵My PHP page writes a file if the call was made. When I use the URL inside a browser, the file is created. When I use my Android app, nothing happens, the status code is 200. What else should I set?↵UPDATE:↵The source of my page:↵<html>↵ <head>↵ <title>MY WEBSITE</title>↵ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>↵ <frameset rows="92, *" frameborder=NO border=1 framespacing=0 cols=*>↵ <frame name="topFrame" scrolling=NO noresize src="http://example.com/ads.php?ad=user12&cat=16" frameborder=NO>↵ <frame name="user" src="http://example.com/user12/test.php" scrolling=auto>↵ </frameset>↵ <noframes>↵ <body bgcolor=#FFFFFF text=#000000>↵ <a href="http://example.com/user12/test.php">http://example.com/user12/test.php</a>↵ </body>↵ </noframes>↵ </html>↵↵A:↵↵It seems that the web page was the problem, it sent back its source code and there was an IFRAME in it. ↵↵

    Values
    TokenPositive-pole strength
    ://0.000
    myp0.000
    age0.000
    .example0.000
    .com0.000
    /test0.000
    .php0.000
    ?0.000
    name0.000
    ="+0.000
    data0.464
    ;↵7.043
    aq1.264
    .ajax0.614
    (url0.306
    ,0.000
    String0.000
    .class0.000
    ,0.000
    new9.925
    Ajax0.000
    Callback2.634
    <String1.434
    >()0.000
    {↵↵0.000
    1.147
    @0.000
    Override0.000
    ↵0.000
    0.000
    public10.143
    void0.521
    callback6.484
    (String0.398
    url3.924
    ,8.001
    String0.322
    html3.862
    ,7.191
    Ajax0.566
    Status0.000
  6. 9.71 … ;↵import javax.ws.rs.core.Context;↵import javax.ws.rs.core.HttpHeaders;↵import javax.ws.rs.core.MediaType;↵import javax.ws.rs.core.MultivaluedMap;↵import javax.ws.rs.core.Response;↵import …
    All 512 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 org.apache.stanbol.entityhub.web.reader;↵↵import java.io.IOException;↵import java.io.InputStream;↵import java.lang.annotation.Annotation;↵import java.lang.reflect.Type;↵import java.util.Arrays;↵import java.util.Collections;↵import java.util.HashMap;↵import java.util.HashSet;↵import java.util.Iterator;↵import java.util.List;↵import java.util.Map;↵import java.util.Set;↵↵import javax.servlet.ServletContext;↵import javax.ws.rs.Consumes;↵import javax.ws.rs.WebApplicationException;↵import javax.ws.rs.core.Context;↵import javax.ws.rs.core.HttpHeaders;↵import javax.ws.rs.core.MediaType;↵import javax.ws.rs.core.MultivaluedMap;↵import javax.ws.rs.core.Response;↵import javax.ws.rs.core.Response.Status;↵import javax.ws.rs.ext.MessageBodyReader;↵import javax.ws.rs.ext.Provider;↵↵import org.apache.clerezza.commons.rdf.Graph;↵import org.apache.clerezza.commons.rdf.BlankNodeOrIRI;↵import org.apache.clerezza.commons.rdf.Triple;↵import org.apache.clerezza.commons.rdf.IRI;↵import org.apache.clerezza.rdf.core.serializedform.Parser;↵import org.apache.clerezza.rdf.core.serializedform.SupportedFormat;↵import org.apache.clerezza.rdf.core.serializedform.UnsupportedParsingFormatException;↵import org.apache.felix.scr.annotations.Component;↵import org.apache.felix.scr.annotations.Property;↵import org.apache.felix.scr.annotations.Reference;↵import org.apache.felix.scr.annotations.Service;↵import org.apache.stanbol.commons.indexedgraph.IndexedGraph;↵import org.apache.stanbol.entityhub.jersey.utils.JerseyUtils;↵import org.apache.stanbol.entityhub.jersey.utils.MessageBodyReaderUtils;↵import org.apache.stanbol.entity

    Values
    TokenPositive-pole strength
    ;↵0.000
    import0.000
    javax0.039
    .ws0.000
    .rs0.072
    .core1.529
    .Context0.176
    ;↵0.000
    import0.000
    javax0.000
    .ws0.000
    .rs0.000
    .core2.177
    .Http1.246
    Headers0.434
    ;↵0.000
    import0.000
    javax0.000
    .ws0.000
    .rs0.000
    .core2.016
    .MediaType1.146
    ;↵0.000
    import0.000
    javax0.000
    .ws0.000
    .rs0.000
    .core0.956
    .Mult3.190
    ival0.000
    ued9.709
    Map2.589
    ;↵0.000
    import0.000
    javax0.000
    .ws0.000
    .rs0.000
    .core1.197
    .Response2.069
    ;↵0.000
    import0.000
  7. 8.96 … ;↵ graphics.lineTo(x, y);↵ rot += step;↵↵ x = cx + Math.cos(rot) * innerRadius;↵ y = cy + Math.sin(rot) * innerRadius;↵ graphics …
    All 413 tokens

    var config = {↵ type: Phaser.AUTO,↵ parent: 'phaser-example',↵ width: 800,↵ height: 600,↵ scene: {↵ create: create↵ },↵};↵↵var game = new Phaser.Game(config);↵↵function create() {↵↵ var graphics = this.add.graphics();↵↵ drawStar(graphics, 100, 300, 4, 50, 50 / 2, 0xffff00, 0xff0000);↵ drawStar(graphics, 400, 300, 5, 100, 100 / 2, 0xffff00, 0xff0000);↵ drawStar(graphics, 700, 300, 6, 50, 50 / 2, 0xffff00, 0xff0000);↵}↵↵function drawStar (graphics, cx, cy, spikes, outerRadius, innerRadius, color, lineColor)↵{↵ var rot = Math.PI / 2 * 3;↵ var x = cx;↵ var y = cy;↵ var step = Math.PI / spikes;↵↵ graphics.lineStyle(4, lineColor, 1);↵ graphics.fillStyle(color, 1);↵ graphics.beginPath();↵ graphics.moveTo(cx, cy - outerRadius);↵↵ for (i = 0; i < spikes; i++)↵ {↵ x = cx + Math.cos(rot) * outerRadius;↵ y = cy + Math.sin(rot) * outerRadius;↵ graphics.lineTo(x, y);↵ rot += step;↵↵ x = cx + Math.cos(rot) * innerRadius;↵ y = cy + Math.sin(rot) * innerRadius;↵ graphics.lineTo(x, y);↵ rot += step;↵ }↵↵ graphics.lineTo(cx, cy - outerRadius);↵ graphics.closePath();↵ graphics.fillPath();↵ graphics.strokePath();↵}↵

    Values
    TokenPositive-pole strength
    ;↵0.000
    0.000
    graphics0.090
    .lineTo2.146
    (x0.406
    ,0.000
    y0.000
    );↵0.000
    0.000
    rot0.062
    +=2.745
    step0.007
    ;↵↵0.000
    0.000
    x0.000
    =0.069
    cx0.000
    +6.678
    Math0.000
    .cos0.271
    (rot0.107
    )0.000
    *0.000
    inner0.177
    Radius0.042
    ;↵0.000
    0.000
    y0.000
    =0.000
    cy0.000
    +8.956
    Math0.305
    .sin0.054
    (rot0.000
    )0.000
    *0.000
    inner0.000
    Radius0.000
    ;↵0.000
    0.000
    graphics0.000
  8. 8.63 … a notebook entity modelled which seems wrong as well).↵Below is the very simple class I have:↵class Notebook↵{↵ private String title;↵ private List<Category> categories;↵↵ public Notebook(String title …
    All 512 tokens

    Q:↵↵Is a low number of members in a class considered a code smell?↵↵I am currently making a simple to-do list program using the MVC pattern, and thus have a model class for the Notebook. However, something feels "off" as it has a very low number of members.↵The Notebook is composed of categories, which are composed of To-do lists, which are composed of Items. ↵What I cannot place is whether this is a case poor analysis (e.g. there are more members and responsibilities I am just missing them..) or perhaps a code smell that the class is not needed (in that case I'm not sure what to do as I could just have a list of categories in that controller, but then I don't have a notebook entity modelled which seems wrong as well).↵Below is the very simple class I have:↵class Notebook↵{↵ private String title;↵ private List<Category> categories;↵↵ public Notebook(String title, List<Category> categories)↵ {↵ }↵↵ public void setCategories(List<Category> categories)↵ {↵ }↵↵ public List<Category> getCategories()↵ {↵ }↵}↵↵I often have this issue where it feels like I am making classes for the sake of it and they have a very number of members/responsibilities, so it would be nice to know whether I am stressing for no reason or not.↵↵A:↵↵Not necessarily, there is the concept in Domain Driven Design of what is called a "Standard Type". Which is really a basic primitive wrapped in an object class. The idea is that the primitive contains no information about what information it contains, it's just a string/int/whatever. So by having say an object that surrounds the primitive and ensures that it is always valid ensures that the object has a meaning far beyond just the primitive it contains e.g. a Name is not just a string, it's a Name.↵Here's an example taken from the comments of Velocity↵public class Velocity↵{↵ private readonly decimal _velocityInKPH;↵↵ public static Velocity VelocityFromMPH(decimal mph)↵ {↵ return new Velocity(toKph(mph));↵ }↵↵ private Velocity(decimal kph)↵ {↵ this._velocityInKPH = kph;↵ }↵↵ public decimal Kph↵ {↵ get{ return this._velocityInKPH; }↵ }↵↵ public decimal Mph↵ {↵ get{ return toMph(this._velocityInKPH); }↵ }↵↵ // equals addition subtraction operators etc.↵↵ private static

    Values
    TokenPositive-pole strength
    a0.000
    notebook0.175
    entity0.151
    model0.242
    led0.216
    which0.102
    seems0.274
    wrong0.326
    as0.150
    well0.356
    ).↵0.000
    Below0.014
    is0.135
    the0.156
    very0.419
    simple0.008
    class0.068
    I0.195
    have0.000
    :↵0.000
    class0.000
    Notebook0.129
    ↵0.000
    {↵0.000
    0.000
    private0.000
    String0.000
    title0.000
    ;↵0.000
    0.000
    private8.627
    List2.188
    <Category1.096
    >0.000
    categories0.632
    ;↵↵0.000
    0.000
    public0.817
    Notebook6.105
    (String0.000
    title1.231
  9. 8.58 … _MESSAGE, message);↵ confirmDialog.setArguments(args);↵ confirmDialog.setCallbacks(callbacks);↵ return confirmDialog;↵ }↵↵ public void setCallbacks(ConfirmDialogCallback[] callbacks) {↵ _ …
    All 314 tokens

    ) {↵ WrConfirmDialog confirmDialog = new WrConfirmDialog();↵ Bundle args = new Bundle();↵ args.putSerializable(EXTRA_DATA, data);↵ args.putString(EXTRA_TITLE, title);↵ args.putString(EXTRA_MESSAGE, message);↵ confirmDialog.setArguments(args);↵ confirmDialog.setCallbacks(callbacks);↵ return confirmDialog;↵ }↵↵ public void setCallbacks(ConfirmDialogCallback[] callbacks) {↵ _callbacks = callbacks;↵ }↵↵ @Override↵ @NonNull↵ public Dialog onCreateDialog(Bundle savedInstanceState) {↵ String title = getArguments().getString(EXTRA_TITLE);↵ String message = getArguments().getString(EXTRA_MESSAGE);↵ _data = getArguments().getSerializable(EXTRA_DATA);↵↵ AlertDialog.Builder dialogBuilder;↵ boolean darkTheme = AppSettings.get().isDarkThemeEnabled();↵ dialogBuilder = new AlertDialog.Builder(getActivity(), darkTheme ?↵ R.style.Theme_AppCompat_Dialog : R.style.Theme_AppCompat_Light_Dialog);↵↵ dialogBuilder.setTitle(title);↵ if (!TextUtils.isEmpty(message)) {↵ dialogBuilder.setMessage(message);↵ }↵↵ dialogBuilder.setPositiveButton(getString(android.R.string.ok), (dialog, which) -> {↵ if (_callbacks != null) {↵ for (ConfirmDialogCallback cdc : _callbacks) {↵ if (cdc != null) {↵ cdc.onConfirmDialogAnswer(true, _data);↵ }↵ }↵ }↵ });↵↵ dialogBuilder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> {↵ dialog.dismiss();↵ for (ConfirmDialogCallback cdc : _cal

    Values
    TokenPositive-pole strength
    _MESSAGE0.000
    ,0.000
    message0.234
    );↵0.000
    2.947
    confirm0.252
    Dialog0.000
    .set0.331
    Arguments0.289
    (args0.000
    );↵0.000
    3.417
    confirm0.000
    Dialog0.000
    .set0.081
    Callbacks0.000
    (callback0.000
    s0.157
    );↵0.000
    2.992
    return2.353
    confirm0.000
    Dialog0.000
    ;↵0.000
    0.000
    }↵↵0.000
    0.000
    public2.736
    void0.000
    set0.000
    Callbacks8.581
    (3.143
    Confirm1.138
    Dialog0.226
    Callback0.000
    []0.000
    callbacks2.299
    )0.000
    {↵0.000
    1.049
    _0.000
  10. 8.41 … )↵ }↵ }↵ }↵↵ private inner class MyModulesListener : ModuleRootListener, ModuleListener {↵ private val myMappingsForRemovedModules: MutableList<VcsDirectoryMapping> = mutableListOf()↵↵ …
    All 512 tokens

    // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.↵package com.intellij.openapi.vcs.impl↵↵import com.intellij.ProjectTopics↵import com.intellij.openapi.application.ApplicationManager↵import com.intellij.openapi.components.service↵import com.intellij.openapi.extensions.ExtensionNotApplicableException↵import com.intellij.openapi.module.Module↵import com.intellij.openapi.module.ModuleManager↵import com.intellij.openapi.project.ModuleListener↵import com.intellij.openapi.project.Project↵import com.intellij.openapi.project.rootManager↵import com.intellij.openapi.roots.ModuleRootEvent↵import com.intellij.openapi.roots.ModuleRootListener↵import com.intellij.openapi.startup.StartupActivity↵import com.intellij.openapi.vcs.AbstractVcs↵import com.intellij.openapi.vcs.ProjectLevelVcsManager↵import com.intellij.openapi.vcs.VcsDirectoryMapping↵import com.intellij.openapi.vfs.VirtualFile↵↵internal class ModuleVcsDetector(private val project: Project) {↵ private val vcsManager by lazy(LazyThreadSafetyMode.NONE) {↵ (ProjectLevelVcsManager.getInstance(project) as ProjectLevelVcsManagerImpl)↵ }↵↵ internal class MyPostStartUpActivity : StartupActivity.DumbAware {↵ init {↵ if (ApplicationManager.getApplication().isUnitTestMode) {↵ throw ExtensionNotApplicableException.INSTANCE↵ }↵ }↵↵ override fun runActivity(project: Project) {↵ val vcsDetector = project.service<ModuleVcsDetector>()↵↵ val listener = vcsDetector.MyModulesListener()↵ val busConnection = project.messageBus.connect()↵ busConnection.subscribe(ProjectTopics.MODULES, listener)↵ busConnection.subscribe(ProjectTopics.PROJECT_ROOTS, listener)↵↵ if (vcsDetector.vcsManager.needAutodetectMappings()) {↵ vcsDetector.autoDetectVcsMappings(true)↵ }↵ }↵ }↵↵ private inner class MyModulesListener : ModuleRootListener, ModuleListener {↵ private val myMappingsForRemovedModules: MutableList<VcsDirectoryMapping> = mutableListOf()↵↵ override fun beforeRootsChange(event: ModuleRootEvent) {↵ myMappingsForRemovedModules.clear()↵ }↵↵ override fun rootsChanged(event: ModuleRootEvent) {↵ myMappingsForRemovedModules.forEach { mapping -> vcsManager.removeDirectoryMapping(mapping) }↵ // the check calculates to true only before user has done any change to mappings, i.e. in case modules are detected/added automatically↵ // on start etc (look inside

    Values
    TokenPositive-pole strength
    )↵0.000
    0.000
    }↵0.000
    0.212
    }↵0.000
    0.000
    }↵↵0.000
    0.000
    private0.000
    inner0.181
    class0.548
    My0.000
    Modules0.000
    Listener0.000
    :0.491
    Module0.000
    Root0.000
    Listener0.000
    ,1.124
    Module0.000
    Listener0.000
    {↵0.000
    0.000
    private0.000
    val0.000
    my0.000
    Mappings0.000
    For0.000
    Removed0.000
    Modules0.000
    :8.412
    MutableList4.358
    <V0.000
    cs0.399
    Directory0.000
    Mapping1.700
    >0.109
    =0.679
    mutableListOf1.348
    ()↵↵0.000
    0.000
  11. 8.40 … is my class also...↵import Foundation↵↵struct Item {↵ let name: String↵ let carbs: Int↵}↵↵struct Category {↵ let name: String↵ let items: [Item]↵}↵↵ …
    All 446 tokens

    Q:↵↵Not populating tableview with structure array↵↵I need to populate my tableView with an array of a structure. The first property of the structure is the name. This is what I tried...↵var menuArray:[Restaurant] = [Restaurant]()↵ override func viewDidLoad() {↵ super.viewDidLoad()↵let shake = Item(name: "Shake", carbs: 20)↵ let fries = Item(name: "Fries", carbs: 30)↵↵ let beverages = Category(name: "Beverages", items: [shake])↵ let chips_fries = Category(name: "Chips & Fries", items: [fries])↵ let desserts = Category(name: "Desserts", items: [])↵ let other = Category(name: "Other Menu Items", items: [])↵ let sandwiches_burgers = Category(name: "Sandwiches & Burgers", items: [])↵ let sides = Category(name: "Sides", items: [])↵↵ a_w = Restaurant(name: "A&W", categories: [beverages, chips_fries, desserts, other, sandwiches_burgers, sides])↵↵ let menuArray = [a_w]↵↵}↵↵override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {↵ let currentCell = tableView.dequeueReusableCell(withIdentifier: "cell")↵ let currentRestaurant = menuArray[indexPath.row]↵ currentCell?.textLabel!.text = currentRestaurant.name↵ return currentCell!↵}↵override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {↵↵ return menuArray.count↵}↵↵Why won't it populate my tableView↵Here is my class also...↵import Foundation↵↵struct Item {↵ let name: String↵ let carbs: Int↵}↵↵struct Category {↵ let name: String↵ let items: [Item]↵}↵↵struct Restaurant {↵ let name: String↵ let categories: [Category]↵↵}↵↵A:↵↵In this line↵let menuArray = [a_w]↵↵you are creating a local variable menuArray which is different from the property with the same name representing the data source array.↵Omit let↵menuArray = [a_w]↵↵PS: Please use more descriptive variable names than a_w.↵↵

    Values
    TokenPositive-pole strength
    is0.000
    my0.000
    class0.000
    also0.000
    ...↵0.000
    import0.136
    Foundation0.000
    ↵↵0.000
    struct0.361
    Item0.000
    {↵0.000
    0.000
    let0.000
    name0.225
    :6.015
    String0.000
    ↵0.000
    0.000
    let0.000
    carbs0.000
    :5.457
    Int1.358
    ↵0.000
    }↵↵0.000
    struct0.041
    Category0.554
    {↵0.000
    0.000
    let0.000
    name1.202
    :8.403
    String0.000
    ↵0.000
    0.000
    let0.000
    items0.250
    :4.364
    [1.462
    Item1.371
    ]↵0.000
    }↵↵0.000
  12. 7.93 … XMLInputFactory factory = XMLInputFactory.newInstance();↵ XMLStreamReader parser = factory.createXMLStreamReader(in);↵↵ // lecture des evenements↵ for (int event = parser.next(); event != XML …
    All 495 tokens

    question>↵ <reponse>reponse correcte 2</reponse>↵ <mauvaiseReponse>reponse fausse 2.1</mauvaiseReponse>↵ <mauvaiseReponse>reponse fausse 2.2</mauvaiseReponse>↵ <mauvaiseReponse>reponse fausse 2.3</mauvaiseReponse>↵</questionReponse>↵<questionReponse>↵ <categorie>CultureG</categorie>↵ <question>Question 3</question>↵ <reponse>reponse correcte 3</reponse>↵ <mauvaiseReponse>reponse fausse 3.1</mauvaiseReponse>↵ <mauvaiseReponse>reponse fausse 3.2</mauvaiseReponse>↵ <mauvaiseReponse>reponse fausse 3.3</mauvaiseReponse>↵</questionReponse>↵↵here is my parser:↵try {↵ // instanciation du parser↵ InputStream in = new FileInputStream(nomFichier);↵ XMLInputFactory factory = XMLInputFactory.newInstance();↵ XMLStreamReader parser = factory.createXMLStreamReader(in);↵↵ // lecture des evenements↵ for (int event = parser.next(); event != XMLStreamConstants.END_DOCUMENT; event = parser.next()) {↵ // traitement selon l'evenement↵ switch (event) {↵ case XMLStreamConstants.START_ELEMENT:↵ break;↵ case XMLStreamConstants.END_ELEMENT:↵ if (parser.getLocalName().equals("questionReponse")) {↵ question = new Question(categorieCourante,questionCourante,bonneReponseCourante,mauvaisesReponses);↵ quizz.add(question);↵ } ↵ if (parser.getLocalName().equals("categorie")) {↵ categorieCourante = donneesCourantes;↵ }↵ if (parser.getLocalName().equals("question")) {↵ questionCourante = donneesCourantes;↵ }↵ if (parser.getLocalName().equals("reponse")) {↵ bonneReponseCourante = donneesCourantes;↵ }↵ if (parser.getLocalName().equals("mauvaiseReponse")) {↵ mauvaisesReponses.add(donneesCourantes);↵ }↵ break;↵ case XMLStreamConstants.CHARACTERS:↵ donneesCour

    Values
    TokenPositive-pole strength
    5.859
    XML1.377
    Input0.055
    Factory0.000
    factory0.399
    =1.300
    XML0.437
    Input0.203
    Factory0.224
    .newInstance0.000
    ();↵0.021
    4.204
    XML0.169
    StreamReader0.000
    parser1.027
    =0.000
    factory0.012
    .create0.463
    XML0.802
    StreamReader0.355
    (in0.000
    );↵↵0.000
    4.742
    //0.000
    lecture0.000
    des0.000
    even0.000
    ements0.000
    ↵0.280
    4.530
    for7.932
    (2.302
    int0.000
    event0.601
    =0.140
    parser0.000
    .next0.659
    ();0.000
    event0.096
    !=2.584
    XML2.281
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.

Activation and mechanism

Activation distribution

[0, 0.434): 162328 [0.434, 0.867): 33317 [0.867, 1.3): 3012 [1.3, 1.73): 549 [1.73, 2.17): 233 [2.17, 2.6): 126 [2.6, 3.04): 82 [3.04, 3.47): 55 [3.47, 3.9): 39 [3.9, 4.34): 26 [4.34, 4.77): 18 [4.77, 5.2): 15 [5.2, 5.64): 13 [5.64, 6.07): 12 [6.07, 6.51): 12 [6.51, 6.94): 9 [6.94, 7.37): 10 [7.37, 7.81): 7 [7.81, 8.24): 6 [8.24, 8.67): 12 [8.67, 9.11): 3 [9.11, 9.54): 3 [9.54, 9.98): 4 [9.98, 10.4): 2 [10.4, 10.8): 0 [10.8, 11.3): 1 [11.3, 11.7): 0 [11.7, 12.1): 1 [12.1, 12.6): 0 [12.6, 13): 1 0.00 13.01

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

Mechanism

Claimed retrospective: responds to tokens already in context.

Input attribution

  • #1 (not converged) at =: imals-6 0.18 =0 0.17(n-5 0.12Locale-58 0.12 PL-45 0.08
  • #2 (not converged) at Cache: Cache0 0.22. -188 0.22 */ -187 -0.16(-25 0.10/** -203 -0.09
  • #3 (not converged) at for: for0 -1.20 -1 0.62(); -2 0.52c-19 0.34 =-31 0.18
  • #4 (not converged) at =: max-1 0.64 var-2 0.20's-69 -0.18 =0 -0.17 -3 -0.14
  • #5 (not converged) at public: ://-30 0.29.com-26 -0.29 Ajax-10 0.24http-31 0.21.class-13 -0.17

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

Vocabulary projection

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

Jacobian lens

ampus · z = +4.17 · #1 promoted ampus icularly · z = +4.10 · #2 promoted icularly JKLMNOP · z = +4.09 · #3 promoted JKLMNOP ␣setBackgroundImage · z = +4.06 · #4 promoted ␣setBackgroundImage 在过渡 · z = +3.86 · #5 promoted 在过渡 ٪ · z = +3.84 · #6 promoted ٪ 侧面 · z = +3.83 · #7 promoted 侧面 iform · z = +3.82 · #8 promoted iform 一条龙 · z = +3.81 · #9 promoted 一条龙 ELY · z = +3.81 · #10 promoted ELY Math · z = -9.93 · #10 suppressed Math ␣strings · z = -10.10 · #9 suppressed ␣strings ␣string · z = -10.27 · #8 suppressed ␣string ,String · z = -10.66 · #7 suppressed ,String ␣Strings · z = -10.83 · #6 suppressed ␣Strings ␣Math · z = -10.94 · #5 suppressed ␣Math ⇥String · z = -11.13 · #4 suppressed ⇥String String · z = -11.30 · #3 suppressed String (String · z = -12.80 · #2 suppressed (String ␣String · z = -13.91 · #1 suppressed ␣String -15 -10 -5 0 +5 +10 +15

Logit lens

ampus · z = +4.17 · #1 promoted ampus icularly · z = +4.10 · #2 promoted icularly JKLMNOP · z = +4.09 · #3 promoted JKLMNOP ␣setBackgroundImage · z = +4.06 · #4 promoted ␣setBackgroundImage 在过渡 · z = +3.86 · #5 promoted 在过渡 ٪ · z = +3.84 · #6 promoted ٪ 侧面 · z = +3.83 · #7 promoted 侧面 iform · z = +3.82 · #8 promoted iform 一条龙 · z = +3.81 · #9 promoted 一条龙 ELY · z = +3.81 · #10 promoted ELY Math · z = -9.93 · #10 suppressed Math ␣strings · z = -10.10 · #9 suppressed ␣strings ␣string · z = -10.27 · #8 suppressed ␣string ,String · z = -10.66 · #7 suppressed ,String ␣Strings · z = -10.83 · #6 suppressed ␣Strings ␣Math · z = -10.94 · #5 suppressed ␣Math ⇥String · z = -11.13 · #4 suppressed ⇥String String · z = -11.30 · #3 suppressed String (String · z = -12.80 · #2 suppressed (String ␣String · z = -13.91 · #1 suppressed ␣String -15 -10 -5 0 +5 +10 +15
promotes suppresses Hover a bar for its value.
Values
#Jacobian lens promotessuppressesLogit lens promotessuppresses
1 ampus +4.17 String -13.91 ampus +4.17 String -13.91
2 icularly +4.10 (String -12.80 icularly +4.10 (String -12.80
3 JKLMNOP +4.09 String -11.30 JKLMNOP +4.09 String -11.30
4 setBackgroundImage +4.06 String -11.13 setBackgroundImage +4.06 String -11.13
5 在过渡 +3.86 Math -10.94 在过渡 +3.86 Math -10.94
6 ٪ +3.84 Strings -10.83 ٪ +3.84 Strings -10.83
7 侧面 +3.83 ,String -10.66 侧面 +3.83 ,String -10.66
8 iform +3.82 string -10.27 iform +3.82 string -10.27
9 一条龙 +3.81 strings -10.10 一条龙 +3.81 strings -10.10
10 ELY +3.81 Math -9.93 ELY +3.81 Math -9.93

Top-10 overlap 100% · cos(w, J·w) 1.00 · kurtosis 6.5 (Jacobian) / 6.5 (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 2 unit fruitcountrypolitics
control periodemotionanimal
category 23 unit nounnounnoun
control nounnounnoun
meaning 2 unit "to be known" or "to be known to".to be used in the following way: "The meaning ofto mean something. The word "meaning" is to mean
control to increase the value of something. It is used to describeto be used in a positive way. It is not to"to be the subject of a verb, to be the
meaning 23 unit "a question mark" in the sentence "The question mark"a question mark" in the sentence "The question mark"a question mark" in the sentence "The question mark
control "a question mark" in the sentence "The question mark"a question mark" in the sentence "The question mark"a question mark" in the sentence "The question mark

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 (13.01), 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

sunny. It's a good day to go for a walk. I'm going to the park. I'm going to

Baseline

sunny. It's a good day to go for a walk. I'm going to the park. I'm going to

Clamped ×1

sunny. It is ________ than yesterday. A. hot B. colder C. hotter D. colder

Clamped ×2

sunny. (改为一般疑问句) ____ the weather today? Is it sunny 阅读下面的文言文,

Clamped ×4

sunny.(改为一般疑问句) ____ the weather today? Is it sunny 阅读材料,完成下列要求。

I went to the shop and bought …
Ablated

a lot of things. I ________ a lot of things. A. bought B. bought C. am buying D

Baseline

a lot of things. I ________ a lot of things. A. bought B. bought C. am buying D

Clamped ×1

a lot of things.(改为一般疑问句) Did you go to the shop and buy a lot of things?

Clamped ×2

a lot of things.(改为一般疑问句) Did you go to the shop and buy a lot of things?

Clamped ×4

a lot of things.(改为一般疑问句) Did you go to the shop and buy a lot of things?

The best way to learn is …
Ablated

to do it. This is the motto of the University of the Philippines (UP) and the University of the Philippines Health

Baseline

to do it. This is the motto of the University of the Philippines (UP) and the University of the Philippines Health

Clamped ×1

to teach. This is the motto of the National Association of Teachers of English Language Arts (NATELA). The N

Clamped ×2

to teach. This is the motto of the National Association of Teachers of English (NATE) and the National Council of

Clamped ×4

to teach. This is the motto of the National Council for the Teaching of English (NCTE), a national organization

Once upon a time, …
Ablated

there was a little girl named Lily. She loved to play with her toys and watch the stars. One day, she

Baseline

there was a little girl named Lily. She loved to play with her toys and watch the stars. One day, she

Clamped ×1

there was a little girl named Lily who loved to play with her toys. One day, she found a box of colorful

Clamped ×2

there was a little girl named Lily who loved to play with her toys. One day, she found a special toy that

Clamped ×4

there was a king who lived in a palace. He had a garden full of flowers and trees. He loved his garden

The report concluded that …
Ablated

the 2010 census showed that the population of the United States was 318,000

Baseline

the 2010 census showed that the population of the United States was 318,000

Clamped ×1

the 2010 census showed that the population of the country had increased by 1.2 million people,

Clamped ×2

the country's economy grew by 6.4 percent in 2014, the fastest growth rate since

Clamped ×4

the country's national budget deficit rose by 1.4% in the first half of 2018,

Wiring

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

Read more

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

From activations. Averaged over this pole's peak on 14 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 activations

Upstream neurons
L20/N1574 +2.63
L20/N3772 +0.993
L19/N3371 +0.976
L18/N3917 +0.948
L19/N4403 +0.617
L21/N3558 +0.594
L22/N82 -0.58
L20/N4390 +0.512
L22/N1439 +0.42
L21/N3152 +0.374
Upstream heads
L20/H8 +0.985
L23/H1 -0.951
L21/H9 -0.87
L17/H1 +0.673
L20/H10 -0.579
L22/H3 +0.554
L21/H4 -0.531
L20/H13 -0.479
L21/H5 -0.456
L21/H3 -0.409
Downstream neurons

None: no later layer.

Downstream heads

None: no later layer.

Covariance and confounds

Confounds

Token identity R²
0.27
Position R²
0.00
Frequency r
0.06
Best trivial baseline
never active · 0.45
Hypothesis
0.95 ✓

Cache throwsued.util<Stringvascularreme.io.Data.utils Solid connect

Co-activating neuron poles

Pole Lift ≥ Both ρ r
N4444+ 49.8 124 +0.08 +0.23
N3814+ 35.1 90 +0.05 +0.08
N1128+ 24.8 67 -0.15 +0.02
N4452− 20.2 56 +0.18 -0.13
N898+ 19.8 55 +0.12 +0.08
N4836− 19.8 55 +0.06 -0.03
N4033+ 18.9 53 +0.07 +0.06
N4554− 18.5 52 +0.16 -0.08
N476+ 17.3 49 +0.02 -0.01
N1858− 16.9 48 -0.13 -0.02
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
N4444, N3814, N1128
KL pole alone
2.16e-02
KL partners
4.27e-02
KL together
9.70e-02
Redundancy ratio
2.52

The pole matters more once its partners are removed: likely redundancy.

Run details

Submitted by
deepseek-flash
Reviewed by
deepseek-flash (same model as the proposer: not an independent review)
Reviewed at
2026-10-31 22:32 UTC
Max activation
13.0115
Selection
manual
Corpus
corpus.jsonl · 199,896 tokens · seeded sample of 477/500 docs (≤ 200,000 tokens, seed 0) · 512-token windows every 256 tokens · source NeelNanda/pile-10k@127bfedc (data/*.parquet, first 500 docs) (inferred) · licence bigscience-bloom-rail-1.0
Model revision
060db6499f32 · float32
Ran on
scan mps:0 · review mps:0
Run cost
0.5 min (slowest: probe_measurement, 0.4 min)