Open Interpretability Models Contributors Research Posts About

Qwen/Qwen2.5-1.5B · L6/N6675 · 20261111T173252Z

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

#1 · negative pole − NEEDS REVISION moderate evidence for · 0.90 self-reviewed counts toward status 2026-11-11 · 20261111T173252Z

This pole fires on the completion-side token of a locally highly constrained bigram: most strongly on a single-character separator (the standalone space immediately before a digit, ( right after range, > closing a tag, or the space after = or >) where the preceding token opens a slot with a nearly determined filler such as a number after to, by, at, =, >, range, or a numbered name like Apollo, and at mid strength on the fixed second word of a memorized phrase (than after greater, of after capital, bank after central, noon after at). The same separator or function word in an unconstrained context (a space before a non-number, of after ordinary nouns, than after other comparatives, ( after other verbs) drives little or no activation, which beats a pure token-identity account; weak blips on ordinary content words (announced, he, triangle, began) are acknowledged leftovers near baseline.

The whole hypothesis

This pole fires on the completion-side token of a locally highly constrained bigram: most strongly on a single-character separator (the standalone space immediately before a digit, ( right after range, > closing a tag, or the space after = or >) where the preceding token opens a slot with a nearly determined filler such as a number after to, by, at, =, >, range, or a numbered name like Apollo, and at mid strength on the fixed second word of a memorized phrase (than after greater, of after capital, bank after central, noon after at). The same separator or function word in an unconstrained context (a space before a non-number, of after ordinary nouns, than after other comparatives, ( after other verbs) drives little or no activation, which beats a pure token-identity account; weak blips on ordinary content words (announced, he, triangle, began) are acknowledged leftovers near baseline.

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

Sister study: tests the explanation of Qwen--Qwen2.5-0.5B/L2/N414-negative/20261027T163020Z, unchanged

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

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

('(" (" (>">="

Adversarial review

positive_holdout: 4/7 passed; hard_negative: 13/13 passed; counterfactual: 10/10 passed; lookahead_consistency: 1/1 passed. Failed gates: sensitivity.

Hard negatives 13/13 stay below Positive holdouts 4/7 reach it threshold 2.05 (25% of max) → active passed · 0.100 (1% of max) The younger brother was taller than him, though far less patient. passed · 0.115 (1% of max) The committee met (briefly) to review the proposal before voting. passed · 0.130 (2% of max) The handle of the door came loose after years of use. passed · 0.133 (2% of max) Only when requests > capacity does the queue start to grow. passed · 0.181 (2% of max) Notes from the thread: > the deadline moved to Friday > please confirm by email. passed · 0.185 (2% of max) The investigation brought to light several accounting errors. passed · 0.233 (3% of max) She waited at the corner until the streetlights came on. passed · 0.234 (3% of max) We moored the boat beside the muddy bank and fished until dusk. passed · 0.255 (3% of max) In the deployment script, set host = example and port = default before running it. passed · 0.319 (4% of max) Apollo was worshipped as the god of light and music. passed · 0.905 (11% of max) The recipe calls for 3 eggs and a pinch of salt. passed · 1.197 (15% of max) # the daemon logged 3 warnings before it stopped passed · 1.512 (18% of max) label = "call wrap(3) when ready" failed · 0.236 (3% of max) The capital of Kenya is Nairobi, a city that sits almost exactly on the equator. failed · 0.280 (3% of max) The Apollo 11 mission landed two astronauts on the Moon in the summer of 1969. failed · 0.433 (5% of max) Every April the research station on the northern ridge wakes from its long winter silence. The caretakers arrive by helicopter, unload crates of instruments,… passed · 2.400 (29% of max) The pressure inside the tank was greater than 12 atmospheres, the gauge showed. passed · 3.372 (41% of max) <input type="text" name="qty" value="3" maxlength="4"> passed · 3.605 (44% of max) fn configure() { let workers = 8; let timeout = 30; spawn(workers); } passed · 4.706 (57% of max) for i in range(64): buffer[i] = 0 0 max 8.21
passed failed Each probe's peak negative-pole strength. The shaded side of the line counts as active. Hover a dot for its prompt.
All 31 probes
TestInputExpectedObserved
✓ positive holdout fn configure() { let workers = 8; let timeout = 30; spawn(workers); }
Rust, a language absent from the scan examples, contains two slot openers with numeric fillers (the space before 8 after = and before 30 after =), which the hypothesis predicts should fire.
active 3.605
✓ positive holdout for i in range(64): buffer[i] = 0
The ( immediately after range with a numeric filler, plus the space before 0 after =, are exactly the constrained separators the hypothesis claims, in a fresh Python snippet.
active 4.706
✓ positive holdout <input type="text" name="qty" value="3" maxlength="4">
The =" tokens before numbers and the "> closing the tag are claimed activating separators, placed here in a new HTML element.
active 3.372
✓ positive holdout The pressure inside the tank was greater than 12 atmospheres, the gauge showed.
A paraphrase holdout for the claimed mid-strength memorized phrase than after greater, in ordinary prose with no code present.
active 2.400
✗ positive holdout The capital of Kenya is Nairobi, a city that sits almost exactly on the equator.
Tests the claimed mid-strength memorized bigram of after capital in a geography sentence unlike any scan example.
active 0.236
✗ positive holdout Every April the research station on the northern ridge wakes from its long winter silence. The caretakers arrive by helicopter, unload crates of instruments, and spend the first week repairing whatever the storms have broken. Shutters are rehung, antennas are realigned, and the old diesel generator is coaxed back into service. Nobody complains about the cold, because the work itself keeps everyone warm. By the end of the month the sensors are streaming again and the first measurements of the season trickle into the archive. The station was built in the summer of 1983, when the glacier still reached almost to the valley road, and the first winter crew lived in a wooden hut that stands beside the pad to this day. Their photographs hang in the common room: six men in heavy coats, squinting into the wind, holding a flag that nobody has been able to identify. Later crews added the radio mast, the second hut, and finally the concrete block that now houses the instruments. The old hut is used for storage. Mice live in its walls. Everyone agrees that it should be repaired, and nobody has found the time. Last season a team of three graduate students spent eleven weeks measuring snow depth along a transect that runs from the ridge down to the edge of the glacier. They rose before dawn, skied out with their probes, and returned after dark with numb fingers and pages of numbers. Their results suggested that the snowpack was thinning faster than the older records had implied. Nobody was surprised, but everybody was troubled. The station manager wrote a careful summary for the ministry, attaching tables of depth readings and photographs of the markers that had been buried and then dug out again. Nobody at the station talks much about the winter crews who came before them, though their handwriting fills the shelves. The logbooks are bound in green cloth and stored behind glass, and visitors are allowed to read them with clean hands. The earliest entries are careful and dull; the latest are shorter, as if the writers had learned to trust the instruments more than their own impressions. In the third week the weather turned. A front came in from the west and for six days the ridge was wrapped in cloud. The team stayed inside, repaired a broken anemometer, and catalogued the samples they had already collected. On the seventh morning the sky cleared at last, and the instruments were checked one by one in the cold: the barometer, the anemometer, the two thermistors buried in the drift. At noon the wind dropped to almost nothing, and by early afternoon the temperature had climbed to 31 degrees in the sun. The caretakers signed the logbook, packed the last crate, and waited on the pad for the helicopter to return.
A long prose passage of several hundred tokens, well past the scan snippet length, with the claimed constrained slots (to before 31, at noon) buried near the end, testing whether the local mechanism survives distance.
active 0.433
✗ positive holdout The Apollo 11 mission landed two astronauts on the Moon in the summer of 1969.
Apollo followed by a space and a number is the hypothesis's numbered-name slot, so the separator before 11 should fire.
active 0.280
✓ hard negative In the deployment script, set host = example and port = default before running it.
The space after = precedes ordinary words rather than a nearly determined number, which the hypothesis says gives little or no activation.
inactive 0.255
✓ hard negative The recipe calls for 3 eggs and a pinch of salt.
A standalone space before a digit appears after the non-slot word for, an unconstrained filler the hypothesis says should stay near baseline.
inactive 0.905
✓ hard negative The younger brother was taller than him, though far less patient.
than follows a comparative other than greater, the near-miss the hypothesis explicitly says drives little or no activation.
inactive 0.100
✓ hard negative The handle of the door came loose after years of use.
of follows ordinary nouns rather than the memorized phrase capital of, so the hypothesis predicts little activation.
inactive 0.130
✓ hard negative We moored the boat beside the muddy bank and fished until dusk.
bank appears in its riverbank sense with no central before it, the same-token-other-sense near-miss the hypothesis says should not fire.
inactive 0.234
✓ hard negative She waited at the corner until the streetlights came on.
The space after at precedes an article rather than a number or the memorized noon, an unconstrained context the hypothesis predicts is quiet.
inactive 0.233
✓ hard negative The committee met (briefly) to review the proposal before voting.
The ( follows an ordinary verb in prose with no determined numeric filler, which the hypothesis says should drive little or no activation.
inactive 0.115
✓ hard negative Only when requests > capacity does the queue start to grow.
The space after > precedes a word rather than a number, so the hypothesis predicts no activation for this comparison operator.
inactive 0.133
✓ hard negative # the daemon logged 3 warnings before it stopped
A standalone space before a digit after the ordinary noun-verb frame logged sits in a comment, testing whether any space-before-digit fires, which the hypothesis denies.
inactive 1.197
✓ hard negative label = "call wrap(3) when ready"
A bare ( token followed by a digit inside a string literal, with the verb-like wrap before it, is the claimed separator in an unconstrained role, which the hypothesis says should drive little or no activation.
inactive 1.512
✓ hard negative Notes from the thread: > the deadline moved to Friday > please confirm by email.
The > tokens open quoted lines with no digit, tag or number, testing the delimiter in an unusual position where the hypothesis predicts no activation.
inactive 0.181
✓ hard negative The investigation brought to light several accounting errors.
The space after to precedes the word light instead of a determined number, an unconstrained filler the hypothesis says should not fire.
inactive 0.185
✓ hard negative Apollo was worshipped as the god of light and music.
Apollo appears without the numbered-name slot that the hypothesis claims, so the name alone should not activate the pole.
inactive 0.319
✓ counterfactual Multiply the result by 2. -> Multiply the result by two. Δ 0.81 Δ 0.81
✓ counterfactual The value is greater than 3. -> The value is greater than three. Δ 0.49 Δ 0.49
✓ counterfactual The limit is set to 10. -> The limit is set to ten. Δ 0.35 Δ 0.35
✓ counterfactual The index starts at 0 and ends at 9. -> The index starts at zero and ends at nine. Δ 0.32 Δ 0.32
✓ counterfactual Count from 1 to 10 slowly. -> Count from one to ten slowly. Δ 0.30 Δ 0.30
✓ counterfactual Turn to page 42 of the book. -> Turn to page forty-two of the book. Δ 0.27 Δ 0.27
✓ counterfactual The answer is x = 0 here. -> The answer is x = zero here. Δ 0.23 Δ 0.23
✓ counterfactual Multiply the result by 2. -> Multiply the result by 3. Δ 0.00 Δ 0.00
✓ counterfactual The quick brown fox jumps over the lazy dog. -> The quick brown fox leaps over the lazy dog. Δ 0.00 Δ 0.00
✓ counterfactual <div class="container">Hello</div> -> <div class="container">Hello<hr> Δ 0.00 Δ 0.00
✓ lookahead consistency Multiply the result by 2.; The value is greater than 3.; The limit is set to 10.; The index starts at 0 and ends at 9.; Count from 1 to 10 slowly.; Turn to page 42 of the book.; The answer is x = 0 here.; Multiply the result by 2.; The quick brown fox jumps over the lazy dog.; <div class="container">Hello</div>
claimed retrospective; measured retrospective (KL=0.0003724, tokens=['2', ' The', ' \n', '6', ' but'])

Minimal pairs

Pair 10 Sufficiency: 0.81 · effect 8.57e-05 (matched |effect| median 2.51e-05, max 0.000817) <div class="container">Hello</div> → <div class="container">Hello<hr> Necessity: 0.88 · effect 6.75e-05 (matched |effect| median 1.64e-05, max 0.000501) <div class="container">Hello</div> → <div class="container">Hello<hr> Median (score) Sufficiency: 0.81 · median of 1 pairs 0.81 Necessity: 0.88 · median of 1 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 Multiply the result by 2.
→ Multiply the result by two.
0.81 0.81 — —
2 The value is greater than 3.
→ The value is greater than three.
0.49 0.49 — —
3 The limit is set to 10.
→ The limit is set to ten.
0.35 0.35 — —
4 The index starts at 0 and ends at 9.
→ The index starts at zero and ends at nine.
0.32 0.32 — —
5 Count from 1 to 10 slowly.
→ Count from one to ten slowly.
0.30 0.30 — —
6 Turn to page 42 of the book.
→ Turn to page forty-two of the book.
0.27 0.27 — —
7 The answer is x = 0 here.
→ The answer is x = zero here.
0.23 0.23 — —
8 Multiply the result by 2.
→ Multiply the result by 3.
0.00 0.00 — —
9 The quick brown fox jumps over the lazy dog.
→ The quick brown fox leaps over the lazy dog.
0.00 0.00 — —
10 <div class="container">Hello</div>
→ <div class="container">Hello<hr>
0.00 0.00 0.81
effect 8.57e-05
matched 2.51e-05 / 0.000817
0.88
effect 6.75e-05
matched 1.64e-05 / 0.000501
Read more

Δ is the base prompt's peak negative-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 1 non-control pairs, on next-token KL. Median effect 8.57e-05 (sufficiency) and 6.75e-05 (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. 8.21 … " HREF="../../../../stylesheet.css" TITLE="Style">↵↵<SCRIPT type="text/javascript">↵function windowTitle()↵{↵ if (location.href.indexOf('is-external=true') == -1) {↵ …
    All 961 tokens

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">↵<!--NewPage-->↵<HTML>↵<HEAD>↵<!-- Generated by javadoc (build 1.6.0_45) on Fri Mar 06 22:17:27 CST 2015 -->↵<META http-equiv="Content-Type" content="text/html; charset=UTF-8">↵<TITLE>↵Uses of Package org.apache.hadoop.tools (Apache Hadoop Archives 2.3.0 API)↵</TITLE>↵↵<META NAME="date" CONTENT="2015-03-06">↵↵<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">↵↵<SCRIPT type="text/javascript">↵function windowTitle()↵{↵ if (location.href.indexOf('is-external=true') == -1) {↵ parent.document.title="Uses of Package org.apache.hadoop.tools (Apache Hadoop Archives 2.3.0 API)";↵ }↵}↵</SCRIPT>↵<NOSCRIPT>↵</NOSCRIPT>↵↵</HEAD>↵↵<BODY BGCOLOR="white" onload="windowTitle();">↵<HR>↵↵↵<!-- ========= START OF TOP NAVBAR ======= -->↵<A NAME="navbar_top"><!-- --></A>↵<A HREF="#skip-navbar_top" title="Skip navigation links"></A>↵<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">↵<TR>↵<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">↵<A NAME="navbar_top_firstrow"><!-- --></A>↵<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">↵ <TR ALIGN="center" VALIGN="top">↵ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/apache/hadoop/tools/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>↵ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>↵ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>↵ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>↵ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>↵ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>↵ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>↵ </TR>↵</TABLE>↵</TD>↵<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>↵</EM>↵</TD>↵</TR>↵↵<TR>↵<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">↵&nbsp;PREV&nbsp;↵&nbsp;NEXT</FONT></TD>↵<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">↵ <A HREF="../../../../index.html?org/apache/hadoop/tools/package-use.html" target="_top"><B>FRAMES</B></A> &nbsp;↵&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A> &nbsp;↵&nbsp;<SCRIPT type="text/javascript">↵ <!--↵ if(window==top) {↵ document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');↵ }↵ //-->↵</SCRIPT>↵<NOSCRIPT>↵ <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>↵</NOSCRIPT>↵↵↵</FONT></TD>↵</TR>↵</TABLE>↵<A NAME="skip-navbar_top"></A>↵<!-- =

    Values
    TokenNegative-pole strength
    "0.052
    H0.000
    REF0.000
    ="../../0.000
    ../../0.000
    stylesheet0.000
    .css0.000
    "0.008
    TITLE0.000
    ="2.549
    Style0.071
    ">↵↵0.089
    <0.110
    SCRIPT0.000
    type0.000
    ="2.195
    text0.000
    /javascript0.001
    ">↵0.604
    function0.078
    window0.000
    Title0.000
    ()↵0.000
    {↵0.000
    0.000
    if0.050
    (0.620
    location0.000
    .href0.000
    .indexOf0.009
    ('8.211
    is0.000
    -0.000
    external0.111
    =true0.092
    ')0.027
    ==0.000
    -0.122
    10.000
    )0.026
    {↵0.028
  2. 7.97 … cha */↵const { string, number, object, date, array, alternatives, lazy } = require('joi')↵const { graphql } = require('graphql')↵const joiql = require('../')↵↵ …
    All 887 tokens

    /* eslint-env mocha */↵const { string, number, object, date, array, alternatives, lazy } = require('joi')↵const { graphql } = require('graphql')↵const joiql = require('../')↵↵const db = {↵ hillary: {↵ name: 'Hillary Clinton',↵ age: 68,↵ birthday: new Date(1947, 9, 26)↵ },↵ elizabeth: {↵ name: 'Elizabeth Warren',↵ age: 67,↵ birthday: new Date(1949, 5, 22)↵ }↵}↵↵let Person = object({↵ id: string(),↵ name: string(),↵ birthday: date(),↵ age: lazy(() => number().integer())↵}).meta({↵ args: { id: string().required(), age: number().min(1).max(100) },↵ resolve: (source, args) => db[args.id]↵})↵↵const schema = joiql({↵ query: {↵ person: Person↵ }↵})↵↵describe('joiql', () => {↵ it('converts a Joi schema into GraphQL', () => {↵ const query = '{ person(id: "hillary") { name } }'↵ return graphql(schema, query).then((res) => {↵ res.data.person.name.should.equal('Hillary Clinton')↵ })↵ })↵↵ it('validates args', () => {↵ const query = '{ person(age: 0 id: "hillary") { name } }'↵ return graphql(schema, query).then((res) => {↵ res.errors[0].message.should.containEql('{\n "id": "hillary",\n "age" \u001b[31m[1]\u001b[0m: 0\n}\n\u001b[31m\n[1] "age" must be larger than or equal to 1\u001b[0m')↵ })↵ })↵↵ it('works without args', () => {↵ const schema = joiql({↵ query: {↵ hello: string().meta({ resolve: () => 'world' })↵ }↵ })↵ return graphql(schema, '{ hello }').then((res) => {↵ res.data.hello.should.equal('world')↵ })↵ })↵↵ it('works without args or resolves', () => {↵ const schema = joiql({↵ query: {↵ hello: string()↵ }↵ })↵ return graphql(schema, '{ hello }').then((res) => {↵ (res.data.hello === null).should.be.ok()↵ ;(typeof undefined).should.equal('undefined')↵ })↵ })↵↵ it('omits forbidden fields', () => {↵ const schema = joiql({↵ query: {↵ a: string().forbidden(),↵ b: string(),↵ c: object({↵ d: string().forbidden(),↵ e: string()↵ }),↵ f: array().items(object({↵ g: string().forbidden(),↵ h: string()↵ })),↵ j: array().items(↵ object({ k: string() }),↵ object({ l: string() }).forbidden()↵ ),↵ m: alternatives(↵ object({ n: string() }).meta({ name: 'N' }),↵ object({ o: string() }).meta({ name: 'O' }).forbidden()↵ )↵ }↵ })↵ return graphql(schema, '{ a c { d } f { g } j { k l } m { o } }')↵ .then((res) => {↵ const errs = res.errors.map((e) => e.message).join('')↵ errs.should.containEql('Cannot query field "a"')↵ errs.should.containEql('Cannot query field "d"')↵ errs.should.containEql('Cannot query field "g"')↵ errs.should.containEql('Cannot query field "l"')↵ errs.should.containEql('Cannot query field "o"')↵ })↵ .then(() =>↵ graphql(schema, '{ a b c { e } f { h } j { k } m ... on N { n } }')↵ )↵

    Values
    TokenNegative-pole strength
    cha0.000
    */↵0.046
    const0.000
    {0.031
    string0.045
    ,0.000
    number0.000
    ,0.000
    object0.235
    ,0.007
    date0.000
    ,0.003
    array0.000
    ,0.012
    alternatives0.000
    ,0.000
    lazy0.000
    }0.055
    =0.112
    require1.595
    ('7.551
    j0.000
    oi0.063
    ')↵0.000
    const0.000
    {0.007
    graphql0.000
    }0.000
    =0.043
    require1.474
    ('7.974
    graphql0.518
    ')↵0.000
    const0.000
    j0.000
    oi0.164
    ql0.000
    =0.019
    require0.869
    ('../0.495
    ')↵↵0.014
  3. 7.84 … where ls.csn_id == q.csn_id↵ and (q.csn_timestamp - %d) > (ls.csn_timestamp + 0)↵ """ % accuracy,↵ 'alerts …
    All 499 tokens

    """Checkout ldap servers ensemble.↵"""↵↵from __future__ import absolute_import↵from __future__ import division↵from __future__ import print_function↵from __future__ import unicode_literals↵↵import json↵import logging↵↵import click↵import ldap3↵↵from treadmill import admin↵from treadmill import cli↵from treadmill import context↵↵_LOGGER = logging.getLogger(__name__)↵↵↵def _metadata(total, accuracy):↵ """genertate metadata for alerts↵ """↵ return {↵ 'index': 'name',↵ 'query': 'select * from ldap_server_csn',↵ 'checks': [↵ {↵ 'description': 'LDAP Status',↵ 'query':↵ """↵ select name, health from ldap_status where health == 0↵ order by name↵ """,↵ 'metric':↵ """↵ select count(*) as down from ({query})↵ """,↵ 'alerts': [↵ {↵ 'description': 'All LDAP servers are up',↵ 'severity': 'error',↵ 'threshold': {↵ 'down': 1↵ }↵ },↵ {↵ 'description': 'LDAP server group is working',↵ 'severity': 'critical',↵ 'threshold': {↵ 'down': total↵ }↵ }↵ ]↵ },↵ {↵ 'description': 'LDAP ContextCSN',↵ 'query':↵ """↵ select name, csn_timestamp, csn_id↵ from ldap_server_csn order by csn_id, name↵ """,↵ 'metric':↵ """↵ select count(*) as async↵ from ldap_server_csn ls, (↵ select max(csn_timestamp) as csn_timestamp,↵ csn_id from ldap_server_csn group by csn_id↵ ) q↵ where ls.csn_id == q.csn_id↵ and (q.csn_timestamp - %d) > (ls.csn_timestamp + 0)↵ """ % accuracy,↵ 'alerts': [↵ {↵ 'description': 'LDAP servers are synchronized',↵ 'severity': 'critical',↵ 'threshold': {↵ 'async': 1↵ }↵ }↵ ]↵ },↵ {↵ 'description': 'LDAP schema',↵ 'query':↵ """↵ select name, schema↵ from ldap_schema order by name↵ """,↵ 'metric':↵ """↵ select count(*) as total↵ from (↵ select distinct(schema) from ldap_schema↵ )↵

    Values
    TokenNegative-pole strength
    0.044
    where0.000
    ls0.097
    .c0.055
    sn0.303
    _id0.000
    ==0.000
    q0.059
    .c0.053
    sn0.294
    _id0.027
    ↵0.000
    0.040
    and0.112
    (0.000
    q0.019
    .c0.020
    sn0.285
    _timestamp0.000
    -0.000
    %0.000
    d0.016
    )0.000
    >0.025
    (0.000
    ls0.130
    .c0.000
    sn0.275
    _timestamp0.033
    +0.027
    7.840
    00.000
    )↵0.002
    0.044
    """0.000
    %0.104
    accuracy0.068
    ,↵0.150
    0.000
    '1.142
    alerts0.081
  4. 7.28 … 15 + 0U);↵ t16 = (t12 + 0U);↵ *((int *)t16) = 16;↵ t16 = (t …
    All 1161 tokens

    /**********************************************************************/↵/* ____ ____ */↵/* / /\/ / */↵/* /___/ \ / */↵/* \ \ \/ */↵/* \ \ Copyright (c) 2003-2009 Xilinx, Inc. */↵/* / / All Right Reserved. */↵/* /---/ /\ */↵/* \ \ / \ */↵/* \___\/\___\ */↵/***********************************************************************/↵↵/* This file is designed for use with ISim build 0x7708f090 */↵↵#define XSI_HIDE_SYMBOL_SPEC true↵#include "xsi.h"↵#include <memory.h>↵#ifdef __GNUC__↵#include <stdlib.h>↵#else↵#include <malloc.h>↵#define alloca _alloca↵#endif↵extern char *IEEE_P_2592010699;↵↵↵↵char *xilinxcorelib_a_██████████_██████████_sub_██████████_██████████(char *t1, char *t2, char *t3, int t4, int t5, int t6, char *t7)↵{↵ char t8[368];↵ char t9[48];↵ char t10[16];↵ char t15[16];↵ char t20[16];↵ char t38[16];↵ char t57[16];↵ char *t0;↵ char *t11;↵ char *t12;↵ int t13;↵ unsigned int t14;↵ char *t16;↵ int t17;↵ int t18;↵ int t19;↵ int t21;↵ char *t22;↵ int t23;↵ unsigned int t24;↵ char *t25;↵ char *t26;↵ char *t27;↵ char *t28;↵ char *t29;↵ char *t30;↵ int t31;↵ int t32;↵ char *t33;↵ char *t34;↵ int t35;↵ int t36;↵ unsigned int t37;↵ int t39;↵ char *t40;↵ char *t41;↵ int t42;↵ unsigned int t43;↵ char *t44;↵ char *t45;↵ char *t46;↵ char *t47;↵ char *t48;↵ char *t49;↵ int t50;↵ int t51;↵ char *t52;↵ char *t53;↵ int t54;↵ int t55;↵ unsigned int t56;↵ int t58;↵ char *t59;↵ char *t60;↵ int t61;↵ unsigned int t62;↵ char *t63;↵ char *t64;↵ char *t65;↵ char *t66;↵ char *t67;↵ char *t68;↵ char *t69;↵ unsigned char t70;↵ char *t71;↵ char *t72;↵ char *t73;↵ char *t74;↵ char *t75;↵ unsigned char t76;↵ char *t77;↵ char *t78;↵ char *t79;↵ char *t80;↵↵LAB0: t11 = (t10 + 0U);↵ t12 = (t11 + 0U);↵ *((int *)t12) = 16;↵ t12 = (t11 + 4U);↵ *((int *)t12) = 1;↵ t12 = (t11 + 8U);↵ *((int *)t12) = -1;↵ t13 = (1 - 16);↵ t14 = (t13 * -1);↵ t14 = (t14 + 1);↵ t12 = (t11 + 12U);↵ *((unsigned int *)t12) = t14;↵ t12 = (t15 + 0U);↵ t16 = (t12 + 0U);↵ *((int *)t16) = 16;↵ t16 = (t12 + 4U);↵ *((int *)t16) = 1;↵ t16 = (t12 + 8U);↵ *((int *)t16) = -1;↵ t17 = (1 - 16);↵ t14 = (t17 * -1);↵ t14 = (t14 + 1);↵ t16 = (t12 + 12U);↵ *((unsigned int *)t16) = t14;↵ t18 = (16 - 1);↵ t19 = (0 - t18);↵ t14 = (t19 * -1);↵ t14 = (t14 + 1);↵ t

    Values
    TokenNegative-pole strength
    10.000
    50.000
    +0.041
    5.491
    00.000
    U0.000
    );↵0.000
    0.102
    t0.000
    10.000
    60.000
    =0.029
    (0.000
    t0.000
    10.000
    20.000
    +0.000
    5.008
    00.000
    U0.000
    );↵0.000
    0.068
    *((0.000
    int0.000
    *)0.000
    t0.000
    10.000
    60.000
    )0.000
    =0.048
    7.283
    10.550
    60.000
    ;↵0.003
    0.166
    t0.000
    10.000
    60.000
    =0.051
    (0.000
    t0.000
  5. 7.04 … (&sdp->sd_bitmap_lock);↵↵ spin_lock_init(&sdp->sd_log_lock);↵ atomic_set(&sdp->sd_log_pinned, 0);↵ INIT_LIST_HEAD(&sdp-> …
    All 952 tokens

    /*↵ * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.↵ * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.↵ *↵ * This copyrighted material is made available to anyone wishing to use,↵ * modify, copy, or redistribute it subject to the terms and conditions↵ * of the GNU General Public License version 2.↵ */↵↵#include <linux/sched.h>↵#include <linux/slab.h>↵#include <linux/spinlock.h>↵#include <linux/completion.h>↵#include <linux/buffer_head.h>↵#include <linux/blkdev.h>↵#include <linux/kthread.h>↵#include <linux/export.h>↵#include <linux/namei.h>↵#include <linux/mount.h>↵#include <linux/gfs2_ondisk.h>↵#include <linux/quotaops.h>↵#include <linux/lockdep.h>↵#include <linux/module.h>↵↵#include "gfs2.h"↵#include "incore.h"↵#include "bmap.h"↵#include "glock.h"↵#include "glops.h"↵#include "inode.h"↵#include "recovery.h"↵#include "rgrp.h"↵#include "super.h"↵#include "sys.h"↵#include "util.h"↵#include "log.h"↵#include "quota.h"↵#include "dir.h"↵#include "trace_gfs2.h"↵↵#define DO 0↵#define UNDO 1↵↵/**↵ * gfs2_tune_init - Fill a gfs2_tune structure with default values↵ * @gt: tune↵ *↵ */↵↵static void gfs2_tune_init(struct gfs2_tune *gt)↵{↵ spin_lock_init(&gt->gt_spin);↵↵ gt->gt_quota_warn_period = 10;↵ gt->gt_quota_scale_num = 1;↵ gt->gt_quota_scale_den = 1;↵ gt->gt_new_files_jdata = 0;↵ gt->gt_max_readahead = 1 << 18;↵ gt->gt_complain_secs = 10;↵}↵↵static struct gfs2_sbd *init_sbd(struct super_block *sb)↵{↵ struct gfs2_sbd *sdp;↵↵ sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL);↵ if (!sdp)↵ return NULL;↵↵ sb->s_fs_info = sdp;↵ sdp->sd_vfs = sb;↵ sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats);↵ if (!sdp->sd_lkstats) {↵ kfree(sdp);↵ return NULL;↵ }↵↵ set_bit(SDF_NOJOURNALID, &sdp->sd_flags);↵ gfs2_tune_init(&sdp->sd_tune);↵↵ init_waitqueue_head(&sdp->sd_glock_wait);↵ atomic_set(&sdp->sd_glock_disposal, 0);↵ init_completion(&sdp->sd_locking_init);↵ init_completion(&sdp->sd_wdack);↵ spin_lock_init(&sdp->sd_statfs_spin);↵↵ spin_lock_init(&sdp->sd_rindex_spin);↵ sdp->sd_rindex_tree.rb_node = NULL;↵↵ INIT_LIST_HEAD(&sdp->sd_jindex_list);↵ spin_lock_init(&sdp->sd_jindex_spin);↵ mutex_init(&sdp->sd_jindex_mutex);↵ init_completion(&sdp->sd_journal_ready);↵↵ INIT_LIST_HEAD(&sdp->sd_quota_list);↵ mutex_init(&sdp->sd_quota_mutex);↵ mutex_init(&sdp->sd_quota_sync_mutex);↵ init_waitqueue_head(&sdp->sd_quota_wait);↵ INIT_LIST_HEAD(&sdp->sd_trunc_list);↵ spin_lock_init(&sdp->sd_trunc_lock);↵ spin_lock_init(&sdp->sd_bitmap_lock);↵↵ spin_lock_init(&sdp->sd_log_lock);↵ atomic_set(&sdp->sd_log_pinned, 0);↵ INIT_LIST_HEAD(&sdp->sd_log_le_buf);↵ INIT_LIST_HEAD(&sdp->sd_log_le_revoke);↵ INIT_LIST_HEAD(&sdp->sd_log_le_databuf);↵ INIT_LIST_HEAD(&sdp->sd_log_le_ordered);↵ spin_lock_init(&sdp->sd_ordered_lock);↵↵ init_waitqueue_head(&sdp->sd_log_waitq);↵ init_waitqueue_head(&sdp->sd_logd_waitq);↵ spin_lock_init(&sdp->sd_ail_lock);↵ INIT_LIST_HEAD(&sdp->sd_ail1_list);↵ INIT_LIST_HEAD(&sdp->sd_ail2_list);↵↵ init_rwsem(&sdp->sd_log_flush_loc

    Values
    TokenNegative-pole strength
    (&0.012
    s0.097
    dp0.160
    ->0.070
    sd0.050
    _bitmap0.036
    _lock0.100
    );↵↵0.001
    spin0.110
    _lock0.000
    _init0.126
    (&0.011
    s0.110
    dp0.153
    ->0.057
    sd0.028
    _log0.033
    _lock0.156
    );↵0.025
    atomic0.000
    _set0.000
    (&0.044
    s0.083
    dp0.143
    ->0.088
    sd0.039
    _log0.057
    _p0.010
    inned0.000
    ,0.028
    7.040
    00.007
    );↵0.067
    0.600
    INIT0.000
    _LIST0.000
    _HEAD0.000
    (&0.001
    s0.105
    dp0.145
    ->0.044
  6. 6.88 … mat1, mat, matt);↵ //mat_mul(&mat1, mat, matt);↵ //mat_muls(&mat1, mat, 3);↵↵ mat_solve(&mat1, mat …
    All 855 tokens

    #include <stdio.h>↵#include "5-7-n4.h"↵↵↵int main()↵{↵ matrix a;↵ ↵ if (mat_alloc(&a, 3, 3)) {↵ printf("allocation error\n");↵ exit(-1);↵ }↵↵#ifndef FROM0↵ mat_elem(a, 1, 1) = 2;↵ mat_elem(a, 1, 2) = 3;↵ mat_elem(a, 1, 3) = 1;↵ mat_elem(a, 2, 1) = 4;↵ mat_elem(a, 2, 2) = 1;↵ mat_elem(a, 2, 3) = -3;↵ mat_elem(a, 3, 1) = -1;↵ mat_elem(a, 3, 2) = 2;↵ mat_elem(a, 3, 3) = 1;↵#else↵ mat_elem(a, 0, 0) = 2;↵ mat_elem(a, 0, 1) = 3;↵ mat_elem(a, 0, 2) = 1;↵ mat_elem(a, 1, 0) = 4;↵ mat_elem(a, 1, 1) = 1;↵ mat_elem(a, 1, 2) = -3;↵ mat_elem(a, 2, 0) = -1;↵ mat_elem(a, 2, 1) = 2;↵ mat_elem(a, 2, 2) = 1;↵#endif↵↵ if ( mat_inverse(&a, a) ) {↵ printf("Cannot make inverse matrix\n");↵ exit(-1);↵ }↵↵ printf("Inverse matrix is:\n");↵ mat_print(a);↵↵ mat_free(&a);↵↵ return 0;↵}↵↵/*↵int main(){↵ int i, j;↵ matrix mat, matt, mat1;↵↵ mat_alloc(&mat, 3, 3);↵ mat_alloc(&matt, 3, 2);↵ mat_alloc(&mat1, 3, 2);↵↵ ↵ for(i=0; i < mat.row; i++){↵ for(j=0; j < mat.col; j++){↵ mat.element[i][j] = j + i * mat.col;↵ }↵ }↵↵ for(i=0; i < matt.row; i++){↵ for(j=0; j < matt.col; j++){↵ matt.element[i][j] = j + i * matt.col;↵ }↵ }↵↵↵↵ mat.element[0][0] = 1;↵ mat.element[0][1] = -1;↵ mat.element[0][2] = 1;↵ matt.element[0][0] = -5;↵ matt.element[0][1] = -5;↵↵ mat.element[1][0] = 2;↵ mat.element[1][1] = 1;↵ mat.element[1][2] = -3;↵ matt.element[1][0] = 19;↵ matt.element[1][1] = 19;↵↵ mat.element[2][0] = 3;↵ mat.element[2][1] = 2;↵ mat.element[2][2] = -1;↵ matt.element[2][0] = 16;↵ matt.element[2][1] = 16;↵↵ ↵↵ //mat_copy(&mat1, mat);↵ //mat_add(&mat1, mat, matt);↵ //mat_sub(&mat1, mat, matt);↵ //mat_mul(&mat1, mat, matt);↵ //mat_muls(&mat1, mat, 3);↵↵ mat_solve(&mat1, mat, matt);↵↵ //mat_mul(&matt, mat, matt);↵ //mat_unit(&mat);↵ //printf("%d \n", mat_compare(mat, matt));↵↵↵ ↵ mat_print(mat1);↵↵ mat_free(&mat1);↵ mat_free(&matt);↵ mat_free(&mat);↵↵↵ return 0;↵}↵*/

    Values
    TokenNegative-pole strength
    mat0.199
    10.050
    ,0.095
    mat0.082
    ,0.097
    matt0.000
    );↵0.000
    0.125
    //0.017
    mat0.152
    _mul0.000
    (&0.000
    mat0.186
    10.032
    ,0.157
    mat0.068
    ,0.112
    matt0.000
    );↵0.006
    0.134
    //0.023
    mat0.153
    _m0.000
    uls0.000
    (&0.000
    mat0.192
    10.023
    ,0.139
    mat0.087
    ,0.061
    6.878
    30.149
    );↵↵0.028
    0.054
    mat0.153
    _solve0.000
    (&0.000
    mat0.235
    10.073
    ,0.010
    mat0.140
  7. 6.54 … s.i++;↵↵ if(s.t == type_t::map)↵ write(name);↵ }↵↵ if(t != type_t::non_container && n > 0)↵ stack.emplace(t, n);↵}↵↵ …
    All 850 tokens

    #pragma once↵↵#include <msgpack.hpp>↵↵#include <stack>↵↵namespace roerei↵{↵↵class msgpack_serializer↵{↵public:↵ msgpack_serializer();↵ virtual ~msgpack_serializer();↵ ↵public:↵ void write_array(const std::string& name, const size_t n);↵ void write_object(const std::string& name, const size_t n);↵ void write_null(const std::string& name);↵↵ void write(const std::string& key, const uint16_t x);↵ void write(const std::string& key, const uint64_t x);↵ void write(const std::string& key, const std::string& x);↵ void write(const std::string& key, const float x);↵ void write(const std::string& key, const bool x);↵↵ virtual void dump(std::function<void(const char*, size_t)> f);↵ virtual void clear();↵↵private:↵ enum type_t↵ {↵ array,↵ map,↵ non_container↵ };↵↵ struct stack_e↵ {↵ type_t t;↵ size_t n, i;↵↵ stack_e(type_t t, size_t n);↵ };↵↵ void add_node(const type_t t, const std::string& name, const size_t n);↵ void write(const std::string& x);↵↵ msgpack::sbuffer buffer;↵ msgpack::packer<msgpack::sbuffer> pk;↵ std::stack<stack_e> stack;↵};↵↵inline msgpack_serializer::msgpack_serializer()↵ : buffer()↵ , pk(&buffer)↵ , stack()↵{}↵↵inline msgpack_serializer::~msgpack_serializer()↵{}↵↵inline msgpack_serializer::stack_e::stack_e(type_t _t, size_t _n)↵ : t(_t)↵ , n(_n)↵ , i(0)↵{}↵↵inline void msgpack_serializer::write(const std::string& x)↵{↵ pk.pack_str(x.size());↵ pk.pack_str_body(x.data(), x.size());↵}↵↵inline void msgpack_serializer::add_node(const type_t t, const std::string& name, const size_t n)↵{↵ while(!stack.empty())↵ {↵ stack_e& s = stack.top();↵↵ if(s.i < s.n)↵ break;↵↵ stack.pop();↵ }↵↵ if(!stack.empty())↵ {↵ stack_e& s = stack.top();↵ s.i++;↵↵ if(s.t == type_t::map)↵ write(name);↵ }↵↵ if(t != type_t::non_container && n > 0)↵ stack.emplace(t, n);↵}↵↵inline void msgpack_serializer::write_array(const std::string& name, const size_t n)↵{↵ add_node(type_t::array, name, n);↵ pk.pack_array(n);↵}↵↵inline void msgpack_serializer::write_object(const std::string& name, const size_t n)↵{↵ add_node(type_t::map, name, n);↵ pk.pack_map(n);↵}↵↵inline void msgpack_serializer::write_null(const std::string& name)↵{↵ add_node(type_t::non_container, name, 0);↵ pk.pack_nil();↵}↵↵inline void msgpack_serializer::write(const std::string& key, const uint16_t x)↵{↵ add_node(type_t::non_container, key, 0);↵ pk.pack_uint16(x);↵}↵↵inline void msgpack_serializer::write(const std::string& key, const uint64_t x)↵{↵ add_node(type_t::non_container, key, 0);↵ pk.pack_uint64(x);↵}↵↵inline void msgpack_serializer::write(const std::string& key, const std::string& x)↵{↵ add_node(type_t::non_container, key, 0);↵ write(x);↵}↵↵inline void msgpack_serializer::write(const std::string& key, const float x)↵{↵ add_node(type_t::non_container, key, 0);↵ pk.pack_float(x);↵}↵↵inline void msgpack_serializer::write(const std::string& key, const bool x)↵{↵ add_node(type_t::non_container, key, 0);↵ if (x) {↵ pk.pack_true();↵ } else {↵ pk.pack_false();↵ }↵}↵↵inline void msgpack_seriali

    Values
    TokenNegative-pole strength
    s0.147
    .i0.035
    ++;↵↵0.000
    0.011
    if0.025
    (s0.075
    .t0.100
    ==0.000
    type0.095
    _t0.000
    ::0.000
    map0.022
    )↵0.000
    1.001
    write0.003
    (name0.002
    );↵0.000
    0.037
    }↵↵0.000
    if0.000
    (t0.000
    !=0.000
    type0.078
    _t0.000
    ::0.000
    non0.063
    _container0.065
    &&0.000
    n0.003
    >0.050
    6.537
    00.000
    )↵0.080
    2.335
    stack0.257
    .emplace0.186
    (t0.000
    ,0.100
    n0.000
    );↵0.000
    }↵↵0.000
  8. 6.19 … obj), ";")↵ create_object_html = file2text('html/create_object.html')↵ create_object_html = replacetext(create_object_html, "null /* object types */", "\"[objectjs …
    All 332 tokens

    /var/create_object_html = null↵↵/datum/admins/proc/create_object(var/mob/user)↵ if (!create_object_html)↵ var/objectjs = null↵ objectjs = jointext(typesof(/obj), ";")↵ create_object_html = file2text('html/create_object.html')↵ create_object_html = replacetext(create_object_html, "null /* object types */", "\"[objectjs]\"")↵↵ user << browse(replacetext(create_object_html, "/* ref src */", "\ref[src]"), "window=create_object;size=425x475")↵↵↵/datum/admins/proc/quick_create_object(var/mob/user)↵↵↵ var/quick_create_object_html = null↵ var/pathtext = null↵↵ pathtext = input("Select the path of the object you wish to create.", "Path", "/obj") in list("/obj","/obj/structure","/obj/item","/obj/item/weapon","/obj/machinery","/obj/mecha")↵↵ var path = text2path(pathtext)↵↵ if (!quick_create_object_html)↵ var/objectjs = null↵ objectjs = jointext(typesof(path), ";")↵ quick_create_object_html = file2text('html/create_object.html')↵ quick_create_object_html = replacetext(quick_create_object_html, "null /* object types */", "\"[objectjs]\"")↵↵ user << browse(replacetext(quick_create_object_html, "/* ref src */", "\ref[src]"), "window=quick_create_object;size=425x475")

    Values
    TokenNegative-pole strength
    obj0.195
    ),0.000
    ";0.000
    ")↵0.029
    0.074
    create0.160
    _object0.041
    _html0.000
    =0.000
    file0.113
    20.215
    text0.000
    ('4.317
    html0.001
    /create0.110
    _object0.014
    .html0.012
    ')↵0.047
    0.025
    create0.241
    _object0.005
    _html0.025
    =0.000
    repl0.000
    acet0.000
    ext0.000
    (create0.054
    _object0.000
    _html0.000
    ,0.095
    "6.194
    null0.000
    /*0.000
    object0.061
    types0.081
    */0.000
    ",0.000
    "\"0.000
    [0.069
    object0.097
    js0.101
  9. 5.96 … implify@↵Solve[{Evaluate[gensol /. x -> 0] == 1,↵Evaluate[D[gensol, x] /. x -> 1] == -1}, {C[1 …
    All 1106 tokens

    # Finding C[i]'s expression in DSolve solution↵↵An example, the command↵↵DSolve[y''[x] - 4 y[x] == 1, y[x], x]↵↵gives solution↵↵y[x] -> -(1/4) + E^(2 x) C[1] + E^(-2 x) C[2]↵↵The same command with initial conditions↵↵DSolve[{y''[x] - 4 y[x] == 1, y[0] == 1, y'[1] == -1}, y[x], x]↵↵gives solution↵↵y[x] -> -((E^(-2 x) (-2 E^2 - 5 E^4 + E^(2 x) - 5 E^(4 x) + E^(4 + 2 x) +↵2 E^(2 + 4 x)))/(4 (1 + E^4)))↵↵In the first case, the solution has very clear structure: an increasing component, a decreasing component, and a particular solution. In the second case, this structure is shadowed by the complicated expression. Here is a picture of the commands & results in Mathematica:↵↵I think most people would prefer the 2nd solution to be presented in similar form as in the first case. Something like:↵↵The solution is $y = c_1 h_1(x) + c_2 h_2(x) + g(x)$, in which $h_1(x) = e^{2 x}$ is the first homogeneous solution, $h_2(x) = e^{-2 x}$ is the second homogeneous solution, and $g(x)=-1/4$ is the particular solution. The coefficients $c_1, c_2$ are determined from initial conditions. In this particular case we have $c_1 = ; c_2 =$.↵↵Is there a way to extract $c_1$ and $c_2$? Pattern matching might work in this simple example, but I don't think it generalizes to more complicated cases.↵↵It's possible to dig out C[_] directly from DSolve, with the help of TraceInternal:↵↵eqn = y''[x] - 4 y[x] == 1;↵↵constant =↵Trace[DSolve[{eqn, y[0] == 1, y'[1] == -1}, y[x], x], HoldPattern[C[_] -> _],↵TraceInternal -> True] // Flatten // ReleaseHold // Simplify // Union↵(* {C[1] -> (5 - 2 E^2)/(4 + 4 E^4), C[2] -> (2 E^2 + 5 E^4)/(4 + 4 E^4)} *)↵↵Or a bit shorter:↵↵constant = Trace[DSolve[{eqn, y[0] == 1, y'[1] == -1}, y[x], x],↵HoldPattern[{(C[_] -> _) ..}], TraceInternal -> True] // ReleaseHold // Flatten↵↵The most obvious answer is to solve for the constants from the general solution directly. In this example, let↵↵gensol = DSolve[y''[x] - 4 y[x] == 1, y[x], x][[1, 1, 2]]↵(*-(1/4) + E^(2 x) C[1] + E^(-2 x) C[2]*)↵↵Now we can construct a system of equations based on the boundary conditions specified in the problem to get explicit values for our general solution constants.↵↵FullSimplify@↵Solve[{Evaluate[gensol /. x -> 0] == 1,↵Evaluate[D[gensol, x] /. x -> 1] == -1}, {C[1], C[2]}]↵(*{{C[1] -> (5 - 2 E^2)/(4 + 4 E^4),↵C[2] -> (2 E^2 + 5 E^4)/(4 + 4 E^4)}}*)↵↵In this example we also mess around a bit with the full solution to extract the general solution constants.↵↵totsol = DSolve[{y''[x] - 4 y[x] == 1, y[0] == 1, y'[1] == -1}, y[x],↵x][[1, 1, 2]]↵(*-((E^(-2 x) (-2 E^2 - 5 E^4 + E^(2 x) - 5 E^(4 x) + E^(4 + 2 x) +↵2 E^(2 + 4 x)))/(4 (1 + E^4)))*)↵↵Collecting the results based on one of the functions appearing in the general solution we can extract the constants.↵↵Collect[Expand[totsol], E^(2 x)]↵(*-(1/(4 (1 + E^4))) - E^4/(4 (1 + E^4)) +↵E^(2 x) (5/(4 (1 + E^4)) - E^2/(2 (1 + E^4))) +↵E^(-2 x) (E^2/(2 (1 + E^4)) + (5 E^4)/(4 (1 + E^4)))*)↵↵We can now simplify things a bit to get t

    Values
    TokenNegative-pole strength
    implify0.000
    @↵0.000
    S0.000
    olve0.000
    [{0.001
    Evaluate0.000
    [g0.021
    ens0.221
    ol0.000
    /.0.000
    x0.000
    ->0.000
    5.316
    00.000
    ]0.085
    ==0.001
    4.505
    10.000
    ,↵0.009
    Evaluate0.000
    [D0.000
    [g0.000
    ens0.237
    ol0.043
    ,0.031
    x0.000
    ]0.280
    /.0.000
    x0.000
    ->0.000
    5.965
    10.040
    ]0.103
    ==0.003
    -0.000
    10.048
    },0.000
    {0.014
    C0.000
    [1.202
    10.000
  10. 5.91 … .0↵then 0.0↵else↵(this.K / this.Lambda)↵*↵(x / this.Lambda) ** (this.K - 1.0)↵*↵exp ( - ((x …
    All 745 tokens

    # Maximum Likelihood Estimation of Weibull reliability with DiffSharp↵↵This post is a continuation of my exploration of DiffSharp, an F# Automatic Differentiation library. In the previous post, I covered some introductory elements of Maximum Likelihood Estimation, through a toy problem, estimating the likelihood that a sequence of heads and tails had been generated by a fair coin.↵↵In this post, I will begin diving into the real-world problem that motivated my interest.↵↵The general question I am interested in is about reliability. Imagine that you have a piece of equipment, and that from time to time, a component of that piece of equipment experiences failures. When that happens, you replace the defective component with a new one, restart the equipment, and proceed until the next failure.↵↵The log for such a process would then look something like this:↵↵Jan 07, 2020, 08:37 Component failure↵Jan 17, 2020, 13:42 Component failure↵Feb 02, 2020, 06:05 Component failure↵Feb 06, 2020, 11:17 Component failure↵↵↵If you wanted to make improvements to the operations of your equipment, one useful technique would be to simulate that equipment and its failures. For instance, you could evaluate a policy such as “we will pre-emptively replace the Component every week, before it fails”. By simulating random possible sequences of failures, you could then evaluate how effective that policy is, compared to, for instance, waiting for the failures to occur naturally.↵↵However, in order to run such a simulation, you would need to have a model for the distributions of these failures.↵↵The log above contains the history of past failures, so, assuming nothing changed in the way the equipment is operated, it is a sample of the failure distribution we are interested in. We should be able to use it, to estimate what parameters are the most likely to have generated that log. Let’s get to it!↵↵Environment: dotnet 6.0.302 / Windows 10, DiffSharp 1.0.7↵↵↵Full code on GitHub↵↵## Weibull time to failure↵↵What we are interested in here is the time to failure, the time our equipment runs from the previous component replacement to its next failure. A classic distribution used to model time to failure is the Weibull distribution.↵↵The Weibull distribution is not the only option available, but it has interesting properties. It is a continuous probability distribution, over positive numbers, and is defined by 2 parameters, one describing its shape, k, the other its scale, lambda. Let’s examine these properties, through an F# code implementation:↵↵type Weibull = {↵Lambda: float↵K: float↵}↵with↵member this.Density (x: float) =↵if x <= 0.0↵then 0.0↵else↵(this.K / this.Lambda)↵*↵(x / this.Lambda) ** (this.K - 1.0)↵*↵exp ( - ((x / this.Lambda) ** this.K))↵member this.Cumulative (x: float) =↵if x <= 0.0↵then 0.0↵else↵1.0↵-↵exp ( - ((x / this.Lambda) ** this.K))↵member this.InverseCumulative (p: float) =↵this.Lambda↵*↵( - (log (1.0 - p))) ** (1.0 / this.K)↵↵↵Let’s examine the impact of t

    Values
    TokenNegative-pole strength
    .0.000
    00.098
    ↵0.000
    then0.000
    3.849
    00.000
    .0.000
    00.066
    ↵0.000
    else0.000
    ↵0.023
    (this0.117
    .K0.179
    /0.000
    this0.167
    .L0.307
    ambda0.209
    )↵0.025
    *↵0.011
    (x0.098
    /0.056
    this0.137
    .L0.162
    ambda0.180
    )0.017
    **0.050
    (0.023
    this0.091
    .K0.000
    -0.000
    5.907
    10.044
    .0.148
    00.000
    )↵0.000
    *↵0.021
    exp0.000
    (1.109
    -0.000
    ((0.000
    x0.000
  11. 5.83 … 0x000D) |↵ (1L << 0x0020)) >> c) & 1L) != 0);↵ }↵↵ /**↵ * Tests whether …
    All 772 tokens

    /*↵↵ Licensed to the Apache Software Foundation (ASF) under one or more↵ contributor license agreements. See the NOTICE file distributed with↵ this work for additional information regarding copyright ownership.↵ The ASF licenses this file to You under the Apache License, Version 2.0↵ (the "License"); you may not use this file except in compliance with↵ the License. You may obtain a copy of the License at↵↵ http://www.apache.org/licenses/LICENSE-2.0↵↵ Unless required by applicable law or agreed to in writing, software↵ distributed under the License is distributed on an "AS IS" BASIS,↵ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.↵ See the License for the specific language governing permissions and↵ limitations under the License.↵↵*/↵↵package org.apache.batik.xml;↵↵import java.io.ByteArrayInputStream;↵import java.io.IOException;↵import java.io.InputStream;↵import java.io.InputStreamReader;↵import java.io.PushbackInputStream;↵import java.io.Reader;↵↵import org.apache.batik.util.EncodingUtilities;↵↵/**↵ * A collection of utility functions for XML.↵ *↵ * @author <a href="mailto:███████">Stephane Hillion</a>↵ * @version $Id: XMLUtilities.java 588550 2007-10-26 07:52:41Z dvholten $↵ */↵public class XMLUtilities extends XMLCharacters {↵↵ /**↵ * This class does not need to be instantiated.↵ */↵ protected XMLUtilities() {↵ }↵↵ /**↵ * Tests whether the given character is a valid space.↵ */↵ public static boolean isXMLSpace(char c) {↵ return (c <= 0x0020) &&↵ (((((1L << 0x0009) |↵ (1L << 0x000A) |↵ (1L << 0x000D) |↵ (1L << 0x0020)) >> c) & 1L) != 0);↵ }↵↵ /**↵ * Tests whether the given character is usable as the↵ * first character of an XML name.↵ */↵ public static boolean isXMLNameFirstCharacter(char c) {↵ return (NAME_FIRST_CHARACTER[c / 32] & (1 << (c % 32))) != 0;↵ }↵↵ /**↵ * Tests whether the given character is usable as the↵ * first character of an XML 1.1 name.↵ */↵ public static boolean isXML11NameFirstCharacter(char c) {↵ return (NAME11_FIRST_CHARACTER[c / 32] & (1 << (c % 32))) != 0;↵ }↵↵ /**↵ * Tests whether the given character is a valid XML name character.↵ */↵ public static boolean isXMLNameCharacter(char c) {↵ return (NAME_CHARACTER[c / 32] & (1 << (c % 32))) != 0;↵ }↵↵ /**↵ * Tests whether the given character is a valid XML 1.1 name character.↵ */↵ public static boolean isXML11NameCharacter(char c) {↵ return (NAME11_CHARACTER[c / 32] & (1 << (c % 32))) != 0;↵ }↵↵ /**↵ * Tests whether the given 32 bits character is valid in XML documents.↵ * Because the majority of code-points is covered by the table-lookup-test,↵ * we do it first.↵ * This method gives meaningful results only for c >= 0 .↵ */↵ public static boolean isXMLCharacter(int c) {↵↵ re

    Values
    TokenNegative-pole strength
    00.000
    x0.231
    00.000
    00.000
    00.000
    D0.210
    )0.000
    |↵0.094
    0.018
    (0.228
    10.000
    L0.064
    <<0.000
    3.372
    00.000
    x0.283
    00.000
    00.000
    20.000
    00.000
    ))0.000
    >>0.199
    c0.000
    )0.000
    &0.000
    3.804
    10.000
    L0.154
    )0.000
    !=0.000
    5.829
    00.000
    );↵0.000
    0.001
    }↵↵0.015
    0.000
    /**↵0.000
    0.418
    *0.000
    Tests0.000
    whether0.002
  12. 5.50 … public void setSpatialHistogram(float[] spatialHistogram) {↵ ByteBuffer foat = ByteBuffer.allocate(FaceRecognizer.HISTOGRAM_KOLOM * 4);↵ for (int linte = …
    All 731 tokens

    /*↵ * To change this license header, choose License Headers in Project Properties.↵ * To change this template file, choose Tools | Templates↵ * and open the template in the editor.↵ */↵package ���ꦮ������.cv.pojo;↵↵import ���ꦮ������.cv.FaceRecognizer;↵import java.io.Serializable;↵import java.nio.ByteBuffer;↵import java.util.Objects;↵import javax.persistence.Access;↵import javax.persistence.AccessType;↵import javax.persistence.Column;↵import javax.persistence.Entity;↵import javax.persistence.GeneratedValue;↵import javax.persistence.GenerationType;↵import javax.persistence.Id;↵import javax.persistence.Lob;↵import javax.persistence.NamedQueries;↵import javax.persistence.NamedQuery;↵import org.opencv.core.CvType;↵import org.opencv.core.Mat;↵↵/**↵ *↵ * @author ���ꦮ������↵ */↵@Entity↵@Access(AccessType.FIELD)↵@NamedQueries({↵ @NamedQuery(name = "Model.all", query = "SELECT m FROM Model m"),↵ @NamedQuery(name = "Model.nama", query = "SELECT m FROM Model m WHERE m.label = :nama")↵})↵public class Model implements Serializable {↵↵ private static final long serialVersionUID = 1L;↵↵ @Id↵ @GeneratedValue(strategy = GenerationType.IDENTITY)↵ private Integer id;↵↵ @Column(length = 15)↵ private String label;↵ @Lob↵ private byte[] preprocessedFace;↵ @Lob↵ private byte[] spatialHistogram;↵ @Lob↵ private byte[] histogram;↵↵ public Model() {↵ }↵↵ public Model(Integer id) {↵ this.id = id;↵ }↵↵ public Integer getId() {↵ return id;↵ }↵↵ public void setId(Integer id) {↵ this.id = id;↵ }↵↵ public String getLabel() {↵ return label;↵ }↵↵ public void setLabel(String label) {↵ this.label = label;↵ }↵↵ public Mat getPreprocessedFace() {↵ Mat preproFace = new Mat(FaceRecognizer.DESIRED_FACE_HEIGHT, FaceRecognizer.DESIRED_FACE_WIDTH, CvType.CV_8UC1);↵ preproFace.put(0, 0, preprocessedFace);↵ return preproFace;↵ }↵↵ public void setPreprocessedFace(Mat asli) {↵ this.preprocessedFace = new byte[FaceRecognizer.DESIRED_FACE_WIDTH * FaceRecognizer.DESIRED_FACE_HEIGHT];↵ asli.get(0, 0, this.preprocessedFace);↵ }↵↵ public float[] getSpatialHistogram() {↵ ByteBuffer a = ByteBuffer.wrap(spatialHistogram);↵ float[] kiri = new float[FaceRecognizer.HISTOGRAM_KOLOM];↵ for (int k = 0; k < FaceRecognizer.HISTOGRAM_KOLOM; k++) {↵ kiri[k] = a.getFloat();↵ }↵ return kiri;↵ }↵↵ public void setSpatialHistogram(float[] spatialHistogram) {↵ ByteBuffer foat = ByteBuffer.allocate(FaceRecognizer.HISTOGRAM_KOLOM * 4);↵ for (int linte = 0; linte < FaceRecognizer.HISTOGRAM_KOLOM; linte++) {↵ foat.putFloat(spatialHistogram[linte]);↵ this.spatialHistogram = foat.array();↵ }↵ }↵↵ public Mat getHistogram() {↵ Mat histo = new Mat(FaceRecognizer.DESIRED_FACE_HEIGHT,↵ 2 * FaceRecognizer.DESIRED_FACE_WIDTH,↵ CvType.CV_8UC1);↵ h

    Values
    TokenNegative-pole strength
    public0.000
    void0.000
    set0.000
    Spatial0.057
    Histogram0.124
    (float0.103
    []0.044
    spatial0.002
    Histogram0.105
    )0.000
    {↵0.000
    0.000
    ByteBuffer0.038
    fo0.059
    at0.132
    =0.000
    ByteBuffer0.008
    .allocate0.026
    (F0.002
    ace0.138
    Recognizer0.052
    .H0.007
    IST0.077
    O0.000
    GRAM0.298
    _K0.074
    O0.000
    LO0.026
    M0.129
    *0.000
    5.499
    40.018
    );↵0.021
    0.005
    for0.069
    (0.228
    int0.034
    l0.216
    inte0.269
    =0.011
    3.448
Read more

Each token is shaded by negative-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.60
Fuzzing
0.65
Embedding AUROC
0.53

Detection recall by activation strength

0.20
0.20
0.40
0.20
0.00
weakeststrongest

False alarms on inactive windows: 0%.

Judge
deepseek-flash
Held-out windows
258 active of 4,000
Judged
50 detection · 37 fuzzing
Detection outcomes
20 missed · 0 false alarm · 5 hit · 25 correct rejection
Seed
358684736 · mixed-v5 (9 presets, 500 docs, seed 235261908)
Detection windows (50), the explanation's mistakes first
  1. missed 4.33 · sim 0.09 k-1\times \ldots 1}$$ which is the ratio of two falling factorials which is always an integer. A naive algorithm which computes
  2. missed 4.08 · sim 0.19 12 && n%100<=14) ? 2 : 3);\n"↵↵#. module: stock_sms↵#: model:sms.template
  3. missed 4.01 · sim 0.18 in} \mbox{is} \hspace{0.02in} \frac{1}{(1-z)}\times {\frac{
  4. missed 3.69 · sim 0.00 }↵↵ @Override↵ public String getSegmentHL7String() {↵ try {↵ return "ZSH|" + provider.getProviderNo() + "|" +
  5. missed 3.69 · sim 0.04 (this.value < this.min) this.value = min;↵ }↵↵↵ // Coniguration properties↵ this.properties =↵ {↵ anglesStart:
  6. missed 3.37 · sim -0.08 such as oregano, thyme, and parsley. Add a pinch of garlic powder and mix well. 2. Mustard and Honey: Whisk
  7. missed 3.31 · sim 0.06 rightarrow \frac{d}{dz}(\frac{1}{1-z}\ln(\frac{1}{1-z})) = \frac{1}{(
  8. missed 3.08 · sim -0.05 if (entry.getSize() == -1) {↵ Log.e("loadClassData", "can't read the file!");↵ return null;↵ }↵
  9. missed 3.06 · sim 0.10 ) {↵ if s.Name == "" {↵ panic("empty symbol name")↵ }↵↵ _, found := p.symbols[s.Name]↵ if found {↵ panic
  10. missed 2.89 · sim 0.26 eui" ! 4↵↵-- Matching on 'svSize' makes the length index statically-known.↵x4 :: Vec n a -> Maybe (Vec
  11. missed 2.81 · sim 0.08 .↵Thiết kế nhỏ gọn, dễ di chuyển↵Thiết bị tạo ẩm Delonghi rất nhỏ gọn, có quai để bạn có thể x
  12. missed 2.66 · sim 0.14 case ("--args" | "--arg") :: value :: tail =>↵ userArgsBuffer += value↵ args = tail↵↵ case ("--num
  13. missed 2.43 · sim 0.07 failures, 0 errors↵testSelectorWithTagNameAndAttributeExistence passed 3 assertions, 0 failures, 0 errors↵testSelectorWithTagNameAnd
  14. missed 2.36 · sim 0.09 (TaO2). The most stable oxidation state is + 5, as seen in tantalum pentoxide. Tantalum pentoxide is the starting material
  15. missed 2.32 · sim 0.08 sym.Type != SymFunc {↵ panic("not a function")↵ }↵ p.funcs[name] = f↵}↵↵// DefineVar instantiates a variable object
  16. missed 2.30 · sim 0.05 of tantalum can be used for its separation from niobium. Tantalum forms halogen compounds in the oxidation states of + 5, +
  17. missed 2.27 · sim 0.13 bid for 2030, not 2026.↵"It would make things extremely complicated from a financial standpoint with Los Angeles," Probst said
  18. missed 2.20 · sim 0.12 }, ↵ { ↵ "text": "c", ↵ "kind": "enum member" ↵ } ↵ ] ↵ } ↵ ] ↵}); ↵ ↵verify.navigationBar([ ↵ { ↵
  19. missed 2.11 · sim -0.03 için tasarlanmış kompakt, rahat ve taşınabilir hoparlörü Sound Joy’u tanıttı. 26 saate kadar ç
  20. missed 2.09 · sim -0.06 File↵ DEFAULT_TYPE = "JAVA_MODULE"↵ DEFAULT_LOCAL_REPOSITORY_ENV_OVERRIDE = "MAVEN_REPOSITORY"↵↵ attr_accessor :type↵ attr
  21. hit 3.10 · sim 0.19 ///<reference path="fourslash.ts"/> ↵ ↵////enum Foo { a, b, c } ↵/////**/class Bar { } ↵ ↵goTo.marker(); ↵edit
  22. hit 2.70 · sim 0.05 breadcrumbs"><a href="../../../index.html">zircon.core</a>/<a href="../../index.html">org.hexworks.zircon.internal.resource</a>/<a href
  23. hit 2.56 · sim -0.07 una.mw.wsas.activity</a></h1>↵<div class="indexContainer">↵<h2 title="Interfaces">Interfaces</h2>↵<ul title="
  24. hit 2.31 · sim 0.03 ,谋拒楚。</div></td>↵</tr>↵</table>↵</td>↵</tr>↵<tr>↵<td colspan="4">↵<table border="0
  25. hit 2.29 · sim 0.09 Toggler"><span class="icon-toggler"></span></div>↵ <script type="text/javascript" src="../../../../scripts/pages.js"></script>↵ <
  26. correct rejection 1.53 · sim -0.10 = acc↵ self.sdrf_path = sdrf_path↵ self.data_dir = ''↵ self.local_tmp = os.path.join(TEMP_FOLDER
  27. correct rejection 0.63 · sim 0.21 Sun” with “Anrufe in Abwesenheit.” A limited edition of the album included a bonus disc featuring the 18-minute-long “Pel
  28. correct rejection 0.51 · sim 0.16 ��া��া�� ��ল্��া�� ��������া�� ����ট ��েল
  29. correct rejection 0.39 · sim 0.15 α σταθεί επάξια στο ��ψος της προηγούμ
  30. correct rejection 0.39 · sim 0.08 ički (saint Jean de Stjenik), abattu par les Ottomans en 1802, sont toujours conservées dans le
  31. correct rejection 0.38 · sim 0.18 <|im_start|>system↵You are a helpful assistant.<|im_end|>↵<|im_start|>user↵What is the current living arrangement of Justin and Hailey in Los Angeles? Answer according to
  32. correct rejection 0.33 · sim 0.22 a precedent that would govern future successions and eventually become codified in the Twenty-fifth Amendment. A strict constructionist, Tyler found much of the Whig
  33. correct rejection 0.33 · sim 0.05 órica UAM/CSIC\↵Facultad de Ciencias C-XVI, C.U. Cantoblanco, E-28
  34. correct rejection 0.32 · sim 0.06 Chi. Some are identified by different training methods, such as the Internal Boxing Arts (Neijiaquan) that concentrate on the manipulation of the inner breath and
  35. correct rejection 0.32 · sim 0.04 יו.↵מסופר על רב חשוב שנפגע ממיודעו, לפני יום הכיפורים הלך אליו וביקש ממנו בדמעות שית
  36. correct rejection 0.31 · sim -0.02 the Sacrament of Penance?↵Rite for Reconciliation of Several Penitents↵What are ways we can turn our minds and hearts to God?↵
  37. correct rejection 0.30 · sim 0.01 , Anda dapat mengharapkan hasil yang menguntungkan dalam keputusan investasi Anda. Namun, Anda harus memiliki cukup uang di
  38. correct rejection 0.29 · sim 0.08 اني، والتي ستشارك في الانتخابات المقبلة ضمن قائمة الفتح"، موضحاً أنّ "ذلك أوقع خلافاً بين فص
  39. correct rejection 0.29 · sim 0.07 left( y-1 \right) \left( x-1 \right) \left( \gamma\,xy+\alpha\,x+\beta
  40. correct rejection 0.28 · sim 0.01 William B. Davis) is found by Alex Krycek (Nicholas Lea). At FBI Headquarters Walter Skinner (Mitch Pileggi) reveals to
  41. correct rejection 0.28 · sim 0.12 but after much negotiation, Jim lands the sale. Back at the office, Dwight is left in charge. Everyone leaves except his ex-girlfriend Angela, leading to
  42. correct rejection 0.22 · sim 0.06 is driving this development."↵Give Mendelson and Gerber some credit. Their primary concern was that the hostility of a new generation of
  43. correct rejection 0.22 · sim -0.01 Florida in Lake City, to be the first president of the new men's university. Murphree continued to serve as the president of Florida State College, which
  44. correct rejection 0.21 · sim 0.07 bàn phím. Chân có bánh xe giúp dễ dàng di chuyển. … để tăng diện tích sử dụng khi có nhu cầu. Thiết kế chân sát đất
  45. correct rejection 0.19 · sim 0.02 1950s. Soviet aircraft were already unable to intercept the high-flying Lockheed U-2; the Valkyrie would fly at similar altitudes
  46. correct rejection 0.18 · sim 0.08 jektowanie przedniego i tylnego zderzaka.↵“Nowy model Kodiaq jest zarówno nowoczesny, jak i dynamic
  47. correct rejection 0.17 · sim 0.06 _advanced(↵ RXSPENCER_INCLUDE_DIR↵ RXSPENCER_LIBRARY↵)↵↵set(RXSPENCER_INCLUDE_DIRS ${RXSPENCER_INCLUDE
  48. correct rejection 0.15 · sim 0.08 The Club" in reference to the group.↵↵Concept↵↵Bullet Club was conceived by New Japan Pro Wrestling (NJPW) in early 2013
  49. correct rejection 0.13 · sim -0.04 Bachelor of Science Candidate, Spelman College↵Human Immunodeficiency Virus (HIV) is a virus that only affects humans. Unlike other viruses, it attacks
  50. correct rejection 0.10 · sim -0.02 AUTOSUB_DIR, BAM_GENERATOR_PATH, ENA_DIR, TEMP_FOLDER, FTP_GATE↵from utils.common import execute_command, exists_remote↵from utils
Fuzzing windows (37), dashed tokens were marked for the judge
  1. marks right · judged wrong div class="filter-section" id="filter-section"><button class="platform-tag platform-selector common-like" data-active="" data-filter=":zircon.core:d
  2. marks right · judged wrong \sin \theta$$↵\boxed{123} $$\boxed{123}$$↵↵Sort by:↵↵(This solution is not fully original
  3. marks right · judged wrong , 3, 4, 5, 8 and now 9. Never had this experience in the years of Samsung Note use. A little disturbing
  4. marks right · judged wrong a</prop>↵ <prop key="SecretKey">o9qjprQL0UwZrmzTmgHZne9fio0
  5. marks right · judged wrong _k\rightarrow\infty,$↵and its discrete analog $y_i(n+1)=\frac{1}{1+a_ih}y_i(n
  6. marks right · judged wrong 8, 0 );↵ ↵ Mat faceROI = frame_gray( faces[i] );↵ std::vector<Rect> eyes;↵ ↵ }↵
  7. marks right · judged wrong στις πιθανές τάσεις μαζοχισμού του. 2
  8. marks right · judged wrong to compute $${n\choose k} = \frac{n\times (n-1)\ldots (n-k+1)}{k\times
  9. marks right · judged wrong <readerQuotas maxDepth="2000000" maxStringContentLength="██████████"
  10. marks wrong · judged wrong :↵ command += ' -{counter} {read}'.format(counter=counter, read=read2)↵ counter += 1↵ if index1:↵
  11. marks wrong · judged wrong 3/api/components/nav/NavPush/"><code>NavPush</code></a></p>↵↵↵↵↵<!-- @property tags -->↵↵↵↵<!-- instance methods on the class
  12. marks right · judged right 10^{-14}}{7.85\times 10^{-20}} = 127388.54
  13. marks wrong · judged wrong leq 11 \times 12+22=154$$,now since all the numbers $$a_i$$ are different as he
  14. marks right · judged right 9 = 10.21$$ $$[\ce{OH^-}] = 10^{-\mathrm p\ce{OH}} = 1
  15. marks right · judged right <h1>How to Buy</h1>
  16. marks wrong · judged wrong preferably by type, such as $$\ce{ABX2}$$).↵↵These might prove very useful for computational studies (particularly Machine Learning approaches), as
  17. marks wrong · judged wrong .min.css" rel="stylesheet" type="text/css" />↵ <!-- END THEME GLOBAL STYLES -->↵ <!-- BEGIN PAGE LEVEL STYLES -->↵ <link
  18. marks wrong · judged wrong {(2)}\\ \mbox{Notice that}\hspace{0.02in} \frac{1}{(1-z)^2} =
  19. marks wrong · judged wrong , BFGA, CDJA, DEGJ, CJHA, JEGH, CEFB, CEGA. Total → 17↵
  20. marks wrong · judged wrong Иван Васильевич Зуев (, Ближне-Песочное, Российская империя — 17 июля
  21. marks wrong · judged wrong 0 to get exactly 5,000 ...↵But I want to know how....... i hope you understand what i say...↵Yes, I understand. You
  22. marks wrong · judged wrong IllegalArgumentException(type.toString().toLowerCase() + " Codestart is required"));↵ }↵↵ public static String findLanguageName(Collection<Codestart> codestarts
  23. marks wrong · judged wrong ↵↵Let $\mathcal{V}$ be a monoidal model category. Let $\mathcal{A}$ be a $\mathcal{V}$-en
  24. marks wrong · judged wrong >↵ <meta http-equiv="X-UA-Compatible" content="IE=edge">↵ <meta content="width=device-width, initial-scale=1" name="
  25. marks right · judged right werden kann. Allerdings konnten keine Fälle mehr bei Menschen, die nach 1955 geboren wurden, nachgewiesen werden. Man vermut
  26. marks wrong · judged wrong }\right)$↵ ${\mathrm{false}}$ (2)↵ > $p��\mathrm{convert}\left(s,\mathrm{polynom}\
  27. marks wrong · judged wrong att light bulbs burning continuously (with an extra 25-watt compact fluorescent thrown in for good measure). All told, the typical Northwest resident consumes the energy
  28. marks wrong · judged wrong in a relatively tight band of between 22 sen and 24.5 sen, resulting the historical volatility of the mother share dropping to below 3
  29. marks wrong · judged wrong ma Rousseff. Logo depois, ele seguiu para seu primeiro compromisso oficial como presidente: a posse do ministro Gilmar Mendes na
  30. marks wrong · judged wrong service AeroBus (UTC Azores) departs to Ponta Delgada. The bus stop is right in front of the terminal, the shuttle bus runs
  31. marks wrong · judged wrong 津運��センターとして、引き続き乗務員配置区所としての役割を担っている他、同社の車��基地として
  32. marks wrong · judged wrong Assalamualaikum wr wb.↵Salam Sejahtera,↵Salam se Organisasi,↵Dibuatnya web ini untuk dijadikan
  33. marks wrong · judged wrong ற்��ி ��ருவது ��ல்����று ����்����க��்�
  34. marks wrong · judged wrong ↵ медали↵↵Литература ↵ газета «Деснянская правда» (Чернигов) —
  35. marks wrong · judged wrong );↵num *= (n--/factor); denom *= (k--/factor);↵factor = gcd(num, denom);↵num /= factor; denom /= factor;↵
  36. marks wrong · judged wrong and publicly-funded childcare and preschool. Today, Danish and Swedish parents can take a paid year off work following the birth of a child. After that, parents can
  37. marks wrong · judged wrong ��ラリー��・サンドロヴィッチのミュージシャンとしての活動名。↵ ��ラリー��・サンドロ

Activation and mechanism

Activation distribution

[0, 0.274): 192628 [0.274, 0.547): 4372 [0.547, 0.821): 665 [0.821, 1.09): 453 [1.09, 1.37): 352 [1.37, 1.64): 283 [1.64, 1.92): 251 [1.92, 2.19): 195 [2.19, 2.46): 156 [2.46, 2.74): 138 [2.74, 3.01): 98 [3.01, 3.28): 82 [3.28, 3.56): 60 [3.56, 3.83): 57 [3.83, 4.11): 36 [4.11, 4.38): 31 [4.38, 4.65): 24 [4.65, 4.93): 19 [4.93, 5.2): 13 [5.2, 5.47): 13 [5.47, 5.75): 11 [5.75, 6.02): 10 [6.02, 6.29): 8 [6.29, 6.57): 1 [6.57, 6.84): 4 [6.84, 7.12): 2 [7.12, 7.39): 1 [7.39, 7.66): 1 [7.66, 7.94): 1 [7.94, 8.21): 2 0.00 8.21

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

Mechanism

Claimed retrospective: responds to tokens already in context.

Input attribution

0 back
33%
1 back
11%
2–4 back
5%
5–16 back
12%
17–64 back
11%
65+ back
28%
  • #1 at (': ('0 0.47.indexOf-1 0.07 (-4 0.03{ -7 0.03.href-2 -0.02
  • #2 at (': ('0 0.60 {-5 0.06 */ -29 0.05 =-2 -0.05 }-3 0.03
  • #3 at : 0 0.40 +-1 0.17 >-7 0.05Checkout-385 -0.04 %-10 0.04
  • #4 at : 0 0.28 =-1 0.20******/ -985 -0.12alloca-818 0.05)-2 0.05
  • #5 at : ,-1 0.28 0 0.22 atomic-11 0.070-209 0.06(&-9 0.03

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

Vocabulary projection

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

Jacobian lens

␣↵↵ · z = +7.30 · #1 promoted ␣↵↵ ␣ ↵ · z = +7.26 · #2 promoted ␣ ↵ ␣ ↵␣ ↵ · z = +7.25 · #3 promoted ␣ ↵␣ ↵ ␣␣↵↵↵ · z = +7.20 · #4 promoted ␣␣↵↵↵ ␣␣ ↵ · z = +7.18 · #5 promoted ␣␣ ↵ ␣␣ ↵ ↵ · z = +7.14 · #6 promoted ␣␣ ↵ ↵ ␣␣↵↵ · z = +7.11 · #7 promoted ␣␣↵↵ ␣ ↵ ↵ · z = +7.09 · #8 promoted ␣ ↵ ↵ ␣↵↵↵↵ · z = +6.93 · #9 promoted ␣↵↵↵↵ ␣␣␣ ↵ · z = +6.91 · #10 promoted ␣␣␣ ↵ ␣� · z = -3.41 · #10 suppressed ␣� NavController · z = -3.46 · #9 suppressed NavController öğret · z = -3.46 · #8 suppressed öğret 湜 · z = -3.53 · #7 suppressed 湜 /stdc · z = -3.55 · #6 suppressed /stdc ␣Mercer · z = -3.67 · #5 suppressed ␣Mercer ␣ν · z = -3.69 · #4 suppressed ␣ν ␣τ · z = -3.83 · #3 suppressed ␣τ …↵ · z = -4.30 · #2 suppressed …↵ ␣– · z = -4.67 · #1 suppressed ␣– -8 -6 -4 -2 0 +2 +4 +6 +8

Logit lens

ALSE · z = +5.75 · #1 promoted ALSE ,nil · z = +4.69 · #2 promoted ,nil {}_ · z = +4.69 · #3 promoted {}_ ativos · z = +4.46 · #4 promoted ativos quartered · z = +4.31 · #5 promoted quartered ','');↵ · z = +4.28 · #6 promoted ','');↵ ,Yes · z = +4.27 · #7 promoted ,Yes SAM · z = +4.26 · #8 promoted SAM ,No · z = +4.21 · #9 promoted ,No (public · z = +4.11 · #10 promoted (public ␣crosses · z = -3.96 · #10 suppressed ␣crosses ␣compressor · z = -3.98 · #9 suppressed ␣compressor Converter · z = -3.99 · #8 suppressed Converter ␣owner · z = -4.02 · #7 suppressed ␣owner xCA · z = -4.13 · #6 suppressed xCA 悼 · z = -4.14 · #5 suppressed 悼 ␣monitors · z = -4.27 · #4 suppressed ␣monitors cale · z = -4.33 · #3 suppressed cale ␣cro · z = -4.69 · #2 suppressed ␣cro ␣cross · z = -5.05 · #1 suppressed ␣cross -8 -6 -4 -2 0 +2 +4 +6 +8
promotes suppresses Hover a bar for its value.
Values
#Jacobian lens promotessuppressesLogit lens promotessuppresses
1 +7.30 – -4.67 ALSE +5.75 cross -5.05
2 +7.26 … -4.30 ,nil +4.69 cro -4.69
3 +7.25 τ -3.83 {}_ +4.69 cale -4.33
4 +7.20 ν -3.69 ativos +4.46 monitors -4.27
5 +7.18 Mercer -3.67 quartered +4.31 悼 -4.14
6 +7.14 /stdc -3.55 ',''); +4.28 xCA -4.13
7 +7.11 湜 -3.53 ,Yes +4.27 owner -4.02
8 +7.09 öğret -3.46 SAM +4.26 Converter -3.99
9 +6.93 NavController -3.46 ,No +4.21 compressor -3.98
10 +6.91 � -3.41 (public +4.11 crosses -3.96

Top-10 overlap 0% · cos(w, J·w) 0.22 · kurtosis 4.5 (Jacobian) / 3.2 (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 languagepunctuationpunctuation
control furniturepoliticspolitics
category 6 unit symbolverbverb
control politicspoliticspolitics
meaning 2 unit ____.____.____.
control ____.____.:
meaning 6 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 (8.21), 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. If the temperature increases by 5 degrees Celsius tomorrow, what

Clamped ×2

very cold. It is ________ than yesterday. A. cold B. colder C. the coldest D. the

Clamped ×4

not as bad as yesterday. A. B. C. D. E. F

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 put them on and walked out of the store. I was very happy. I had

Clamped ×2

a new pair of shoes for my daughter.(改为同义句) I went to the shop and bought a new

Clamped ×4

a few things.( ) A.A B.B C.C D.D A 解析:

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 it yourself. The best way to do it is to learn from the best. The best way to learn from

Clamped ×2

to do it yourself. The best way to do it is to read it yourself. The best way to read it is

Clamped ×4

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

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 two brothers. One day,

Clamped ×2

there was a young man named John. He was a very good student. He was also a very good boy. He

Clamped ×4

there was a man who was a great mathematician. He was a great mathematician. He was a great mathematician

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 use of the term “climate change” was “inappropriate” and that the term “climate disruption” was “

Clamped ×2

the use of the term “climate change” is not appropriate for the current situation, and that the term “climate disruption

Clamped ×4

the use of the term "sustainable" in the context of the word "sustainable energy" is a misnom

Wiring

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

Read more

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

From the weights. Virtual weights, with each norm's gain folded in. They rank units but have no absolute scale. Each number is how much one unit reads of the other's write. It is signed when one vector reads another (+ means a positive activation raises the read), and a norm otherwise. Heads count through their OV circuit upstream, and through their Q, K and V reads downstream. Channels are on hover.

From activations. Averaged over this pole's peak on 12 of the review's prompts where it fired. Upstream: the first-order change in its strength when a unit's direct write is removed (+ excites). Downstream: the change in a later unit when this pole's write is removed from that unit's input alone (one of Q, K or V for a head).

From the weights

Upstream neurons
L0/N3654 up -0.15
L5/N5783 gate -0.143
L2/N3870 up -0.121
L1/N7848 gate +0.12
L0/N7404 gate -0.119
L5/N8049 up +0.117
L1/N1388 up -0.117
L1/N4944 gate +0.114
L4/N126 up -0.113
L4/N3780 up -0.112
Upstream heads
L5/H5 up +0.631
L5/H3 up +0.461
L5/H0 gate +0.39
L5/H2 up +0.327
L5/H4 up +0.286
L4/H4 gate +0.283
L4/H0 up +0.274
L2/H2 gate +0.273
L5/H1 up +0.268
L6/H4 up +0.259
Downstream neurons
L26/N2908 up -0.543
L26/N7035 up +0.328
L27/N8230 up -0.286
L26/N4295 gate +0.283
L27/N8467 gate +0.251
L27/N4189 up -0.247
L27/N8891 gate +0.247
L27/N6837 up -0.243
L27/N1007 up -0.221
L27/N8809 up +0.208
Downstream heads
L27/H6 v +1.63
L27/H7 v +1.63
L27/H8 v +1.63
L27/H9 v +1.63
L27/H10 v +1.63
L27/H11 v +1.63
L27/H0 v +1.51
L27/H1 v +1.51
L27/H2 v +1.51
L27/H3 v +1.51

From activations

Upstream neurons
L4/N3780 +0.415
L0/N19 +0.375
L4/N5460 -0.115
L1/N8110 +0.111
L5/N1468 -0.109
L5/N4299 -0.103
L0/N1805 +0.0943
L5/N8729 +0.0741
L5/N6011 -0.0736
L3/N6289 +0.0707
Upstream heads
L0/H6 +0.682
L0/H3 +0.448
L0/H0 -0.304
L4/H2 -0.256
L1/H0 -0.238
L1/H3 -0.217
L0/H10 +0.21
L0/H2 -0.182
L1/H4 -0.163
L0/H1 -0.158
Downstream neurons
L25/N8511 -0.885
L27/N8467 +0.87
L10/N4913 +0.662
L15/N4615 -0.57
L27/N3051 +0.56
L27/N2646 +0.546
L27/N7926 +0.545
L24/N1837 -0.545
L27/N2015 +0.517
L26/N883 +0.476
Downstream heads
L19/H6 v +0.802
L15/H7 v +0.699
L11/H8 v +0.69
L27/H2 v +0.66
L25/H3 v +0.655
L18/H10 v +0.608
L10/H5 v +0.563
L8/H9 q +0.55
L23/H7 v +0.507
L27/H11 v +0.496

Covariance and confounds

Confounds

Token identity R²
0.45
Position R²
0.01
Frequency r
0.08
Language R² · MI
0.02 · 0.042 bits
Source R² · MI
0.01 · 0.012 bits
Programming language R² · MI
0.00 · 0.014 bits
Syntax node R² · MI
0.04 · 0.053 bits
Bracket depth R² · MI
0.01 · 0.008 bits
Round depth R² · MI
0.01 · 0.003 bits
Indent depth R² · MI
0.00 · 0.006 bits
Syntax construct R² · MI
0.01 · 0.012 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.71
Hypothesis
0.79 ✓

('(""> ("['="{=' `> $$ '

Co-activating neuron poles

Pole Lift ≥ Both ρ r
N1293+ 42.8 392 +0.04 +0.31
N2709− 32.5 307 +0.06 -0.21
N2739+ 31.2 295 +0.04 +0.24
N4536+ 22.6 219 +0.03 +0.15
N5020+ 21.8 209 +0.03 +0.13
N4544+ 21.7 208 +0.01 +0.25
N314− 19.3 189 +0.01 -0.12
N1609− 17.2 170 +0.02 -0.09
N4126+ 16.8 166 +0.02 -0.01
N7074+ 16.8 166 +0.01 +0.09
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
N1293, N2709, N2739
KL pole alone
5.21e-05
KL partners
7.06e-05
KL together
1.17e-04
Redundancy ratio
0.90

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

Run details

Submitted by
deepseek-flash
Reviewed by
deepseek-flash (same model as the proposer: not an independent review)
Reviewed at
2026-11-11 17:32 UTC
Max activation
8.2105
Selection
manual
Corpus
mixed-v5 (9 presets, 500 docs, seed 235261908) · 199,967 tokens · seeded sample of 364/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
Languages
ja 15% · ru 10% · hi 10% · de 5% · bn 5% · ar 5% · zh 5% · tr 5% · other 39%
Model revision
8faed761d45a · float32
Ran on
scan mps:0 · review mps:0
Run cost
50.4 min (slowest: judge, 25.0 min) · peak 9.1 GB RAM · 4 LLM calls · 2,103,284 + 372,090 tokens · $0.24