Open Interpretability Models Contributors Research Posts About

Qwen/Qwen2.5-0.5B · L23/N4096 · 20261026T130827Z

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

#1 · positive pole + VERIFIED strong evidence for · 0.90 counts toward status 2026-10-26 · 20261026T130827Z

The pole fires on tokens that belong to source code rather than natural language: components of whitespace-free identifier, path, URL and markup-name runs - '/db' in django/db/__init__.py, 'js' and '/ajax' in js/ajax/addQuiz.php, ' android' in android:textColor, 'id' in @+id/imageView4, 'load' in luaotfload, 'nonatomic' in @property (nonatomic,) - with strength rising with the length and separator density of the enclosing run (10-34 for long runs containing / _ : = -, mostly under 2 for short or standalone ones). It is near zero on natural-language words even inside the same file (comments, string literals, HTML body text), on separator-only tokens such as '="', '/', ':', ';' and on the same words written out as prose, and its output only weakly promotes generic code continuations (':text', '/image', '/button', '>\n') rather than one specific next token, so the mechanism is retrospective.

The whole hypothesis

The pole fires on tokens that belong to source code rather than natural language: components of whitespace-free identifier, path, URL and markup-name runs - '/db' in django/db/__init__.py, 'js' and '/ajax' in js/ajax/addQuiz.php, ' android' in android:textColor, 'id' in @+id/imageView4, 'load' in luaotfload, 'nonatomic' in @property (nonatomic,) - with strength rising with the length and separator density of the enclosing run (10-34 for long runs containing / _ : = -, mostly under 2 for short or standalone ones). It is near zero on natural-language words even inside the same file (comments, string literals, HTML body text), on separator-only tokens such as '="', '/', ':', ';' and on the same words written out as prose, and its output only weakly promotes generic code continuations (':text', '/image', '/button', '>\n') rather than one specific next token, so the mechanism is retrospective.

Hard negatives 9/10 rejected · holdouts 4/5 fired (independent observations; 15 probes) · P(useful) 0.95

Balanced accuracy
0.85
Sufficiency
0.92
Necessity
0.97
Lookahead KL
0.0065
✓ enough hard negatives ✓ enough holdouts ✓ specificity ✓ sensitivity ✓ counterfactual reproduction ✓ lookahead consistent ✓ independent review ✓ beats confound baseline

specificity 0.90 · sensitivity 0.80 · counterfactual reproduction 1.00 · protocol v0.7

androidid/db/ajaxjsnonatomicORMplloadimages method.orgce

Adversarial review

hard_negative: 9/10 passed; positive_holdout: 4/5 passed; counterfactual: 7/7 passed; lookahead_consistency: 1/1 passed. All gates passed.

Hard negatives 9/10 stay below Positive holdouts 4/5 reach it threshold 8.60 (25% of max) → active passed · 0.158 (0% of max) ( ) [ ] { } ; : , . = " ' / - ;; :: == // passed · 0.444 (1% of max) The heavy load on the old bridge increased after lunch, and traffic slowed to a crawl near the river. passed · 0.457 (1% of max) She gave him a long look, then wrote a note: "meet me at noon; bring the keys." passed · 0.622 (2% of max) The Norse legend of Orm the serpent is told in several old sagas, and scholars still debate its origin. passed · 0.632 (2% of max) Our android team argued all week about whether the new release should ship before the summer holidays. passed · 1.947 (6% of max) # Initialize the user list before the loop starts, then skip any empty rows. passed · 2.016 (6% of max) The town grew slowly along the river for two hundred years. Farmers brought grain to the market each autumn, and the merchants built stone houses near the br… passed · 3.510 (10% of max) Images of the harbor at dusk hung in the gallery, and visitors lingered over the paintings for an hour. passed · 6.220 (18% of max) Open the slash db folder, then the slash ajax folder, and read the text file aloud to the class. failed · 9.748 (28% of max) <p>Welcome to our shop. Browse the catalog below and choose a size before checkout.</p> failed · 7.242 (21% of max) import org.apache.commons.lang3.StringUtils.isBlank; passed · 13.697 (40% of max) <w:rFonts w:ascii="Calibri" w:hAnsi="Calibri" w:cs="Calibri"/> passed · 15.962 (46% of max) The file lives at myproject/app/templates/base_layout.html on the server, so copy it before you edit anything. passed · 17.499 (51% of max) docker pull ghcr.io/example-org/build-images/runner:latest passed · 25.883 (75% of max) @property(nonatomic,strong)NSString*title; 0 max 34.38
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 23 probes
TestInputExpectedObserved
✓ hard negative Our android team argued all week about whether the new release should ship before the summer holidays.
Tests the claimed token ' android' used as an ordinary English word in prose, where the hypothesis predicts near-zero activation.
inactive 0.632
✓ hard negative She gave him a long look, then wrote a note: "meet me at noon; bring the keys."
Tests separator-only tokens (':', ';', quotes) inside natural-language prose, which the hypothesis says should stay near zero.
inactive 0.457
✓ hard negative Open the slash db folder, then the slash ajax folder, and read the text file aloud to the class.
Writes the claimed path components '/db' and '/ajax' out as spoken prose words, which the hypothesis says should not activate.
inactive 6.220
✓ hard negative # Initialize the user list before the loop starts, then skip any empty rows.
Natural-language comment inside a source file, testing the claim that near-zero activation holds for prose even within code files.
inactive 1.947
✗ hard negative <p>Welcome to our shop. Browse the catalog below and choose a size before checkout.</p>
Markup wrapper around ordinary body text, testing that the neuron stays quiet on natural-language content inside HTML.
inactive 9.748
✓ hard negative The heavy load on the old bridge increased after lunch, and traffic slowed to a crawl near the river.
Uses the claimed token 'load' in a non-code sense inside a plain sentence, where the hypothesis predicts no activation.
inactive 0.444
✓ hard negative Images of the harbor at dusk hung in the gallery, and visitors lingered over the paintings for an hour.
Uses the claimed token 'images' as a plain English noun in a sentence with no code-like run, expected inactive by the hypothesis.
inactive 3.510
✓ hard negative ( ) [ ] { } ; : , . = " ' / - ;; :: == //
A run of separator-only tokens with no identifier content, which the hypothesis explicitly says should be near zero.
inactive 0.158
✓ hard negative The Norse legend of Orm the serpent is told in several old sagas, and scholars still debate its origin.
Uses the claimed token 'Orm' (similar to ORM) as a proper name in prose, testing whether the neuron keys on the surface string rather than the code context.
inactive 0.622
✓ hard negative The town grew slowly along the river for two hundred years. Farmers brought grain to the market each autumn, and the merchants built stone houses near the bridge. Children learned to read in a small schoolhouse by the church. Over time the fields gave way to orchards, and the orchards gave way to narrow streets lined with shops. Visitors today still remark on the quiet evenings, when the bells ring across the water and the lamps come on one by one along the embankment.
A long natural-language passage with no code content, testing whether long context alone raises activation when no identifier or path run is present.
inactive 2.016
✓ positive holdout The file lives at myproject/app/templates/base_layout.html on the server, so copy it before you edit anything.
A whitespace-free path run embedded in an English sentence; the hypothesis predicts activation on its path components because the run is source-like, even though the surrounding words are prose.
active 15.962
✗ positive holdout import org.apache.commons.lang3.StringUtils.isBlank;
A long dotted Java identifier run with many separators, a paraphrase of the claimed whitespace-free identifier class, predicted to fire by the hypothesis.
active 7.242
✓ positive holdout docker pull ghcr.io/example-org/build-images/runner:latest
A URL and path run with slashes, dashes and a colon, an unseen domain and words absent from the examples; the hypothesis predicts activation on its components.
active 17.499
✓ positive holdout @property(nonatomic,strong)NSString*title;
A compact whitespace-free Objective-C property declaration, testing the 'nonatomic' token in a new surrounding context with dense separators.
active 25.883
✓ positive holdout <w:rFonts w:ascii="Calibri" w:hAnsi="Calibri" w:cs="Calibri"/>
A markup element with namespaced attribute names drawn from a non-Android format, predicted by the hypothesis to activate on the markup-name components of the run.
active 13.697
✓ counterfactual Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) -> A traceback was raised in the Django database module at line forty when the backend was loaded from the connection settings dictionary, and the same failure happened again in the utility file at line ninety three while reading the engine setting from the database, so the engineer restarted the service, checked the configuration, and then watched the log output for another minute before finally giving up and asking a colleague for advice about the whole thing. Δ 0.74 Δ 0.74
✓ counterfactual Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) -> Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django db __init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django db utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) Δ 0.41 Δ 0.41
✓ counterfactual <?php $http.post("js/ajax/addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js/ajax/getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid); -> <?php $http.post("js ajax addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js ajax getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid); Δ 0.32 Δ 0.32
✓ counterfactual The release notes are published at https://docs.example.com/en/latest/reference/api/index.html before every major release. -> The release notes are published at https docs example com en latest reference api index html before every major release. Δ 0.28 Δ 0.28
✓ counterfactual <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout> -> <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#ABABAB" android:textSize="14sp" /> </LinearLayout> Δ 0.00 Δ 0.00
✓ counterfactual Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) -> Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/tools.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) Δ 0.00 Δ 0.00
✓ counterfactual <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout> -> <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:key="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:key="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout> Δ 0.01 Δ 0.01
✓ lookahead consistency Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) ; Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) ; <?php $http.post("js/ajax/addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js/ajax/getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid); ; The release notes are published at https://docs.example.com/en/latest/reference/api/index.html before every major release. ; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout>; Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) ; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout>
claimed retrospective; measured retrospective (KL=0.006528, tokens=[':text', '/text', '/models', '/utils', '/site'])

Minimal pairs

Pair 2 Sufficiency: 1.00 · effect 0.0442 (matched |effect| median 0.000917, max 0.0406) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) → Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django db __init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django db utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) Necessity: 1.00 · effect 0.0267 (matched |effect| median 0.000251, max 0.0208) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) → Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django db __init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django db utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) Pair 3 Sufficiency: 0.97 · effect 0.0213 (matched |effect| median 0.0033, max 0.0304) <?php $http.post("js/ajax/addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js/ajax/getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid); → <?php $http.post("js ajax addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js ajax getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid); Necessity: 1.00 · effect 0.16 (matched |effect| median 0.0022, max 0.0353) <?php $http.post("js/ajax/addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js/ajax/getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid); → <?php $http.post("js ajax addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js ajax getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid); Pair 6 Sufficiency: 0.88 · effect 0.0018 (matched |effect| median 0.000223, max 0.0198) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) → Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/tools.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) Necessity: 0.94 · effect 0.00707 (matched |effect| median 0.000443, max 0.0747) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) → Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/tools.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) Pair 7 Sufficiency: 0.88 · effect 0.0033 (matched |effect| median 3.15e-05, max 0.0453) <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout> → <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:key="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:key="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout> Necessity: 0.75 · effect 0.000122 (matched |effect| median 1.07e-05, max 0.0267) <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout> → <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:key="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:key="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout> Median (score) Sufficiency: 0.92 · median of 4 pairs 0.92 Necessity: 0.97 · median of 4 pairs 0.97 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 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE'])
→ A traceback was raised in the Django database module at line forty when the backend was loaded from the connection settings dictionary, and the same failure happened again in the utility file at line ninety three while reading the engine setting from the database, so the engineer restarted the service, checked the configuration, and then watched the log output for another minute before finally giving up and asking a colleague for advice about the whole thing.
0.74 0.74 — —
2 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE'])
→ Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django db __init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django db utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE'])
0.41 0.41 1.00
effect 0.0442
matched 0.000917 / 0.0406
1.00
effect 0.0267
matched 0.000251 / 0.0208
3 <?php $http.post("js/ajax/addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js/ajax/getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid);
→ <?php $http.post("js ajax addQuiz.php?quizid="+quizid+"&quizname="+quizname); $http.post("js ajax getQuiz.php").success(function(data){ $scope.quizzes = data; }); $scope.addQuiz = function (quizid, quizname, campid) { console.log(quizid + quizname + campid);
0.32 0.32 0.97
effect 0.0213
matched 0.0033 / 0.0304
1.00
effect 0.16
matched 0.0022 / 0.0353
4 The release notes are published at https://docs.example.com/en/latest/reference/api/index.html before every major release.
→ The release notes are published at https docs example com en latest reference api index html before every major release.
0.28 0.28 — —
5 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout>
→ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#ABABAB" android:textSize="14sp" /> </LinearLayout>
0.00 0.00 — —
6 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE'])
→ Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python2.7/dist-packages/django/db/tools.py", line 93, in __getitem__ backend = load_backend(db['ENGINE'])
0.00 0.00 0.88
effect 0.0018
matched 0.000223 / 0.0198
0.94
effect 0.00707
matched 0.000443 / 0.0747
7 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout>
→ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:key="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:key="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout>
0.01 0.01 0.88
effect 0.0033
matched 3.15e-05 / 0.0453
0.75
effect 0.000122
matched 1.07e-05 / 0.0267
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 4 non-control pairs, on next-token KL. Median effect 0.0123 (sufficiency) and 0.0169 (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. 34.38 … _item_artist"↵ android:layout_width="wrap_content"↵ android:layout_height="wrap_content"↵ android:singleLine="true"↵ android:textColor="#989898"↵ …
    All 460 tokens

    <?xml version="1.0" encoding="utf-8"?>↵<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"↵ android:layout_width="match_parent"↵ android:layout_height="match_parent"↵ android:background="@color/appBackground"↵ android:foreground="?android:attr/selectableItemBackground"↵ android:gravity="center_vertical"↵ android:orientation="horizontal"↵ android:paddingBottom="15dp"↵ android:paddingLeft="10dp"↵ android:paddingRight="10dp"↵ android:paddingTop="15dp">↵↵ <ImageView↵ android:id="@+id/song_item_img"↵ android:layout_width="50dp"↵ android:layout_height="50dp"↵ android:layout_weight="0" />↵↵ <LinearLayout↵ android:layout_width="match_parent"↵ android:layout_height="wrap_content"↵ android:layout_marginStart="15dp"↵ android:layout_weight="1"↵ android:orientation="vertical">↵↵ <TextView↵ android:id="@+id/song_item_name"↵ android:layout_width="wrap_content"↵ android:layout_height="wrap_content"↵ android:singleLine="true"↵ android:textColor="#000"↵ android:textSize="16sp" />↵↵ <TextView↵ android:id="@+id/song_item_artist"↵ android:layout_width="wrap_content"↵ android:layout_height="wrap_content"↵ android:singleLine="true"↵ android:textColor="#989898"↵ android:textSize="14sp" />↵ </LinearLayout>↵↵ <ImageView↵ android:id="@+id/song_item_menu"↵ android:layout_width="wrap_content"↵ android:layout_height="wrap_content"↵ android:layout_marginRight="5dp"↵ android:layout_weight="0"↵ android:background="@drawable/unbounded_ripple"↵ android:foregroundTint="#434343"↵ android:padding="5dp"↵ android:src="@drawable/abc_ic_menu_moreoverflow_mtrl_alpha"↵ android:theme="@style/Theme.AppCompat.Light" />↵↵</LinearLayout>

    Values
    TokenPositive-pole strength
    _item10.722
    _artist6.711
    "↵5.671
    4.553
    android27.844
    :4.331
    layout16.647
    _width15.252
    ="0.834
    wrap10.057
    _content9.840
    "↵4.208
    1.981
    android23.775
    :3.325
    layout17.481
    _height13.549
    ="1.053
    wrap11.246
    _content8.598
    "↵4.339
    1.462
    android33.779
    :s10.678
    ingle3.475
    Line11.748
    ="0.000
    true8.503
    "↵3.784
    1.277
    android34.382
    :text11.256
    Color13.495
    ="#0.826
    92.787
    82.012
    92.359
    83.801
    91.209
    85.067
    "↵3.949
  2. 32.05 … End_toEndOf="parent"↵ app:layout_constraintStart_toStartOf="parent"↵ app:layout_constraintTop_toBottomOf="@+id/imageView4" />↵↵</android.support.constraint.Constraint …
    All 653 tokens

    Q:↵↵TextView Not centered in app but centered in match_constraint↵↵I've created a simple activity design using ConstraintLayout.↵Whenever I try to center a textView, it does it correctly in the blueprints but never does it in the actual app. Not sure if i am doing something wrong or I'm losing my mind.↵Here is the image↵Here is the XML code↵<?xml version="1.0" encoding="utf-8"?>↵<android.support.constraint.ConstraintLayout ↵xmlns:android="http://schemas.android.com/apk/res/android"↵xmlns:app="http://schemas.android.com/apk/res-auto"↵xmlns:tools="http://schemas.android.com/tools"↵android:layout_width="match_parent"↵android:layout_height="match_parent"↵android:background="@color/background_green"↵tools:context="nz.co.listcosolutions.StartActivity">↵↵<ImageView↵ android:id="@+id/imageView4"↵ android:layout_width="160dp"↵ android:layout_height="163dp"↵ android:layout_marginEnd="95dp"↵ android:layout_marginStart="95dp"↵ android:layout_marginTop="32dp"↵ app:layout_constraintEnd_toEndOf="parent"↵ app:layout_constraintStart_toStartOf="parent"↵ app:layout_constraintTop_toTopOf="parent"↵ app:srcCompat="@drawable/baby_plant" />↵↵<Button↵ android:id="@+id/btnNext"↵ android:layout_width="wrap_content"↵ android:layout_height="wrap_content"↵ android:layout_marginEnd="32dp"↵ android:layout_marginStart="32dp"↵ android:layout_marginTop="64dp"↵ android:text="@string/next"↵ android:textColor="@color/background_green"↵ android:textSize="18sp"↵ app:layout_constraintEnd_toEndOf="parent"↵ app:layout_constraintStart_toStartOf="parent"↵ app:layout_constraintTop_toBottomOf="@+id/textView3" />↵↵<TextView↵ android:id="@+id/textView3"↵ android:layout_width="0dp"↵ android:layout_height="wrap_content"↵ android:layout_marginEnd="8dp"↵ android:layout_marginStart="8dp"↵ android:layout_marginTop="20dp"↵ android:text="Welcome to My App"↵ android:textAlignment="center"↵ android:textColor="@android:color/white"↵ android:textSize="24sp"↵ app:layout_constraintEnd_toEndOf="parent"↵ app:layout_constraintStart_toStartOf="parent"↵ app:layout_constraintTop_toBottomOf="@+id/imageView4" />↵↵</android.support.constraint.ConstraintLayout>↵↵Im also using the latest version of ConstraintLayout↵compile 'com.android.support.constraint:constraint-layout:1.0.2'↵↵A:↵↵You need to add:↵↵android:gravity="center"↵↵to the TextView.↵This is the only certain way to center the text inside a TextView object or one of its subclasses.↵The android:textAlignment is not working in all the cases and as reported by this answer that it has problems in lower API levels. ↵↵

    Values
    TokenPositive-pole strength
    End12.378
    _to8.487
    End11.377
    Of13.144
    ="0.216
    parent9.179
    "↵7.273
    0.000
    app21.571
    :1.262
    layout14.169
    _constraint7.225
    Start16.500
    _to3.467
    Start9.683
    Of12.748
    ="0.000
    parent7.961
    "↵7.396
    0.000
    app21.368
    :0.794
    layout12.240
    _constraint6.148
    Top17.741
    _to5.801
    Bottom12.524
    Of12.824
    ="@2.339
    +3.066
    id32.053
    /image6.139
    View6.688
    49.990
    "1.809
    />↵↵15.970
    </1.123
    android5.942
    .support10.460
    .constraint13.015
    .Constraint1.978
  3. 31.41 … quizid, quizname, campid) { ↵ console.log(quizid + quizname + campid); ↵ $http.post("js/ajax/addQuiz.php?quizid="+quizid …
    All 748 tokens

    Q:↵↵Binding value to select in angular js across 2 controllers↵↵Working with angularJS I am trying to figure out a way to bind the value of a select element under the scope of controller A to use it as an argument for an ng-click call [getQuizByCampID() Function] under the scope of controller B.↵My first idea was to use jquery, but I have read in the link below that using jquery is not recommended when starting with angularJS. ↵"Thinking in AngularJS" if I have a jQuery background?↵I also read in the link below that this is performed using ng-model, the only problem is that that the example provided is all under the same controller. ↵ and Binding value to input in Angular JS↵What is the angularJS way to get the value of the select element under controller A into the function call in the select under controller B?↵Price.html view↵ <div class="col-sm-3" ng-controller="campCtrl"> **Controller A** ↵ <select id="selCampID" class="form-control" ng-model="campInput" >↵ <option ng-repeat="camp in campaigns" value="{{camp.camp_id}}">{{camp.camp_name}}</option> ↵ </select>↵ </div>↵↵ <div class="col-sm-3" ng-controller="quizCtrl"> **Controller B**↵ <select ng-click="getQuizByCampID($('#selCampID').val())" class="form-control" ng-model="quizInput">↵ <option ng-controller="quizCtrl" ng-repeat="quiz in quizzesById" value="{{quiz.quiz_id}}">{{quiz.quiz_name}}</option> ↵ </select>↵ </div>↵↵App.js↵var app= angular.module('myApp', ['ngRoute']);↵app.config(['$routeProvider', function($routeProvider) {↵ $routeProvider.when('/price', {templateUrl: 'partials/price.html', controller: 'priceCtrl'});↵}]);↵↵$routeProvider.when('/price', {templateUrl: 'partials/price.html', controller: 'priceCtrl'});↵↵Quiz Controller↵'use strict';↵↵app.controller('quizCtrl', ['$scope','$http','loginService', function($scope,$http,loginService){↵$scope.txt='Quiz';↵$scope.logout=function(){↵ loginService.logout();↵}↵getQuiz(); // Load all available campaigns ↵function getQuiz(campID){ ↵ $http.post("js/ajax/getQuiz.php").success(function(data){↵ $scope.quizzes = data;↵ //console.log(data);↵ });↵};↵ $scope.getQuizByCampID = function (campid) {↵ alert(campid);↵$http.post("js/ajax/getQuiz.php?campid="+campid).success(function(data){↵ $scope.quizzesById = data;↵ $scope.QuizInput = "";↵ });↵ };↵↵ $scope.addQuiz = function (quizid, quizname, campid) { ↵ console.log(quizid + quizname + campid); ↵ $http.post("js/ajax/addQuiz.php?quizid="+quizid+"&quizname="+quizname+"&campid="+campid).success(function(data){↵↵ getQuiz();↵ $scope.QuizInput = "";↵});↵ };↵↵}])↵↵A:↵↵You should store the value in a service.↵example: ↵app.factory('SharedService', function() {↵ this.inputValue = null;↵↵ this.setInputValue = function(value) {↵ this.inputValue = value;↵ }↵↵ this.getInputValue = function() {↵ return this.inputValue;↵ }↵↵ return this;↵});↵↵Example on Plunkr↵Read: AngularJS Docs on services↵or check

    Values
    TokenPositive-pole strength
    quiz9.113
    id14.581
    ,0.000
    quiz5.400
    name12.526
    ,0.000
    camp5.361
    id12.241
    )5.455
    {1.483
    ↵7.158
    0.505
    console10.258
    .log9.744
    (0.000
    quiz4.291
    id15.077
    +0.000
    quiz2.827
    name8.531
    +0.000
    camp4.341
    id8.545
    );1.867
    ↵6.796
    0.294
    $0.756
    http10.483
    .post10.270
    ("0.071
    js31.410
    /ajax30.917
    /add5.990
    Quiz11.238
    .php12.984
    ?0.000
    quiz7.716
    id12.822
    ="+0.000
    quiz3.457
    id9.020
  4. 29.50 … , in <module>↵ backend = load_backend(connection.settings_dict['ENGINE'])↵ File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 34, …
    All 796 tokens

    Q:↵↵Modoboa 1.1.1 Deployment Errors↵↵I tried to install modoboa follow this steps: http://modoboa.readthedocs.org/en/latest/getting_started/install.html↵I installed modoboa with pip install modoboa:↵Traceback (most recent call last):↵ File "manage.py", line 10, in <module>↵ execute_from_command_line(sys.argv)↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 453, in execute_from_command_line↵ utility.execute()↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute↵ self.fetch_command(subcommand).run_from_argv(self.argv)↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fetch_command↵ klass = load_command_class(app_name, subcommand)↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 77, in load_command_class↵ module = import_module('%s.management.commands.%s' % (app_name, name))↵ File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module↵ __import__(name)↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 8, in <module>↵ from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/sql.py", line 9, in <module>↵ from django.db import models↵ File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 40, in <module>↵ backend = load_backend(connection.settings_dict['ENGINE'])↵ File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 34, in __getattr__↵ return getattr(connections[DEFAULT_DB_ALIAS], item)↵ File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 93, in __getitem__↵ backend = load_backend(db['ENGINE'])↵ File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 27, in load_backend↵ return import_module('.base', backend_name)↵ File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module↵ __import__(name)↵ File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 17, in <module>↵ raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)↵django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb↵↵python manage.py syncdb --noinput failed, check your configuration↵Traceback (most recent call last):↵ File "manage.py", line 10, in <module>↵ execute_from_command_line(sys.argv)↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 453, in execute_from_command_line↵ utility.execute()↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute↵ self.fetch_command(subcommand).run_from_argv(self.argv)↵ File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fet

    Values
    TokenPositive-pole strength
    ,0.000
    in0.745
    <0.000
    module5.743
    >↵2.226
    0.000
    backend3.501
    =0.000
    load0.251
    _backend5.645
    (connection2.975
    .settings4.873
    _dict9.456
    ['0.000
    ENGINE3.931
    '])↵0.000
    0.000
    File3.100
    "/0.203
    usr10.865
    /local11.085
    /lib6.889
    /python6.709
    26.608
    .0.168
    714.093
    /dist5.132
    -packages15.005
    /d0.921
    jango17.385
    /db29.497
    /__0.000
    init7.113
    __.0.012
    py5.221
    ",0.106
    line2.210
    0.872
    31.694
    45.818
    ,0.000
  5. 28.89 … no description).↵ DBTEAMPOLICIESSharedFolderJoinPolicyOther,↵↵};↵↵/// Represents the union's current tag state.↵@property (nonatomic, readonly) DBTEAMPOLICIESS …
    All 684 tokens

    ///↵/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.↵///↵/// Auto-generated by Stone, do not modify.↵///↵↵#import <Foundation/Foundation.h>↵↵#import "DBSerializableProtocol.h"↵↵@class DBTEAMPOLICIESSharedFolderJoinPolicy;↵↵NS_ASSUME_NONNULL_BEGIN↵↵#pragma mark - API Object↵↵///↵/// The `SharedFolderJoinPolicy` union.↵///↵/// Policy governing which shared folders a team member can join.↵///↵/// This class implements the `DBSerializable` protocol (serialize and↵/// deserialize instance methods), which is required for all Obj-C SDK API route↵/// objects.↵///↵@interface DBTEAMPOLICIESSharedFolderJoinPolicy : NSObject <DBSerializable, NSCopying>↵↵#pragma mark - Instance fields↵↵/// The `DBTEAMPOLICIESSharedFolderJoinPolicyTag` enum type represents the↵/// possible tag states with which the `DBTEAMPOLICIESSharedFolderJoinPolicy`↵/// union can exist.↵typedef NS_CLOSED_ENUM(NSInteger, DBTEAMPOLICIESSharedFolderJoinPolicyTag){↵ /// Team members can only join folders shared by teammates.↵ DBTEAMPOLICIESSharedFolderJoinPolicyFromTeamOnly,↵↵ /// Team members can join any shared folder, including those shared by users↵ /// outside the team.↵ DBTEAMPOLICIESSharedFolderJoinPolicyFromAnyone,↵↵ /// (no description).↵ DBTEAMPOLICIESSharedFolderJoinPolicyOther,↵↵};↵↵/// Represents the union's current tag state.↵@property (nonatomic, readonly) DBTEAMPOLICIESSharedFolderJoinPolicyTag tag;↵↵#pragma mark - Constructors↵↵///↵/// Initializes union class with tag state of "from_team_only".↵///↵/// Description of the "from_team_only" tag state: Team members can only join↵/// folders shared by teammates.↵///↵/// @return An initialized instance.↵///↵- (instancetype)initWithFromTeamOnly;↵↵///↵/// Initializes union class with tag state of "from_anyone".↵///↵/// Description of the "from_anyone" tag state: Team members can join any shared↵/// folder, including those shared by users outside the team.↵///↵/// @return An initialized instance.↵///↵- (instancetype)initWithFromAnyone;↵↵///↵/// Initializes union class with tag state of "other".↵///↵/// @return An initialized instance.↵///↵- (instancetype)initWithOther;↵↵- (instancetype)init NS_UNAVAILABLE;↵↵#pragma mark - Tag state methods↵↵///↵/// Retrieves whether the union's current tag state has value "from_team_only".↵///↵/// @return Whether the union's current tag state has value "from_team_only".↵///↵- (BOOL)isFromTeamOnly;↵↵///↵/// Retrieves whether the union's current tag state has value "from_anyone".↵///↵/// @return Whether the union's current tag state has value "from_anyone".↵///↵- (BOOL)isFromAnyone;↵↵///↵/// Retrieves whether the union's current tag state has value "other".↵///↵/// @return Whether the union's current tag state has value "other".↵///↵- (BOOL)isOther;↵↵///↵/// Retrieves string value of union's current tag state.↵///↵/// @return A human-readable string representing the union's current tag state.↵///↵- (NSString *)tagName;↵↵@end↵↵#pragma mark - Serializer Object↵↵///↵/// The ser

    Values
    TokenPositive-pole strength
    no0.000
    description1.902
    ).↵2.858
    0.000
    DB4.418
    TE4.171
    AMP2.653
    OL3.103
    IC3.094
    IE2.371
    SS8.585
    h0.000
    ared0.767
    Folder1.280
    Join1.261
    Policy1.531
    Other4.174
    ,↵↵2.800
    };↵↵12.185
    ///0.000
    Represents0.000
    the0.000
    union0.503
    's0.000
    current0.000
    tag1.670
    state1.728
    .↵9.531
    @property8.339
    (1.490
    nonatomic28.893
    ,7.197
    readonly17.709
    )1.294
    DB5.642
    TE4.701
    AMP2.225
    OL2.534
    IC2.146
    IE2.272
    SS8.200
  6. 28.61 … a ManyToOne relation defined for those entities.↵/**↵ * @ORM\Entity()↵ */↵class Order extends AbstractEntity {↵ // ...↵ /**↵ * @ORM\ManyToOne(targetEntity="Status")↵ * @ORM …
    All 621 tokens

    Q:↵↵Doctrine2 entity default value for ManyToOne relation property↵↵I've got a Doctrine2 Entity called "Order", which has several status properties. The allowed status' are stored in a different Entity, so there is a ManyToOne relation defined for those entities.↵/**↵ * @ORM\Entity()↵ */↵class Order extends AbstractEntity {↵ // ...↵ /**↵ * @ORM\ManyToOne(targetEntity="Status")↵ * @ORM\JoinColumn(onDelete="NO ACTION", nullable=false)↵ */↵ protected $status;↵↵ /** @ORM\Column(nullable=true) */↵ protected $stringProperty = "default value";↵↵}↵↵I need to set this status property to a default value when creating a new instance of the order object.↵For a "non-relation" property I can simply set it like the $stringProperty above. But how to do it for relations?↵↵I cannot set the value to the id of the related record, as Doctrine2 will complain.↵It's fine if the configured default is a "Reference" to the status entity. The available status' are fixed and won't change (often).↵↵How do I configure the entity to have a proper default relation configured.↵Preferably not in a listener when persisting, as the status may be requested before that.↵↵A:↵↵There are several approaches but I would suggest using the OrderRepository as a factory for creating new orders.↵class OrderRepository↵{↵ public function create()↵ {↵ $order = new Order();↵ $status = $this->_em->find('Status','default'); // or getReference↵ $order->setStatus($status);↵ return $order;↵ }↵}↵↵// In a controller↵$orderRepository = $this->container->get('order_repository');↵$order = $orderRepository->create();↵↵By going with a repository you can initialize complex entity graphs that will be ready for persisting.↵==========================================================================↵Plan B would be to do this sort of thing within the order object and then use listeners to "fix things up" before persisting or updating.↵class Order↵{↵ public function __construct()↵ {↵ $this->status = new Status('Default');↵ }↵}↵↵The problem of course is that a default status object already exists in the database so when you flush you will get a error. So you need to hang an onFlush(http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#onflush) listener on the entity manager, check to see if the status object is being managed by the entity manager and, if not, replace it with a managed object fetched via the entity manager.↵This approach lets you deal with more "pure" domain models without worrying as much about the persistence layer. On the other hand, dealing with the flush can be tricky. On the gripping hand, once you get it working then it does open up some major possibilities.↵========================================================↵There is also the question of what exactly the status entity does. If all it contains is some sort of status state ('entered',processed') etc. Then you might consider j

    Values
    TokenPositive-pole strength
    a0.000
    Many0.300
    ToOne1.774
    relation1.534
    defined1.012
    for0.000
    those0.000
    entities2.403
    .↵0.812
    /**↵4.535
    *0.000
    @1.768
    ORM25.226
    \Entity11.176
    ()↵7.400
    */↵10.668
    class0.000
    Order5.731
    extends0.000
    Abstract3.853
    Entity10.215
    {↵11.257
    4.892
    //0.000
    ...↵8.339
    2.820
    /**↵4.057
    6.977
    *0.000
    @0.012
    ORM28.607
    \0.099
    ManyToOne13.560
    (targetEntity20.525
    ="0.000
    Status7.310
    ")↵4.700
    4.147
    *2.799
    @1.819
    ORM23.372
  7. 26.49 … $↵↵#if !defined(BOOST_MPL_PREPROCESSING_MODE)↵# include <boost/mpl/prior.hpp>↵# include <boost/mpl/apply_wrap.hpp>↵#endif↵↵#include <boost …
    All 794 tokens

    ↵#if !defined(BOOST_PP_IS_ITERATING)↵↵///// header body↵↵#ifndef BOOST_MPL_AUX778076_ADVANCE_BACKWARD_HPP_INCLUDED↵#define BOOST_MPL_AUX778076_ADVANCE_BACKWARD_HPP_INCLUDED↵↵// Copyright Aleksey Gurtovoy 2000-2004↵//↵// Distributed under the Boost Software License, Version 1.0. ↵// (See accompanying file LICENSE_1_0.txt or copy at ↵// http://www.boost.org/LICENSE_1_0.txt)↵//↵// See http://www.boost.org/libs/mpl for documentation.↵↵// $Id$↵// $Date$↵// $Revision$↵↵#if !defined(BOOST_MPL_PREPROCESSING_MODE)↵# include <boost/mpl/prior.hpp>↵# include <boost/mpl/apply_wrap.hpp>↵#endif↵↵#include <boost/mpl/aux_/config/use_preprocessed.hpp>↵↵#if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \↵ && !defined(BOOST_MPL_PREPROCESSING_MODE)↵↵# define BOOST_MPL_PREPROCESSED_HEADER advance_backward.hpp↵# include <boost/mpl/aux_/include_preprocessed.hpp>↵↵#else↵↵# include <boost/mpl/limits/unrolling.hpp>↵# include <boost/mpl/aux_/nttp_decl.hpp>↵# include <boost/mpl/aux_/config/eti.hpp>↵↵# include <boost/preprocessor/iterate.hpp>↵# include <boost/preprocessor/cat.hpp>↵# include <boost/preprocessor/inc.hpp>↵↵namespace boost { namespace mpl { namespace aux {↵↵// forward declaration↵template< BOOST_MPL_AUX_NTTP_DECL(long, N) > struct advance_backward;↵↵# define BOOST_PP_ITERATION_PARAMS_1 \↵ (3,(0, BOOST_MPL_LIMIT_UNROLLING, <boost/mpl/aux_/advance_backward.hpp>))↵# include BOOST_PP_ITERATE()↵↵// implementation for N that exceeds BOOST_MPL_LIMIT_UNROLLING↵template< BOOST_MPL_AUX_NTTP_DECL(long, N) >↵struct advance_backward↵{↵ template< typename Iterator > struct apply↵ {↵ typedef typename apply_wrap1<↵ advance_backward<BOOST_MPL_LIMIT_UNROLLING>↵ , Iterator↵ >::type chunk_result_;↵↵ typedef typename apply_wrap1<↵ advance_backward<(↵ (N - BOOST_MPL_LIMIT_UNROLLING) < 0↵ ? 0↵ : N - BOOST_MPL_LIMIT_UNROLLING↵ )>↵ , chunk_result_↵ >::type type;↵ };↵};↵↵}}}↵↵#endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS↵#endif // BOOST_MPL_AUX778076_ADVANCE_BACKWARD_HPP_INCLUDED↵↵///// iteration, depth == 1↵↵// For gcc 4.4 compatability, we must include the↵// BOOST_PP_ITERATION_DEPTH test inside an #else clause.↵#else // BOOST_PP_IS_ITERATING↵#if BOOST_PP_ITERATION_DEPTH() == 1↵#define i_ BOOST_PP_FRAME_ITERATION(1)↵↵template<>↵struct advance_backward< BOOST_PP_FRAME_ITERATION(1) >↵{↵ template< typename Iterator > struct apply↵ {↵ typedef Iterator iter0;↵↵#if i_ > 0↵# define BOOST_PP_ITERATION_PARAMS_2 \↵ (3,(1, BOOST_PP_FRAME_ITERATION(1), <boost/mpl/aux_/advance_backward.hpp>))↵# include BOOST_PP_ITERATE()↵#endif↵↵ typedef BOOST_PP_CAT(iter,BOOST_PP_FRAME_ITERATION(1)) type;↵ };↵↵#if defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)↵ /// ETI workaround↵ template<> struct apply<int>↵ {↵ typedef int type;↵ };↵#endif↵};↵↵#undef i_↵↵///// iteration, dep

    Values
    TokenPositive-pole strength
    $↵↵5.034
    #if2.384
    !0.016
    defined3.141
    (0.000
    BOOST0.209
    _M3.131
    PL4.216
    _PRE1.981
    PROCESS3.072
    ING4.783
    _MODE4.543
    )↵6.866
    #7.236
    5.381
    include7.727
    <0.492
    boost17.684
    /m6.374
    pl24.399
    /p9.511
    rior13.351
    .hpp7.326
    >↵5.839
    #3.737
    1.677
    include8.890
    <0.443
    boost20.080
    /m4.695
    pl26.490
    /0.000
    apply10.906
    _wrap9.068
    .hpp8.082
    >↵3.992
    #endif5.633
    ↵↵3.558
    #include7.334
    <0.502
    boost17.419
  8. 26.47 … ]) {↵ }↵↵ return self;↵}↵↵↵-(void)setPropertiesWithException:(AmazonServiceException *)theException↵{↵ [super setPropertiesWithException:theException];↵↵ if ([theException.additional …
    All 356 tokens

    /*↵ * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.↵ *↵ * Licensed under the Apache License, Version 2.0 (the "License").↵ * You may not use this file except in compliance with the License.↵ * A copy of the License is located at↵ *↵ * http://aws.amazon.com/apache2.0↵ *↵ * or in the "license" file accompanying this file. This file 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.↵ */↵↵#import "SimpleDBMissingParameterException.h"↵↵↵↵↵@implementation SimpleDBMissingParameterException↵↵@synthesize boxUsage;↵↵↵-(id)initWithMessage:(NSString *)theMessage↵{↵ if (self = [super initWithMessage:theMessage]) {↵ }↵↵ return self;↵}↵↵↵-(void)setPropertiesWithException:(AmazonServiceException *)theException↵{↵ [super setPropertiesWithException:theException];↵↵ if ([theException.additionalFields valueForKey:@"BoxUsage"] != nil) {↵ self.boxUsage = [AmazonSDKUtil convertStringToNumber:[theException.additionalFields valueForKey:@"BoxUsage"]];↵ }↵}↵↵↵-(NSString *)description↵{↵ NSMutableString *buffer = [[NSMutableString alloc] initWithCapacity:256];↵↵ [buffer appendString:@"{"];↵ [buffer appendString:[[[NSString alloc] initWithFormat:@"BoxUsage: %@,", boxUsage] autorelease]];↵ [buffer appendString:[super description]];↵ [buffer appendString:@"}"];↵↵ return [buffer autorelease];↵}↵↵↵-(void)dealloc↵{↵ [boxUsage release];↵↵ [super dealloc];↵}↵↵@end↵

    Values
    TokenPositive-pole strength
    ])1.876
    {↵8.351
    1.513
    }↵↵5.785
    0.647
    return2.892
    self8.487
    ;↵4.153
    }↵↵↵11.788
    -(2.063
    void25.040
    )set6.243
    Properties15.832
    With8.350
    Exception12.211
    :(0.357
    Amazon3.982
    Service2.034
    Exception12.166
    *)0.000
    the4.614
    Exception4.770
    ↵6.527
    {↵8.278
    1.847
    [0.103
    super12.307
    set5.636
    Properties17.690
    With1.673
    Exception26.469
    :0.000
    the2.294
    Exception8.302
    ];↵↵6.700
    1.552
    if12.883
    ([0.000
    the2.407
    Exception6.997
    .additional2.049
  9. 25.77 … URL . "home");↵ } else {↵ exit ('Email or password incorrect');↵ }↵}↵↵Controller.php ↵ public function login() {↵ if (isset($_POST['login_submit']) AND isset …
    All 798 tokens

    Q:↵↵Como passar objetos entre controllers no MVC utilizando POO↵↵Basicamente, eu preciso que ser o login for bem sucedido salvar o nome de usuário em uma variável e utilizar-lá em outro controller.↵Model.php:↵ public function login($email, $password) {↵ session_start();↵↵ $sql = "SELECT * FROM users WHERE email = :email AND password= :password;";↵ $query = $this->db->prepare($sql);↵↵ $parameters = array(':email' => $email, ':password' => $password);↵ $query->execute($parameters);↵ $rows = $query->fetch(PDO::FETCH_NUM);↵↵ if($rows > 0) {↵ header ("Location: " . URL . "home");↵ } else {↵ exit ('Email or password incorrect');↵ }↵}↵↵Controller.php ↵ public function login() {↵ if (isset($_POST['login_submit']) AND isset($_POST['email']) AND isset($_POST['password'])) {↵ $this->model->login($_POST['email'], $_POST['password']);↵ }↵}↵↵A:↵↵Não foi explicito mas parece que você quer que seja mandado por session. Sendo assim você pode simplesmente setar na sessão e pegar de volta no outro controle.↵<?php↵// declaração da classe Pessoa↵class Pessoa {↵ public $nome;↵}↵↵// No Controller que envia os parametros↵session_start();↵$joao = new Pessoa();↵$joao->nome = "João";↵$_SESSION['pessoa'] = $joao;↵↵// No Controller que recebe os dados↵session_start();↵$joao = $_SESSION['pessoa'];↵print_r($joao);↵↵Ou se quiser padronizar isso e jogar no paradigma de orientação a objetos↵<?php↵↵// controller que envia ↵$joao = new Pessoa();↵$joao->nome = "João";↵SessionUtils::setPropriedade('pessoa', $joao);↵↵// controller que recebe ↵$joao = SessionUtils::getPropriedadeLimpar('pessoa');↵print_r($joao);↵↵// declaração da classe Pessoa↵class Pessoa {↵ public $nome;↵}↵↵// classe util para a sessão↵class SessionUtils {↵↵ private static $BASE_PROPRIEDADES = "props";↵↵ /**↵ * Pega uma propriedade da sessão ↵ * @return a propriedade ou null se não existir↵ */↵ public static function getPropriedade($nome){↵ self::configurarSessao();↵ $sessao = self::getSessao();↵ return @$sessao[$nome];↵ }↵↵ /**↵ * Pega uma propriedade da sessão e depois a exclui da mesma↵ * @return a propriedade ou null se não existir↵ */↵ public static function getPropriedadeLimpar($nome){↵ self::configurarSessao();↵ $sessao = self::getSessao();↵ $valor = @$sessao[$nome];↵ self::setPropriedade($nome, null);↵ return $valor;↵ }↵↵ /**↵ * Seta uma propriedade na sessão↵ */↵ public static function setPropriedade($nome, $valor){↵ self::configurarSessao();↵ $_SESSION[self::$BASE_PROPRIEDADES][$nome] = $valor;↵ }↵↵ /**↵ * Configura a sessão para guardar os itens↵ */↵ private static function configurarSessao(){↵ if(!isset($_SESSION)){↵ session_start();↵ }↵ if(!self::getSessao() || !is_array(self::getSessao())){↵ self::setSessao(array());↵ }↵ }↵↵ private static f

    Values
    TokenPositive-pole strength
    URL6.639
    .0.000
    "0.114
    home14.145
    ");↵4.399
    4.131
    }0.952
    else5.983
    {↵8.755
    2.630
    exit8.533
    ('0.000
    Email5.817
    or0.000
    password0.000
    incorrect5.645
    ');↵5.632
    3.327
    }↵7.228
    }↵↵2.771
    Controller10.412
    .php7.587
    ↵11.226
    3.342
    public7.481
    function0.000
    login9.785
    ()5.672
    {↵10.028
    2.253
    if25.770
    (0.000
    isset21.333
    ($_2.360
    POST9.036
    ['0.356
    login7.928
    _submit9.551
    '])3.210
    AND0.350
    isset13.767
  10. 25.76 … (message);↵ }↵↵ dialogBuilder.setPositiveButton(getString(android.R.string.ok), (dialog, which) -> {↵ if (_callbacks != null) {↵ for (ConfirmDialogCallback cdc : _callbacks) …
    All 570 tokens

    /*#######################################################↵ * Copyright (c) 2014 Jeff Martin↵ * Copyright (c) 2015 Pedro Lafuente↵ * Copyright (c) 2017-2019 Gregor Santner↵ *↵ * Licensed under the MIT license.↵ * You can get a copy of the license text here:↵ * https://opensource.org/licenses/MIT↵###########################################################*/↵package other.writeily.ui;↵↵import android.app.Dialog;↵import android.os.Bundle;↵import android.support.annotation.NonNull;↵import android.support.v4.app.DialogFragment;↵import android.support.v7.app.AlertDialog;↵import android.text.TextUtils;↵↵import net.gsantner.markor.R;↵import net.gsantner.markor.util.AppSettings;↵↵import java.io.Serializable;↵↵public class WrConfirmDialog extends DialogFragment {↵ public static final String FRAGMENT_TAG = "WrConfirmDialog";↵↵ private static final String EXTRA_TITLE = "EXTRA_TITLE";↵ private static final String EXTRA_MESSAGE = "EXTRA_MESSAGE";↵ public static final String EXTRA_DATA = "EXTRA_DATA";↵↵ private Serializable _data;↵ private ConfirmDialogCallback[] _callbacks;↵ private String _summary;↵↵ public static WrConfirmDialog newInstance(String title, String message,↵ Serializable data, ConfirmDialogCallback... callbacks) {↵ 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
    (message9.724
    );↵6.699
    3.784
    }↵↵7.497
    0.000
    dialog6.022
    Builder12.922
    .setPositiveButton8.829
    (getString7.320
    (android4.443
    .R5.154
    .string1.116
    .ok6.319
    ),0.000
    (2.475
    dialog8.350
    ,0.000
    which7.287
    )4.644
    ->0.000
    {↵6.650
    0.000
    if15.840
    (_0.343
    callbacks11.166
    !=0.000
    null6.517
    )0.000
    {↵5.182
    0.000
    for25.758
    (1.991
    Confirm2.971
    Dialog1.807
    Callback0.132
    c7.770
    dc11.587
    :0.000
    _0.058
    callbacks7.344
    )0.658
  11. 25.38 … this without code changes is as below. Worked well for me.↵http://guysmithferrier.com/post/2010/09/PublicResourceCodeGenerator-now-works-with-Visual …
    All 389 tokens

    Q:↵↵Silverlight resource constructor always return to internal↵↵When I modify my resource file (.resx) add text or modify, the constructor of my resource always go to internal and after that, when I run my silverlight I have an error in my binding XAML.↵Is there a way to avoid this scenario? I need to go in the designer of my resource and put the constructor to public to solve the problem↵I use my resource like this in my xaml file↵ <UserControl.Resources>↵ <resources:LibraryItemDetailsView x:Key="LibraryItemDetailsViewResources"></resources:LibraryItemDetailsView>↵ </UserControl.Resources>↵↵<TextBlock FontSize="12" FontWeight="Bold" Text="{Binding Path=FileSelectedText3, Source={StaticResource LibraryItemDetailsViewResources}}"></TextBlock>↵↵A:↵↵Another way to do this without code changes is as below. Worked well for me.↵http://guysmithferrier.com/post/2010/09/PublicResourceCodeGenerator-now-works-with-Visual-Studio-2010.aspx↵↵A:↵↵You can create a public class that exposes the resources through a property:↵public class StringsWrapper↵{↵ private static LibraryItemDetailsView _view = null;↵↵ public LibraryItemDetailsView View↵ {↵ get↵ {↵ if (_view == null)↵ {↵ _view = new LibraryItemDetailsView();↵ }↵ return _view;↵ }↵ }↵}↵↵Then in your XAML you can access your resource:↵<UserControl.Resources>↵ <StringsWrapper x:Key="LibraryItemDetailsViewResources"></StringsWrapper>↵</UserControl.Resources>↵↵<TextBlock FontSize="12" FontWeight="Bold" Text="{Binding Path=View.FileSelectedText3, Source={StaticResource LibraryItemDetailsViewResources}}"></TextBlock>↵↵This way the resx constructor can be internal!↵↵

    Values
    TokenPositive-pole strength
    this0.302
    without0.000
    code0.563
    changes1.810
    is0.000
    as0.000
    below2.360
    .0.000
    Work0.536
    ed0.000
    well0.000
    for0.000
    me0.000
    .↵3.753
    http8.150
    ://0.165
    gu0.000
    ys1.015
    mith1.019
    fer1.846
    rier3.325
    .com16.168
    /post18.858
    /0.000
    214.570
    09.823
    17.321
    015.837
    /0.111
    04.738
    925.379
    /Public10.313
    Resource3.827
    Code2.108
    Generator4.856
    -now4.448
    -0.000
    works3.491
    -with2.787
    -0.000
    Visual0.913
  12. 25.30 … atex/luaotfload/fontloader-font-afk.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-cff.lua↵share/tex …
    All 1107 tokens

    @comment $NetBSD: PLIST,v 1.5 2017/06/21 08:28:43 markd Exp $↵share/texmf-dist/scripts/luaotfload/luaotfload-tool.lua↵share/texmf-dist/scripts/luaotfload/mkcharacters↵share/texmf-dist/scripts/luaotfload/mkglyphlist↵share/texmf-dist/scripts/luaotfload/mkimport↵share/texmf-dist/scripts/luaotfload/mkstatus↵share/texmf-dist/scripts/luaotfload/mktests↵share/texmf-dist/tex/luatex/luaotfload/fontloader-2017-02-11.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-basics-gen.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-basics-nod.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-basics.tex↵share/texmf-dist/tex/luatex/luaotfload/fontloader-data-con.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-afk.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-cff.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-cid.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-con.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-def.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-dsp.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-gbn.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ini.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-lua.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-map.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ocl.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-one.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-onr.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-osd.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ota.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-otc.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-oti.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-otj.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-otl.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-oto.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-otr.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ots.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-oup.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-tfm.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ttf.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-demo-vf-1.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-enc.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-ext.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-syn.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts.tex↵share/texmf-dist/tex/luatex/luaotfload/fontloader-l-boolean.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-l-file.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-l-function.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-l-io.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-l-lpeg.lua↵share/texmf-dist/tex/luatex/luaotfload/fontloader-l-lua.lua↵share

    Values
    TokenPositive-pole strength
    at1.059
    ex10.976
    /l5.034
    ua4.541
    ot5.386
    f3.052
    load25.225
    /font3.290
    loader6.383
    -font3.246
    -0.006
    af0.584
    k7.015
    .lua4.128
    ↵0.366
    share8.619
    /t3.111
    ex3.611
    mf5.505
    -dist12.509
    /t2.684
    ex11.077
    /0.117
    lu1.382
    at0.994
    ex10.352
    /l4.988
    ua4.205
    ot5.258
    f2.849
    load25.301
    /font3.717
    loader7.725
    -font1.455
    -c6.250
    ff8.776
    .lua3.450
    ↵0.387
    share8.487
    /t3.043
    ex3.517
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.71
Fuzzing
0.56
Embedding AUROC
0.54

Detection recall by activation strength

0.00
1.00
0.50
0.67
0.00
weakeststrongest

False alarms on inactive windows: 0%.

Judge
claude-haiku-5-5
Held-out windows
32 active of 4,000
Judged
34 detection · 22 fuzzing
Detection outcomes
10 missed · 0 false alarm · 7 hit · 17 correct rejection
Seed
1160827503 · HuggingFaceFW/fineweb-edu@87f09149 (sample/10BT/*.parquet, 500 docs, seed 0)
Detection windows (34), the explanation's mistakes first
  1. missed 18.64 · sim -0.12 Editor↵- Navigate to the following location: Computer Configuration/Administrative Templates/Windows Components/BitLocker Drive Encryption/Operating System Drive↵- Double click on
  2. missed 13.46 · sim -0.00 fs↵had the loanership. The serfs had all the "jobs"↵going and the Barons enjoyed everything that↵the serfs produced.↵To
  3. missed 12.67 · sim 0.02 s results are the baseline for your Progress 8 scores in five years’ time.↵Having an early analysis allowing you to secure some rapid improvement and quick wins with
  4. missed 12.67 · sim 0.12 s at the expense of CPU time to perform the compression and decompression.↵- By using a preset table you may be able to reduce CPU time at the expense
  5. missed 11.93 · sim 0.04 expect around online learning.↵Set some expectations of your own as well. When can your kid expect to spend time with you? When should they avoid interrupting you
  6. missed 11.37 · sim 0.00 Comparison of Autonomic Control of Blood Pressure During Standing and Artificial Gravity Induced via Short-Arm Human Centrifuge↵Copyright is held by the author(s).↵
  7. missed 9.99 · sim 0.14 form congregational leaders wanted more predictability and less chaos-a service less like traditional Jewish worship ambiance and more like how Congregationalists and Methodists worshiped
  8. missed 9.02 · sim 0.01 (VLC) setup capable of a data rate of 2.2 Mb/s by employing a new type of organic light-emitting diodes (OLED
  9. missed 8.97 · sim 0.07 add a unique touch to a flowerbed and can be saved and dried for flower arrangements. These flowers are also wonderful and tasty food for wildlife like bees, butterflies
  10. missed 8.95 · sim 0.04 response.” So older adults who’'ve been exposed to BPA their entire lives are more likely to suffer immune problems than younger kids are (but at the
  11. hit 12.11 · sim 0.15 ONE 6(5): e19639. doi:10.1371/journal.pone.00196
  12. hit 12.00 · sim 0.04 .com/news/world-coins/monday-morning-brief-for-jan-31-2022-found-treasure-coin-exciting
  13. hit 11.58 · sim 0.10 1186. doi:10.1001/archneurpsyc.1939.0227018
  14. hit 10.33 · sim 0.14 contexts where it may be parsed by an XML parser or an HTML parser, it SHOULD↵use the following form to ensure maximum compatibility:↵<math xmlns="http
  15. hit 9.83 · sim 0.04 take hours to finish. To analyze the results:↵$ ./do-analysis.sh config/sample.json↵This will create a file↵html/results.html showing the top
  16. hit 9.57 · sim 0.07 the Internet <http://www.lfi.ch/publikationen/publ/posterLFI3-en.php>. Birmensdorf, Swiss Federal Research Institute
  17. hit 9.46 · sim 0.01 /doc/57939480/Goals-2000-Educate-America-Act.
  18. correct rejection 4.01 · sim 0.12 istrelle bats (Pipistrellus pygmaeus) were randomly assigned into two groups. At nightfall during their migration period, one group
  19. correct rejection 3.28 · sim 0.06 wn?↵Dried grass seeds, called grass awns, pose potential threat to your pet. These grass awns frequently become lodged in your pet’s fur or
  20. correct rejection 2.31 · sim -0.03 demonstrates how the visions of enslaved African Americans emerged into plans and action once slavery ended.Enslaved people, Williams contends, placed great value in the practical power of
  21. correct rejection 1.54 · sim 0.05 12)↵Orange County usa↵A variable resistor is very important. It allows you to build a circuit with some degree of control. For example, a volume
  22. correct rejection 1.33 · sim -0.06 Integration packs multiple microwave functions into a single housing. Military requirements, and to a less degree commercial systems, are driving increased integration of microwave functions into smaller and smaller
  23. correct rejection 1.00 · sim 0.03 men and women).↵How about the Reform service?↵It evolved over time. By the mid 1800s the typical three-hour Sabbath morning service in
  24. correct rejection 0.88 · sim 0.09 same subtype and even among members of the same family. In addition, some subtypes of cutis laxa have only been reported in a handful of individuals,
  25. correct rejection 0.72 · sim 0.00 of Moses – Book of Genesis extracts from Joseph Smith’s Translation of the Bible, which he commenced in 1830.↵- The Book of Abraham –
  26. correct rejection 0.66 · sim -0.01 . Eastern Phoebes are present all year in portions of the interior southeast and the Mid-Atlantic. Eastern Phoebes breed in a variety of
  27. correct rejection 0.64 · sim 0.03 that we will eat more. It’s not served to fill you up so that you can’t eat that expensive intricate meal prepared by the chef.↵Virtually
  28. correct rejection 0.61 · sim 0.06 world, students are under extreme pressure. Academic stress has become a pervasive problem across countries and cultures.↵The stress during examination can be the product of student’s aspiration
  29. correct rejection 0.59 · sim 0.07 we socially enjoy what we collectively produce,↵will furnish for the worker ownership of his job↵and the enjoyment of what he helps to produce.↵The Glasgow Worker.↵
  30. correct rejection 0.58 · sim 0.16 the story-lines well, but we are largely ignorant of their original use and meaning.↵The familiar story of Gyges as told by Herodotos marks the appearance
  31. correct rejection 0.56 · sim -0.03 2010, NRDC working with partners and citizens in Canada requested the CEC (established as part of NAFTA’s National American Agreement on Environmental
  32. correct rejection 0.53 · sim -0.00 knob can be a variable resistor. It can act as a control on the amount of current flowing. Here is a picture of a variable resistor from a dimmer
  33. correct rejection 0.48 · sim 0.07 may be prone to slides, or↵sit above areas known for erosion. For landscapes that cannot afford to keep water on-site, the goal becomes screening the exiting
  34. correct rejection 0.21 · sim 0.21 of the SIM card and reduced the functionality. Out went all the SIM apps. So, I am afraid, the programmer there has also become a developer.↵So
Fuzzing windows (22), dashed tokens were marked for the judge
  1. marks right · judged wrong nav, “Why are so many skeletons found around this remote lake?” Mr. Vaishnav replied, “These are believed to be the remains of General Z
  2. marks right · judged wrong s. Despite the fact that nanosilver effectively kills bacteria and thus becomes biocidal, many scientists are still not certain of its safety to humans. Sen
  3. marks right · judged wrong able to secure some funding and this is where I came along. I took on the project, with a lot of input and help from Virginia Tech faculty and Wilson
  4. marks right · judged wrong bg, exposure, colors, pp, contrasts, vertical format and composition are all excellent!↵TFS - congrats,↵bebbetto (40)
  5. marks right · judged wrong senders and receivers work together to better secure emails, protecting users and organizations from abuse.↵There are 3 components to DMARC security and all are TXT records
  6. marks right · judged wrong dramatic automatic transmissions. The Army rejected the X-2 for driveability and manueverability problems.↵Eisenhauer Manufacturing, btw, still
  7. marks right · judged wrong communication disorders, psychology, and education. A best-selling, comprehensive, easy-to-understand introduction to language development. This best-selling introduction to language development text offers
  8. marks right · judged right an update: sudo sh ~/Downloads/crouton -n chrootname -u , where chrootname is the name of your chroot, make
  9. marks wrong · judged wrong s across France and meant to relieve ailments and restore spirits.↵The world’s oldest restaurant is in Spain↵The Botin restaurant situated in Madrid, Spain is the
  10. marks wrong · judged wrong s).↵To reach this speed, the scientists created new far-red/near-infrared, solution-processed OLEDs. And by extending the spectral range to
  11. marks wrong · judged wrong s] "To the east of Kamarupa, the description continues, the country was a series of hills and hillocks without any principal city, and it
  12. marks wrong · judged wrong idst these uncertainties, some essential facts are important to bear in mind. The Gulf of Mexico teems with life all year, and especially during spring days and
  13. marks wrong · judged wrong > ... </body>↵HTML does not support namespace extensibility in the same way, the HTML parser↵has in-built knowledge of the HTML, SVG and
  14. marks wrong · judged wrong /jones↵Watch it Live: engineering.dartmouth.edu/jones/live↵Events are free and open to the public unless otherwise noted.
  15. marks wrong · judged wrong response in an animal model.↵The microneedle technique could provide a new tool for international immunization programs against measles, which killed nearly 140
  16. marks wrong · judged wrong / .”↵What is a Sysroot?↵A sysroot is a folder which contains a minimal filesystem (especially libraries, the C library and header files).↵How
  17. marks wrong · judged wrong choice of examining contemporary popular culture through his research on radio was pathbreaking and radical. During his time, psychologists were modeling their research agendas on the pure sciences by
  18. marks wrong · judged wrong is completely self-sufficient with two power plants to generate electricity;↵multiple underground water reservoirs; and a sophisticated ventilation system. The facility can operate for at least
  19. marks wrong · judged wrong CENTRAL AFRICAN REPUBLIC (CAR)↵The international community has chronically neglected the needs of the civilian population in CAR. In 201
  20. marks wrong · judged wrong also works closely with collaborating partners such as regional NGOs and various national and research institutions.↵It has successfully catalysed the establishment of the “Consortium for
  21. marks wrong · judged wrong |Home > Species list >||Moths of Northamptonshire & The Soke of Peterborough||Key to Text|↵|Barred Straw Gandar
  22. marks wrong · judged wrong to the existence of a much older people.”↵“Images of giant armadillos, which died out before the last ice age, show the artists who drew them

Activation and mechanism

Activation distribution

[0, 1.15): 173581 [1.15, 2.29): 7882 [2.29, 3.44): 4554 [3.44, 4.58): 3180 [4.58, 5.73): 2492 [5.73, 6.88): 1924 [6.88, 8.02): 1577 [8.02, 9.17): 1299 [9.17, 10.3): 945 [10.3, 11.5): 674 [11.5, 12.6): 515 [12.6, 13.8): 354 [13.8, 14.9): 249 [14.9, 16): 167 [16, 17.2): 112 [17.2, 18.3): 66 [18.3, 19.5): 50 [19.5, 20.6): 54 [20.6, 21.8): 37 [21.8, 22.9): 44 [22.9, 24.1): 50 [24.1, 25.2): 23 [25.2, 26.4): 19 [26.4, 27.5): 14 [27.5, 28.7): 11 [28.7, 29.8): 8 [29.8, 30.9): 9 [30.9, 32.1): 4 [32.1, 33.2): 0 [33.2, 34.4): 2 0.00 34.38

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

Mechanism

Claimed retrospective: responds to tokens already in context.

Input attribution

0 back
15%
1 back
1%
2–4 back
3%
5–16 back
5%
17–64 back
11%
65+ back
64%
  • #1 at android: android0 0.19:text-59 0.17:-278 0.12 android-270 -0.11:-269 -0.10
  • #2 at id: /text-137 0.32id0 0.12View-136 0.05/text-124 0.05/b-254 0.04
  • #3 (not converged) at js: /ajax-74 0.25js0 0.23http-129 0.18/ajax-125 0.11.post-128 -0.10
  • #4 (not converged) at /db: /db0 0.41_backend-21 0.21/__-39 0.16/d-2 0.09-packages-3 0.08
  • #5 at nonatomic: nonatomic0 0.72_ASSUME-266 -0.07 (-1 0.05@property-2 -0.04ared-131 0.04

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

Vocabulary projection

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

Jacobian lens

,strlen · z = +5.26 · #1 promoted ,strlen >(() · z = +5.18 · #2 promoted >(() /mainwindow · z = +5.16 · #3 promoted /mainwindow /preferences · z = +5.13 · #4 promoted /preferences ],& · z = +4.81 · #5 promoted ],& /layouts · z = +4.79 · #6 promoted /layouts ]='\ · z = +4.72 · #7 promoted ]='\ /notification · z = +4.71 · #8 promoted /notification /slider · z = +4.54 · #9 promoted /slider /entities · z = +4.50 · #10 promoted /entities /M · z = -5.25 · #10 suppressed /M (G · z = -5.27 · #9 suppressed (G (C · z = -5.31 · #8 suppressed (C /N · z = -5.31 · #7 suppressed /N /A · z = -5.45 · #6 suppressed /A /G · z = -5.51 · #5 suppressed /G (H · z = -5.52 · #4 suppressed (H (R · z = -5.56 · #3 suppressed (R /C · z = -5.62 · #2 suppressed /C /H · z = -5.64 · #1 suppressed /H -6 -4 -2 0 +2 +4 +6

Logit lens

,strlen · z = +5.26 · #1 promoted ,strlen >(() · z = +5.18 · #2 promoted >(() /mainwindow · z = +5.16 · #3 promoted /mainwindow /preferences · z = +5.13 · #4 promoted /preferences ],& · z = +4.81 · #5 promoted ],& /layouts · z = +4.79 · #6 promoted /layouts ]='\ · z = +4.72 · #7 promoted ]='\ /notification · z = +4.71 · #8 promoted /notification /slider · z = +4.54 · #9 promoted /slider /entities · z = +4.50 · #10 promoted /entities /M · z = -5.25 · #10 suppressed /M (G · z = -5.27 · #9 suppressed (G (C · z = -5.31 · #8 suppressed (C /N · z = -5.31 · #7 suppressed /N /A · z = -5.45 · #6 suppressed /A /G · z = -5.51 · #5 suppressed /G (H · z = -5.52 · #4 suppressed (H (R · z = -5.56 · #3 suppressed (R /C · z = -5.62 · #2 suppressed /C /H · z = -5.64 · #1 suppressed /H -6 -4 -2 0 +2 +4 +6
promotes suppresses Hover a bar for its value.
Values
#Jacobian lens promotessuppressesLogit lens promotessuppresses
1 ,strlen +5.26 /H -5.64 ,strlen +5.26 /H -5.64
2 >(() +5.18 /C -5.62 >(() +5.18 /C -5.62
3 /mainwindow +5.16 (R -5.56 /mainwindow +5.16 (R -5.56
4 /preferences +5.13 (H -5.52 /preferences +5.13 (H -5.52
5 ],& +4.81 /G -5.51 ],& +4.81 /G -5.51
6 /layouts +4.79 /A -5.45 /layouts +4.79 /A -5.45
7 ]='\ +4.72 /N -5.31 ]='\ +4.72 /N -5.31
8 /notification +4.71 (C -5.31 /notification +4.71 (C -5.31
9 /slider +4.54 (G -5.27 /slider +4.54 (G -5.27
10 /entities +4.50 /M -5.25 /entities +4.50 /M -5.25

Top-10 overlap 100% · cos(w, J·w) 1.00 · kurtosis 3.9 (Jacobian) / 3.9 (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.

Wiring

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

Read more

"Directly" means along the residual stream, through no other unit. Linked units have pages in the registry. Reported, not gated. Backfilled after the review by open-interpretability wiring-backfill, from the record's model revision and the review's prompts. It is not part of the record.

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 11 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
L18/N2416 gate -0.144
L16/N2713 gate -0.133
L22/N1041 gate -0.127
L22/N851 gate +0.126
L20/N209 gate +0.123
L19/N2106 gate -0.121
L11/N583 up +0.111
L20/N1954 gate -0.111
L19/N3899 up +0.111
L20/N3712 gate -0.107
Upstream heads
L22/H8 up +0.613
L22/H2 up +0.573
L23/H1 gate +0.527
L21/H0 up +0.475
L21/H11 gate +0.473
L22/H0 up +0.473
L22/H10 up +0.469
L22/H12 up +0.448
L22/H6 gate +0.444
L21/H10 up +0.431
Downstream neurons

None: no later layer.

Downstream heads

None: no later layer.

From activations

Upstream neurons
L21/N567 +8.96
L2/N813 -5.98
L3/N2247 -4.82
L3/N3016 -3.14
L21/N3486 +1.74
L19/N3025 +1.61
L22/N2763 -1.55
L21/N3435 +1.4
L22/N851 +1.04
L21/N2930 -1.02
Upstream heads
L21/H9 -1.13
L23/H0 -0.791
L23/H5 -0.746
L23/H1 -0.734
L14/H12 +0.681
L14/H10 -0.576
L23/H4 -0.53
L23/H3 -0.486
L23/H8 -0.453
L17/H4 +0.445
Downstream neurons

None: no later layer.

Downstream heads

None: no later layer.

Covariance and confounds

Confounds

Token identity R²
0.66
Position R²
0.01
Frequency r
0.10
Best trivial baseline
never active · 0.55
Hypothesis
0.85 ✓

/dbORM android/coreloadBOOLdrawablecolorinstancetypeboost/ajax appendString

Co-activating neuron poles

Pole Lift ≥ Both ρ r
N2807− 32.5 716 +0.08 -0.20
N2918− 21.8 488 +0.22 -0.45
N4749+ 20.8 462 +0.26 +0.41
N4584+ 20.0 450 +0.43 +0.68
N1609− 19.4 438 +0.32 -0.45
N1771− 18.6 420 -0.01 +0.20
N3190− 17.6 399 -0.00 -0.17
N947− 17.0 386 +0.20 -0.26
N1502− 16.6 377 -0.11 -0.02
N3716+ 15.6 356 +0.20 +0.17
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
N2807, N2918, N4749
KL pole alone
6.85e-03
KL partners
2.76e-03
KL together
8.91e-03
Redundancy ratio
0.90

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

Run details

Submitted by
deepseek-flash
Reviewed by
claude-haiku-5-5
Reviewed at
2026-10-26 13:08 UTC
Max activation
34.3815
Selection
random (seed 3023000956)
Corpus
corpus.jsonl · 199,896 tokens · seeded sample of 477/500 docs (≤ 200,000 tokens, seed 0) · source NeelNanda/pile-10k@127bfedc (data/*.parquet, first 500 docs) (inferred) · licence bigscience-bloom-rail-1.0
Model revision
060db6499f32 · float32
Ran on
scan cpu · review mps:0
Run cost
2.2 min (slowest: reviewer, 1.0 min) · 3 LLM calls