Open Interpretability Models Contributors Research Posts About

Qwen/Qwen2.5-1.5B · L27/N4346 · 20261113T223710Z

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

#1 · positive pole + NEEDS REVISION moderate evidence for · 0.90 self-reviewed counts toward status 2026-11-13 · 20261113T223710Z

Fires on code tokens inside a still-open bracket, mostly a round call or argument bracket ('(' ... not yet closed). It is zero outside brackets, on the closing token and after it. It is strongest at depth 2-3 of nested calls, and it peaks on the token that completes the innermost argument just before the closers, typically a standalone closing quote ("'" or '"' left as its own token before '))'), a final identifier/number/keyword argument, or ']'/'}' ending a nested list; it is weaker (about a third) at depth 1 and inside square brackets alone, and weak in prose parentheticals.

The whole hypothesis

Fires on code tokens inside a still-open bracket, mostly a round call or argument bracket ('(' ... not yet closed). It is zero outside brackets, on the closing token and after it. It is strongest at depth 2-3 of nested calls, and it peaks on the token that completes the innermost argument just before the closers, typically a standalone closing quote ("'" or '"' left as its own token before '))'), a final identifier/number/keyword argument, or ']'/'}' ending a nested list; it is weaker (about a third) at depth 1 and inside square brackets alone, and weak in prose parentheticals.

Hard negatives 10/13 rejected · holdouts 6/7 fired (independent observations; 20 probes) · P(useful) 0.95

Sister study: tests the explanation of openai-community--gpt2/L8/N689-positive/20261109T162325Z, unchanged

Balanced accuracy
0.81
Sufficiency
0.98
Necessity
0.88
Lookahead KL
0.0033
✓ enough hard negatives ✓ enough holdouts ✗ specificity ✓ sensitivity ✓ counterfactual reproduction ✓ lookahead consistent ✓ independent review ✓ beats confound baseline ✓ not default on

specificity 0.77 · sensitivity 0.86 · counterfactual reproduction 1.00 · protocol v0.8

resourcesid_DIV(parent(result(filter(falsedepth.Right

Adversarial review

hard_negative: 10/13 passed; positive_holdout: 6/7 passed; counterfactual: 8/8 passed; lookahead_consistency: 1/1 passed. Failed gates: specificity.

Hard negatives 10/13 stay below Positive holdouts 6/7 reach it threshold 11.14 (25% of max) → active passed · 0.000 (0% of max) SELECT id, resources, depth FROM catalogue WHERE owner_id = 17 AND status = 'active'; passed · 0.130 (0% of max) Memo: retention review, storage group. The archive holds four kinds of resources, namely scanned letters, audio logs, photographs and spreadsheets. Every ite… passed · 0.874 (2% of max) He filed the report under the name "resources" and closed the folder. passed · 0.876 (2% of max) last := b2.Right + b1.Left total := last * 2 name := "span" passed · 1.418 (3% of max) resources: id: 42 depth: 3 filters: - name: status - name: owner passed · 2.273 (5% of max) for f in resources id depth; do wc -l "$f.txt" done passed · 9.711 (22% of max) <div class="MODULE_MAP_DIV"><span>id</span><p>depth report</p></div> passed · 9.807 (22% of max) The resources index records the id and the depth of every entry in the archive, alongside the owner and the date. passed · 9.807 (22% of max) The well reached a depth of a hundred and twenty metres before the drill bit hit bedrock, and the survey team logged the reading before sunset. passed · 9.807 (22% of max) The catalogue (resources, id and depth) sits in the appendix, and the main text only discusses colours and dates. failed · 18.025 (40% of max) // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to d… failed · 21.371 (48% of max) ]); return id; } } failed · 30.922 (69% of max) from collections import OrderedDict from itertools import chain import json failed · 10.787 (24% of max) model.fit(preprocess(normalize(features, axis=1)), epochs=50) passed · 12.451 (28% of max) The release checklist below is copied from the team wiki and has not changed since the service moved to the new cluster, so the order of the steps still matt… passed · 12.704 (29% of max) int total = printf("%d items\n", compute_hash(resolve_entry(map, key), offset)); passed · 14.005 (31% of max) SELECT COALESCE(MAX(score), 0) AS top FROM results WHERE cohort = 'b'; passed · 17.292 (39% of max) (defn render [items] (map (fn [item] (str (:label item))) items)) passed · 19.865 (45% of max) let opts = Parser::new().file(build_path(config.get("target").unwrap())).parse::<Options>().expect("bad input"); passed · 20.715 (46% of max) let rows = fetchRows(store, matching: filter(names, by: prefix)) 0 max 44.55
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 29 probes
TestInputExpectedObserved
✓ hard negative The resources index records the id and the depth of every entry in the archive, alongside the owner and the date.
All three claimed trigger words appear as ordinary prose nouns with no bracket open anywhere, where the hypothesis predicts zero.
inactive 9.807
✓ hard negative resources: id: 42 depth: 3 filters: - name: status - name: owner
The trigger identifiers occur as indentation-structured config keys with no round, square or curly bracket open, so the hypothesis predicts silence.
inactive 1.418
✓ hard negative SELECT id, resources, depth FROM catalogue WHERE owner_id = 17 AND status = 'active';
Trigger words appear as SQL column names and a quoted literal with no bracket open, which the hypothesis says is zero.
inactive 0.000
✗ hard negative ]); return id; } }
The snippet starts after the closers, with only closing delimiters and a post-close 'id', and the hypothesis predicts zero on the closing token and after it.
inactive 21.371
✗ hard negative // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights
A prose comment where a quoted word sits inside an open round parenthesis, which the hypothesis treats as weak prose-parenthetical material rather than the claimed in-code peak.
inactive 18.025
✓ hard negative for f in resources id depth; do wc -l "$f.txt" done
A shell loop over the trigger identifiers: code context with no bracket of any kind open, predicted silent.
inactive 2.273
✓ hard negative The well reached a depth of a hundred and twenty metres before the drill bit hit bedrock, and the survey team logged the reading before sunset.
The trigger word 'depth' in its physical sense in a bracket-free prose sentence, where the hypothesis predicts zero.
inactive 9.807
✓ hard negative last := b2.Right + b1.Left total := last * 2 name := "span"
The exact claimed '.Right' token appears as field-access arithmetic in code at depth zero with no bracket open, a different syntactic role from the example call argument.
inactive 0.876
✓ hard negative The catalogue (resources, id and depth) sits in the appendix, and the main text only discusses colours and dates.
The trigger words sit inside a prose parenthesis, and the hypothesis says prose parentheticals are weak rather than the claimed in-bracket code peak.
inactive 9.807
✓ hard negative <div class="MODULE_MAP_DIV"><span>id</span><p>depth report</p></div>
Trigger-shaped tokens appear in HTML tags and text where only angle brackets are open, which the hypothesis does not claim as a firing context.
inactive 9.711
✓ hard negative Memo: retention review, storage group. The archive holds four kinds of resources, namely scanned letters, audio logs, photographs and spreadsheets. Every item carries an id that is minted when the item is ingested, and that id never changes for the life of the item. The catalog also stores a depth number for each item, meaning the number of folder levels between the item and the top of its collection. Last quarter the team audited ten thousand items and found that the depth field is missing for roughly two percent of them, almost all of which were ingested before the migration. The fix is straightforward. First, recompute the depth for the affected items by walking their folder paths and counting the separators. Second, write the missing value back to the catalog and stamp the record with the audit date. Third, add a note to the resources table so the downstream readers know the field was repaired rather than entered by hand. The group agreed that the repair should run overnight, that the backups should be verified in the morning, and that the ids themselves should never be rewritten, because the ids appear in external citations and a changed id would break every link that points at the item.
A long bracket-free prose passage saturated with the trigger words, testing that no far-back context alone produces the claimed code-in-bracket activation.
inactive 0.130
✗ hard negative from collections import OrderedDict from itertools import chain import json
The claimed token 'from' appears as the import keyword at bracket depth zero, the shape of top example 7, which the hypothesis nevertheless calls zero outside brackets.
inactive 30.922
✓ hard negative He filed the report under the name "resources" and closed the folder.
A standalone closing quote after a trigger word in prose with no bracket open, while the hypothesis limits the closing-quote peak to inside an open bracket.
inactive 0.874
✓ positive holdout int total = printf("%d items\n", compute_hash(resolve_entry(map, key), offset));
Nested round calls three deep in C end on the identifier arguments just before the closers, the claimed peak shape, in a language absent from the examples.
active 12.704
✓ positive holdout let opts = Parser::new().file(build_path(config.get("target").unwrap())).parse::<Options>().expect("bad input");
Three-deep nested calls in Rust put a standalone closing quote immediately before a closer and a quoted argument before the final ');', the claimed pattern in a new language.
active 19.865
✗ positive holdout model.fit(preprocess(normalize(features, axis=1)), epochs=50)
A depth-three call chain whose innermost number and final keyword argument complete just before the closers, as the hypothesis predicts.
active 10.787
✓ positive holdout let rows = fetchRows(store, matching: filter(names, by: prefix))
A two-deep nested call in Swift ending on the identifier 'prefix' right before '))', a claimed peak shape in a language not in the examples.
active 20.715
✓ positive holdout SELECT COALESCE(MAX(score), 0) AS top FROM results WHERE cohort = 'b';
Nested SQL function calls place the number argument '0' just before '),' at depth two, which the hypothesis predicts fires outside the example languages.
active 14.005
✓ positive holdout The release checklist below is copied from the team wiki and has not changed since the service moved to the new cluster, so the order of the steps still matters even though several of the commands are now wrapped by the deploy runner. First, confirm that the build cache is warm by checking the timestamp on the manifest file. A stale manifest means the previous deploy failed halfway, and the operator must rerun the packaging step before going further. Second, compare the schema digest with the digest published in the release notes. If the two differ, stop and page the on-call engineer, because a mismatch means the migration ran against the wrong database tier, and any traffic served after that point will write rows that the old reader cannot parse. Third, verify that every node in the pool reports the same kernel version. Mixed versions were the cause of the incident in March, and the rollout will not start until the fleet is uniform. Fourth, take a snapshot of the primary and wait for the copy to finish replicating to the standby before promoting anything, because the promotion script does not check replication lag on its own. Fifth, notify the support desk so they can watch the queue for the first ten minutes of live traffic. Sixth, confirm that the feature flags for the new pricing path are still dark; the pricing team owns that flag and has asked twice to be told before it is enabled in production. Seventh, open the dashboard that tracks the write latency of the primary, and leave it open on the wall display for the duration of the window. Only after all seven checks does the operator run the promotion script, which loads the configuration once at startup and hands it down the call chain, so a typo in the cluster name fails immediately instead of halfway through the rollout: apply_plan(load_config(path, "prod"), dry_run=False)
The claimed feature sits deep inside a long bracket-free passage, testing that the in-bracket activation still appears when the surrounding context is far away.
active 12.451
✓ positive holdout (defn render [items] (map (fn [item] (str (:label item))) items))
Prefix-notation Lisp nesting keeps several round brackets open with the identifier 'item' completing the innermost call before its closers, so the hypothesis predicts firing despite the unfamiliar syntax.
active 17.292
✓ counterfactual schema = { "required": ["resources"], } -> schema = { "required": "resources", } Δ 0.66 Δ 0.66
✓ counterfactual x = foo(bar(a, b), c) -> x = foo.bar.a.b.c Δ 0.30 Δ 0.30
✓ counterfactual print(len(items), sep="\n") -> print len items , sep="\n" Δ 0.45 Δ 0.44
✓ counterfactual data = {"ids": [1, 2, 3], "ok": true} -> data = {"ids": 1, 2, 3 , "ok": true} Δ 0.32 Δ 0.32
✓ counterfactual Values (items and weights) were large. -> Values items and weights were large. Δ 0.33 Δ 0.33
✓ counterfactual return RawColor(MIX(255, color.Red(), x), -> return RawColor(MIX 255 color.Red() x , Δ 0.22 Δ 0.22
✓ counterfactual $result = $this->query($query, array($url)); -> $result = $this->query($query, array($id)); Δ -0.04 Δ -0.04
✓ counterfactual [assembly: ComVisible(false)] -> [assembly: ComVisible(true)] Δ -0.02 Δ -0.02
✓ lookahead consistency schema = { "required": ["resources"], }; x = foo(bar(a, b), c); print(len(items), sep="\n"); data = {"ids": [1, 2, 3], "ok": true}; Values (items and weights) were large.; return RawColor(MIX(255, color.Red(), x),; $result = $this->query($query, array($url));; [assembly: ComVisible(false)]
claimed retrospective; measured retrospective (KL=0.003333, tokens=['),', '",', '],', ',', ')'])

Minimal pairs

Pair 3 Sufficiency: 1.00 · effect 0.141 (matched |effect| median 0.00143, max 0.0612) print(len(items), sep="\n") → print len items , sep="\n" Necessity: 0.78 · effect 0.00369 (matched |effect| median 0.000791, max 0.0298) print(len(items), sep="\n") → print len items , sep="\n" Pair 4 Sufficiency: 0.97 · effect 0.0238 (matched |effect| median 1.41e-06, max 0.47) data = {"ids": [1, 2, 3], "ok": true} → data = {"ids": 1, 2, 3 , "ok": true} Necessity: 0.97 · effect 0.0194 (matched |effect| median 2.48e-06, max 0.0708) data = {"ids": [1, 2, 3], "ok": true} → data = {"ids": 1, 2, 3 , "ok": true} Median (score) Sufficiency: 0.98 · median of 2 pairs 0.98 Necessity: 0.88 · median of 2 pairs 0.88 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 schema = { "required": ["resources"], }
→ schema = { "required": "resources", }
0.66 0.66 — —
2 x = foo(bar(a, b), c)
→ x = foo.bar.a.b.c
0.30 0.30 — —
3 print(len(items), sep="\n")
→ print len items , sep="\n"
0.45 0.44 1.00
effect 0.141
matched 0.00143 / 0.0612
0.78
effect 0.00369
matched 0.000791 / 0.0298
4 data = {"ids": [1, 2, 3], "ok": true}
→ data = {"ids": 1, 2, 3 , "ok": true}
0.32 0.32 0.97
effect 0.0238
matched 1.41e-06 / 0.47
0.97
effect 0.0194
matched 2.48e-06 / 0.0708
5 Values (items and weights) were large.
→ Values items and weights were large.
0.33 0.33 — —
6 return RawColor(MIX(255, color.Red(), x),
→ return RawColor(MIX 255 color.Red() x ,
0.22 0.22 — —
7 $result = $this->query($query, array($url));
→ $result = $this->query($query, array($id));
-0.04 -0.04 — —
8 [assembly: ComVisible(false)]
→ [assembly: ComVisible(true)]
-0.02 -0.02 — —
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 2 non-control pairs, on next-token KL. Median effect 0.0825 (sufficiency) and 0.0116 (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. 44.55 … _]{1,32}$"↵ }↵ }↵}↵var resourcesSchema = {↵ "type": "object",↵ "required": ["resources"],↵ "properties": {↵ "resources" …
    All 767 tokens

    var jjv = require('jjv');↵var env = jjv();↵var optionsSchema = {↵ "type": "object",↵ "required": ["basepath", "mediaType", "apiName"],↵ "properties": {↵ "basepath": { "type": "string" },↵ "mediaType": { "type": "string" },↵ "apiName": {↵ "type": "string",↵ "pattern": "^[a-zA-Z0-9_]{1,32}$"↵ }↵ }↵}↵var resourcesSchema = {↵ "type": "object",↵ "required": ["resources"],↵ "properties": {↵ "resources" : {↵ "type" : "array",↵ "minItems" : 1,↵ "items" : {↵ "type" : "object",↵ "$ref" : "#/definitions/resource"↵ }↵ }↵ },↵ "definitions" : {↵ "resource" : {↵ "required" : ["name", "model"],↵ "properties" : {↵ "name" : { "type" : "string" },↵ "model" : { "type" : "string" },↵ "resources" : {↵ "type" : "array",↵ "minItems" : 1,↵ "items" : {↵ "type" : "object",↵ "$ref" : "#/definitions/resource"↵ }↵ }↵ }↵ }↵ }↵}↵var modelsBasicSchema = {↵ "type": "array",↵ "minItems" : 1,↵ "items" : {↵ "type" : "object",↵ "required" : ["title", "properties", "type", "hasNamedInstances", "isCollection"],↵ "properties" : {↵ "title": {↵ "type": "string"↵ },↵ "hasNamedInstances" : {↵ "type" : "boolean"↵ },↵ "isCollection" : {↵ "type" : "boolean"↵ },↵ "type" : {↵ "type" : "string"↵ },↵ "properties" : {↵ "type" : "object"↵ }↵ }↵ }↵}↵var modelsSchema = {↵ "id": "http://json-schema.org/draft-04/schema#",↵ "$schema": "http://json-schema.org/draft-04/schema#",↵ "description": "Core schema meta-schema",↵ "definitions": {↵ "schemaArray": {↵ "type": "array",↵ "minItems": 1,↵ "items": { "$ref": "#" }↵ },↵ "positiveInteger": {↵ "type": "integer",↵ "minimum": 0↵ },↵ "positiveIntegerDefault0": {↵ "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]↵ },↵ "simpleTypes": {↵ "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]↵ },↵ "stringArray": {↵ "type": "array",↵ "items": { "type": "string" },↵ "minItems": 1,↵ "uniqueItems": true↵ }↵ },↵ "type": "object",↵ "properties": {↵ "id": {↵ "type": "string",↵ "format": "uri"↵ },↵ "$schema": {↵ "type": "string",↵ "format": "uri"↵ },↵ "title": {↵ "type": "string"↵ },↵ "description": {↵ "type": "string"↵ },

    Values
    TokenPositive-pole strength
    _6.173
    ]{0.000
    110.115
    ,12.431
    312.783
    210.795
    }$0.000
    "↵3.675
    28.846
    }↵3.813
    21.982
    }↵3.598
    }↵0.000
    var0.000
    resources0.000
    Schema0.000
    =0.000
    {↵0.158
    0.551
    "0.529
    type0.000
    ":0.000
    "0.000
    object0.000
    ",↵0.872
    0.000
    "0.000
    required0.000
    ":0.000
    ["3.855
    resources44.549
    "],↵0.792
    0.000
    "0.518
    properties0.000
    ":0.000
    {↵0.522
    0.000
    "0.499
    resources0.000
    "0.000
  2. 37.86 … {↵ return array(↵ [self::class, self::MODULE_MAP_DIV],↵ [self::class, self::MODULE_MAPSTATICIMAGE_DIV],↵ [self::class, self::MODULE …
    All 285 tokens

    <?php↵↵class PoP_Module_Processor_MapDivs extends PoP_Module_Processor_MapDivsBase↵{↵ public const MODULE_MAP_DIV = 'em-map-div';↵ public const MODULE_MAPSTATICIMAGE_DIV = 'em-mapstaticimage-div';↵ public const MODULE_MAPSTATICIMAGE_USERORPOST_DIV = 'em-mapstaticimage-userorpost-div';↵↵ public function getModulesToProcess(): array↵ {↵ return array(↵ [self::class, self::MODULE_MAP_DIV],↵ [self::class, self::MODULE_MAPSTATICIMAGE_DIV],↵ [self::class, self::MODULE_MAPSTATICIMAGE_USERORPOST_DIV],↵ );↵ }↵↵ public function getInnerSubmodules(array $module): array↵ {↵ $ret = parent::getInnerSubmodules($module);↵↵ switch ($module[1]) {↵ case self::MODULE_MAPSTATICIMAGE_DIV:↵ $ret[] = [PoP_Locations_Module_Processor_CustomScrolls::class, PoP_Locations_Module_Processor_CustomScrolls::MODULE_SCROLL_STATICIMAGE];↵ break;↵↵ case self::MODULE_MAPSTATICIMAGE_USERORPOST_DIV:↵ $ret[] = [PoP_Locations_Module_Processor_CustomScrolls::class, PoP_Locations_Module_Processor_CustomScrolls::MODULE_SCROLL_STATICIMAGE_USERORPOST];↵ break;↵ }↵↵ return $ret;↵ }↵}

    Values
    TokenPositive-pole strength
    0.000
    {↵0.236
    0.000
    return0.000
    array0.000
    (↵1.285
    0.000
    [0.909
    self3.088
    ::2.632
    class26.359
    ,7.445
    self4.037
    ::3.335
    MODULE6.623
    _MAP9.247
    _DIV34.840
    ],↵1.876
    0.000
    [0.786
    self4.318
    ::5.119
    class14.614
    ,1.253
    self2.483
    ::2.524
    MODULE2.944
    _MAP2.736
    STATIC3.466
    IMAGE8.348
    _DIV37.856
    ],↵2.822
    0.000
    [0.000
    self4.031
    ::4.579
    class13.554
    ,0.986
    self2.223
    ::2.181
    MODULE2.288
  3. 37.64 … License↵// ↵// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including …
    All 517 tokens

    // CodeContracts↵// ↵// Copyright (c) Microsoft Corporation↵// ↵// All rights reserved. ↵// ↵// MIT License↵// ↵// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:↵// ↵// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.↵// ↵// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.↵↵// File System.Configuration.SettingsProviderCollection.cs↵// Automatically generated contract file.↵using System.Collections.Generic;↵using System.IO;↵using System.Text;↵using System.Diagnostics.Contracts;↵using System;↵↵// Disable the "this variable is not used" warning as every field would imply it.↵#pragma warning disable 0414↵// Disable the "this variable is never assigned to".↵#pragma warning disable 0067↵// Disable the "this event is never assigned to".↵#pragma warning disable 0649↵// Disable the "this variable is never used".↵#pragma warning disable 0169↵// Disable the "new keyword not required" warning.↵#pragma warning disable 0109↵// Disable the "extern without DllImport" warning.↵#pragma warning disable 0626↵// Disable the "could hide other member" warning, can happen on certain properties.↵#pragma warning disable 0108↵↵↵namespace System.Configuration↵{↵ public partial class SettingsProviderCollection : System.Configuration.Provider.ProviderCollection↵ {↵ #region Methods and constructors↵ public override void Add(System.Configuration.Provider.ProviderBase provider)↵ {↵ }↵↵ public SettingsProviderCollection()↵ {↵ }↵ #endregion↵↵ #region Properties and indexers↵ public SettingsProvider this [string name]↵ {↵ get↵ {↵ return default(SettingsProvider);↵ }↵ }↵ #endregion↵ }↵}

    Values
    TokenPositive-pole strength
    License0.000
    ↵0.000
    //0.041
    ↵0.000
    //0.430
    Permission0.241
    is0.523
    hereby0.192
    granted0.456
    ,0.732
    free0.037
    of0.000
    charge0.135
    ,0.553
    to0.389
    any0.539
    person0.077
    obtaining0.051
    a0.000
    copy0.064
    of0.065
    this0.000
    software0.127
    and0.384
    associated0.000
    documentation0.000
    files0.672
    (0.062
    the0.417
    "0.000
    Software37.644
    "),0.287
    to0.412
    deal0.272
    in0.358
    the0.000
    Software0.196
    without0.206
    restriction0.401
    ,0.031
    including0.209
  4. 35.07 … 'col3':[0,0,5,7,0,0],↵ 'E':[5,0,6,9,2,0],↵})↵↵c = ['col1','col2 …
    All 545 tokens

    Q:↵↵unique and replace in python↵↵I have huge dataset with more than 100 columns that contain non-null values that I want to replace (and leave all the null values as is). Some columns, however, should stay untouched. ↵I am planning to do the following:↵1) find unique values in these columns ↵2) replace this values with 1 ↵Problem:↵1) something like this barely possible to use for 100+ columns:↵np.unique(df[['Col1', 'Col2']].values)↵↵2) how do I apply than loc to all these columns? code below does not work ↵df_2.loc[df_2[['col1','col2','col3']] !=0, ['col1','col2','col3']] = 1↵↵Maybe there is more reasonable and elegant way to solve the problem. Thanks!↵↵A:↵↵Use DataFrame.mask:↵c = ['col1','col2','col3']↵df_2[c] = df_2[c].mask(df_2[c] != 0, 1)↵↵Or compare by not equal with DataFrame.ne and cast mask by integers with DataFrame.astype:↵df_2 = pd.DataFrame({↵ 'A':list('abcdef'),↵ 'col1':[0,5,0,5,5,0],↵ 'col2':[7,8,9,0,2,0],↵ 'col3':[0,0,5,7,0,0],↵ 'E':[5,0,6,9,2,0],↵})↵↵c = ['col1','col2','col3']↵df_2[c] = df_2[c].ne(0).astype(int)↵print (df_2)↵ A col1 col2 col3 E↵0 a 0 1 0 5↵1 b 1 1 0 0↵2 c 0 1 1 6↵3 d 1 0 1 9↵4 e 1 1 0 2↵5 f 0 0 0 0↵↵EDIT: For select columns by positions use DataFrame.iloc:↵idx = np.r_[6:71,82]↵df_2.iloc[:, idx] = df_2.iloc[:, idx].ne(0).astype(int)↵↵Or first solution:↵df_2.iloc[:, idx] = df_2.iloc[:, idx].mask(df_2.iloc[:, idx]] != 0, 1)

    Values
    TokenPositive-pole strength
    '0.000
    col0.000
    30.000
    ':[0.940
    013.846
    ,2.138
    014.213
    ,1.301
    514.212
    ,2.522
    711.186
    ,2.439
    014.330
    ,5.513
    029.415
    ],↵7.438
    3.722
    '0.000
    E0.000
    ':[0.447
    523.140
    ,4.046
    024.514
    ,5.159
    623.144
    ,5.623
    918.172
    ,4.691
    221.246
    ,10.102
    035.073
    ],↵7.685
    })↵↵0.000
    c0.000
    =0.000
    ['1.181
    col3.653
    17.451
    ','0.966
    col1.961
    212.325
  5. 31.38 … _data, list):↵ include_ids = [rd['id'] for rd in rel_data]↵ else:↵ include_ids = [rel_data['id']]↵ return include_ids↵↵ def get_include …
    All 516 tokens

    import json↵import re↵↵from django.conf import settings↵from django.http import HttpResponse, JsonResponse↵from django.views.generic import View↵from inflection import camelize, pluralize, singularize↵from rest_framework import viewsets↵↵from hooks import MockServerHookParser↵from json_api_builder import (↵ JsonAPIErrorBuilder, JsonAPIResourceDetailBuilder, JsonAPIResourceListBuilder,↵ JsonAPIIncludedResourceListBuilder↵)↵↵↵class MockServerBaseViewSet(viewsets.ViewSet):↵ def request_contains_include(self, request):↵ return 'include' in request.GET.keys()↵↵ def _get_include_ids_from_rel_data(self, rel_data):↵ if isinstance(rel_data, list):↵ include_ids = [rd['id'] for rd in rel_data]↵ else:↵ include_ids = [rel_data['id']]↵ return include_ids↵↵ def get_include_ids_from_response(self, response, include_type):↵ if isinstance(response['data'], list):↵ include_ids = []↵ for obj in response['data']:↵ rel_data = obj['relationships'][include_type]['data']↵ include_ids.extend(self._get_include_ids_from_rel_data(rel_data))↵ else:↵ rel_data = response['data']['relationships'][include_type]['data']↵ include_ids = self._get_include_ids_from_rel_data(rel_data)↵↵ return set(include_ids)↵↵ def get_include_ids_from_included(self, included, include_type):↵ include_ids = []↵ for include_object in included:↵ try:↵ rel_data = include_object['relationships'][include_type]['data']↵ except:↵ pass↵ else:↵ include_ids.extend(self._get_include_ids_from_rel_data(rel_data))↵ break↵↵ return set(include_ids)↵↵ def add_include_objects(self, request, response, length=10, overrides=None):↵ include_groups = [group.split('.') for group in request.GET.get('include').split(',')]↵↵ for include_group in include_groups:↵ for x, include_type in enumerate(include_group):↵ resource_type = camelize(include_type, uppercase_first_letter=False)↵↵ if x == 0:↵ include_ids = self.get_include_ids_from_response(response, resource_type)↵ else:↵ include_ids = self.get_include_ids_from_included(response['included'], resource_type)↵↵↵ json_api_builder = JsonAPIIncludedResourceListBuilder(request,↵ include_type,↵ include_ids,↵ self.page_size,↵ length,↵ config=overrides)↵ include_objects = json_api_builder.build_include_list()↵ if include_obj

    Values
    TokenPositive-pole strength
    _data4.058
    ,0.365
    list9.366
    ):↵0.000
    0.381
    include0.000
    _ids0.000
    =0.000
    [1.232
    rd0.342
    ['2.647
    id13.076
    ']0.000
    for0.000
    rd0.600
    in0.000
    rel2.619
    _data6.393
    ]↵0.567
    0.064
    else0.000
    :↵0.398
    0.058
    include0.000
    _ids0.000
    =0.000
    [1.454
    rel4.001
    _data10.803
    ['3.678
    id31.377
    ']]↵0.100
    0.000
    return0.000
    include0.000
    _ids0.000
    ↵↵1.040
    0.293
    def0.000
    get0.000
    _include0.000
  6. 31.05 … Action for a specific AppComponentInfo.↵Modules.set('collections.AppComponentActions', function() {↵ // imports↵ var Collection = Modules.get('collections.Collection');↵ var AppComponentAction = Modules.get('models …
    All 210 tokens

    // Collection of AppComponentAction for a specific AppComponentInfo.↵Modules.set('collections.AppComponentActions', function() {↵ // imports↵ var Collection = Modules.get('collections.Collection');↵ var AppComponentAction = Modules.get('models.AppComponentAction');↵↵ var AppComponentActions = Collection.extend({↵↵ // AppComponentInfo this actions belong to↵ appComponentInfo: undefined,↵↵ // Note: assumes models is empty.↵ initialize: function(models, options) {↵ this.appComponentInfo = options.appComponentInfo;↵ },↵↵ // Register a new app component action, by creating its model and by adding it to the collection.↵ // Return the model.↵ register: function(actionAttributes, actionData) {↵↵ var actionIndex = this.length;↵↵ var appComponentAction = new AppComponentAction(actionAttributes, {↵ appComponentInfo: this.appComponentInfo,↵ index: actionIndex,↵ data: actionData↵ });↵↵ this.add(appComponentAction);↵↵ return appComponentAction;↵ }↵↵ });↵↵ return AppComponentActions;↵});

    Values
    TokenPositive-pole strength
    Action0.000
    for0.000
    a0.000
    specific0.000
    AppComponent0.000
    Info0.000
    .↵0.000
    Modules0.000
    .set0.000
    ('1.764
    collections7.197
    .App4.465
    Component3.156
    Actions2.993
    ',0.000
    function0.000
    ()0.000
    {↵0.057
    0.000
    //0.000
    imports0.000
    ↵1.017
    0.000
    var0.000
    Collection0.000
    =0.000
    Modules0.000
    .get0.000
    ('2.512
    collections26.153
    .Collection31.051
    ');↵0.000
    0.000
    var0.000
    AppComponent0.000
    Action0.000
    =0.000
    Modules0.000
    .get0.000
    ('2.330
    models5.473
  7. 30.92 from __future__ import print_function↵import argparse↵ …
    All 300 tokens

    from __future__ import print_function↵import argparse↵import os↵import stat↵import sys↵↵# find the import for catkin's python package - either from source space or from an installed underlay↵if os.path.exists(os.path.join('/opt/ros/hydro/share/catkin/cmake', 'catkinConfig.cmake.in')):↵ sys.path.insert(0, os.path.join('/opt/ros/hydro/share/catkin/cmake', '..', 'python'))↵try:↵ from catkin.environment_cache import generate_environment_script↵except ImportError:↵ # search for catkin package in all workspaces and prepend to path↵ for workspace in "/opt/ros/hydro".split(';'):↵ python_path = os.path.join(workspace, 'lib/python2.7/dist-packages')↵ if os.path.isdir(os.path.join(python_path, 'catkin')):↵ sys.path.insert(0, python_path)↵ break↵ from catkin.environment_cache import generate_environment_script↵↵code = generate_environment_script('/home/arlmaster/ros_workspace/destin_package/build/devel/env.sh')↵↵output_filename = '/home/arlmaster/ros_workspace/destin_package/build/catkin_generated/setup_cached.sh'↵with open(output_filename, 'w') as f:↵ #print('Generate script for cached setup "%s"' % output_filename)↵ f.write('\n'.join(code))↵↵mode = os.stat(output_filename).st_mode↵os.chmod(output_filename, mode | stat.S_IXUSR)

    Values
    TokenPositive-pole strength
    from30.922
    __0.712
    future0.126
    __0.000
    import0.000
    print0.000
    _function0.000
    ↵0.000
    import0.000
    argparse0.000
    ↵0.171
  8. 29.82 … Seance> seanceList) {↵ this.seanceList = seanceList;↵ }↵ ↵ public void addSeance(Seance seance){↵ if(!this.seanceList.contains …
    All 668 tokens

    package com.planning.model;↵↵import java.io.Serializable;↵import java.util.HashSet;↵import java.util.Set;↵↵↵public class Enseignant implements Serializable {↵↵ private static final long serialVersionUID = 1L;↵ private int numEns;↵ private String nomEns;↵ private String prenomEns;↵ private String mail;↵ private Long tel;↵ private String iDUser;↵ ↵ private Set<Seance> seanceList = new HashSet<>();↵↵ public Enseignant() {↵ }↵↵ public Enseignant(int numEns) {↵ this.numEns = numEns;↵ }↵ public Enseignant(String nomEns, String prenomEns, String mail, Long tel, String iDUser) {↵ this.nomEns = nomEns;↵ this.prenomEns = prenomEns;↵ this.mail = mail;↵ this.tel = tel;↵ this.iDUser = iDUser;↵ ↵ }↵ public Enseignant(int numEns, String nomEns, String prenomEns, String mail, Long tel, String iDUser) {↵ this.numEns = numEns;↵ this.nomEns = nomEns;↵ this.prenomEns = prenomEns;↵ this.mail = mail;↵ this.tel = tel;↵ this.iDUser = iDUser;↵ }↵ ↵ public Enseignant(String id){↵ this.iDUser = id;↵ }↵↵ public int getNumEns() {↵ return numEns;↵ }↵↵ public void setNumEns(int numEns) {↵ this.numEns = numEns;↵ }↵↵ public String getNomEns() {↵ return nomEns;↵ }↵↵ public void setNomEns(String nomEns) {↵ this.nomEns = nomEns;↵ }↵↵ public String getPrenomEns() {↵ return prenomEns;↵ }↵↵ public void setPrenomEns(String prenomEns) {↵ this.prenomEns = prenomEns;↵ }↵↵ public String getMail() {↵ return mail;↵ }↵↵ public void setMail(String mail) {↵ this.mail = mail;↵ }↵↵ public Long getTel() {↵ return tel;↵ }↵↵ public void setTel(Long tel) {↵ this.tel = tel;↵ }↵↵ public String getIDUser() {↵ return iDUser;↵ }↵↵ public void setIDUser(String iDUser) {↵ this.iDUser = iDUser;↵ }↵↵ public Set<Seance> getSeanceList() {↵ return seanceList;↵ }↵↵ public void setSeanceList(Set<Seance> seanceList) {↵ this.seanceList = seanceList;↵ }↵ ↵ public void addSeance(Seance seance){↵ if(!this.seanceList.contains(seance)) this.seanceList.add(seance);↵ }↵ ↵ public void removeSeance(Seance seance){↵ this.seanceList.remove(seance);↵ ↵ }↵ ↵ public boolean equals(Enseignant enseignant){↵ return this.getNumEns() == enseignant.getNumEns();↵ }↵↵ ↵ public String toString() {↵ return "com.planning.model.Enseignant[ numEns=" + numEns + " ]";↵ }↵ ↵}

    Values
    TokenPositive-pole strength
    Se4.477
    ance2.265
    >2.720
    se9.007
    ance6.350
    List5.168
    )0.000
    {↵0.000
    0.000
    this0.950
    .se3.258
    ance0.000
    List0.000
    =0.000
    se2.379
    ance0.000
    List0.000
    ;↵1.371
    8.494
    }↵0.000
    ↵0.000
    0.000
    public0.000
    void0.411
    add0.000
    Se2.909
    ance0.000
    (3.598
    Se4.694
    ance5.595
    se29.819
    ance19.133
    ){↵0.614
    0.000
    if0.000
    (!1.273
    this0.594
    .se5.720
    ance2.960
    List0.000
    .contains5.210
  9. 29.44 … , 2, b1.Right())↵↵ assert.EqualValues(t, 3, b2.Left())↵ assert.EqualValues(t, 2, b2.Right())↵}↵↵func TestBoundsWithRightReturnsNewBounds …
    All 498 tokens

    package pack↵↵import (↵ "testing"↵↵ "github.com/stretchr/testify/assert"↵)↵↵func TestBoundsLeft(t *testing.T) {↵ assert.EqualValues(t, 1, newBounds(1, 2).Left())↵}↵↵func TestBoundsRight(t *testing.T) {↵ assert.EqualValues(t, 2, newBounds(1, 2).Right())↵}↵↵func TestBoundsWithLeftReturnsNewBounds(t *testing.T) {↵ b1 := newBounds(1, 2)↵ b2 := b1.WithLeft(3)↵↵ assert.EqualValues(t, 1, b1.Left())↵ assert.EqualValues(t, 2, b1.Right())↵↵ assert.EqualValues(t, 3, b2.Left())↵ assert.EqualValues(t, 2, b2.Right())↵}↵↵func TestBoundsWithRightReturnsNewBounds(t *testing.T) {↵ b1 := newBounds(1, 2)↵ b2 := b1.WithRight(3)↵↵ assert.EqualValues(t, 1, b1.Left())↵ assert.EqualValues(t, 2, b1.Right())↵↵ assert.EqualValues(t, 1, b2.Left())↵ assert.EqualValues(t, 3, b2.Right())↵}↵↵func TestBoundsEqualWithIdenticalBounds(t *testing.T) {↵ b1 := newBounds(1, 2)↵ b2 := newBounds(1, 2)↵↵ assert.True(t, b1.Equal(b2))↵}↵↵func TestBoundsEqualWithDifferentBounds(t *testing.T) {↵ b1 := newBounds(1, 2)↵ b2 := newBounds(3, 4)↵↵ assert.False(t, b1.Equal(b2))↵}↵↵func TestBoundsEqualWithNilReceiver(t *testing.T) {↵ bnil := (*bounds)(nil)↵ b2 := newBounds(1, 2)↵↵ assert.False(t, bnil.Equal(b2))↵}↵↵func TestBoundsEqualWithNilArgument(t *testing.T) {↵ b1 := newBounds(1, 2)↵ bnil := (*bounds)(nil)↵↵ assert.False(t, b1.Equal(bnil))↵}↵↵func TestBoundsEqualWithNilArgumentAndReceiver(t *testing.T) {↵ b1 := (*bounds)(nil)↵ b2 := (*bounds)(nil)↵↵ assert.True(t, b1.Equal(b2))↵}↵↵func TestBoundsString(t *testing.T) {↵ b1 := newBounds(1, 2)↵↵ assert.Equal(t, "[1,2]", b1.String())↵}

    Values
    TokenPositive-pole strength
    ,0.748
    2.158
    23.032
    ,1.850
    b3.068
    13.945
    .Right24.584
    ())↵↵0.305
    assert0.000
    .Equal0.000
    Values0.000
    (t3.226
    ,0.565
    2.006
    34.396
    ,1.034
    b1.474
    24.155
    .Left24.344
    ())↵0.908
    assert0.000
    .Equal0.000
    Values0.000
    (t4.411
    ,1.677
    2.454
    23.885
    ,1.415
    b4.939
    23.474
    .Right29.439
    ())↵0.606
    }↵↵0.026
    func0.000
    Test0.000
    Bounds0.000
    With0.000
    Right0.000
    Returns0.000
    New0.000
    Bounds0.000
  10. 28.80 … end_lvl( &$output, $depth = 0, $args = array() ) { ↵ $indent = str_repeat("\t", $depth); ↵ $output .= "$indent</ul>\ …
    All 886 tokens

    <?php ↵/** ↵ * OnyxNS Navigation Menu template functions ↵ * ↵ * ↵ * @since 1.1 ↵ * @uses Walker_Nav_Menu ↵ */ ↵ ↵/** ↵ * Format wp_nav_menu output for bootstrap ↵ * ↵ * @author AlexK ↵ * @since 1.1 ↵ * ↵ */ ↵class Ons_Walker_Nav_Menu extends Walker_Nav_Menu { ↵ function __construct() { ↵ ↵ if(is_callable('parent::__construct')) { ↵ parent::__construct(); ↵ } ↵ ↵ // Add dropdown class to <li> items with subs ↵ add_filter('wp_nav_menu_objects', function ($items) { ↵ $hasSub = function ($menu_item_id, &$items) { ↵ foreach ($items as $item) { ↵ if ($item->menu_item_parent && $item->menu_item_parent==$menu_item_id) { ↵ return true; ↵ } ↵ } ↵ return false; ↵ }; ↵ ↵ foreach ($items as &$item) { ↵ if ($hasSub($item->ID, &$items)) { ↵ $item->classes[] = 'dropdown'; ↵ } ↵ } ↵ return $items; ↵ }); ↵ ↵ } ↵ /** ↵ * @see Walker_Nav_Menu::start_lvl() ↵ * @since 3.0.0 ↵ * ↵ * @param string $output Passed by reference. Used to append additional content. ↵ * @param int $depth Depth of page. Used for padding. ↵ */ ↵ function start_lvl( &$output, $depth = 0, $args = array() ) { ↵ $indent = str_repeat("\t", $depth); ↵ $output .= "\n$indent<ul class=\"sub-menu dropdown-menu\">\n"; ↵ } ↵ ↵ /** ↵ * @see Walker_Nav_Menu::end_lvl() ↵ * @since 3.0.0 ↵ * ↵ * @param string $output Passed by reference. Used to append additional content. ↵ * @param int $depth Depth of page. Used for padding. ↵ */ ↵ function end_lvl( &$output, $depth = 0, $args = array() ) { ↵ $indent = str_repeat("\t", $depth); ↵ $output .= "$indent</ul>\n"; ↵ } ↵ ↵ /** ↵ * @see Walker_Nav_Menu::start_el() ↵ * @since 3.0.0 ↵ * ↵ * @param string $output Passed by reference. Used to append additional content. ↵ * @param object $item Menu item data object. ↵ * @param int $depth Depth of menu item. Used for padding. ↵ * @param int $current_page Menu item ID. ↵ * @param object $args ↵ */ ↵ function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { ↵ global $wp_query; ↵ $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; ↵ ↵ $class_names = $value = ''; ↵ ↵ $classes = empty( $item->classes ) ? array() : (array) $item->classes; ↵ $classes[] = 'menu-item-' . $item->ID; ↵ ↵ $is_dropdown = false; ↵ if( in_array('dropdown', $classes) ) $is_dropdown=true; ↵ $intersect_result = array_intersect(array('current-menu-item','current_page_item','current-menu-parent'), $classes); ↵ if( !empty( $intersect_result )) $classes[] = 'active'; ↵ ↵ $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) ); ↵ $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; ↵ ↵ $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args ); ↵ $id = $id ? ' id="' . esc_attr( $id ) . '"' : ''; ↵ ↵ $output .= $indent . '<li' . $id . $value . $class_names .'>'; ↵ ↵ $attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr(

    Values
    TokenPositive-pole strength
    end0.000
    _lvl0.000
    (0.000
    &$1.050
    output5.356
    ,1.287
    $0.129
    depth6.934
    =3.833
    9.374
    08.069
    ,1.448
    $2.447
    args5.803
    =3.140
    array8.514
    ()7.303
    )0.000
    { ↵0.374
    1.596
    1.726
    $0.000
    indent0.000
    =0.000
    str0.000
    _repeat0.000
    ("\0.000
    t4.708
    ",7.775
    $3.821
    depth28.804
    ); ↵0.248
    0.688
    0.753
    $output0.308
    .=0.000
    "$0.000
    indent1.188
    </4.461
    ul13.187
    >\1.460
  11. 28.71 … + 1 : 0;↵}↵int[][] dp = new int[length][length];↵for (int i = 0; i < length; i++)↵dp[0][i] = 1 …
    All 725 tokens

    Formatted question description: https://leetcode.ca/all/1977.html↵↵# 1977. Number of Ways to Separate Numbers↵↵Hard↵↵## Description↵↵You wrote down many positive integers in a string called num. However, you realized that you forgot to add commas to seperate the different numbers. You remember that the list of integers was non-decreasing and that no integer had leading zeros.↵↵Return the number of possible lists of integers that you could have written down to get the string num. Since the answer may be large, return it modulo 10^9 + 7.↵↵Example 1:↵↵Input: num = “327”↵↵Output: 2↵↵Explanation: You could have written down the numbers:↵↵3, 27↵↵327↵↵Example 2:↵↵Input: num = “094”↵↵Output: 0↵↵Explanation: No numbers can have leading zeros and all numbers must be positive.↵↵Example 3:↵↵Input: num = “0”↵↵Output: 0↵↵Explanation: No numbers can have leading zeros and all numbers must be positive.↵↵Example 4:↵↵Input: num = “9999999999999”↵↵Output: 101↵↵Constraints:↵↵• 1 <= num.length <= 3500↵• num consists of digits '0' through '9'.↵↵## Solution↵↵Use dynamic programming with precalculation. First, precalculate the longest common prefixes of each pair of substrings. Next, use dynamic programming to count the number of ways.↵↵class Solution {↵public int numberOfCombinations(String num) {↵final int MODULO = 1000000007;↵if (num.charAt(0) == '0')↵return 0;↵int length = num.length();↵int[][] lcp = new int[length][length];↵for (int i = length - 1; i >= 0; i--) {↵lcp[i][length - 1] = num.charAt(i) == num.charAt(length - 1) ? 1 : 0;↵for (int j = i + 1; j < length - 1; j++)↵lcp[i][j] = num.charAt(i) == num.charAt(j) ? lcp[i + 1][j + 1] + 1 : 0;↵}↵int[][] dp = new int[length][length];↵for (int i = 0; i < length; i++)↵dp[0][i] = 1;↵for (int i = 1; i < length; i++) {↵if (num.charAt(i) == '0')↵continue;↵int presum = 0;↵for (int j = i; j < length; ++j) {↵int range = j - i + 1;↵dp[i][j] = presum;↵if (i - range >= 0) {↵if (lcp[i - range][i] >= range || num.charAt(i - range + lcp[i - range][i]) < num.charAt(i + lcp[i - range][i]))↵dp[i][j] = (dp[i][j] + dp[i - range][i - 1]) % MODULO;↵presum = (presum + dp[i - range][i - 1]) % MODULO;↵}↵}↵}↵int ways = 0;↵for (int i = 0; i < length; i++)↵ways = (ways + dp[i][length - 1]) % MODULO;↵return ways;↵}↵}

    Values
    TokenPositive-pole strength
    +0.000
    0.000
    10.000
    :0.000
    0.000
    00.000
    ;↵7.364
    }↵0.543
    int0.413
    [][]0.567
    dp0.000
    =0.000
    new0.000
    int0.000
    [length18.897
    ][9.118
    length16.677
    ];↵0.828
    for0.000
    (1.064
    int0.460
    i0.000
    =0.158
    1.437
    02.965
    ;0.590
    i1.948
    <0.169
    length1.522
    ;4.271
    i28.708
    ++)↵1.617
    dp0.000
    [1.218
    012.252
    ][1.283
    i7.958
    ]0.000
    =0.000
    0.000
    10.000
  12. 28.64 … permission, bool allowConsole, pHandler handler, std::string help, std::vector<ChatCommand> childCommands = std::vector<ChatCommand>())↵ : Name(ASSERT_NOTNULL(name)), …
    All 682 tokens

    /*↵ * Copyright (C) 2014-2017 StormCore↵ *↵ * This program is free software; you can redistribute it and/or modify it↵ * under the terms of the GNU General Public License as published by the↵ * Free Software Foundation; either version 2 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 General Public License for↵ * more details.↵ *↵ * You should have received a copy of the GNU General Public License along↵ * with this program. If not, see <http://www.gnu.org/licenses/>.↵ */↵↵#ifndef TRINITYCORE_CHAT_H↵#define TRINITYCORE_CHAT_H↵↵#include "SharedDefines.h"↵#include "StringFormat.h"↵#include "WorldSession.h"↵#include "RBAC.h"↵#include "Packets/ChatPackets.h"↵↵#include <vector>↵↵class ChatHandler;↵class Creature;↵class Group;↵class Player;↵class Unit;↵class WorldSession;↵class WorldObject;↵↵struct GameTele;↵↵class TC_GAME_API ChatCommand↵{↵ typedef bool(*pHandler)(ChatHandler*, char const*);↵↵ public:↵ ChatCommand(char const* name, uint32 permission, bool allowConsole, pHandler handler, std::string help, std::vector<ChatCommand> childCommands = std::vector<ChatCommand>())↵ : Name(ASSERT_NOTNULL(name)), Permission(permission), AllowConsole(allowConsole), Handler(handler), Help(std::move(help)), ChildCommands(std::move(childCommands)) { }↵↵ char const* Name;↵ uint32 Permission; // function pointer required correct align (use uint32)↵ bool AllowConsole;↵ pHandler Handler;↵ std::string Help;↵ std::vector<ChatCommand> ChildCommands;↵};↵↵class TC_GAME_API ChatHandler↵{↵ public:↵ WorldSession* GetSession() { return m_session; }↵ explicit ChatHandler(WorldSession* session) : m_session(session), sentErrorMessage(false) { }↵ virtual ~ChatHandler() { }↵↵ static char* LineFromMessage(char*& pos) { char* start = strtok(pos, "\n"); pos = nullptr; return start; }↵↵ // function with different implementation for chat/console↵ virtual char const* GetTrinityString(uint32 entry) const;↵ virtual void SendSysMessage(char const* str, bool escapeCharacters = false);↵↵ void SendSysMessage(uint32 entry);↵↵ template<typename... Args>↵ void PSendSysMessage(const char* fmt, Args&&... args)↵ {↵ SendSysMessage(Trinity::StringFormat(fmt, std::forward<Args>(args)...).c_str());↵ }↵↵ template<typename... Args>↵ void PSendSysMessage(uint32 entry, Args&&... args)↵ {↵ SendSysMessage(PGetParseString(entry, std::forward<Args>(args)...).c_str());↵ }↵↵ template<typename... Args>↵ std::string PGetParseString(uint32 entry, Args&&... args) const↵ {↵ return Trinity::StringFormat(GetTrinityString(entry), std::forward<Args>(args)...);↵

    Values
    TokenPositive-pole strength
    permission3.602
    ,0.000
    bool2.568
    allow4.119
    Console2.277
    ,0.000
    p0.336
    Handler4.226
    handler4.509
    ,0.000
    std0.695
    ::0.295
    string2.656
    help2.708
    ,0.000
    std0.388
    ::0.224
    vector0.038
    <0.191
    Chat3.028
    Command5.274
    >3.160
    child5.716
    Commands4.223
    =5.618
    std1.910
    ::2.897
    vector13.140
    <8.938
    Chat2.119
    Command28.636
    >())↵0.203
    0.000
    :0.000
    Name0.000
    (A10.584
    SSERT0.841
    _NOT0.533
    NULL7.598
    (name16.763
    )),0.000
Read more

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

Explanation scores on held-out text

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

Read more

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

Detection
0.84
Fuzzing
0.77
Embedding AUROC
0.45

Detection recall by activation strength

1.00
0.80
1.00
0.60
0.80
weakeststrongest

False alarms on inactive windows: 16%.

Judge
deepseek-flash
Held-out windows
313 active of 4,000
Judged
50 detection · 37 fuzzing
Detection outcomes
4 missed · 4 false alarm · 21 hit · 21 correct rejection
Seed
244232670 · mixed-v8 (11 presets, 500 docs, seed [removed])
Detection windows (50), the explanation's mistakes first
  1. missed 22.75 · sim -0.03 # Getting Started with XML Layouts↵↵This tutorial will teach you the fundamentals of building Android interface layouts with XML. Read on!↵↵When you’re getting started with
  2. missed 16.51 · sim -0.10 import scipy.ndimage.interpolation↵from matplotlib.widgets import *↵↵from PyQt5.QtWidgets import *↵from PyQt5.QtCore import QSettings↵from calibrate_dialog
  3. missed 16.25 · sim 0.08 Spline.h"↵#include "MoveSplineInit.h"↵#include "ObjectAccessor.h"↵#include "ObjectMgr.h"↵#include "Opcodes.h"↵#include "
  4. missed 12.15 · sim 0.09 11, said her financial status has not improved and they have also not yet accepted the job offer, as they were waiting for her graduation to complete to maker
  5. false alarm 10.10 · sim 0.03 for better economic incentives in order for municipalities to invest in alternative wind engeries" (p. 3).↵Note: Treat your original work as a secondary source
  6. false alarm 6.13 · sim 0.01 pendant le pontificat du pape Paul III (Alessandro Farnese). Le résultat principal est la subordination définitive de la ville
  7. false alarm 5.99 · sim 0.05 _Message_Mpns::TYPE_RAW, $this->_msg->getNotificationType());↵ }↵↵ public function testSetMessage()↵ {↵ $msg =
  8. false alarm 0.00 · sim 0.09 ny; happiness without anxiety)↵↵15. Elenge: strange; from French "eloigner," to remove.↵↵THE FRIAR'S TALE.↵↵
  9. hit 34.96 · sim -0.15 (self.image_plot.figure.add_axes([0.1 , 0.95, 0.1, 0.05]), "Save")↵
  10. hit 22.75 · sim -0.03 # How to find $\lim_{n\to\infty}\left(\frac{\pi^2}{6}-\sum_{k=1}^
  11. hit 20.61 · sim 0.06 75" id="advisory_topic" name="advisory[topic]" rows="6"></textarea>↵ <br/> NOTE: one zip
  12. hit 18.60 · sim 0.14 virtual void visit(void) = 0; ↵ /** ↵ * @js NA ↵ */ ↵ virtual void onEnter(void) = 0; ↵
  13. hit 17.31 · sim 0.01 .h"↵#include "WorldSession.h"↵#include <cmath>↵↵float baseMoveSpeed[MAX_MOVE_TYPE] =↵{↵ 2.5f, // MOVE
  14. hit 16.52 · sim -0.08 .second_point_pixel.setRange(0, self.data().size)↵↵ self.calibrate_dialog.accepted.connect(self.calibrated)↵ plt.show()↵↵ def cal
  15. hit 16.03 · sim 0.07 Rice (1976-1995). Rices vampires are every bit as physical as York and Julian, but her tradition is still spiritual,
  16. hit 14.75 · sim -0.14 , Гастон (1925—2019) — французский шоссейный велогонщик
  17. hit 14.62 · sim -0.03 65 km (910 mi) north of RAAF Learmonth in Western Australia. At the mid-levels, the circulation appeared more broad in nature
  18. hit 14.57 · sim 0.06 �ारि�� ��ा��प��ष्�� ↵ ��त्��रा��ण्�� (उत्��
  19. hit 14.54 · sim -0.14 (0, self.data().size) * self.dispersion + self.starting_wavelength↵ self.image_plot.plot(x_axis, self.data())↵
  20. hit 13.49 · sim 0.06 Licensed under the Apache License, Version 2.0 (the "License");↵# you may not use this file except in compliance with the License.↵# You
  21. hit 13.16 · sim 0.26 Last const&, mpl::true_)↵ {↵ }↵↵ template <typename IS, typename First, typename Last>↵ static void↵ call(IS& is
  22. hit 13.08 · sim -0.03 ром (земледелия и морским), затем вице-президентом палаты. Написал: «R
  23. hit 12.49 · sim 0.15 Test case 6: negative even number↵print(isEvenOrOdd(-14)) // prints "even"↵↵// Test case 7: negative odd number
  24. hit 12.21 · sim -0.06 wall-$(PKG_DIRECTORY)/↵PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2↵PKG_HASH:=019bcb0f
  25. hit 12.05 · sim 0.13 (11). One needs to look for medical attention instantly if there is a possibility to get bitten by the Aedes aegypti mosquito. Early
  26. hit 12.05 · sim 0.01 (2) MBDCA doses are sensitive to voxel-by-voxel interaction cross sections. Neither conventional single-energy CT nor ICRU∕ICRP tissue
  27. hit 11.61 · sim -0.01 dpp.Windowed = true;↵}↵↵if(FAILED(hr))↵{↵MessageBox(app->hwnd, "HAL-Device isn't supported on your graphics card.\
  28. hit 11.49 · sim -0.05 _DEFAULT;↵↵if(app->fullscreen)↵{↵d3dpp.Windowed = false;↵d3dpp.BackBufferWidth = app->clientwidth =
  29. hit 11.42 · sim 0.10 Files (x86)\Malwarebytes' Anti-Malware\zlib.dll↵• C:\Program Files (x86)\Malwarebytes
  30. correct rejection 10.37 · sim 0.04 , Bell's Theorem seems simpler once key terms are understood.↵First, an "objective universe" is simply one that exists apart from our consciousness.↵In
  31. correct rejection 5.74 · sim -0.05 a speech commemorating the 150th anniversary of the abolition of slavery on Wednesday, President Obama urged Americans to "push back against bigotry in all forms
  32. correct rejection 5.74 · sim 0.03 averted. In giving the actual text of Gordon's letter, it is only right, while frankly admitting that the course pursued has proved most successful and beneficial,
  33. correct rejection 5.03 · sim -0.05 ika mataifa ya Chad na Jamhuri ya Afrika ya Kati, kuwapatia hifadhi bora raia walioathir
  34. correct rejection 3.57 · sim -0.04 .↵↵During 2011 Cequent Projects were successful in being awarded a role on the Project Management panel for Christchurch City Council.
  35. correct rejection 3.26 · sim 0.02 orundayım. Ya al götür kalanımı. Ya da gel, tamamla eksik kalan yanımı.↵Geçer elbet efend
  36. correct rejection 3.08 · sim -0.00 an, für die sie in bisher 150 Länderspielen 434 Treffer erzielte. Sie gewann die Bronz
  37. correct rejection 1.85 · sim 0.14 role of the GH5_5 endocellulase in cell wall dissolution by Orciraptor agilis. With that, we provide evidence that the
  38. correct rejection 1.52 · sim 0.04 in infomercials that make misleading claims about products. Regulators said in subsequent infomercials, Trudeau lied to consumers that his book contained simple weight
  39. correct rejection 1.27 · sim -0.01 BY TIMOTHY B. WHEELER↵While the first shots of the Civil War were fired on Fort Sumter in Charleston Harbor in South Carolina, the
  40. correct rejection 1.14 · sim 0.06 the highest risk of contracting lung cancer. The risk of lung cancer increases with the duration of smoking period and the number of cigarettes smoked. The silver lining though is
  41. correct rejection 1.14 · sim -0.02 the Times archives, students make posters intended to aesthetically and thematically represent Earth Day celebrations from various years.↵Alternatively, they investigate who coordinated the first Earth
  42. correct rejection 0.92 · sim -0.03 data to design a trawl net.↵↵#### References↵↵1. Kim, D.A., 1999. Fishing gear design. Pyungwha
  43. correct rejection 0.88 · sim 0.07 collected by Good from the Public Advertiser and attributed to Junius without the slightest proof of their authenticity. It was these interpolated letters that gave rise to the accusation
  44. correct rejection 0.70 · sim 0.06 ?↵↵Free Version↵Easy↵↵# Interpreting Mean of a Random Variable↵↵STATS-ELEYOU↵↵Suppose an experiment can result in one of three
  45. correct rejection 0.54 · sim 0.10 �ামলা �� ��তে ��্��া��হা��ির ��টনা ��ি���
  46. correct rejection 0.43 · sim 0.05 ηματοπιστωτικό τομέα. ��υτή �� ανάλυ
  47. correct rejection 0.25 · sim -0.01 ்��ப் ��க்����்��ளி��். ��த�� ��ரு ����வ
  48. correct rejection 0.16 · sim 0.04 και να εκτίσει το ��πόλοιπο της ποινής τ
  49. correct rejection 0.01 · sim 0.11 ε τη σειρά επεξεργαστών PowerPC:↵ ��ε ��ρισμ
  50. correct rejection 0.00 · sim -0.02 further rise in diseases within Derbyshire's population and place further financial pressures on Derbyshire NHS budget to provide further treatments for complaints associated with air pollution.
Fuzzing windows (37), dashed tokens were marked for the judge
  1. marks right · judged wrong # Model Test Paper - 21↵↵Question 1: The average age of an adult class is 40 years. Twelve new students with an average
  2. marks right · judged wrong 'TPanel = record;'.↵↵A:↵↵"Type" is reserved word. try other word
  3. marks right · judged wrong \begin{array}{ll|l}↵&Statement&Reason\\↵\hline\\↵(1)&\overline{AT}\cong \
  4. marks right · judged wrong ()↵↵ destFile, err := os.Create(destPath)↵↵ if err != nil {↵ return err↵ }↵↵ defer func() {↵ cerr := destFile.Close
  5. marks right · judged wrong (VR): AR and VR technologies are being used to provide an immersive and interactive shopping experience. Companies like Fynd and Lenskart use AR to allow customers
  6. marks right · judged wrong 3↵(b) 3 : 4↵(c) 3 : 2↵(d) None of these↵↵Answer: Let the speeds of the two
  7. marks wrong · judged wrong /*↵ * Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/>↵ * Copyright (C)
  8. marks wrong · judged wrong Awards↵↵Special Awards↵ Best Child Artist (Special) - Baby Joya (Bheja Chokh)↵ Special Award - Firoza Rahman Tina (
  9. marks right · judged right fmt.Errorf("Unregular source file: %s (%s)", srcFile.Name(), srcFile.Mode().String());↵ }↵↵ destFile, err := os.Stat
  10. marks wrong · judged wrong Canalini beans↵- Kidney beans↵- Baked beans (navy beans)↵- Four bean mix↵- Red, green or brown lentils.↵
  11. marks wrong · judged wrong Schiapparelli et al., 2019;Biever et al., 2020; for recent reviews see: Maday
  12. marks wrong · judged wrong Lecturer: Orest G. Symko, professor of physics, University of Utah↵Date: Wednesday, Nov. 28, 20
  13. marks right · judged right )↵ self.field_rm_so = ("rm_so", ctypes.c_ulong)↵ self.field_rm_co = ("rm_co", ctypes.c_ulong)↵↵ def _
  14. marks wrong · judged wrong /.test(navigator.userAgent) && !mode;↵↵// global $ methods for blocking/unblocking the entire page↵$.blockUI = function(opts) { install
  15. marks wrong · judged wrong #include "CCEditBox.h" ↵ ↵NS_CC_EXT_BEGIN ↵ ↵ ↵class CCEditBoxImpl ↵{ ↵public: ↵ CCEditBoxImpl(CCEdit
  16. marks right · judged right File.Mode().IsRegular()) {↵ return fmt.Errorf("Unregular source file: %s (%s)", srcFile.Name(), srcFile.Mode().String());↵
  17. marks right · judged right ->setMessage($msg);↵ }↵↵ public function testGetDelayHasDefaultOfImmediate()↵ {↵ $this->assertEquals(Zend_Mobile_Push_Message
  18. marks wrong · judged wrong string↵}↵↵func NewIOManager(path string) *IOManager {↵ return &IOManager{path}↵}↵↵func (io IOManager) GetPath() string
  19. marks wrong · judged wrong 5 1↵↵A:↵↵This will return what you're looking for:↵select * from t↵where articleNumber = '01-0
  20. marks wrong · judged wrong года.↵ Руссо, Луи Франсуа Эммануэль (1788—1868) —
  21. marks right · judged right __${script}.log | grep syscalls:sys_enter_write | grep -o 'count: 0x[0-9a-fA-F]*
  22. marks right · judged right of different probable weights of Ashish ? (railway 2004)↵↵Options↵(a) 58 kg↵(b) 56.
  23. marks wrong · judged wrong any(s == 'untouched' for s in self.status.values()):↵ for constraint in self.constraints:↵ if self._assumption_valid(constraint):↵
  24. marks right · judged right ττικής (1937). �� ενασχόληση του ��ικολ
  25. marks wrong · judged wrong 50000)↵ self.calibrate_dialog_ui.first_point_pixel.setRange(0, self.data().size)↵ self.calibrate_dialog_ui
  26. marks wrong · judged wrong \angle ATG&Alt.\ Int.\ Angles\\↵(3)&\overline{GT}\cong \overline{GT}&Reflex
  27. marks wrong · judged wrong 994]; the case of the two-body potential is treated in detail. In ${\mathrm{L^1}}$-minimization, regular extrem
  28. marks wrong · judged wrong . The system had a minimum pressure of 910 mbar (hPa; 26.87 inHg) and maximum sustained winds
  29. marks wrong · judged wrong কর্��কর্��া ����. ��া��ছ��ল ��ক ��ি��য��
  30. marks wrong · judged wrong 데모니케(Demonice)는 그리스 신화에 나오는 에베노스의 어머니이다. 아게노르가 ��
  31. marks wrong · judged wrong 2 double-blind studies, using similar protocols. A total of 209 healthy male and female subjects aged 18 to 65 years,
  32. marks wrong · judged wrong 4-based configurations with low O content (n ≤ 4) exhibit antiferromagnetic behavior, while the majority of the respective configurations with high O content (
  33. marks wrong · judged wrong tidak terduga. Apabila Anda masih pemula dalam dunia ini, maka disarankan untuk waspada karena salah langkah saja maka bisa
  34. marks wrong · judged wrong Republic Day is to commemorate the day when India first became republics.↵Although India obtained its independence on August 15, 1947, the
  35. marks wrong · judged wrong У нас работают только высококвалифицированные электрики, Москвичи и жители подмосковья они имеют
  36. marks wrong · judged wrong and operated by his daughter Vicki. Mary's has become a Portland institution, having been included in several "best of" lists for strip clubs, and its
  37. marks wrong · judged wrong γραφία ↵Φοίτησε στο ��αρίφειο Διδασκ

Activation and mechanism

Activation distribution

[0, 1.48): 189711 [1.48, 2.97): 4076 [2.97, 4.45): 1994 [4.45, 5.94): 1255 [5.94, 7.42): 822 [7.42, 8.91): 564 [8.91, 10.4): 423 [10.4, 11.9): 281 [11.9, 13.4): 208 [13.4, 14.8): 173 [14.8, 16.3): 109 [16.3, 17.8): 71 [17.8, 19.3): 63 [19.3, 20.8): 53 [20.8, 22.3): 42 [22.3, 23.8): 49 [23.8, 25.2): 25 [25.2, 26.7): 18 [26.7, 28.2): 9 [28.2, 29.7): 10 [29.7, 31.2): 7 [31.2, 32.7): 6 [32.7, 34.2): 6 [34.2, 35.6): 6 [35.6, 37.1): 3 [37.1, 38.6): 2 [38.6, 40.1): 1 [40.1, 41.6): 0 [41.6, 43.1): 0 [43.1, 44.5): 1 0.00 44.55

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

Mechanism

Claimed retrospective: responds to tokens already in context.

Input attribution

0 back
1%
1 back
9%
2–4 back
8%
5–16 back
21%
17–64 back
32%
65+ back
29%
  • #1 at resources: ["-1 0.43"], -87 0.13required-100 0.07",-95 0.07", -6 0.06
  • #2 at _DIV: [-11 0.44], -13 0.25class-8 0.06 -24 -0.06 [-23 0.05
  • #3 at Software: Contracts-54 0.28 (-3 0.20the-2 0.15 Code-55 0.09 "-1 0.09
  • #4 at 0: ({ -74 0.17':[-11 0.16.DataFrame-75 0.07'), -66 0.06], -15 0.06
  • #5 at id: ['-20 0.18 [-4 0.15['-1 0.11(self-62 0.06] -12 -0.06

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

Vocabulary projection

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

Jacobian lens

}catch · z = +3.64 · #1 promoted }catch 刹那 · z = +3.51 · #2 promoted 刹那 }else · z = +3.42 · #3 promoted }else ␣},{ · z = +3.39 · #4 promoted ␣},{ \"", · z = +3.31 · #5 promoted \"", 踅 · z = +3.30 · #6 promoted 踅 )Math · z = +3.18 · #7 promoted )Math ).( · z = +3.17 · #8 promoted ).( );$ · z = +3.15 · #9 promoted );$ )}↵↵ · z = +3.08 · #10 promoted )}↵↵ ,"↵ · z = -16.14 · #10 suppressed ,"↵ ␣'↵ · z = -16.45 · #9 suppressed ␣'↵ , ↵ · z = -16.52 · #8 suppressed , ↵ " ↵ · z = -16.54 · #7 suppressed " ↵ ␣"↵ · z = -16.78 · #6 suppressed ␣"↵ ' ↵ · z = -16.85 · #5 suppressed ' ↵ ,↵ · z = -17.72 · #4 suppressed ,↵ ,↵ · z = -18.39 · #3 suppressed ,↵ "↵ · z = -18.60 · #2 suppressed "↵ '↵ · z = -19.12 · #1 suppressed '↵ -20 -15 -10 -5 0 +5 +10 +15 +20

Logit lens

}catch · z = +3.64 · #1 promoted }catch 刹那 · z = +3.51 · #2 promoted 刹那 }else · z = +3.42 · #3 promoted }else ␣},{ · z = +3.39 · #4 promoted ␣},{ \"", · z = +3.32 · #5 promoted \"", 踅 · z = +3.30 · #6 promoted 踅 )Math · z = +3.18 · #7 promoted )Math ).( · z = +3.17 · #8 promoted ).( );$ · z = +3.15 · #9 promoted );$ )}↵↵ · z = +3.08 · #10 promoted )}↵↵ ,"↵ · z = -16.14 · #10 suppressed ,"↵ ␣'↵ · z = -16.45 · #9 suppressed ␣'↵ , ↵ · z = -16.53 · #8 suppressed , ↵ " ↵ · z = -16.54 · #7 suppressed " ↵ ␣"↵ · z = -16.78 · #6 suppressed ␣"↵ ' ↵ · z = -16.85 · #5 suppressed ' ↵ ,↵ · z = -17.72 · #4 suppressed ,↵ ,↵ · z = -18.39 · #3 suppressed ,↵ "↵ · z = -18.60 · #2 suppressed "↵ '↵ · z = -19.12 · #1 suppressed '↵ -20 -15 -10 -5 0 +5 +10 +15 +20
promotes suppresses Hover a bar for its value.
Values
#Jacobian lens promotessuppressesLogit lens promotessuppresses
1 }catch +3.64 ' -19.12 }catch +3.64 ' -19.12
2 刹那 +3.51 " -18.60 刹那 +3.51 " -18.60
3 }else +3.42 , -18.39 }else +3.42 , -18.39
4 },{ +3.39 , -17.72 },{ +3.39 , -17.72
5 \"", +3.31 ' -16.85 \"", +3.32 ' -16.85
6 踅 +3.30 " -16.78 踅 +3.30 " -16.78
7 )Math +3.18 " -16.54 )Math +3.18 " -16.54
8 ).( +3.17 , -16.52 ).( +3.17 , -16.53
9 );$ +3.15 ' -16.45 );$ +3.15 ' -16.45
10 )} +3.08 ," -16.14 )} +3.08 ," -16.14

Top-10 overlap 100% · cos(w, J·w) 1.00 · kurtosis 60.8 (Jacobian) / 60.8 (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 suffixword2
control furniturepoliticspolitics
category 27 unit ???
control ???
meaning 2 unit ____.____.____
control ____.____.:
meaning 27 unit ____.____.____.
control ____.____.____.

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

very hot. The temperature is 30 degrees Celsius. If the temperature increases by 5 degrees Celsius tomorrow, what

Baseline

very hot. The temperature is 30 degrees Celsius. If the temperature increases by 5 degrees Celsius tomorrow, what

Clamped ×1

very hot. The temperature is 30 degrees Celsius. What is the temperature in degrees Fahrenheit? To convert a temperature

Clamped ×2

________ than yesterday. A. warm B. warmer C. warmest D. the warmest B 解析:

Clamped ×4

________ than yesterday. A. bad B. worse C. bader D. worst B 解析: �

I went to the shop and bought …
Ablated

a new pair of shoes. I put them on and walked out of the store. I was so happy that I had

Baseline

a new pair of shoes. I put them on and walked out of the store. I was so happy that I had

Clamped ×1

a new pair of shoes. I also bought a new shirt and a new pair of socks. I paid $15

Clamped ×2

a new pair of shoes. I also bought a new shirt and a new pair of jeans. I paid $10

Clamped ×4

a dozen eggs. I cooked breakfast for my family and ate one egg myself. How many eggs are left? A dozen

The best way to learn is …
Ablated

to do. The best way to do is to practice. The best way to practice is to play. The best way

Baseline

to do. The best way to do is to practice. The best way to practice is to play. The best way

Clamped ×1

to do. The best way to do is to practice. The best way to practice is to play. The best way

Clamped ×2

to practice. The best way to practice is to play. The best way to play is to play with others. The

Clamped ×4

to practice. The following exercises are designed to help you practice the different types of sentences. The exercises are in the following

Once upon a time, …
Ablated

there was a little girl named Lily. She lived in a small village with her parents and grandparents. One day, Lily

Baseline

there was a little girl named Lily. She lived in a small village with her parents and grandparents. One day, Lily

Clamped ×1

there was a little girl named Lily. She lived in a small village with her parents and grandparents. One day, Lily

Clamped ×2

there was a little girl named Lily. She lived in a small village with her parents and grandparents. One day, Lily

Clamped ×4

there was a little boy named Jack. He lived in a small village with his parents and grandparents. Jack loved playing with

The report concluded that …
Ablated

the number of people who died in the 2010 earthquake was 22,000, with

Baseline

the number of people who died in the 2010 earthquake was 22,000, with

Clamped ×1

the government had failed to protect the environment and that the country was "in a state of crisis" over air and water

Clamped ×2

the government had failed to protect the environment and that the country was facing a "climate crisis" that would lead to "

Clamped ×4

the government had failed to protect the rights of the minority communities and that the government had not done enough to prevent the spread

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 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 13 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
L25/N6475 gate -0.509
L24/N3945 gate +0.439
L20/N2401 gate +0.324
L17/N5076 gate +0.32
L9/N4183 gate +0.312
L20/N7818 gate +0.311
L19/N6416 gate +0.309
L24/N4553 gate -0.305
L15/N8071 gate -0.305
L25/N3791 gate +0.299
Upstream heads
L25/H7 up +2.58
L25/H9 gate +2.17
L25/H10 gate +1.8
L27/H2 up +1.7
L27/H10 up +1.64
L24/H2 gate +1.53
L25/H11 gate +1.52
L26/H11 up +1.48
L26/H7 gate +1.46
L27/H9 up +1.44
Downstream neurons

None: no later layer.

Downstream heads

None: no later layer.

From activations

Upstream neurons
L24/N3945 +3.91
L25/N6475 +2.17
L26/N2776 -1.69
L26/N1662 -1.4
L26/N6203 -1.32
L24/N684 -0.85
L26/N1247 +0.84
L20/N2401 +0.765
L25/N6080 +0.735
L26/N7550 +0.715
Upstream heads
L24/H0 +2.32
L24/H1 +1.76
L24/H2 +1.69
L27/H10 -1.63
L24/H5 +1.46
L17/H8 +0.971
L19/H10 +0.811
L19/H6 -0.697
L23/H10 +0.616
L25/H10 +0.572
Downstream neurons

None: no later layer.

Downstream heads

None: no later layer.

Covariance and confounds

Confounds

Token identity R²
0.33
Position R²
0.03
Frequency r
0.29
Language R² · MI
0.01 · 0.020 bits
Source R² · MI
0.04 · 0.046 bits
Programming language R² · MI
0.03 · 0.052 bits
Syntax node R² · MI
0.05 · 0.081 bits
Bracket depth R² · MI
0.06 · 0.077 bits
Round depth R² · MI
0.09 · 0.110 bits
Indent depth R² · MI
0.01 · 0.020 bits
Syntax construct R² · MI
0.10 · 0.124 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
Postal addresses R² · MI
0.00 · 0.000 bits
Best trivial baseline
never active · 0.46
Hypothesis
0.81 ✓

.Right.Left_Dataresourcestrue/* module(falsealign_OUTPUTfalse args

Co-activating neuron poles

Pole Lift ≥ Both ρ r
N674+ 51.5 546 +0.31 +0.55
N5638+ 41.0 440 -0.02 +0.25
N3904− 39.1 421 +0.03 -0.13
N3064− 31.8 347 +0.07 -0.09
N1276+ 29.5 323 -0.11 +0.15
N7391+ 29.1 319 +0.23 +0.35
N6650− 26.5 292 +0.08 -0.22
N7670− 25.9 286 -0.09 +0.12
N2145+ 25.8 285 +0.13 +0.26
N1159+ 25.4 281 +0.05 +0.23
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
N674, N5638, N3904
KL pole alone
8.58e-04
KL partners
2.86e-03
KL together
4.17e-03
Redundancy ratio
1.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-11-13 22:37 UTC
Max activation
44.5495
Selection
manual
Corpus
mixed-v8 (11 presets, 500 docs, seed [removed]) · 199,988 tokens · seeded sample of 378/500 docs (≤ 200,000 tokens, seed 0) · 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 68% · el 6% · zh 3% · hi 3% · ru 2% · bn 2% · de 2% · nl 2% · other 14%
Model revision
8faed761d45a · float32
Ran on
scan cpu · review cuda:0 (streamed from disk)
Run cost
151.4 min (slowest: scan, 56.5 min) · peak 15.1 GB RAM · 4 LLM calls · 2,604,702 + 172,718 tokens · $0.12